/* ==========================================================
   Landing page — "blueprint schematic" identity
   (legal/contact pages keep using style.css)
   ========================================================== */

:root {
  --ink: #0A1A2F;
  --ink-2: #0C1F38;
  --ink-3: #102744;
  --paper: #EAF0F7;
  --muted: #93A6C1;
  --faint: #5E7394;
  --line: rgba(214, 228, 247, 0.14);
  --line-2: rgba(214, 228, 247, 0.28);
  --line-3: rgba(214, 228, 247, 0.5);
  --lime: #C6F432;
  --lime-dim: rgba(198, 244, 50, 0.16);
  --warn: #FF8A6B;

  --f-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --f-body: 'Inter', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;

  --wrap: 1240px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    linear-gradient(rgba(214,228,247,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214,228,247,0.05) 1px, transparent 1px),
    linear-gradient(rgba(214,228,247,0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(214,228,247,0.022) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

.mono { font-family: var(--f-mono); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
.wrap-narrow { max-width: 900px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--f-mono); font-size: 0.86rem; font-weight: 500; letter-spacing: 0.02em;
  padding: 12px 22px; border: 1px solid var(--lime); border-radius: 2px;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}
.btn-outline { color: var(--lime); }
.btn-outline:hover { background: var(--lime-dim); }
.btn-solid { background: var(--lime); color: var(--ink); }
.btn-solid:hover { transform: translateY(-1px); background: #D4FA5A; }

/* ---------- Blueprint decorations ---------- */
.reg { position: absolute; width: 22px; height: 22px; pointer-events: none; }
.reg::before, .reg::after { content: ''; position: absolute; background: var(--line-3); }
.reg::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.reg::after { top: 50%; left: 0; right: 0; height: 1px; }
.reg { border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line-2); }
.reg-tl { top: -11px; left: -11px; }
.reg-tr { top: -11px; right: -11px; }
.reg-bl { bottom: -11px; left: -11px; }
.reg-br { bottom: -11px; right: -11px; }
.dim {
  position: absolute; font-size: 0.66rem; color: var(--faint); letter-spacing: 0.08em;
  background: var(--ink); padding: 0 10px;
}
.dim-top { top: -9px; left: 50%; transform: translateX(-50%); }

.tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line-2); padding: 6px 12px; border-radius: 2px;
}
.tag-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lime); flex: none;
  box-shadow: 0 0 0 0 rgba(198,244,50,0.6); animation: ping 2s infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(198,244,50,0.55); } 70% { box-shadow: 0 0 0 8px rgba(198,244,50,0); } 100% { box-shadow: 0 0 0 0 rgba(198,244,50,0); } }

.illus {
  font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
  border: 1px dashed var(--line-2); padding: 2px 7px; border-radius: 2px;
}
.fig-note { font-size: 0.7rem; letter-spacing: 0.06em; color: var(--faint); margin-top: 14px; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(10, 26, 47, 0.92); backdrop-filter: blur(10px); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 32px; height: 72px; }
.nav-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); }
.logo-mark { width: 28px; height: 28px; flex: none; }
.logo-text { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; letter-spacing: 0.01em; }
.nav-links { display: flex; gap: 30px; margin-left: auto; }
.nav-link { font-family: var(--f-mono); font-size: 0.84rem; color: var(--muted); transition: color 0.2s; }
.nav-link:hover, .nav-link.active { color: var(--paper); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-hamburger span { width: 22px; height: 1.5px; background: var(--paper); }

/* ---------- Hero ---------- */
.hero { padding: 116px 0 72px; }
.hero-frame { position: relative; }
.hero-frame::before {
  content: ''; position: absolute; inset: 0 28px; border: 1px solid var(--line); pointer-events: none;
}
.hero-frame .reg-tl, .hero-frame .reg-bl { left: 17px; }
.hero-frame .reg-tr, .hero-frame .reg-br { right: 17px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(340px, 420px);
  gap: 56px; align-items: center; padding: 64px 56px;
}
.hero-copy .tag { margin-bottom: 28px; }
.hero-title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.8rem, 5.4vw, 5.2rem); line-height: 0.95; letter-spacing: -0.01em;
}
.hero-title span { display: block; }
.hero-title .hero-brand { color: var(--lime); }
.dim-rule { position: relative; height: 12px; margin: 26px 0 18px; max-width: 460px; border-bottom: 1px solid var(--line-3); display: flex; justify-content: space-between; }
.dim-rule i { width: 1px; height: 12px; background: var(--line-3); }
.hero-kicker { color: var(--lime); font-size: 1rem; letter-spacing: 0.01em; margin-bottom: 18px; }
.hero-desc { color: var(--muted); font-size: 1.04rem; max-width: 560px; }

