:root {
  --bg: #0D0C14;
  --surface: #171622;
  --surface-2: #1A1926;
  --border: rgba(255, 255, 255, 0.06);
  --text: #D1D5DB;
  --muted: #9AA0B5;
  --cyan: #00E5FF;
  --emerald: #22C55E;
  --indigo: #818CF8;
  --violet: #A78BF5;
  --red: #F87171;
  --yellow: #FBBF24;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --radius: 20px;
  --radius-sm: 16px;
  --container: 1280px;
  --header-bg: rgba(13, 12, 20, 0.82);
  --glass: rgba(23, 22, 34, 0.82);
  --glass-soft: rgba(23, 22, 34, 0.65);
  --glass-strong: rgba(23, 22, 34, 0.96);
  --panel: #0D0C14;
  --line: rgba(255, 255, 255, 0.06);
  --hero-glow-a: rgba(124, 58, 237, 0.14);
  --hero-glow-b: rgba(6, 185, 141, 0.10);
  --hero-gradient-a: rgba(99, 102, 241, 0.10);
  --hero-gradient-b: rgba(168, 85, 247, 0.14);
  --badge-text: #FFFFFF;
  --tag-text: #A7F3D0;
  --grid-line: rgba(255, 255, 255, 0.04);
  --glow-indigo: rgba(99, 102, 241, 0.12);
  --glow-cyan: rgba(0, 229, 255, 0.10);
  --glow-emerald: rgba(34, 197, 94, 0.10);
  --specular: rgba(255, 255, 255, 0.18);
  --card-top: rgba(255, 255, 255, 0.04);
  --grad-border: linear-gradient(135deg, #6366F1 0%, #A855F7 50%, #EC4899 100%);
  color-scheme: dark;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

[data-theme="light"] {
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --surface-2: #F5F7FB;
  --border: #D3DDEA;
  --text: #0B1220;
  --muted: #55637A;
  --cyan: #06B7C3;
  --emerald: #10B981;
  --indigo: #6366F1;
  --violet: #A78BF5;
  --red: #EF4444;
  --yellow: #F59E0B;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --header-bg: rgba(245, 247, 251, 0.88);
  --glass: rgba(255, 255, 255, 0.88);
  --glass-soft: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.98);
  --panel: #F1F5F9;
  --line: rgba(11, 18, 32, 0.08);
  --hero-glow-a: rgba(6, 185, 141, 0.10);
  --hero-glow-b: rgba(99, 102, 241, 0.08);
  --hero-gradient-a: rgba(6, 185, 141, 0.08);
  --hero-gradient-b: rgba(99, 102, 241, 0.12);
  --badge-text: #0D0C14;
  --tag-text: #1F2937;
  --grid-line: rgba(0, 0, 0, 0.04);
  --glow-indigo: rgba(99, 102, 241, 0.10);
  --glow-cyan: rgba(6, 185, 141, 0.10);
  --glow-emerald: rgba(34, 197, 94, 0.10);
  --specular: rgba(0, 0, 0, 0.15);
  --card-top: rgba(0, 0, 0, 0.03);
  --grad-border: linear-gradient(135deg, #E0D6F0 0%, #A78BF5 50%, #F87171 100%);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 55% 42% at 8% -4%, var(--glow-cyan), transparent 65%),
    radial-gradient(ellipse 45% 38% at 92% 4%, var(--glow-emerald), transparent 62%),
    radial-gradient(ellipse 48% 40% at 50% 46%, var(--glow-indigo), transparent 68%);
  background-repeat: no-repeat;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 78% 62% at 50% 24%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 78% 62% at 50% 24%, #000 0%, transparent 78%);
  opacity: 0.7;
}
main, .site-footer { position: relative; z-index: 1; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.mono, pre, code { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  padding: 0.75rem 1rem;
  border: 1px solid var(--cyan);
  border-radius: 0.5rem;
}
.skip-link:focus { top: 1rem; }

.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.section { position: relative; padding: clamp(5rem, 10vw, 8rem) 0; isolation: isolate; }
.section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 34% at 88% 0%, var(--glow-indigo), transparent 70%),
    radial-gradient(ellipse 38% 30% at 6% 100%, var(--glow-cyan), transparent 72%);
}
.section:nth-of-type(even)::before {
  background:
    radial-gradient(ellipse 44% 32% at 12% 0%, var(--glow-emerald), transparent 70%),
    radial-gradient(ellipse 36% 30% at 94% 100%, var(--glow-indigo), transparent 72%);
}
.section + .section { border-top: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-bottom: 2.5rem; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--glass-soft);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 800;
  margin: 0 0 0.9rem;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--glow-emerald);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18), 0 0 12px rgba(34, 197, 94, 0.6);
  animation: pulseDot 2.4s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.82); }
}
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 1rem; }
.hero-title,
.spotlight h2,
#architectureTitle,
#investorsTitle {
  background: linear-gradient(102deg, var(--text) 0%, var(--text) 38%, var(--cyan) 76%, var(--emerald) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--text);
}
h3 { font-size: 1.2rem; margin-bottom: 0.65rem; }
p { color: var(--muted); }
.subheading { margin: 3rem 0 1.25rem; color: var(--text); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  min-height: 64px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: clamp(1rem, 2vw, 1.75rem);
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--text); font-weight: 900; letter-spacing: -0.02em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { border-radius: 10px; }
.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(0.9rem, 1.7vw, 1.75rem); min-width: 0; white-space: nowrap; }
.nav-links a { position: relative; color: var(--muted); font-weight: 650; font-size: 0.9rem; padding: 0.35rem 0; transition: color 160ms ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--cyan), var(--emerald)); transform: scaleX(0); transition: transform 180ms ease; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 0.75rem; white-space: nowrap; }
.nav-actions .btn { height: 40px; padding: 0 1rem; font-size: 0.88rem; border-radius: 10px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 9px;
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--text); margin: 2px 0; }

