/* ═══════════════════════════════════════════════════════════════
   1XAD — LEAD CONVERGENCE ENGINE
   Obsidian / Neon design system
   ═══════════════════════════════════════════════════════════════ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --bg-0: #07090E;
  --bg-1: #0B0E14;
  --bg-2: #121620;

  --mint: #00FFA3;
  --cyan: #00E5FF;
  --blue: #3B82F6;

  --white: #FFFFFF;
  --slate: #94A3B8;
  --muted: #64748B;

  --border-subtle: rgba(148, 163, 184, 0.12);
  --border-bright: rgba(0, 255, 163, 0.35);

  --glass-bg: linear-gradient(155deg, rgba(255,255,255,0.05), rgba(255,255,255,0.014) 42%, rgba(255,255,255,0.028));
  --glass-shadow: 0 24px 70px -28px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.06);

  --font-display: 'Space Grotesk', 'Inter', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --grad-brand: linear-gradient(100deg, var(--mint), var(--cyan) 55%, var(--blue));
  --radius: 20px;
  --nav-h: 76px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg-0);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

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

::selection { background: rgba(0, 255, 163, 0.25); color: var(--white); }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Backdrop layers ────────────────────────────────────────── */
.aurora {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 22% 5%, rgba(0, 255, 163, 0.055), transparent 100%),
    radial-gradient(60% 50% at 88% 18%, rgba(59, 130, 246, 0.05), transparent 100%),
    radial-gradient(65% 55% at 70% 98%, rgba(0, 229, 255, 0.045), transparent 100%);
  animation: aurora-drift 32s ease-in-out infinite alternate;
}

@keyframes aurora-drift {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.06); }
}

#flow-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

main, .footer { position: relative; z-index: 2; }

/* ── Shared utilities ───────────────────────────────────────── */
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(0, 229, 255, 0.28));
}

.mono-mint { font-family: var(--font-mono); color: var(--mint); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--mint);
  text-transform: uppercase;
  opacity: 0.9;
}

.section { padding: clamp(90px, 12vw, 150px) clamp(20px, 6vw, 72px); scroll-margin-top: 40px; }

.section-head {
  max-width: 780px;
  margin: 0 auto clamp(48px, 6vw, 72px);
  text-align: center;
}

.section-head .eyebrow { display: block; margin-bottom: 22px; }

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.6vw, 3.4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}

.section-sub { color: var(--slate); font-size: 1.0625rem; max-width: 640px; margin: 0 auto; }

/* Glass surface */
.card, .vertical-panel, .calc, .access-form, .modal__panel, .telemetry {
  background: var(--glass-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--glass-shadow);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease-out) var(--d, 0s),
    transform 0.9s var(--ease-out) var(--d, 0s),
    filter 0.9s var(--ease-out) var(--d, 0s);
  will-change: opacity, transform, filter;
}

.reveal.in-view { opacity: 1; transform: translateY(0); filter: blur(0); }

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 12px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              border-color 0.35s var(--ease-out), background 0.35s var(--ease-out);
  overflow: hidden;
  white-space: nowrap;
}

.btn--sm { padding: 10px 20px; font-size: 0.8125rem; border-radius: 10px; }

.btn--primary {
  background: linear-gradient(115deg, var(--mint), var(--cyan));
  color: #03130C;
  box-shadow: 0 0 0 1px rgba(0, 255, 163, 0.35), 0 14px 44px -12px rgba(0, 255, 163, 0.5);
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  transform: translateX(-130%) skewX(-12deg);
  transition: transform 0.7s var(--ease-out);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 255, 163, 0.55), 0 20px 60px -14px rgba(0, 229, 255, 0.6);
}

.btn--primary:hover::after { transform: translateX(130%) skewX(-12deg); }
.btn--primary:active { transform: translateY(0) scale(0.985); }

.btn--ghost {
  border: 1px solid var(--border-subtle);
  color: var(--white);
  background: rgba(255, 255, 255, 0.02);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: var(--border-bright);
  box-shadow: 0 0 24px -6px rgba(0, 255, 163, 0.35), inset 0 0 18px rgba(0, 255, 163, 0.05);
  transform: translateY(-2px);
}

.btn--full { width: 100%; }

/* Button busy state (form submit) */
.btn__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(3, 19, 12, 0.25);
  border-top-color: #03130C;
  animation: spin 0.7s linear infinite;
}