.hero-readouts { display: flex; align-items: flex-end; gap: 36px; margin: 30px 0 26px; flex-wrap: wrap; }
.readout { display: flex; flex-direction: column; gap: 2px; padding-left: 14px; border-left: 1px solid var(--line-3); }
.readout-label { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); }
.readout-val { font-size: 1.5rem; font-weight: 500; color: var(--paper); font-variant-numeric: tabular-nums; }

.hero-chips { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.8rem; color: var(--muted); }
.hero-chips li::before { content: '+'; color: var(--lime); margin-right: 8px; }

/* ---------- Form ---------- */
.form-card {
  position: relative; background: rgba(10, 26, 47, 0.88);
  border: 1px dashed rgba(198, 244, 50, 0.6); padding: 28px 26px 22px;
}
.form-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.form-title { font-size: 1rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); }
.form-reticle { width: 22px; height: 22px; color: var(--lime); }
.form-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 20px; }
.signup-form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); }
.form-group input,
.iti__tel-input {
  width: 100%; background: rgba(214,228,247,0.035); border: 1px solid var(--line-2); border-radius: 2px;
  color: var(--paper); font-family: var(--f-body); font-size: 0.94rem; padding: 12px 14px; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-group input::placeholder { color: var(--faint); }
.form-group input:focus, .iti__tel-input:focus { border-color: var(--lime); background: rgba(198,244,50,0.04); }
.form-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.76rem; color: var(--muted); line-height: 1.5; }
.form-check input { margin-top: 3px; accent-color: var(--lime); width: 15px; height: 15px; flex: none; }
.form-link { color: var(--paper); text-decoration: underline; text-underline-offset: 2px; }
.btn-submit {
  display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 4px;
  background: var(--lime); color: var(--ink); padding: 15px 20px; border-radius: 2px;
  font-family: var(--f-mono); font-weight: 500; font-size: 0.96rem; letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s;
}
.btn-submit:hover { background: #D4FA5A; transform: translateY(-1px); }
.btn-submit:disabled { cursor: wait; transform: none; }
.form-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: 0.68rem; color: var(--faint); letter-spacing: 0.04em; }
.form-foot > span { display: inline-flex; align-items: center; gap: 6px; }
.form-notice { font-size: 0.7rem; color: var(--faint); line-height: 1.55; margin-top: 12px; }
.form-error-msg { border: 1px solid rgba(255,138,107,0.5); background: rgba(255,138,107,0.08); color: #FFC2B2; font-size: 0.84rem; padding: 10px 12px; margin-bottom: 14px; }
.form-success { text-align: center; padding: 24px 0; }
.success-icon { width: 48px; height: 48px; margin: 0 auto 12px; border: 1px solid var(--lime); color: var(--lime); display: grid; place-items: center; font-size: 1.4rem; }
.form-success h4 { font-family: var(--f-display); font-size: 1.6rem; }
.form-success p { color: var(--muted); font-size: 0.9rem; }

/* intl-tel-input */
.iti { width: 100%; display: block; }
.iti__country-container { z-index: 3; }
.iti__selected-country, .iti__selected-country-primary { background: transparent !important; border: 0 !important; color: var(--paper); }
.iti__flag { box-shadow: none !important; border-radius: 1px; }
.iti__selected-dial-code { color: var(--paper); font-family: var(--f-mono); font-size: 0.86rem; margin-left: 4px; }
.iti__arrow { border-top-color: var(--muted) !important; }
.iti__arrow--up { border-bottom-color: var(--muted) !important; }
.iti__dropdown-content, .iti__country-list { background: var(--ink-2) !important; border: 1px solid var(--line-2) !important; border-radius: 2px !important; color: var(--paper); }
.iti__search-input { background: rgba(214,228,247,0.04) !important; color: var(--paper) !important; border: 0 !important; border-bottom: 1px solid var(--line-2) !important; padding: 10px 12px !important; font-family: var(--f-body); }
.iti__country { padding: 8px 12px !important; font-size: 0.85rem; }
.iti__country:hover, .iti__country.iti__highlight { background: var(--lime-dim) !important; }
.iti__dial-code { color: var(--muted); font-family: var(--f-mono); font-size: 0.8rem; }

/* ---------- Sections ---------- */
.section { padding: 110px 0; position: relative; }
.section-tight { padding: 80px 0; }
.section-alt { background: rgba(8, 20, 37, 0.7); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 820px; margin-bottom: 56px; }
.sec-head-row { max-width: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 36px; }
.sec-tag { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.sec-tag::before { content: ''; width: 28px; height: 1px; background: var(--lime); }
.sec-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1; letter-spacing: -0.005em; }
.sec-sub { color: var(--muted); font-size: 1.06rem; margin-top: 20px; max-width: 700px; }

/* ---------- Probability primitives ---------- */
.pbar { position: relative; flex: 1; height: 10px; border: 1px solid var(--line-3); background: rgba(214,228,247,0.04); }
.pbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--paper); transition: width 0.9s var(--ease), background 0.4s; }
.pbar i.hi { background: var(--lime); }
.pbar.big { height: 14px; }
.smeter { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 3px; height: 14px; }
.smeter i { border: 1px solid var(--line-3); background: rgba(214,228,247,0.04); transition: background 0.4s; }
.smeter.big { height: 18px; }
.smeter[data-level="1"] i:nth-child(-n+1),
.smeter[data-level="2"] i:nth-child(-n+2),
.smeter[data-level="3"] i:nth-child(-n+3),
.smeter[data-level="4"] i:nth-child(-n+4),
.smeter[data-level="5"] i:nth-child(-n+5) { background: var(--paper); }
.smeter[data-level="4"] i:nth-child(-n+4),
.smeter[data-level="5"] i:nth-child(-n+5) { background: var(--lime); }

