/* =========================================================
   STELLARGEN AEROSPACE — GLOBAL DESIGN SYSTEM
   "A Generation Beyond the Stars"
   ========================================================= */

:root {
  /* Color tokens */
  --bg: #000000;
  --bg-elev-1: #0A0A0A;
  --bg-elev-2: #111111;
  --bg-elev-3: #1A1A1A;
  --surface: #0D0D0D;
  --surface-hi: #141414;

  --text: #FFFFFF;
  --text-dim: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.48);
  --text-fade: rgba(255, 255, 255, 0.18);

  --gold-1: #F5D57A;
  --gold-2: #E8B84B;
  --gold-3: #C8960C;
  --gold-4: #8A6400;
  --gold-glow: rgba(200, 150, 12, 0.35);
  --gold-glow-soft: rgba(200, 150, 12, 0.12);

  --grid: rgba(255, 255, 255, 0.06);
  --grid-strong: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(232, 184, 75, 0.35);

  --status-green: #2ED17A;
  --status-amber: #E8B84B;
  --status-blue: #4DB2FF;
  --status-purple: #B084FF;

  /* Type */
  --f-display: 'Orbitron', 'Exo 2', system-ui, sans-serif;
  --f-head: 'Chakra Petch', 'Rajdhani', system-ui, sans-serif;
  --f-body: 'Barlow', 'DM Sans', system-ui, sans-serif;
  --f-mono: 'Share Tech Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing + radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --container: 1280px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.64, 0, 0.78, 0);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Film grain noise overlay (site-wide) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.045;
  z-index: 9998;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='300' height='300' filter='url(%23n)' opacity='0.7'/></svg>");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; color: inherit; border: none; cursor: pointer; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2.2vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.4vw, 1.3rem); font-family: var(--f-head); font-weight: 600; letter-spacing: 0.04em; }

p { margin: 0 0 1em; color: var(--text-dim); }

.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 36px; height: 1px;
  background: var(--gold-2);
  display: inline-block;
}

.mono { font-family: var(--f-mono); }
.gold { color: var(--gold-2); }
.muted { color: var(--text-muted); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}
.section {
  position: relative;
  padding: clamp(80px, 10vw, 140px) 0;
}
.section--tight { padding: clamp(50px, 6vw, 90px) 0; }

/* Engineering grid overlay (opt-in on dark sections) */
.grid-bg {
  position: relative;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 80px 80px,
    radial-gradient(ellipse at 50% 0%, rgba(200,150,12,0.08), transparent 60%),
    var(--bg);
}

/* Section ghost number (01, 02, 03...) */
.section-num {
  position: absolute;
  top: 30px;
  right: 4vw;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(100px, 18vw, 260px);
  color: var(--gold-2);
  opacity: 0.035;
  letter-spacing: -0.05em;
  pointer-events: none;
  line-height: 1;
  z-index: 0;
  user-select: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 26px;
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  position: relative;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 2px;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-2), var(--gold-3));
  color: #0D0A00;
  box-shadow: 0 0 0 rgba(232,184,75,0);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -8px var(--gold-glow), 0 0 0 1px var(--gold-2);
  background: linear-gradient(135deg, var(--gold-1), var(--gold-2));
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover {
  border-color: var(--gold-2);
  color: var(--gold-2);
  background: rgba(232,184,75,0.06);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease-out);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.35s var(--ease-out);
  background: rgba(0,0,0,0);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 5, 5, 0.78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--border);
  padding: 10px 0;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand img { height: 42px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 10px 14px;
  font-family: var(--f-head);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 0; height: 1px;
  background: var(--gold-2);
  transition: all 0.3s var(--ease-out);
  transform: translateX(-50%);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text);
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 60%;
}

/* Dropdown */
.nav-item { position: relative; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 260px;
  background: rgba(10,10,10,0.96);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold-2);
  padding: 12px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease-out);
  list-style: none;
  margin: 0;
}
.nav-item:hover .nav-dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown li a {
  display: block;
  padding: 10px 22px;
  letter-spacing: 0.14em;
  border-left: 2px solid transparent;
}
.nav-dropdown li a:hover {
  border-left-color: var(--gold-2);
  background: rgba(232,184,75,0.05);
  color: var(--text);
}
.nav-dropdown li a::after { display: none; }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-phone {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  color: var(--gold-2);
  letter-spacing: 0.08em;
}