.btn.is-busy { pointer-events: none; opacity: 0.9; }
.btn.is-busy .btn__spinner { display: inline-block; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  height: var(--nav-h);
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(7, 9, 14, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
  border-bottom-color: var(--border-subtle);
}

.nav__brand { justify-self: start; }
.nav__logo { width: 168px; height: auto; }

.nav__links {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  justify-self: center;
}

.nav__links a {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  padding: 6px 2px;
  transition: color 0.25s ease;
}

.nav__links a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--grad-brand);
  transition: right 0.35s var(--ease-out);
}

.nav__links a:hover { color: var(--white); }
.nav__links a:hover::after { right: 0; }

.nav__right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--slate);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255, 255, 255, 0.02);
}

.status-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  animation: pulse-dot 2.2s ease-in-out infinite;
  flex: none;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(var(--nav-h) + 48px) clamp(20px, 6vw, 72px) 120px;
}

.hero__inner { max-width: 960px; text-align: center; }

.hero .eyebrow { display: block; margin-bottom: 28px; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 7vw, 5.6rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 28px;
}

.hero__sub {
  color: var(--slate);
  font-size: clamp(1rem, 1.6vw, 1.1875rem);
  line-height: 1.7;
  max-width: 660px;
  margin: 0 auto 44px;
}

.hero__cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

/* Telemetry strip */
.telemetry {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: 16px;
  overflow: hidden;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}

.telemetry__cell {
  padding: 22px 26px;
  position: relative;
}

.telemetry__cell + .telemetry__cell::before {
  content: '';
  position: absolute;
  left: 0;
  top: 22%;
  bottom: 22%;
  width: 1px;
  background: var(--border-subtle);
}

.telemetry__cell dt {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 8px;
}

.telemetry__cell dd {
  font-family: var(--font-mono);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 700;
  color: var(--white);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.telemetry__unit { font-size: 0.65em; color: var(--mint); margin-left: 2px; }

/* Scroll hint */
.hero__scrollhint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.4em;
  color: var(--muted);
}

.hero__scrollhint i {
  width: 1px;
  height: 44px;
  background: linear-gradient(var(--mint), transparent);
  animation: scroll-hint 2.2s var(--ease-out) infinite;
  transform-origin: top;
}

@keyframes scroll-hint {
  0% { transform: scaleY(0); opacity: 0; }
  35% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1) translateY(12px); opacity: 0; }
}

/* ── Doctrine cards ─────────────────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1180px;
  margin: 0 auto;
}

.card {
  position: relative;
  padding: 40px 34px 34px;
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), border-color 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity 0.45s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 255, 163, 0.22);
  box-shadow: 0 32px 80px -30px rgba(0, 0, 0, 0.85), 0 0 44px -18px rgba(0, 255, 163, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.card:hover::before { opacity: 1; }

.card__num {
  position: absolute;
  top: 18px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(148, 163, 184, 0.22);
  line-height: 1;
  user-select: none;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}

.card p { color: var(--slate); font-size: 0.9375rem; line-height: 1.7; margin-bottom: 26px; }

.card__tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  color: var(--cyan);
  opacity: 0.85;
}

/* ── Vertical picker ────────────────────────────────────────── */
.picker {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 720px;
  margin: 0 auto 26px;
  padding: 5px;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background: rgba(11, 14, 20, 0.6);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  --i: 0;
}

.picker__indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 5px;
  width: calc((100% - 10px) / 4);
  border-radius: 10px;
  background: linear-gradient(140deg, rgba(0, 255, 163, 0.14), rgba(0, 229, 255, 0.1));
  border: 1px solid rgba(0, 255, 163, 0.3);
  box-shadow: 0 0 24px -8px rgba(0, 255, 163, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform 0.45s var(--ease-out);
  pointer-events: none;
}

.picker__tab {
  position: relative;
  z-index: 1;
  padding: 13px 8px;
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--muted);
  border-radius: 10px;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.picker__tab:hover { color: var(--slate); }
.picker__tab.is-active { color: var(--white); }

/* Vertical panel */
.vertical-panel {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(30px, 4vw, 48px);
}

.vertical-panel__main { transition: opacity 0.18s ease, transform 0.18s ease; }
.vertical-panel__main.is-switching { opacity: 0; transform: translateY(8px); }

.vertical-panel__main h3 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.vertical-panel__main p { color: var(--slate); font-size: 0.9688rem; line-height: 1.75; margin-bottom: 24px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.chips li {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--slate);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 6px 13px;
  background: rgba(255, 255, 255, 0.02);
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.chips li:hover {
  color: var(--mint);
  border-color: var(--border-bright);
  box-shadow: 0 0 16px -6px rgba(0, 255, 163, 0.5);
}

.vertical-panel__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: start;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.vertical-panel__stats.is-switching { opacity: 0; transform: translateY(8px); }

.vstat {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 20px;
  background: rgba(255, 255, 255, 0.015);
}

.vstat--wide { grid-column: 1 / -1; }

.vstat__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 8px;
}

