/* ============================================================
   SOMOS ASTRA — Design System v2.0
   Infraestructura digital de precisión aeroespacial.
   ============================================================ */

/* 1. FONT IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;0,14..32,900;1,14..32,400&display=swap');

/* 2. CSS RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html { scroll-behavior: smooth; }
img, svg, video { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }

/* 3. DESIGN TOKENS
   ============================================================ */
:root {
  /* Background */
  --bg:          #000000;
  --bg-2:        #0B0B0F;
  --bg-card:     #0D0D15;
  --bg-card-alt: #111119;

  /* Foreground */
  --fg:     #FFFFFF;
  --fg-2:   #94A3B8;
  --fg-3:   #64748B;
  --fg-4:   #374151;

  /* Accent */
  --blue:          #0052FF;
  --blue-hover:    #0047E0;
  --blue-dim:      rgba(0, 82, 255, 0.10);
  --blue-border:   rgba(0, 82, 255, 0.28);
  --blue-glow:     rgba(0, 82, 255, 0.22);

  --purple:        #6366F1;
  --purple-dim:    rgba(99, 102, 241, 0.08);
  --purple-border: rgba(99, 102, 241, 0.22);

  /* Borders */
  --border:    rgba(255, 255, 255, 0.06);
  --border-2:  rgba(255, 255, 255, 0.10);
  --border-3:  rgba(255, 255, 255, 0.16);

  /* Semantic */
  --success: #10B981;

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Sizing */
  --nav-height: 72px;
  --container:  1240px;
  --container-sm: 820px;
  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  16px;

  /* Easing */
  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.45, 0, 0.55, 1);
}

/* 4. BASE
   ============================================================ */
html, body {
  width: 100%;
  overflow-x: hidden;
}
body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 5. TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  color: var(--fg);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
h5 { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
p  { color: var(--fg-2); line-height: 1.72; }

.display-xl {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
}

/* 6. LAYOUT
   ============================================================ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.container-sm {
  max-width: var(--container-sm);
  margin: 0 auto;
  padding: 0 28px;
}
section { padding: 7rem 0; position: relative; }
.section-inner { padding: 5rem 0; position: relative; }

/* 7. NAVIGATION
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  border-bottom: 1px solid transparent;
  transition:
    background 450ms var(--ease-smooth),
    backdrop-filter 450ms,
    border-color 450ms;
}
#navbar.scrolled {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}
.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.logo {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg);
  white-space: nowrap;
  transition: opacity 200ms;
}
.logo:hover { opacity: 0.75; }
.logo em {
  font-style: normal;
  color: var(--blue);
}
.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--fg-3);
  transition: color 200ms;
  letter-spacing: 0.01em;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0; right: 0;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms var(--ease-expo);
}
.nav-link:hover { color: var(--fg); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--fg); }
.nav-link.active::after { transform: scaleX(1); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1100;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
  transition: transform 300ms var(--ease-expo), opacity 200ms;
  transform-origin: center;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* 8. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: var(--font);
  white-space: nowrap;
  transition: all 300ms var(--ease-expo);
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-hover);
  border-color: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 40px var(--blue-glow);
}
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--border-2);
}
.btn-secondary:hover {
  border-color: var(--border-3);
  background: rgba(255,255,255,0.04);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--fg-2);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { color: var(--fg); }
.btn-lg {
  padding: 16px 34px;
  font-size: 0.95rem;
}
.btn-sm {
  padding: 9px 18px;
  font-size: 0.8rem;
}
.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* 9. BADGES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.badge-blue {
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  color: var(--blue);
}
.badge-blue .dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.badge-purple {
  background: var(--purple-dim);
  border: 1px solid var(--purple-border);
  color: var(--purple);
}
.badge-white {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-2);
  color: var(--fg-2);
}
.badge-new {
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  color: var(--blue);
}

/* 10. SECTION LABEL
   ============================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.5rem;
}
.section-label::before {
  content: '';
  flex-shrink: 0;
  width: 24px;
  height: 1px;
  background: var(--blue);
}

/* 11. CARDS
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  transition: all 320ms var(--ease-expo);
}
.card:hover {
  border-color: var(--blue-border);
  background: var(--bg-card-alt);
  transform: scale(1.018);
  box-shadow: 0 0 0 1px var(--blue-dim), 0 20px 50px rgba(0,0,0,0.6);
}
.card-icon {
  width: 50px; height: 50px;
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}
.card-icon svg {
  width: 22px; height: 22px;
  color: var(--blue);
  stroke: currentColor;
}
.card-icon.purple {
  background: var(--purple-dim);
  border-color: var(--purple-border);
}
.card-icon.purple svg { color: var(--purple); }

/* Division Cards (homepage) */
.division-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  transition: all 350ms var(--ease-expo);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.division-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-dim) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 350ms;
}
.division-card:hover {
  border-color: var(--blue-border);
  transform: scale(1.015);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--blue-dim);
}
.division-card:hover::before { opacity: 1; }
.division-card.purple-theme::before {
  background: linear-gradient(135deg, var(--purple-dim) 0%, transparent 60%);
}
.division-card.purple-theme:hover {
  border-color: var(--purple-border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5), 0 0 0 1px var(--purple-dim);
}
.division-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  color: var(--blue);
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}
.division-tag.purple-tag {
  background: var(--purple-dim);
  border-color: var(--purple-border);
  color: var(--purple);
}