.lang-switch { display: inline-flex; align-items: center; gap: 2px; height: 40px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--muted); }
.lang-switch > span[aria-hidden="true"] { display: none; }
.lang-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  height: 32px;
  padding: 0 0.55rem;
  border-radius: 7px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}
.lang-btn.active, .lang-btn[aria-pressed="true"] { color: var(--cyan); border-color: rgba(0,229,255,0.45); background: rgba(0,229,255,0.08); }
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
}
.theme-toggle:hover { border-color: rgba(0,229,255,0.55); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }
[data-theme="light"] .brand-mark { filter: invert(1); }
[data-theme="light"] .modal-backdrop { background: rgba(15, 23, 42, 0.45); }
[data-theme="light"] .spotlight { border-top-color: rgba(0, 124, 145, 0.22) !important; border-bottom-color: rgba(0, 124, 145, 0.22); }
[data-theme="light"] .pillar { border-color: rgba(0, 124, 145, 0.28); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.78rem 1.05rem;
  color: var(--text);
  background: var(--surface);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  box-shadow: 0 1px 0 var(--card-top) inset, 0 10px 30px -18px rgba(0, 0, 0, 0.6);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; border-color: var(--glow-cyan); box-shadow: 0 14px 34px -16px var(--glow-cyan); }
.btn-primary {
  background: linear-gradient(135deg, #0F766E 0%, #0D9488 42%, #059669 100%);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 8px 26px -10px rgba(13, 148, 136, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.btn-primary:hover { box-shadow: 0 14px 36px -10px var(--glow-emerald), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn-secondary { background: var(--glass); }
.btn-large { padding: 1rem 1.25rem; }
.btn-glow {
  border-color: var(--glow-cyan);
  background: rgba(var(--glow-cyan), 0.1);
  color: var(--cyan);
  box-shadow: 0 0 0 1px var(--glow-cyan), 0 0 32px var(--glow-cyan);
}

/* Hero */
.hero { position: relative; padding: clamp(4rem, 8vw, 7rem) 0; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -18rem;
  right: -12rem;
  width: 46rem;
  height: 46rem;
  border-radius: 50%;
  background: radial-gradient(circle, var(--glow-cyan), transparent 62%);
  filter: blur(20px);
  pointer-events: none;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, var(--hero-gradient-a), transparent 45%),
    radial-gradient(circle at 75% 30%, var(--hero-gradient-b), transparent 28rem),
    radial-gradient(circle at 12% 78%, var(--glow-indigo), transparent 26rem);
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 55% 65% at 70% 40%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 55% 65% at 70% 40%, #000, transparent 75%);
  opacity: 0.6;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero-title { font-size: clamp(2.15rem, 4.2vw, 3.8rem); margin-bottom: 1.25rem; color: var(--text); }
.hero-subtitle { font-size: 1.12rem; max-width: 62ch; }
.hero-highlights { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.75rem; margin: 1.5rem 0; }
.chip { display: flex; flex-direction: column; border: 1px solid var(--border); background: var(--glass-soft); border-radius: 14px; padding: 0.85rem; }
.chip strong { color: var(--text); }
.chip span { color: var(--muted); font-size: 0.9rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }
.tech-specs { border: 1px solid var(--border); background: var(--glass-soft); border-radius: 14px; padding: 0.9rem 1rem; margin: 1rem 0; }
.tech-specs summary { cursor: pointer; color: var(--cyan); font-weight: 850; }
.tech-specs ul { color: var(--muted); margin-bottom: 0; }
.compliance-badge {
  border: 1px solid rgba(16,185,129,0.45);
  background: rgba(16,185,129,0.08);
  color: var(--badge-text);
  border-radius: 14px;
  padding: 1rem;
  font-weight: 800;
}

/* Visuals */
.hero-visual { position: relative; min-height: 460px; }
.rig-svg { width: 100%; border-radius: 24px; background: #070B14; }
.device-wrap { position: absolute; right: -0.5rem; bottom: -1.5rem; width: min(100%, 420px); pointer-events: none; }
.phone {
  position: absolute;
  width: 190px;
  height: 330px;
  border-radius: 28px;
  border: 1px solid rgba(0,229,255,0.35);
  background: #0B1220;
  box-shadow: var(--shadow);
  padding: 14px;
}
.phone-left { left: 0; bottom: 0; transform: rotate(-5deg); }
.phone-right { right: 42px; bottom: 28px; transform: rotate(4deg); }
.phone-notch { width: 70px; height: 8px; border-radius: 999px; background: #1F2A44; margin: 0 auto 12px; }
.alert-card { border: 1px solid rgba(16,185,129,0.35); background: #070B14; border-radius: 16px; padding: 12px; font-size: 0.78rem; }
.alert-top { display: flex; justify-content: space-between; margin-bottom: 8px; font-weight: 900; }
.long, .direction.long { color: var(--emerald); }
.short, .direction.short { color: var(--red); }
.mono { color: var(--text); margin: 4px 0; }
.confidence { color: var(--cyan); font-weight: 900; margin-top: 8px; }
.terminal {
  position: relative;
  margin-top: 12px;
  border: 1px solid var(--border);
  background: #070B14;
  border-radius: 14px;
  padding: 12px;
  font-size: 0.72rem;
  color: var(--muted);
  box-shadow: var(--shadow);
}
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; }
.dot.red { background: var(--red); } .dot.yellow { background: var(--yellow); } .dot.green { background: var(--emerald); }
.terminal pre { margin: 10px 0 0; white-space: pre-wrap; }

/* Spotlight */
.spotlight { background: linear-gradient(180deg, var(--glass-soft), transparent 70%); }
.spotlight { border-top: 1px solid rgba(0,229,255,0.28) !important; border-bottom: 1px solid rgba(0,229,255,0.28); }
.pillar-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.pillar, .card, .delivery-card, .metric, .compare-card,
.tab-panel, .signal-card, .contact-card, .contact-form, .timeline li, .chip, .rag-box {
  position: relative;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--glass), var(--glass)) padding-box,
    var(--grad-border) border-box;
  border-radius: var(--radius);
  padding: 1.25rem;
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
  box-shadow:
    inset 0 1px 0 var(--card-top),
    0 18px 44px -26px rgba(0, 0, 0, 0.7);
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}
.pillar::before, .card::before, .delivery-card::before, .metric::before, .compare-card::before,
.tab-panel::before, .signal-card::before, .contact-card::before, .contact-form::before,
.timeline li::before, .chip::before, .rag-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 9%;
  right: 9%;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--specular), transparent);
  opacity: 0.75;
  pointer-events: none;
}
.chip { padding: 0.85rem; box-shadow: inset 0 1px 0 var(--card-top), 0 10px 30px -24px rgba(0, 0, 0, 0.65); }
.pillar { padding: 1.25rem; }
.badge {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(var(--glow-cyan), 0.32);
  background: linear-gradient(145deg, rgba(var(--glow-cyan), 0.16), rgba(var(--glow-indigo), 0.12));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 22px -8px rgba(var(--glow-cyan), 0.55);
  color: var(--cyan);
  font-weight: 950;
  margin-bottom: 1rem;
}
.metric-note, .fine-print, .leader-note { color: var(--muted); font-size: 0.9rem; }
.journey-svg, .rag-svg, .pipeline-svg, .rig-svg {
  width: 100%;
  border-radius: 22px;
  background: #070B14;
  border: 1px solid rgba(var(--glow-cyan), 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 30px 70px -34px rgba(var(--glow-cyan), 0.4);
  transition: transform 280ms ease, box-shadow 280ms ease, border-color 280ms ease;
}
.two-col { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2rem; align-items: center; }

/* Feature card icons */
.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(var(--glow-cyan), 0.28);
  background: linear-gradient(145deg, rgba(var(--glow-cyan), 0.14), rgba(var(--glow-indigo), 0.16));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 24px -14px rgba(var(--glow-cyan), 0.8);
  color: var(--cyan);
}
.card-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 10px var(--cyan)); transition: filter 200ms ease; }
.card-icon svg:hover { filter: drop-shadow(0 0 20px var(--emerald)); }
.card h3 { text-wrap: balance; }