.vstat__value {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.vstat__value--mint { color: var(--mint); text-shadow: 0 0 22px rgba(0, 255, 163, 0.45); }

.quality { display: flex; align-items: center; gap: 16px; }

.quality__track {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.14);
  overflow: hidden;
}

.quality__bar {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: var(--grad-brand);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.55);
  transition: width 0.8s var(--ease-out);
}

.quality__value {
  font-family: var(--font-mono);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--mint);
  min-width: 2ch;
  text-align: right;
}

/* ── Calculator ─────────────────────────────────────────────── */
.calc {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 4.5vw, 64px);
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(30px, 4.5vw, 52px);
}

.control + .control { margin-top: 30px; }

.control__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}

.control__head label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.01em;
}

.control__head output {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--mint);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.control__note { margin-top: 12px; font-size: 0.8125rem; color: var(--muted); }
.control__note strong { color: var(--slate); font-weight: 600; }

/* Range inputs */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 22px;
  background: transparent;
  cursor: pointer;
  --fill: 50%;
}

input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--mint), var(--cyan) var(--fill), rgba(148, 163, 184, 0.16) var(--fill));
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  margin-top: -7px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 2px solid var(--mint);
  box-shadow: 0 0 14px rgba(0, 255, 163, 0.65), inset 0 0 4px rgba(0, 255, 163, 0.4);
  transition: transform 0.18s var(--ease-out);
}

input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.2); }
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.05); }

input[type="range"]::-moz-range-track {
  height: 4px;
  border-radius: 2px;
  background: rgba(148, 163, 184, 0.16);
}

input[type="range"]::-moz-range-progress {
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--mint), var(--cyan));
}

input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-1);
  border: 2px solid var(--mint);
  box-shadow: 0 0 14px rgba(0, 255, 163, 0.65);
  transition: transform 0.18s var(--ease-out);
}

input[type="range"]::-moz-range-thumb:hover { transform: scale(1.2); }

/* Select */
.select-wrap { position: relative; }

.select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--slate);
  border-bottom: 1.5px solid var(--slate);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
  transition: border-color 0.25s ease;
}

.select-wrap:hover::after { border-color: var(--mint); }

select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: 14px 44px 14px 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--white);
  background: rgba(11, 14, 20, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

select:hover { border-color: rgba(148, 163, 184, 0.3); }

select:focus {
  outline: none;
  border-color: var(--border-bright);
  box-shadow: 0 0 0 3px rgba(0, 255, 163, 0.12), 0 0 24px -8px rgba(0, 255, 163, 0.4);
}

select:invalid { color: var(--muted); }
select option { background: var(--bg-2); color: var(--white); }

/* Outputs */
.calc__outputs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cout {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.015);
}

.cout__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 8px;
}

.cout__value {
  font-family: var(--font-mono);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}

.cout--hero {
  flex: 1;
  border-color: rgba(0, 255, 163, 0.25);
  background: linear-gradient(150deg, rgba(0, 255, 163, 0.06), rgba(0, 229, 255, 0.03));
  box-shadow: 0 0 44px -18px rgba(0, 255, 163, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cout--hero .cout__value { font-size: clamp(2rem, 4vw, 2.75rem); }

.cout__hint {
  display: block;
  margin-top: 12px;
  font-size: 0.75rem;
  color: var(--muted);
}

/* ── Access form ────────────────────────────────────────────── */
.access-form {
  max-width: 620px;
  margin: 0 auto;
  padding: clamp(30px, 4.5vw, 48px);
}

.access-form__head {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 34px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--border-subtle);
}

.access-form__mark {
  flex: none;
  border-radius: 12px;
  box-shadow: 0 0 30px -8px rgba(0, 255, 163, 0.45);
}

.access-form__head h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.access-form__head p { font-size: 0.8125rem; color: var(--muted); margin-top: 3px; }

.field { margin-bottom: 22px; }

.field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--slate);
  margin-bottom: 9px;
  text-transform: uppercase;
}