/* 12. HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
}
.hero-glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(0,82,255,0.09) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}
.hero-glow-2 {
  position: absolute;
  bottom: -10%;
  right: -10%;
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(99,102,241,0.05) 0%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.017) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.017) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 2;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(0,82,255,0.07);
  pointer-events: none;
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
}

/* Hero - Page Variants */
.hero-page {
  min-height: 55vh;
  padding-top: calc(var(--nav-height) + 3rem);
  padding-bottom: 5rem;
}
.hero-page .hero-content {
  padding-top: 2rem;
}

/* 13. STATS
   ============================================================ */
.stats-bar {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--fg);
  line-height: 1;
  display: block;
}
.stat-num em {
  font-style: normal;
  color: var(--blue);
}
.stat-label {
  font-size: 0.78rem;
  color: var(--fg-3);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  background: var(--border);
  height: 100%;
}

/* 14. PROCESS / STEPS
   ============================================================ */
.process-list {
  display: flex;
  flex-direction: column;
}
.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.process-step:last-child { border-bottom: none; }
.process-step-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding-top: 5px;
  font-variant-numeric: tabular-nums;
}

/* 15. HORIZONTAL DIVIDER
   ============================================================ */
.divider { height: 1px; background: var(--border); }
.divider-lg { margin: 5rem 0; }
.divider-md { margin: 3rem 0; }

/* 16. TAG CHIPS
   ============================================================ */
.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  font-size: 0.73rem;
  color: var(--fg-3);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 1.25rem;
}

/* 17. SERVICE SPLIT LAYOUT
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.split.gap-lg { gap: 6rem; }
.split.align-center { align-items: center; }

/* 18. CTA BLOCK
   ============================================================ */
.cta-block {
  background: linear-gradient(135deg,
    rgba(0,82,255,0.07) 0%,
    rgba(99,102,241,0.04) 100%);
  border: 1px solid rgba(0,82,255,0.18);
  border-radius: var(--radius-xl);
  padding: 5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(0,82,255,0.1) 0%, transparent 70%);
  pointer-events: none;
}

/* 19. CHECKLIST ITEMS
   ============================================================ */