/* Animated connectors inside SVG diagrams */
.journey-svg path[stroke-dasharray], .rag-svg path[stroke-dasharray], .pipeline-svg path[stroke-dasharray], .rig-svg path[stroke-dasharray] {
  filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.65));
  animation: connectorFlow 1.4s linear infinite;
}
@keyframes connectorFlow { to { stroke-dashoffset: -32; } }

/* Tabs */
.tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.tabs [role="tab"] { border: 1px solid var(--border); background: var(--surface); color: var(--muted); padding: 0.8rem 1rem; border-radius: 12px; font-weight: 800; }
.tabs [role="tab"][aria-selected="true"] { color: var(--cyan); border-color: rgba(0,229,255,0.55); background: rgba(0,229,255,0.08); }
.tab-panel { padding: 1.5rem; }
.tab-panel ul { color: var(--muted); }
.edge-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.delivery-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1rem; }
.delivery-card strong { color: var(--text); }

/* Simulator */
.sim-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 1.25rem; align-items: start; }
.sim-controls { display: grid; gap: 0.75rem; }
.sim-controls label { font-weight: 800; color: var(--text); }
select, input, textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}
textarea { resize: vertical; }
.signal-card { border-radius: 20px; padding: 1.4rem; }
.signal-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.asset { font-weight: 950; font-size: 1.25rem; margin-right: 0.5rem; }
.tf { color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 0.2rem 0.55rem; }
.direction { font-weight: 950; border-radius: 999px; padding: 0.35rem 0.75rem; border: 1px solid currentColor; }
.signal-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0.75rem; }
.signal-grid div { border: 1px solid var(--border); border-radius: 12px; padding: 0.85rem; background: var(--surface-2); }
.signal-grid span { display: block; color: var(--muted); font-size: 0.82rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.tags span { border: 1px solid rgba(16,185,129,0.4); color: var(--tag-text); border-radius: 999px; padding: 0.3rem 0.65rem; font-size: 0.82rem; }
.rag-box { border-radius: 14px; padding: 1rem; }
.rag-box h4 { margin-bottom: 0.5rem; color: var(--text); }

/* Investors */
.metrics-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; }
.metric strong { color: var(--cyan); display: block; margin-bottom: 0.5rem; }
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1rem; padding: 0; list-style: none; counter-reset: week; }
.timeline li { padding: 1.25rem; }
.timeline span { display: inline-flex; color: #061018; background: var(--emerald); font-weight: 950; border-radius: 999px; padding: 0.25rem 0.65rem; margin-bottom: 0.8rem; }
.data-room { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
.download-card { display: flex; flex-direction: column; gap: 0.8rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: auto; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2rem; align-items: start; }
.contact-card { display: grid; gap: 0.65rem; padding: 1.25rem; color: var(--muted); font-style: normal; margin-top: 1rem; }
.contact-card strong { color: var(--text); }
.contact-form { display: grid; gap: 0.9rem; padding: 1.25rem; }
.form-row { display: grid; gap: 0.4rem; }
.form-error { color: var(--red); margin: 0; }
.form-status { color: var(--emerald); margin: 0; }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--red); }