/* ---------- Fig. 01 Schematic ---------- */
.schematic {
  direction: ltr;
  display: grid;
  grid-template-columns: 200px minmax(50px, 1fr) 230px minmax(50px, 1fr) 330px;
  grid-template-rows: 480px auto;
  border: 1px solid var(--line); padding: 28px 28px 20px; position: relative;
  background: rgba(10,26,47,0.6);
}
.sx-inputs { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; }
.sx-in { flex: 1; display: flex; align-items: center; gap: 12px; }
.sx-ico { width: 38px; height: 38px; border: 1px solid var(--line-3); display: grid; place-items: center; color: var(--paper); flex: none; background: var(--ink); }
.sx-ico svg { width: 20px; height: 20px; }
.sx-in-label { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; }

.sx-wires { width: 100%; height: 100%; overflow: visible; }
.sx-wires-in { grid-column: 2; grid-row: 1; }
.sx-wires-out { grid-column: 4; grid-row: 1; }
.wire { fill: none; stroke: var(--line-3); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.wire-pulse {
  fill: none; stroke: var(--lime); stroke-width: 2.2; vector-effect: non-scaling-stroke;
  stroke-dasharray: 7 93; stroke-dashoffset: 100; animation: pulse 2.2s linear infinite;
}
@keyframes pulse { to { stroke-dashoffset: 0; } }

.sx-core { grid-column: 3; grid-row: 1; display: flex; align-items: center; }
.sx-core-box {
  width: 100%; height: 210px; border: 1px solid var(--paper); background: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  position: relative; text-align: center; padding: 14px;
}
.sx-core-box::before, .sx-core-box::after { content: ''; position: absolute; width: 7px; height: 7px; border: 1px solid var(--paper); background: var(--ink); }
.sx-core-box::before { top: -4px; left: -4px; }
.sx-core-box::after { bottom: -4px; right: -4px; }
.sx-core-title { font-size: 0.96rem; letter-spacing: 0.12em; text-transform: uppercase; }
.sx-core-sub { font-size: 0.78rem; color: var(--muted); }
.sx-core-scan { display: block; width: 80%; height: 30px; margin-top: 12px; border: 1px solid var(--line-3); position: relative; overflow: hidden;
  background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(214,228,247,0.22) 5px 6px); }
