/* ASTRAVECT Aerospace — V4 visual and interaction refinement */
:root {
  --v4-navy: #061a31;
  --v4-blue: #087fca;
  --v4-cyan: #38c6ee;
  --v4-muted: #61748a;
  --v4-ease: cubic-bezier(.22, 1, .36, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 82px;
}
body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
section[id] { scroll-margin-top: 90px; }

/* Header: one shared indicator, never one underline per hovered/active link. */
.site-header {
  height: 80px;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(8,34,59,.09);
  box-shadow: 0 5px 24px rgba(7,28,49,.045);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
}
.header-inner {
  min-height: 80px;
  height: 80px;
  max-width: 1480px;
  padding: 0 5.1%;
  gap: 25px;
}
.brand { flex: 0 0 218px; }
.brand img { width: 218px; max-height: 58px; }
.desktop-nav {
  position: relative;
  align-self: stretch;
  min-width: 0;
  justify-content: space-between;
  gap: clamp(12px, 1.35vw, 22px);
}
.desktop-nav a {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 0 2px;
  color: #243950;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .005em;
  transition: color .24s ease;
}
.desktop-nav a:hover,
.desktop-nav a.active { color: var(--v4-blue); }
.desktop-nav a::after,
.desktop-nav a:hover::after,
.desktop-nav a.active::after { display: none !important; content: none !important; }
.nav-indicator {
  position: absolute;
  z-index: 3;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  opacity: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #0879c9, #39c7ef);
  box-shadow: 0 -2px 13px rgba(28,169,224,.22);
  transform: translate3d(0,0,0);
  transition: transform .56s var(--v4-ease), width .42s var(--v4-ease), opacity .2s ease;
}
.nav-indicator.is-visible { opacity: 1; }
.header-actions { flex: 0 0 auto; margin-left: 5px; gap: 10px; }
.header-cta { display: none !important; }
.language-control select,
.footer-language select {
  min-width: 66px;
  height: 37px;
  padding: 0 26px 0 11px;
  border-radius: 999px;
  border-color: #d5e0e9;
  color: #173451;
  background-color: rgba(255,255,255,.92);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.language-control select:hover { border-color: #8fb8d5; box-shadow: 0 3px 12px rgba(8,76,128,.08); }

/* Hero: a single full-bleed photograph with graded overlays, not a right-side pasted rectangle. */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  color: #fff;
  background: #04172c;
}
.hero::before {
  display: block !important;
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: auto;
  opacity: 1;
  mix-blend-mode: normal;
  pointer-events: none;
  background-image:
    linear-gradient(90deg,
      rgba(3,17,33,.98) 0%,
      rgba(3,19,37,.94) 25%,
      rgba(4,23,43,.80) 43%,
      rgba(4,25,46,.42) 61%,
      rgba(4,25,46,.12) 82%,
      rgba(4,25,46,.08) 100%),
    linear-gradient(0deg, rgba(3,17,33,.55) 0%, rgba(3,17,33,.12) 30%, transparent 62%),
    url("assets/hero-orbit.webp");
  background-size: cover, cover, cover;
  background-position: center, center, center 52%;
  background-repeat: no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 77% 40%, rgba(32,142,204,.08), transparent 38%),
              linear-gradient(180deg, rgba(2,15,29,.04), transparent 28%, rgba(2,15,29,.12));
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 535px;
  max-width: 1480px;
  padding: 78px 5.1% 70px;
}
.hero-copy {
  width: min(100%, 660px);
  max-width: 660px;
  padding: 7px 0 12px;
}
.hero h1 {
  max-width: 680px;
  margin: 24px 0 19px;
  color: #fff;
  font-size: clamp(43px, 4.55vw, 66px);
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.105;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(0,0,0,.12);
}
.hero-lead {
  max-width: 590px;
  margin-bottom: 12px;
  color: #f2f7fc;
  font-size: clamp(18px, 1.55vw, 22px);
  line-height: 1.48;
  font-weight: 600;
}
.hero-support {
  max-width: 560px;
  margin-bottom: 27px;
  color: #c8d9e8;
  font-size: 14px;
  line-height: 1.78;
}
.hero-actions { gap: 13px; }
.hero-actions .button-light {
  color: #fff;
  background: linear-gradient(135deg, #078bd5, #086db4);
  border-color: rgba(116,207,246,.28);
  box-shadow: 0 9px 25px rgba(0,93,157,.28);
}
.hero-actions .button-light:hover {
  background: linear-gradient(135deg, #119ce6, #0879c9);
  box-shadow: 0 13px 30px rgba(0,93,157,.35);
}
.hero-actions .button-outline-light {
  color: #f6fbff;
  background: rgba(4,24,44,.28);
  border-color: rgba(211,232,247,.55);
  backdrop-filter: blur(8px);
}
.hero-actions .button-outline-light:hover { background: rgba(255,255,255,.10); }
.location-line { margin-top: 28px; color: #d0e1ef; font-size: 12px; }
.location-pin { color: #53d0f4; }
.hero-visual { display: none !important; }
.hero-bottomline {
  position: relative;
  z-index: 1;
  max-width: none;
  padding: 13px max(5.1%, calc((100% - 1350px)/2));
  border-top: 1px solid rgba(221,241,255,.15);
  background: rgba(3,17,33,.20);
  color: rgba(190,216,235,.78);
  font-size: 9px;
  letter-spacing: .16em;
}

/* A dark transition band continues the hero's palette into the first content row. */
.intro-strip {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 27px max(5.1%, calc((100% - 1350px)/2));
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 28px;
  color: #f4f9fd;
  background: linear-gradient(112deg, #071d35 0%, #0a2a4a 56%, #0b3155 100%);
  border-bottom: 1px solid rgba(91,174,220,.24);
}
.intro-item {
  min-width: 0;
  padding-right: 22px;
  border-right: 1px solid rgba(191,220,240,.22);
  align-items: flex-start;
}
.intro-item:last-child { padding-right: 0; border-right: 0; }
.intro-number { color: #55c9ef; font-size: 23px; }
.intro-item strong { color: #f7fbff; font-size: 14px; }
.intro-item span:last-child { color: #b7ccdd; font-size: 12px; }

/* Consistent section rhythm and restrained motion. */
.section { scroll-margin-top: 90px; }
.section-heading { margin-bottom: 38px; }
.section-heading h2,
.architecture-copy h2,
.company-copy h2,
.careers-heading h2,
.contact-copy h2,
.bench-copy h2,
.verify-hero h1,
.verify-cta h2 {
  letter-spacing: -.03em;
  line-height: 1.16;
}
.capability-card,
.platform-feature,
.application-card,
.usecase-card,
.role-card {
  transition: transform .28s var(--v4-ease), box-shadow .28s ease, border-color .28s ease;
}
.capability-card:hover,
.platform-feature:hover,
.application-card:hover,
.usecase-card:hover,
.role-card:hover {
  transform: translateY(-4px);
}
.application-card { overflow: hidden; }
.application-card img,
.usecase-card img { transition: transform .6s var(--v4-ease); }
.application-card:hover img,
.usecase-card:hover img { transform: scale(1.035); }

/* Chinese copy uses normal CJK rhythm rather than Latin tracking. */
html[data-language="zh"] body {
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  letter-spacing: .018em;
  line-height: 1.82;
}
html[data-language="zh"] .desktop-nav { gap: clamp(13px, 1.4vw, 22px); }
html[data-language="zh"] .desktop-nav a { font-size: 13px; letter-spacing: .02em; }
html[data-language="zh"] .hero h1 { letter-spacing: .015em; line-height: 1.28; }
html[data-language="zh"] .hero-lead,
html[data-language="zh"] .hero-support,
html[data-language="zh"] .section p,
html[data-language="zh"] .intro-item span:last-child { line-height: 1.9; letter-spacing: .015em; }
html[data-language="es"] .desktop-nav { gap: clamp(10px, 1.1vw, 18px); }
html[data-language="es"] .desktop-nav a { font-size: 12px; }

:focus-visible {
  outline: 3px solid rgba(22,153,220,.65);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 1180px) {
  .header-inner { gap: 18px; padding-left: 3.5%; padding-right: 3.5%; }
  .brand { flex-basis: 190px; }
  .brand img { width: 190px; }
  .desktop-nav { gap: 12px; }
  .desktop-nav a { font-size: 11.5px; }
  .header-actions { margin-left: 0; }
  .hero-grid { padding-left: 4%; padding-right: 4%; }
  .intro-strip { padding-left: 4%; padding-right: 4%; }
}

@media (max-width: 900px) {
  html { scroll-padding-top: 72px; }
  .site-header { height: 72px; }
  .header-inner { height: 72px; min-height: 72px; padding: 0 4.5%; gap: 14px; }
  .brand { flex: 1 1 auto; }
  .brand img { width: 205px; max-height: 53px; }
  .desktop-nav { display: none; }
  .nav-indicator { display: none; }
  .header-actions { margin-left: auto; }
  .mobile-nav:not([hidden]) {
    display: flex;
    flex-direction: column;
    padding: 8px 5% 18px;
    border-top: 1px solid #e4edf4;
    background: rgba(255,255,255,.98);
    box-shadow: 0 16px 30px rgba(7,31,59,.12);
  }
  .mobile-nav a {
    padding: 13px 4px;
    border-bottom: 1px solid #edf2f6;
    color: #17334e;
    font-size: 14px;
    font-weight: 700;
    transition: color .2s ease, padding-left .2s ease;
  }
  .mobile-nav a.active { color: var(--v4-blue); padding-left: 10px; }
  .mobile-nav .mobile-nav-cta { margin-top: 10px; padding: 13px 16px; border: 0; border-radius: 8px; color: #fff; background: var(--v4-blue); text-align: center; }
  .hero-grid { min-height: 500px; padding: 66px 5% 56px; }
  .hero-copy { max-width: 650px; }
  .hero::before {
    background-image:
      linear-gradient(90deg, rgba(3,17,33,.97) 0%, rgba(3,19,37,.89) 42%, rgba(4,25,46,.44) 78%, rgba(4,25,46,.24) 100%),
      linear-gradient(0deg, rgba(3,17,33,.56), rgba(3,17,33,.04) 58%),
      url("assets/hero-orbit.webp");
    background-position: center, center, 66% center;
  }
  .intro-strip { grid-template-columns: 1fr; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
  .intro-item { align-items: center; border-right: 0; border-bottom: 1px solid rgba(191,220,240,.17); padding: 0 0 15px; }
  .intro-item:last-child { border-bottom: 0; padding-bottom: 0; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 66px; }
  .site-header { height: 66px; }
  .header-inner { height: 66px; min-height: 66px; padding: 0 4.5%; }
  .brand img { width: 176px; max-height: 46px; }
  .language-control select { min-width: 58px; height: 33px; padding: 0 22px 0 9px; font-size: 11px; }
  .menu-toggle { width: 38px; height: 38px; padding: 8px; }
  .hero-grid { min-height: 490px; padding: 52px 5% 42px; }
  .hero::before {
    background-image:
      linear-gradient(90deg, rgba(3,17,33,.97) 0%, rgba(3,19,37,.88) 58%, rgba(4,25,46,.52) 100%),
      linear-gradient(0deg, rgba(3,17,33,.64), rgba(3,17,33,.06) 65%),
      url("assets/hero-orbit.webp");
    background-position: center, center, 72% center;
  }
  .hero h1 { max-width: 520px; font-size: clamp(35px, 9.2vw, 46px); line-height: 1.16; }
  .hero-lead { font-size: 17px; line-height: 1.5; }
  .hero-support { font-size: 12px; line-height: 1.75; }
  .hero-actions { gap: 9px; }
  .hero-actions .button { min-height: 44px; padding: 0 14px; font-size: 11px; }
  .location-line { margin-top: 21px; font-size: 11px; }
  .hero-bottomline { gap: 10px; padding: 11px 5%; font-size: 7px; letter-spacing: .07em; }
  .hero-bottomline span:last-child { text-align: right; }
  .intro-strip { padding: 20px 5%; gap: 14px; }
  .intro-item { gap: 12px; padding-bottom: 13px; }
  .intro-number { font-size: 19px; }
  .intro-item strong { font-size: 12px; }
  .intro-item span:last-child { font-size: 10px; }
  .section { padding-left: 5%; padding-right: 5%; }
  .section-heading { margin-bottom: 27px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-indicator,
  .capability-card,
  .platform-feature,
  .application-card,
  .usecase-card,
  .role-card { transition: none !important; }
}