/* Mobile */
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 2px;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1100;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 20px; height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
  position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav.open .nav-toggle span { background: transparent; }
.nav.open .nav-toggle span::before { top: 0; transform: rotate(45deg); background: var(--gold-2); }
.nav.open .nav-toggle span::after { top: 0; transform: rotate(-45deg); background: var(--gold-2); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: #020202;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s var(--ease-out);
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 60px 60px;
}
.nav.open ~ .mobile-menu,
.mobile-menu.open {
  opacity: 1; visibility: visible;
}
.mobile-menu ul {
  list-style: none;
  margin: 0; padding: 0;
  text-align: center;
}
.mobile-menu li { margin: 18px 0; }
.mobile-menu a {
  font-family: var(--f-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  letter-spacing: 0.1em;
  color: var(--text);
  text-transform: uppercase;
  position: relative;
}
.mobile-menu a:hover { color: var(--gold-2); }
.mobile-menu-footer {
  position: absolute;
  bottom: 40px;
  left: 0; right: 0;
  text-align: center;
  color: var(--gold-2);
  font-family: var(--f-mono);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 140px 0 80px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}
.hero-vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 30%, #000 95%),
    linear-gradient(180deg, rgba(0,0,0,0.4) 0%, transparent 30%, rgba(0,0,0,0.8) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}
.hero-title {
  font-size: clamp(3rem, 9vw, 7.5rem);
  margin-bottom: 0.1em;
  letter-spacing: -0.02em;
}
.hero-tagline {
  font-family: var(--f-head);
  font-weight: 300;
  font-size: clamp(1.1rem, 2.4vw, 1.8rem);
  color: var(--gold-2);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 30px;
}
.hero-sub {
  max-width: 620px;
  margin: 0 auto 44px;
  color: var(--text-dim);
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.7;
}
.hero-cta { display: inline-flex; gap: 18px; flex-wrap: wrap; justify-content: center; }

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--gold-2);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0.7;
}
.scroll-indicator::after {
  content: "";
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, var(--gold-2), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Generic page hero (for non-home pages) */
.page-hero {
  position: relative;
  padding: 190px 0 90px;
  overflow: hidden;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 30%, rgba(200,150,12,0.1), transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(200,150,12,0.06), transparent 45%),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 80px 80px,
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px) 0 0 / 80px 80px;
  z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 {
  margin-top: 14px;
  max-width: 18ch;
}
.page-hero p {
  max-width: 60ch;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: linear-gradient(145deg, rgba(20,20,20,0.6), rgba(10,10,10,0.85));
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 30px;
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 40px; height: 1px;
  background: var(--gold-2);
  transition: width 0.4s var(--ease-out);
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hi);
  box-shadow: 0 16px 40px -16px var(--gold-glow), 0 0 0 1px rgba(232,184,75,0.15);
}
.card:hover::before { width: 100%; }

.card-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-hi);
  border-radius: 2px;
  color: var(--gold-2);
  margin-bottom: 22px;
}
.card h3 { font-size: 1.4rem; margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--text-muted); margin-bottom: 0; }