.sx-core-scan i { position: absolute; top: 0; bottom: 0; width: 26%; background: linear-gradient(90deg, transparent, rgba(198,244,50,0.55), transparent); animation: scan 1.6s var(--ease) infinite; }
@keyframes scan { from { left: -30%; } to { left: 104%; } }
.sx-core-stat { font-size: 0.74rem; color: var(--lime); margin-top: 6px; font-variant-numeric: tabular-nums; }

.sx-outputs { grid-column: 5; grid-row: 1; display: flex; flex-direction: column; }
.sx-out {
  flex: 1; margin: 7px 0; border: 1px solid var(--line-3); background: var(--ink); padding: 12px 14px;
  display: flex; flex-direction: column; justify-content: center; gap: 7px;
}
.sx-out-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 2px; }
.sx-row { display: flex; align-items: center; gap: 10px; }
.sx-key { font-size: 0.72rem; color: var(--muted); width: 12px; }
.sx-val { font-size: 0.82rem; min-width: 38px; text-align: right; font-variant-numeric: tabular-nums; }
.sx-axis { display: flex; justify-content: space-between; font-size: 0.62rem; color: var(--faint); margin-right: 48px; }
.sx-out[data-kind="choice"] .pbar { height: 8px; }

.sx-loop { grid-column: 3 / 6; grid-row: 2; padding: 0 165px 0 115px; }
.sx-loop-line {
  position: relative; height: 44px; border: 1px dashed var(--line-3); border-top: 0;
}
.sx-loop-line::before {
  content: ''; position: absolute; left: -5px; top: -2px; width: 0; height: 0;
  border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 8px solid var(--line-3);
}
.sx-loop-label {
  position: absolute; bottom: -9px; left: 50%; transform: translateX(-50%);
  font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  background: var(--ink); padding: 0 12px; white-space: nowrap;
}
.sx-v, .sx-loop-m { display: none; }