.field input[type="text"] {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  color: var(--white);
  background: rgba(11, 14, 20, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.field input::placeholder { color: var(--muted); opacity: 0.7; }

.field input[type="text"]:hover { border-color: rgba(148, 163, 184, 0.3); }

.field input[type="text"]:focus {
  outline: none;
  border-color: var(--border-bright);
  box-shadow: 0 0 0 3px rgba(0, 255, 163, 0.12), 0 0 24px -8px rgba(0, 255, 163, 0.4);
}

.field__hint { margin-top: 8px; font-size: 0.75rem; color: var(--muted); transition: color 0.25s ease; }
.field__hint.is-valid { color: var(--mint); }
.field--error .field__hint { display: none; }

.field__error {
  margin-top: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #FF6B81;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

.field--error .field__error { max-height: 3em; opacity: 1; }
.field--error input, .field--error select { border-color: rgba(255, 107, 129, 0.55); }
.field--error input:focus, .field--error select:focus { box-shadow: 0 0 0 3px rgba(255, 107, 129, 0.12); }

.field--error { animation: shake 0.4s ease; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-3px); }
}

.access-form .btn--full { margin-top: 8px; }

.access-form__micro {
  margin-top: 18px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 40px clamp(20px, 6vw, 72px);
  background: rgba(7, 9, 14, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: 1280px;
  margin: 0 auto;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.footer__brand img { border-radius: 9px; }

.footer__brand-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--mint);
  opacity: 0.85;
  margin-top: 2px;
}

.footer__note { font-size: 0.8125rem; color: var(--muted); }

.footer__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* ── Modal ──────────────────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
}

.modal[hidden] { display: none; }

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 9, 0.7);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.modal__panel {
  position: relative;
  width: min(460px, 100%);
  padding: 44px 40px 36px;
  text-align: center;
  opacity: 0;
  transform: translateY(24px) scale(0.96);
  transition: opacity 0.4s var(--ease-out) 0.05s, transform 0.4s var(--ease-out) 0.05s;
}

.modal.is-open .modal__overlay { opacity: 1; }
.modal.is-open .modal__panel { opacity: 1; transform: translateY(0) scale(1); }

.modal__check { width: 72px; margin: 0 auto 24px; }
.modal__check svg { width: 100%; height: auto; }

.check-ring {
  stroke: var(--mint);
  stroke-width: 2;
  stroke-dasharray: 183;
  stroke-dashoffset: 183;
  filter: drop-shadow(0 0 10px rgba(0, 255, 163, 0.6));
}

.check-mark {
  stroke: var(--mint);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
}

.modal.is-open .check-ring { animation: draw 0.7s var(--ease-out) 0.15s forwards; }
.modal.is-open .check-mark { animation: draw 0.45s var(--ease-out) 0.65s forwards; }

@keyframes draw { to { stroke-dashoffset: 0; } }

.modal__panel h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 10px;
}

.modal__tier { font-size: 0.9375rem; color: var(--slate); margin-bottom: 22px; }
.modal__tier strong { color: var(--mint); font-weight: 600; letter-spacing: 0.04em; }

.modal__id {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px dashed rgba(0, 255, 163, 0.3);
  border-radius: 12px;
  padding: 13px 18px;
  margin-bottom: 22px;
  background: rgba(0, 255, 163, 0.04);
}

.modal__id span {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  letter-spacing: 0.24em;
  color: var(--muted);
}

.modal__id code {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--mint);
  letter-spacing: 0.08em;
}

.modal__note { font-size: 0.875rem; color: var(--slate); line-height: 1.65; margin-bottom: 28px; }
.modal__note strong { color: var(--white); font-weight: 600; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .cards { grid-template-columns: 1fr; max-width: 620px; }
  .nav__links { display: none; }
}

@media (max-width: 900px) {
  .vertical-panel { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .telemetry { grid-template-columns: 1fr 1fr; }
  .telemetry__cell:nth-child(3)::before { display: none; }
  .telemetry__cell:nth-child(-n+2) { border-bottom: 1px solid var(--border-subtle); }
}

@media (max-width: 640px) {
  .aurora {
    background:
      radial-gradient(95% 42% at 50% -12%, rgba(0, 255, 163, 0.05), transparent 100%),
      radial-gradient(95% 55% at 50% 112%, rgba(0, 229, 255, 0.04), transparent 100%);
  }
  .status-pill { display: none; }
  .nav__logo { width: 132px; }
  .hero { padding-bottom: 96px; }
  .hero__cta .btn { width: 100%; }
  .hero__scrollhint { display: none; }
  .picker { grid-template-columns: 1fr 1fr; }
  .picker__indicator { display: none; }
  .picker__tab.is-active {
    background: linear-gradient(140deg, rgba(0, 255, 163, 0.14), rgba(0, 229, 255, 0.1));
    border: 1px solid rgba(0, 255, 163, 0.3);
  }
  .picker__tab { border: 1px solid transparent; }
  .vertical-panel__stats { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__brand { flex-direction: column; }
  .modal__panel { padding: 36px 26px 30px; }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; filter: none; }
}