/* Product card (tilt, bigger) */
.product-card {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  background: linear-gradient(165deg, rgba(20,20,20,0.7), rgba(8,8,8,0.9));
  border: 1px solid var(--border);
  padding: 32px;
  position: relative;
  transition: transform 0.5s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at var(--mx, 50%) var(--my, 50%), var(--gold-glow-soft), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.product-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 20px 60px -20px var(--gold-glow);
}
.product-card:hover::after { opacity: 1; }
.product-card .cat {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.25em;
  color: var(--gold-2);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.product-card h3 {
  font-family: var(--f-display);
  font-size: 1.8rem;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}
.product-card h3 span { color: var(--gold-2); font-size: 0.6em; }
.product-card .product-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  flex-grow: 1;
}
.product-card .arrow-link {
  color: var(--gold-2);
  font-family: var(--f-head);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  margin-top: 24px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.product-card .arrow-link::after {
  content: "→";
  transition: transform 0.3s var(--ease-out);
}
.product-card:hover .arrow-link::after { transform: translateX(6px); }

/* ---------- Stat counter grid ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 40px;
}
.stat {
  padding: 36px 28px;
  background: var(--bg);
  position: relative;
}
.stat::before {
  content: "";
  position: absolute;
  top: 14px; right: 14px;
  width: 6px; height: 6px;
  border-top: 1px solid var(--gold-2);
  border-right: 1px solid var(--gold-2);
}
.stat::after {
  content: "";
  position: absolute;
  bottom: 14px; left: 14px;
  width: 6px; height: 6px;
  border-bottom: 1px solid var(--gold-2);
  border-left: 1px solid var(--gold-2);
}
.stat-num {
  font-family: var(--f-mono);
  font-size: clamp(2rem, 4vw, 3.4rem);
  color: var(--gold-2);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
  display: block;
  margin-bottom: 10px;
}
.stat-label {
  font-family: var(--f-head);
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ---------- Pillars (horizontal triptych) ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 60px;
}
.pillar {
  padding: 40px 30px;
  background: linear-gradient(180deg, rgba(20,20,20,0.5), rgba(0,0,0,0.5));
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.4s var(--ease-out);
}
.pillar:hover {
  border-color: var(--border-hi);
  transform: translateY(-4px);
  background: linear-gradient(180deg, rgba(40,30,0,0.15), rgba(0,0,0,0.6));
}
.pillar-num {
  font-family: var(--f-mono);
  color: var(--gold-2);
  font-size: 0.85rem;
  letter-spacing: 0.3em;
  margin-bottom: 14px;
}
.pillar h3 { font-family: var(--f-display); font-size: 1.3rem; margin-bottom: 16px; }
.pillar p { font-size: 0.92rem; color: var(--text-muted); }

/* ---------- Mission quote ---------- */
.mission-quote {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: 0 20px;
}
.mission-quote blockquote {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 40px;
}
.mission-quote blockquote span { color: var(--gold-2); }
.gold-line {
  height: 1px;
  width: 120px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  position: relative;
}
.gold-line::before {
  content: "";
  position: absolute;
  left: 50%; top: -3px;
  width: 6px; height: 6px;
  background: var(--gold-2);
  transform: translateX(-50%) rotate(45deg);
}

/* ---------- Alternating differentiators (why) ---------- */
.diff-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}
.diff-row:last-child { border-bottom: none; }
.diff-row.reverse .diff-label { order: 2; }
.diff-label {
  font-family: var(--f-display);
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.diff-label .count {
  font-family: var(--f-mono);
  color: var(--gold-2);
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  margin-bottom: 14px;
}
.diff-text { color: var(--text-dim); font-size: 1.02rem; }

/* ---------- Spec table ---------- */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--f-mono);
  font-size: 0.92rem;
  border: 1px solid var(--border);
  background: var(--bg-elev-1);
}
.spec-table th, .spec-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.spec-table th {
  background: rgba(232,184,75,0.05);
  color: var(--gold-2);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.spec-table tr:last-child td { border-bottom: none; }
.spec-table tr:hover td { background: rgba(232,184,75,0.03); }
.spec-table .val { color: var(--gold-2); }

/* ---------- Variant tabs ---------- */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 2px;
}
.tab {
  padding: 16px 26px;
  font-family: var(--f-head);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--text-muted);
  position: relative;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.25s;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--gold-2);
  border-bottom-color: var(--gold-2);
}
.tab-panel { display: none; padding: 40px 0; }
.tab-panel.active { display: block; animation: fadeUp 0.4s var(--ease-out); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Status Badge (R&D) ---------- */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border: 1px solid currentColor;
  border-radius: 100px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.status-badge::before {
  content: "";
  width: 6px; height: 6px;
  background: currentColor;
  border-radius: 50%;
}
.status-badge.completed { color: var(--status-green); }
.status-badge.active { color: var(--status-amber); animation: pulseAmber 1.8s ease-in-out infinite; }
.status-badge.roadmap { color: var(--status-blue); }
.status-badge.exploratory { color: var(--status-purple); }

@keyframes pulseAmber {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,184,75,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(232,184,75,0); }
}