/* Modals */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: rgba(3,7,18,0.78); backdrop-filter: blur(8px); display: grid; place-items: center; padding: 1rem; }
.modal { width: min(100%, 1040px); max-height: min(92vh, 920px); overflow: auto; border: 1px solid rgba(0,229,255,0.4); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); padding: 1.25rem; }
.modal-content { display: grid; gap: 1.25rem; }
.modal-close { position: sticky; top: 0; float: right; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel); color: var(--text); font-size: 1.4rem; }
.compare-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }

.compare-card.generic { border-color: rgba(156,163,175,0.35); }
.compare-card ul { color: var(--muted); padding-left: 1.2rem; }
.telemetry { display: grid; gap: 0.65rem; margin: 0; }
.telemetry div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.telemetry dt { color: var(--muted); } .telemetry dd { margin: 0; color: var(--cyan); font-weight: 900; }

/* Popup */
.spotlight-popup { position: fixed; right: 1rem; bottom: 1rem; z-index: 70; width: min(360px, calc(100% - 2rem)); border: 1px solid rgba(0,229,255,0.45); border-radius: 18px; background: var(--glass-strong); box-shadow: var(--shadow); padding: 1rem; display: grid; gap: 0.75rem; }
.spotlight-popup p { margin: 0; }
.popup-close { position: absolute; right: 0.65rem; top: 0.65rem; border: 1px solid var(--border); background: var(--panel); color: var(--text); border-radius: 999px; width: 32px; height: 32px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--header-bg); padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 0.8fr; gap: 2rem; }
.footer-grid nav { display: grid; gap: 0.55rem; }
.footer-lang { display: grid; gap: 0.5rem; }
.footer-bottom { margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1.25rem; display: grid; gap: 0.75rem; }
.legal { font-size: 0.86rem; }