/* Steps + properties */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 56px; border-top: 1px solid var(--line-2); }
.step { padding: 26px 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-n { font-size: 0.8rem; color: var(--lime); }
.step h3 { font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; margin: 8px 0 8px; line-height: 1.1; }
.step p { color: var(--muted); font-size: 0.95rem; }

.props-title { font-family: var(--f-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 700; margin-top: 72px; }
.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.prop { border: 1px solid var(--line-2); padding: 26px 24px; background: rgba(10,26,47,0.7); }
.prop-ico { width: 30px; height: 30px; color: var(--lime); margin-bottom: 18px; }
.prop-label { display: block; font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lime); margin-bottom: 6px; }
.prop h3 { font-family: var(--f-display); font-size: 1.55rem; font-weight: 600; line-height: 1.1; margin-bottom: 10px; }
.prop p { color: var(--muted); font-size: 0.95rem; }

/* ---------- Fig. 02 Eras ---------- */
.eras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.era { border: 1px solid var(--line-2); padding: 28px 26px; background: var(--ink); display: flex; flex-direction: column; gap: 14px; }
.era-label { font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.era-rate { font-family: var(--f-display); font-size: 2.2rem; font-weight: 700; line-height: 1; }
.era p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.era-access { font-size: 0.72rem; letter-spacing: 0.06em; color: var(--faint); border-top: 1px dashed var(--line-2); padding-top: 12px; }
.era-now { border-color: var(--lime); box-shadow: inset 0 0 0 1px rgba(198,244,50,0.2); }
.era-now .era-label, .era-now .era-rate, .era-now .era-access { color: var(--lime); }

/* Latency comparison */
.latency { margin-top: 28px; border: 1px solid var(--line-2); background: var(--ink); padding: 24px 26px; display: flex; flex-direction: column; gap: 16px; }
.lat-title { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lat-row { display: grid; grid-template-columns: 180px 1fr 130px; align-items: center; gap: 18px; }
.lat-label { font-weight: 500; font-size: 0.95rem; }
.lat-row-new .lat-label, .lat-row-new .lat-time { color: var(--lime); }
.lat-time { font-size: 0.82rem; text-align: right; }
.lat-track { position: relative; display: flex; height: 34px; border: 1px solid var(--line); background: rgba(214,228,247,0.02); direction: ltr; }
.lat-seg { width: 0; overflow: hidden; display: flex; align-items: center; justify-content: center; border-right: 1px solid var(--ink); transition: width 1.2s var(--ease); }
.latency.in .lat-seg, html:not(.js) .lat-seg { width: var(--w); }
.lat-old { background: repeating-linear-gradient(135deg, rgba(214,228,247,0.1) 0 6px, rgba(214,228,247,0.18) 6px 7px); }
.lat-old span { font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.lat-new { display: flex; width: 4%; min-width: 18px; height: 100%; gap: 1px; }
.lat-new i { flex: 1; background: var(--lime); }
.lat-pulse { position: absolute; top: 50%; left: 4%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--lime); animation: ping 1.6s infinite; margin-left: 8px; }

/* ---------- Fig. 03 Board ---------- */
.board { border: 1px solid var(--line-2); background: rgba(10,26,47,0.75); }
.board-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; padding: 14px 20px;
  border-bottom: 1px solid var(--line-2); font-size: 0.76rem; color: var(--muted); font-variant-numeric: tabular-nums;
}
.board-bar .illus { margin-left: auto; }
.board-live { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); }
.board-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.qcard { padding: 20px 20px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; min-height: 210px; transition: background 0.4s; }
.qcard:nth-child(3n) { border-right: 0; }
.qcard.flash { background: rgba(198,244,50,0.045); }
.qhead { display: flex; justify-content: space-between; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.qtype { color: var(--muted); border: 1px solid var(--line-2); padding: 1px 6px; }
.qtext { font-size: 1rem; line-height: 1.4; font-weight: 500; flex: 1; }
.qbody { display: flex; align-items: center; gap: 14px; }
.qbody-choice { flex-direction: column; align-items: stretch; gap: 7px; }
.qval { font-size: 1.3rem; font-weight: 500; min-width: 58px; text-align: right; font-variant-numeric: tabular-nums; }
.crow { display: grid; grid-template-columns: 92px 1fr 42px; align-items: center; gap: 10px; font-size: 0.8rem; }
.clabel { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cval { text-align: right; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.crow .pbar { height: 8px; }
.qfoot { display: flex; justify-content: space-between; align-items: center; font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); border-top: 1px dashed var(--line); padding-top: 10px; }
.qconf { display: inline-flex; align-items: center; gap: 3px; }
.qconf i { width: 10px; height: 6px; border: 1px solid var(--line-3); }
.qconf b { font-weight: 500; color: var(--muted); margin-left: 6px; }
.qconf-low i:nth-child(-n+1), .qconf-mod i:nth-child(-n+2), .qconf-high i:nth-child(-n+3) { background: var(--paper); }
.qconf-high i:nth-child(-n+3) { background: var(--lime); border-color: var(--lime); }
.board-legend { padding: 18px 20px 0; color: var(--muted); font-size: 0.88rem; max-width: 820px; }
.board .fig-note { padding: 0 20px 18px; }

/* ---------- Fig. 04 Benefits ---------- */
.gets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.get { border: 1px solid var(--line-2); background: var(--ink); padding: 24px 22px; }
.get-vis { width: 100%; height: 70px; margin-bottom: 22px; overflow: visible; }
.gv-grid { stroke: var(--line); stroke-dasharray: 3 4; }
.gv-line { stroke: var(--lime); stroke-width: 1.6; fill: none; }
.gv-t { font-family: var(--f-mono); font-size: 10px; fill: var(--muted); }
.gv-hi { fill: var(--lime); }
.gv-track { fill: rgba(214,228,247,0.05); stroke: var(--line-2); }
.gv-fill-hi { fill: var(--lime); }
.gv-fill-lo { fill: rgba(214,228,247,0.45); }
.gv-err { stroke: var(--warn); stroke-width: 1.2; stroke-dasharray: 2 2; }
.gv-big { font-family: var(--f-mono); font-size: 44px; fill: var(--lime); }
.gv-strike { stroke: var(--line-3); stroke-width: 6; opacity: 0.35; }
.get h3 { font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; line-height: 1.1; margin-bottom: 10px; }
.get p { color: var(--muted); font-size: 0.92rem; }

/* ---------- Coverage ---------- */
.cov { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line-2); }
.cov-cell { padding: 24px 22px; }
.cov-cell + .cov-cell { border-left: 1px solid var(--line); }
.cov-n { font-size: 0.74rem; color: var(--lime); }
.cov-cell h3 { font-family: var(--f-display); font-size: 1.7rem; font-weight: 600; margin: 6px 0 6px; }
.cov-cell p { color: var(--muted); font-size: 0.9rem; }

/* ---------- Spec sheet ---------- */
.spec { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); background: var(--ink); }
.spec-col { padding: 26px 28px; }
.spec-isnt { border-left: 1px solid var(--line-2); }
.spec-label { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 12px; }
.spec-is .spec-label { color: var(--lime); }
.spec-isnt .spec-label { color: var(--warn); }
.spec-item { display: flex; gap: 14px; padding: 12px 0; border-top: 1px dashed var(--line); font-size: 1rem; }
.spec-mk { font-family: var(--f-mono); width: 14px; flex: none; }
.spec-is .spec-mk { color: var(--lime); }
.spec-isnt .spec-mk { color: var(--warn); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-q { width: 100%; display: flex; align-items: center; gap: 18px; padding: 22px 0; text-align: start; font-size: 1.06rem; font-weight: 500; }
.faq-n { font-size: 0.74rem; color: var(--faint); flex: none; }
.faq-q > span:nth-child(2) { flex: 1; }
.faq-icon { font-family: var(--f-mono); color: var(--lime); font-size: 1.2rem; transition: transform 0.3s var(--ease); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq-a p { color: var(--muted); padding: 0 40px 24px; font-size: 0.98rem; }
.faq-item.open .faq-a { max-height: 480px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ---------- CTA ---------- */
.cta-frame { position: relative; text-align: center; padding: 80px 28px; }
.cta-frame::before { content: ''; position: absolute; inset: 0 28px; border: 1px solid var(--line-2); pointer-events: none; }
.cta-frame .reg-tl, .cta-frame .reg-bl { left: 17px; }
.cta-frame .reg-tr, .cta-frame .reg-br { right: 17px; }
.cta .sec-tag { justify-content: center; }
.cta-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1; max-width: 900px; margin: 0 auto; }
.cta-desc { color: var(--muted); font-size: 1.08rem; margin: 20px auto 34px; max-width: 580px; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-actions .btn { padding: 15px 28px; font-size: 0.94rem; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line-2); padding: 64px 0 28px; background: rgba(6, 16, 30, 0.9); }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { max-width: 340px; }
.footer-tagline { color: var(--muted); font-size: 0.88rem; margin-top: 14px; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 4px; }
.footer-col a { color: var(--muted); font-size: 0.9rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--paper); }
.footer-disclaimer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 0.78rem; line-height: 1.7; display: flex; flex-direction: column; gap: 8px; }
.footer-disclaimer strong { color: var(--muted); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; font-size: 0.76rem; color: var(--faint); flex-wrap: wrap; }
#langSelect { background: var(--ink-2); color: var(--paper); border: 1px solid var(--line-2); border-radius: 2px; padding: 8px 10px; font-family: var(--f-body); font-size: 0.84rem; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 150; display: none;
  align-items: center; justify-content: center; gap: 10px; padding: 15px 20px;
  background: var(--lime); color: var(--ink); font-family: var(--f-mono); font-weight: 500; font-size: 0.9rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.45); transform: translateY(140%); transition: transform 0.25s var(--ease);
}
.sticky-cta.visible { transform: translateY(0); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1140px) {
  .schematic { grid-template-columns: 170px minmax(36px, 1fr) 190px minmax(36px, 1fr) 290px; }
  .sx-loop { padding: 0 145px 0 95px; }
  .gets { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--ink); border-bottom: 1px solid var(--line-2); padding: 8px 28px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav-cta { margin-left: auto; }
  .nav-hamburger { display: flex; }

  .hero-grid { grid-template-columns: 1fr; padding: 48px 32px; gap: 0; }
  .hero-copy { display: contents; }
  .hero-copy > * { order: 2; }
  .hero-copy > .tag, .hero-title, .dim-rule, .hero-kicker { order: 0; }
  .hero-copy .tag { justify-self: start; }
  .form-wrap { order: 1; margin: 10px 0 34px; }

  .schematic { grid-template-columns: 1fr; grid-template-rows: none; padding: 22px 18px; }
  .sx-inputs, .sx-core, .sx-outputs, .sx-v { grid-column: 1; grid-row: auto; }
  .sx-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sx-in { padding: 8px; border: 1px solid var(--line); }
  .sx-wires, .sx-loop { display: none; }
  .sx-v { display: block; height: 46px; position: relative; }
  .sx-v::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line-3); }
  .sx-v i { position: absolute; left: calc(50% - 3px); width: 7px; height: 7px; background: var(--lime); animation: drop 1.4s linear infinite; }
  @keyframes drop { from { top: 0; opacity: 1; } to { top: 100%; opacity: 0.2; } }
  .sx-core-box { height: auto; padding: 22px 14px; }
  .sx-out { margin: 5px 0; }
  .sx-loop-m { display: block; text-align: center; margin-top: 14px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

  .steps, .props, .eras { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 22px 0; border-left: 0; }
  .step + .step { border-top: 1px solid var(--line); }
  .board-grid { grid-template-columns: repeat(2, 1fr); }
  .qcard:nth-child(3n) { border-right: 1px solid var(--line); }
  .qcard:nth-child(2n) { border-right: 0; }
  .cov { grid-template-columns: repeat(2, 1fr); }
  .cov-cell:nth-child(3) { border-left: 0; }
  .cov-cell:nth-child(n+3) { border-top: 1px solid var(--line); }
}