/* ---------- Zero Chinese Dependency badge ---------- */
.zcd-badge {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border: 1px solid var(--gold-2);
  background: rgba(232,184,75,0.05);
  font-family: var(--f-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-2);
  position: relative;
}
.zcd-badge::before {
  content: "";
  width: 10px; height: 10px;
  background: var(--gold-2);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.zcd-badge strong { color: #fff; font-weight: 700; }

/* ---------- Made in India badge ---------- */
.mii-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  font-family: var(--f-head);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.mii-badge .tri {
  display: inline-block;
  width: 20px; height: 14px;
  background: linear-gradient(180deg, #FF9933 33%, #FFFFFF 33%, #FFFFFF 66%, #138808 66%);
  position: relative;
}
.mii-badge .tri::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 4px; height: 4px;
  border: 1px solid #000080;
  border-radius: 50%;
  transform: translate(-50%,-50%);
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  padding: 90px 0 30px;
  background: var(--bg);
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><polygon points='50,10 90,85 10,85' fill='none' stroke='%23E8B84B' stroke-width='0.5' opacity='0.3'/><polygon points='50,25 75,75 25,75' fill='none' stroke='%23E8B84B' stroke-width='0.5' opacity='0.5'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.2;
  animation: slowspin 40s linear infinite;
}
@keyframes slowspin { to { transform: rotate(360deg); } }

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
.footer-brand img { height: 56px; margin-bottom: 20px; }
.footer-brand p { color: var(--text-muted); font-size: 0.92rem; max-width: 30ch; }
.footer h5 {
  font-family: var(--f-display);
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin: 0 0 20px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a {
  color: var(--text-dim);
  font-size: 0.92rem;
  transition: color 0.2s;
  letter-spacing: 0.04em;
}
.footer a:hover { color: var(--gold-2); }
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-bottom p {
  margin: 0;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

/* ---------- Contact strip CTA (home) ---------- */
.contact-strip {
  padding: 100px 0;
  position: relative;
  background:
    linear-gradient(135deg, rgba(200,150,12,0.18), rgba(139,100,0,0.08) 50%, transparent),
    radial-gradient(ellipse at right, rgba(200,150,12,0.2), transparent 50%),
    #0B0905;
  overflow: hidden;
  border-top: 1px solid rgba(232,184,75,0.3);
  border-bottom: 1px solid rgba(232,184,75,0.3);
}
.contact-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(232,184,75,0.08) 1px, transparent 1px) 0 0 / 60px 60px,
    linear-gradient(90deg, rgba(232,184,75,0.08) 1px, transparent 1px) 0 0 / 60px 60px;
  pointer-events: none;
}
.contact-strip .container { position: relative; }
.contact-strip h2 {
  max-width: 22ch;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
}
.contact-strip .cs-meta {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin: 24px 0 34px;
  font-family: var(--f-mono);
  color: var(--text);
  font-size: 1.1rem;
}
.contact-strip .cs-meta a { color: var(--text); }
.contact-strip .cs-meta a:hover { color: var(--gold-1); }

/* ---------- Form ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 30px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-family: var(--f-head);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 14px 16px;
  font-family: var(--f-body);
  font-size: 1rem;
  border-radius: 2px;
  transition: all 0.3s;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-2);
  box-shadow: 0 0 0 1px var(--gold-2), 0 0 24px -6px var(--gold-glow);
  background: rgba(232,184,75,0.03);
}
.form-field textarea { resize: vertical; min-height: 140px; }

/* ---------- Lab/training cards ---------- */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 40px;
}
.lab-station {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  transition: all 0.3s;
}
.lab-station:hover {
  border-color: var(--border-hi);
  transform: translateY(-2px);
}
.lab-station .num {
  font-family: var(--f-mono);
  color: var(--gold-2);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  padding-top: 2px;
}
.lab-station span.title {
  font-family: var(--f-head);
  font-size: 0.96rem;
  color: var(--text);
  line-height: 1.35;
  letter-spacing: 0.02em;
}

/* Program card (training) */
.program {
  padding: 40px;
  background: linear-gradient(145deg, rgba(22,22,22,0.7), rgba(8,8,8,0.9));
  border: 1px solid var(--border);
  border-top: 2px solid var(--gold-2);
  position: relative;
}
.program .duration {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.25em;
  color: var(--gold-2);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.program h3 { font-family: var(--f-display); font-size: 1.6rem; margin-bottom: 14px; }
.program ul { padding-left: 22px; color: var(--text-dim); }
.program ul li { margin-bottom: 6px; }
.program ul li::marker { color: var(--gold-2); }

/* ---------- Team cards ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 50px;
}
.team-card {
  padding: 36px 28px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  text-align: center;
  transition: all 0.3s;
  position: relative;
}
.team-card.lead {
  background:
    linear-gradient(180deg, rgba(232,184,75,0.10), rgba(0,0,0,0.6)),
    var(--bg-elev-1);
  border-color: var(--border-hi);
}
.team-avatar {
  width: 100px; height: 100px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold-2);
  border-radius: 50%;
  font-family: var(--f-display);
  font-size: 1.8rem;
  color: var(--gold-2);
  letter-spacing: 0.05em;
  background: rgba(232,184,75,0.06);
  position: relative;
}
.team-avatar::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(232,184,75,0.2);
  border-radius: 50%;
}
.team-card h4 {
  font-family: var(--f-display);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
}
.team-card .role {
  font-family: var(--f-head);
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-bottom: 10px;
}
.team-card p { font-size: 0.86rem; color: var(--text-muted); margin: 0; }

/* ---------- Supply chain map ---------- */
.supply-map {
  margin-top: 50px;
  padding: 40px;
  background: var(--bg-elev-1);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.supply-map svg { width: 100%; height: auto; max-height: 520px; }
.supply-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  margin-top: 30px;
  font-family: var(--f-mono);
  font-size: 0.82rem;
}
.legend-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.legend-dot::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--gold-2);
  border-radius: 50%;
}
.legend-x::before {
  content: "✕";
  color: #E43B3B;
  font-size: 1.2rem;
  width: auto; height: auto;
  background: none;
  font-weight: bold;
}