/* Motion & interaction */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1), transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .pillar:hover, .card:hover, .delivery-card:hover, .metric:hover, .compare-card:hover,
  .tab-panel:hover, .signal-card:hover, .timeline li:hover, .rag-box:hover {
    transform: translateY(-4px);
    box-shadow:
      inset 0 1px 0 var(--card-top),
      0 26px 60px -30px var(--glow-cyan),
      0 0 0 1px var(--glow-cyan);
  }
  .card:hover .card-icon { transform: translateY(-2px) rotate(-4deg); box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 14px 30px -12px var(--glow-cyan); }
  .journey-svg:hover, .rag-svg:hover, .pipeline-svg:hover, .rig-svg:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 229, 255, 0.34);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 38px 80px -34px rgba(0, 229, 255, 0.5);
  }
}
.card-icon { transition: transform 240ms ease, box-shadow 240ms ease; }

/* Light theme polish */
[data-theme="light"] { 
  --bg: #F5F7FB;
  --surface: #FFFFFF;
  --surface-2: #F5F7FB;
  --border: rgba(0, 0, 0, 0.08);
  --text: #0D0C14;
  --muted: #55637A;
  --badge-text: #0D0C14;
  --tag-text: #1F2937;
  --grid-line: rgba(0, 0, 0, 0.04);
  --specular: rgba(0, 0, 0, 0.15);
  --card-top: rgba(0, 0, 0, 0.03);
}
[data-theme="light"] .btn-primary { color: #FFFFFF; }
[data-theme="light"] .eyebrow { box-shadow: 0 6px 20px -14px rgba(0, 0, 0, 0.35); }
[data-theme="light"] .hero-bg { opacity: 0.9; }
[data-theme="light"] .chip { background: rgba(255, 255, 255, 0.9); }

/* Responsive */
@media (max-width: 1080px) {
  .hero-grid, .two-col, .contact-grid { grid-template-columns: 1fr; }
  .pillar-grid, .metrics-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .edge-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .delivery-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .timeline { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .hero-visual { min-height: 360px; }
  .hero-copy { max-width: 860px; }
}
@media (max-width: 1023px) {
  .nav {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 0.75rem;
    min-height: 64px;
  }
  .brand { grid-area: 1 / 1; }
  .nav-toggle { display: inline-flex; grid-area: 1 / 2; justify-self: end; }
  .nav-links {
    grid-area: 2 / 1 / 3 / -1;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0.35rem 0 0.5rem;
    border-top: 1px solid var(--border);
    white-space: normal;
  }
  .nav-links.open { display: flex; animation: navSlideDown 180ms ease-out; }
  .nav-links a { width: 100%; padding: 0.7rem 0.25rem; font-size: 0.95rem; }
  .nav-links a::after { display: none; }
  .nav-links a.active { color: var(--cyan); }
  .nav-actions {
    grid-area: 3 / 1 / 4 / -1;
    display: none;
    width: 100%;
    justify-content: flex-start;
    gap: 0.6rem;
    padding: 0.6rem 0 0.85rem;
    border-top: 1px solid var(--border);
  }
  .nav-links.open ~ .nav-actions { display: flex; }
  .nav-actions .btn { flex: 1 1 auto; }
  .sim-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-visual { min-height: 0; }
  .section { padding: clamp(3rem, 7vw, 5rem) 0; }
}
@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}
@media (max-width: 560px) {
  .container, .nav { width: min(100% - 1.25rem, var(--container)); }
  .hero-highlights, .pillar-grid, .edge-grid, .delivery-grid, .metrics-grid, .timeline, .data-room, .signal-grid { grid-template-columns: 1fr; }
  .device-wrap { position: relative; right: auto; bottom: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; width: 100%; max-width: 100%; margin-top: 1rem; }
  .device-wrap > .phone { position: relative; width: 100%; height: auto; min-height: 220px; transform: none; }
  .phone-left, .phone-right { left: auto; right: auto; bottom: auto; margin: 0; }
  .phone-right { margin-top: 1rem; }
  .hero-actions .btn, .card-actions .btn, .contact-form .btn[type="submit"] { width: 100%; }
  .signal-head { flex-wrap: wrap; }
  .telemetry div { flex-wrap: wrap; }
  .modal { max-height: calc(100dvh - 1rem); padding: 1rem; }
  .spotlight-popup { right: 0.65rem; bottom: max(0.65rem, env(safe-area-inset-bottom)); width: calc(100% - 1.3rem); }
  h1, h2 { text-wrap: balance; }
}
@media (max-width: 420px) {
  .device-wrap { grid-template-columns: 1fr; }
  .phone-right { display: none; }
  .nav-links a { font-size: 0.92rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