@media (max-width: 768px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 76px; }
  .section { padding: 80px 0; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav-cta { display: none; }
  .hero { padding: 96px 0 48px; }
  .hero-frame::before, .cta-frame::before { inset: 0 16px; }
  .hero-frame .reg-tl, .hero-frame .reg-bl, .cta-frame .reg-tl, .cta-frame .reg-bl { left: 5px; }
  .hero-frame .reg-tr, .hero-frame .reg-br, .cta-frame .reg-tr, .cta-frame .reg-br { right: 5px; }
  .hero-grid { padding: 36px 18px; }
  .hero-title { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .form-card { padding: 22px 16px 18px; }
  .form-row { gap: 10px; }
  .sx-inputs { grid-template-columns: repeat(2, 1fr); }
  .board-grid, .gets, .cov, .spec { grid-template-columns: 1fr; }
  .qcard, .qcard:nth-child(3n) { border-right: 0; min-height: 0; }
  .cov-cell + .cov-cell { border-left: 0; border-top: 1px solid var(--line); }
  .spec-isnt { border-left: 0; border-top: 1px solid var(--line-2); }
  .faq-a p { padding: 0 0 22px; }
  .board-bar .illus { margin-left: 0; }
  .latency { padding: 18px 16px; }
  .lat-row { grid-template-columns: 1fr auto; gap: 8px 12px; }
  .lat-track { grid-column: 1 / -1; grid-row: 2; }
  .lat-old span { font-size: 0.6rem; letter-spacing: 0.04em; }
}

/* ---------- RTL (Arabic) ---------- */
/* Letter-spacing breaks Arabic letter joining, and the Latin fonts have no Arabic glyphs */
html[dir="rtl"] {
  --f-body: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif;
  --f-display: 'IBM Plex Sans Arabic', 'Barlow Condensed', sans-serif;
  --f-mono: 'IBM Plex Sans Arabic', 'IBM Plex Mono', sans-serif;
}
html[dir="rtl"] body * { letter-spacing: 0 !important; }
html[dir="rtl"] .hero-title, html[dir="rtl"] .sec-title, html[dir="rtl"] .cta-title { line-height: 1.25; }
html[dir="rtl"] .hero-title .hero-brand { font-family: 'Barlow Condensed', sans-serif; }
html[dir="rtl"] .hero-chips li::before { margin-right: 0; margin-left: 8px; }
html[dir="rtl"] .readout { padding-left: 0; padding-right: 14px; border-left: 0; border-right: 1px solid var(--line-3); }
html[dir="rtl"] .step + .step { padding-left: 0; padding-right: 28px; border-left: 0; border-right: 1px solid var(--line); }
html[dir="rtl"] .cov-cell + .cov-cell { border-left: 0; border-right: 1px solid var(--line); }
html[dir="rtl"] .spec-isnt { border-left: 0; border-right: 1px solid var(--line-2); }
html[dir="rtl"] .board-bar .illus { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .nav-links { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .btn-submit-arrow, html[dir="rtl"] .sticky-cta-arrow { transform: scaleX(-1); }
html[dir="rtl"] .iti { direction: ltr; }
html[dir="rtl"] .iti input { text-align: left; direction: ltr; }
@media (max-width: 960px) {
  html[dir="rtl"] .step + .step { padding-right: 0; border-right: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .lat-seg { width: var(--w); }
  .wire-pulse { display: none; }
}