.check-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.check-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  background: var(--blue-dim);
  border: 1px solid var(--blue-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.check-icon svg {
  width: 10px; height: 10px;
  color: var(--blue);
}
.check-item p {
  font-size: 0.9rem;
  line-height: 1.55;
}

/* 20. TEAM CARDS
   ============================================================ */
.team-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  transition: border-color 300ms, transform 300ms var(--ease-expo);
}
.team-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
}
.team-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-dim), var(--purple-dim));
  border: 1px solid var(--border-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg-2);
}
.team-role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.5rem;
}
.team-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}
.team-bio {
  font-size: 0.875rem;
  color: var(--fg-3);
  line-height: 1.65;
}

/* 21. FORM ELEMENTS
   ============================================================ */
.form-group {
  margin-bottom: 1.5rem;
}
.form-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--fg-2);
  margin-bottom: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-md);
  color: var(--fg);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: border-color 200ms, background 200ms, box-shadow 200ms;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-control::placeholder { color: var(--fg-4); }
.form-control:focus {
  border-color: var(--blue-border);
  background: rgba(0,82,255,0.04);
  box-shadow: 0 0 0 3px rgba(0,82,255,0.08);
}
.form-control.error {
  border-color: rgba(239,68,68,0.5);
  box-shadow: 0 0 0 3px rgba(239,68,68,0.08);
}
select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748B' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
  cursor: pointer;
}
select.form-control option {
  background: #0D0D15;
  color: var(--fg);
}
textarea.form-control {
  resize: vertical;
  min-height: 130px;
  line-height: 1.65;
}
.form-error {
  font-size: 0.75rem;
  color: #F87171;
  margin-top: 0.35rem;
  display: none;
}
.form-error.visible { display: block; }
.form-note {
  font-size: 0.78rem;
  color: var(--fg-3);
  margin-top: 0.4rem;
  line-height: 1.5;
}

/* 22. FOOTER
   ============================================================ */
footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 6rem 0 2.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border);
}
.footer-brand .logo { font-size: 0.9rem; }
.footer-brand p {
  font-size: 0.875rem;
  color: var(--fg-3);
  margin-top: 1.25rem;
  line-height: 1.75;
  max-width: 320px;
}
.footer-col h5 {
  color: var(--fg-2);
  margin-bottom: 1.25rem;
}
.footer-col a,
.footer-col span {
  display: block;
  font-size: 0.85rem;
  color: var(--fg-3);
  margin-bottom: 0.7rem;
  transition: color 200ms;
  line-height: 1.5;
}
.footer-col a:hover { color: var(--fg-2); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: var(--fg-4);
}
.footer-legal {
  display: flex;
  gap: 1.75rem;
}
.footer-legal a {
  font-size: 0.8rem;
  color: var(--fg-4);
  transition: color 200ms;
}
.footer-legal a:hover { color: var(--fg-3); }

/* 23. ANIMATIONS: REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity  800ms var(--ease-expo),
    transform 800ms var(--ease-expo);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition:
    opacity 800ms var(--ease-expo),
    transform 800ms var(--ease-expo);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition:
    opacity 800ms var(--ease-expo),
    transform 800ms var(--ease-expo);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}
.reveal-d1 { transition-delay: 80ms; }
.reveal-d2 { transition-delay: 160ms; }
.reveal-d3 { transition-delay: 240ms; }
.reveal-d4 { transition-delay: 320ms; }
.reveal-d5 { transition-delay: 400ms; }
.reveal-d6 { transition-delay: 480ms; }

/* 24. UTILITIES
   ============================================================ */