/* ---------- Filter tabs ---------- */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 40px 0;
}
.filter-chip {
  padding: 10px 20px;
  font-family: var(--f-head);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.25s;
  background: transparent;
}
.filter-chip:hover { border-color: var(--border-hi); color: var(--text); }
.filter-chip.active {
  border-color: var(--gold-2);
  color: var(--gold-2);
  background: rgba(232,184,75,0.05);
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* ---------- Tech Horizon ---------- */
.horizon {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background: radial-gradient(ellipse at center, rgba(200,150,12,0.06), transparent 60%), #050505;
}
.horizon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 10% 20%, rgba(200,150,12,0.15), transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(80,60,200,0.08), transparent 50%);
  animation: nebulaShift 20s ease-in-out infinite alternate;
}
@keyframes nebulaShift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-4%, 2%) scale(1.1); }
}
.horizon .container { position: relative; z-index: 1; }
.constellation {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.constellation-node {
  padding: 30px 24px;
  text-align: center;
  border-left: 1px solid var(--border);
  position: relative;
}
.constellation-node:last-child { border-right: 1px solid var(--border); }
.constellation-node::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 8px; height: 8px;
  background: var(--gold-2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 16px 2px var(--gold-2);
}
.constellation-node h4 {
  font-family: var(--f-display);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  color: var(--gold-2);
  margin-bottom: 10px;
}
.constellation-node p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

/* ---------- Callouts / pull quotes ---------- */
.pull-quote {
  border-left: 2px solid var(--gold-2);
  padding: 4px 0 4px 26px;
  font-family: var(--f-display);
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.4;
  color: var(--text);
  margin: 40px 0;
  max-width: 62ch;
}
.drop-cap::first-letter {
  font-family: var(--f-display);
  font-size: 4rem;
  color: var(--gold-2);
  float: left;
  line-height: 1;
  padding: 6px 14px 0 0;
  font-weight: 800;
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-links, .nav-cta .nav-phone { display: none; }
  .nav-toggle { display: inline-flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .constellation { grid-template-columns: repeat(2, 1fr); }
  .constellation-node { border-left: none; border-top: 1px solid var(--border); }
  .constellation-node:last-child { border-right: none; }
  .diff-row { grid-template-columns: 1fr; gap: 14px; }
  .diff-row.reverse .diff-label { order: 0; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container { padding: 0 20px; }
  .page-hero { padding: 150px 0 60px; }
  .section { padding: 70px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-num { font-size: 100px; top: 10px; }
  .contact-strip .cs-meta { flex-direction: column; gap: 14px; }
  .stat { padding: 24px 18px; }
  .hero { padding: 110px 0 80px; }
}

/* ---------- Blueprint mode (toggle adds class to <body>) ---------- */
body.blueprint {
  --bg: #05101C;
  --bg-elev-1: #081A2A;
  --bg-elev-2: #0A2036;
  --gold-2: #8FD4FF;
  --gold-3: #4DB2FF;
  --gold-glow: rgba(77, 178, 255, 0.3);
  --grid: rgba(143, 212, 255, 0.12);
  --border: rgba(143, 212, 255, 0.15);
}
body.blueprint::before {
  background-image:
    linear-gradient(rgba(143,212,255,0.08) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(143,212,255,0.08) 1px, transparent 1px) 0 0 / 40px 40px;
  opacity: 0.6;
  mix-blend-mode: normal;
}

/* ---------- Page wipe (transitions) ---------- */
.page-wipe {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.4s;
  background:
    radial-gradient(circle at center, var(--gold-2), var(--gold-4)) center/0% 0% no-repeat,
    transparent;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transform: scale(0);
  transform-origin: center;
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
}
.page-wipe.active {
  transform: scale(6);
  opacity: 0.95;
}

/* ---------- Boot sequence ---------- */
.boot {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s var(--ease-out), visibility 0s linear 0.6s;
}
.boot.done { opacity: 0; visibility: hidden; }
.boot-inner {
  text-align: center;
  font-family: var(--f-mono);
  color: var(--gold-2);
}
.boot svg { width: 120px; height: 120px; display: block; margin: 0 auto 20px; }
.boot-text {
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  opacity: 0.8;
}
.boot-bar {
  margin-top: 20px;
  width: 180px;
  height: 1px;
  background: rgba(232,184,75,0.15);
  position: relative;
  overflow: hidden;
  margin-left: auto; margin-right: auto;
}
.boot-bar::before {
  content: "";
  position: absolute;
  left: -40%;
  top: 0; bottom: 0;
  width: 40%;
  background: var(--gold-2);
  animation: bootLoad 1.4s ease-in-out infinite;
}
@keyframes bootLoad {
  to { left: 100%; }
}

/* ---------- Selection ---------- */
::selection { background: var(--gold-2); color: #000; }

/* ---------- Scrollbar (webkit) ---------- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(var(--gold-3), var(--gold-4));
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-2); }

/* ---------- Product hero variants ---------- */
.product-hero {
  position: relative;
  padding: 170px 0 80px;
  overflow: hidden;
  background: radial-gradient(ellipse at 70% 40%, rgba(200,150,12,0.15), transparent 60%), #030303;
  border-bottom: 1px solid var(--border);
}
.product-hero .eyebrow { margin-bottom: 14px; }
.product-hero h1 { max-width: 16ch; }
.product-hero .product-specs-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
  margin: 40px 0 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}
.product-hero .ps-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.product-hero .ps-item .val {
  font-family: var(--f-mono);
  font-size: 1.6rem;
  color: var(--gold-2);
}
.product-hero .ps-item .label {
  font-family: var(--f-head);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Impossible triangle (CSS) */
.tri-motif {
  width: 120px; height: 120px;
  position: relative;
  margin: 0 auto;
}
.tri-motif svg { width: 100%; height: 100%; animation: slowspin 60s linear infinite; }

/* Breadcrumb */
.breadcrumb {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.breadcrumb a { color: var(--gold-2); }
.breadcrumb .sep { margin: 0 8px; color: var(--text-fade); }

/* Two column */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; gap: 30px; } }

/* Utilities */
.max-60 { max-width: 60ch; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }
.mb-40 { margin-bottom: 40px; }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; justify-content: center; }