.flex         { display: flex; }
.flex-col     { flex-direction: column; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.gap-xs  { gap: 0.5rem; }
.gap-sm  { gap: 1rem; }
.gap-md  { gap: 1.5rem; }
.gap-lg  { gap: 2rem; }
.gap-xl  { gap: 3rem; }
.mt-xs  { margin-top: 0.5rem; }
.mt-sm  { margin-top: 1rem; }
.mt-md  { margin-top: 1.5rem; }
.mt-lg  { margin-top: 2rem; }
.mt-xl  { margin-top: 3rem; }
.mt-2xl { margin-top: 4rem; }
.mb-xs  { margin-bottom: 0.5rem; }
.mb-sm  { margin-bottom: 1rem; }
.mb-md  { margin-bottom: 1.5rem; }
.mb-lg  { margin-bottom: 2rem; }
.mb-xl  { margin-bottom: 3rem; }
.text-center  { text-align: center; }
.text-sm      { font-size: 0.875rem; }
.text-xs      { font-size: 0.78rem; }
.text-accent  { color: var(--blue); }
.text-purple  { color: var(--purple); }
.text-muted   { color: var(--fg-3); }
.text-sub     { color: var(--fg-2); }
.font-medium  { font-weight: 500; }
.font-semibold{ font-weight: 600; }
.font-bold    { font-weight: 700; }
.font-mono    { font-family: 'SF Mono', 'Fira Code', monospace; }
.max-w-sm  { max-width: 480px; }
.max-w-md  { max-width: 640px; }
.max-w-lg  { max-width: 820px; }
.mx-auto   { margin-left: auto; margin-right: auto; }
.w-full    { width: 100%; }
.relative  { position: relative; }
.overflow-hidden { overflow: hidden; }
.leading-tight { line-height: 1.2; }
.leading-relaxed { line-height: 1.75; }
.underline-none { text-decoration: none; }
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }

/* Gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--fg) 30%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Highlight span (used in headlines) */
span.hl { color: var(--blue); }
span.hl-purple { color: var(--purple); }

/* Thin horizontal rule */
hr.thin {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

/* Number list */
.num-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.num-list-item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1.25rem;
  align-items: start;
}
.num-list-num {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding-top: 3px;
}
.num-list-item h4 {
  margin-bottom: 0.35rem;
}

/* 25. RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }
  .split { gap: 3.5rem; }
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .grid-3 {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  section { padding: 4.5rem 0; }

  /* Mobile nav */
  .nav-menu {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.97);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2.5rem;
    z-index: 1050;
    padding: var(--nav-height) 0 0;
  }
  .nav-menu.open { display: flex; }
  .nav-link { font-size: 1.25rem; color: var(--fg-2); }
  .nav-link::after { bottom: -4px; }
  .nav-toggle { display: flex; }

  .hero { padding-top: calc(var(--nav-height) + 1rem); }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.85rem; }
  .display-xl { font-size: 2.8rem; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-auto { grid-template-columns: 1fr; }

  .division-card { padding: 2rem; }
  .cta-block { padding: 3.5rem 1.75rem; }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .footer-brand p { max-width: 100%; }
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .container, .container-sm { padding: 0 18px; }
  h1 { font-size: 1.95rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .btn-lg { padding: 14px 24px; font-size: 0.9rem; }
  .cta-block { padding: 2.5rem 1.25rem; }
  .card { padding: 1.75rem; }
  .team-card { padding: 1.75rem; }
}

/* 26. SCROLL INDICATOR (Hero)
   ============================================================ */
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.35;
  animation: scrollBounce 2.5s ease-in-out infinite;
}
.scroll-indicator span {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-2);
}
.scroll-arrow {
  width: 1px;
  height: 30px;
  background: linear-gradient(to bottom, transparent, var(--fg-2));
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* 27. MOBILE FORM OVERRIDE
   ============================================================ */
@media (max-width: 768px) {
  .form-split {
    grid-template-columns: 1fr !important;
  }
  .form-split > *:first-child {
    display: none;
  }
}

/* 28. MICRO-DETAIL LINES
   ============================================================ */
.line-accent {
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* 29. ALERT / NOTICE
   ============================================================ */
.notice {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(0,82,255,0.06);
  border: 1px solid var(--blue-border);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--blue);
}
.notice p { font-size: 0.875rem; }

/* 30. SUCCESS STATE
   ============================================================ */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 2rem;
  gap: 1.5rem;
}
.form-success.visible { display: flex; }
.success-icon {
  width: 64px; height: 64px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.success-icon svg {
  width: 28px; height: 28px;
  color: var(--success);
}
