/* ============================================================================
   ChainVista Trade Network — "Trade Operations Console" design system
   Archetype: logistics control-room / live data dashboard
   Dark luminous navy canvas · glass panels · neon-cyan + signal-amber accents
   Type: Space Grotesk (display) · Manrope (body) · JetBrains Mono (figures/codes)
   Brand base carried from source: navy #0E3A5F, gold #D2A03A → extended dark
   ========================================================================== */

:root {
  /* Canvas — deep operations navy */
  --void: #050b14;
  --deck: #0a1421;
  --deck-2: #0e1c2e;
  --deck-3: #13273d;
  --grid-line: rgba(96, 165, 214, 0.10);

  /* Brand navy carried forward */
  --navy: #0E3A5F;
  --navy-bright: #1B5C8A;

  /* Glass surfaces */
  --glass: rgba(18, 38, 60, 0.55);
  --glass-hi: rgba(28, 54, 82, 0.62);
  --glass-line: rgba(120, 190, 235, 0.16);
  --glass-line-hi: rgba(120, 200, 240, 0.34);

  /* Accents — luminous */
  --cyan: #2FE6E0;
  --cyan-soft: #7af0ec;
  --cyan-deep: #0fb9b3;
  --amber: #F5B838;      /* extended from brand gold #D2A03A */
  --amber-soft: #ffd472;
  --lime: #7CE38B;
  --rose: #FF7A8A;

  /* Text */
  --text: #EAF2FA;
  --text-dim: #A7BED4;
  --text-faint: #6c839b;
  --text-onbright: #04121f;

  /* Glows */
  --glow-cyan: 0 0 0 1px rgba(47,230,224,0.35), 0 0 24px -4px rgba(47,230,224,0.5);
  --glow-amber: 0 0 0 1px rgba(245,184,56,0.35), 0 0 24px -4px rgba(245,184,56,0.5);
  --panel-shadow: 0 30px 70px -40px rgba(0,0,0,0.9);

  /* Type */
  --f-display: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Layout */
  --shell: 1280px;
  --rail-w: 200px;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 20px;
  --pad-y: clamp(64px, 8vw, 108px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.62;
  color: var(--text);
  background: var(--void);
  background-image:
    radial-gradient(1100px 620px at 82% -8%, rgba(47,230,224,0.10), transparent 60%),
    radial-gradient(920px 560px at 6% 0%, rgba(27,92,138,0.28), transparent 58%),
    linear-gradient(180deg, #071019 0%, #050b14 40%, #060d16 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--cyan-soft); }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 5px; }
::selection { background: rgba(47,230,224,0.28); color: #fff; }

.shell { width: min(100% - 40px, var(--shell)); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--cyan); color: var(--text-onbright);
  padding: 12px 20px; font-weight: 700; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

/* ---- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; color: #fff; line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.35rem, 5.4vw, 4rem); }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.12rem, 1.7vw, 1.34rem); letter-spacing: -0.01em; }
p { margin: 0 0 16px; color: var(--text-dim); }
strong { color: var(--text); }

.tag {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--cyan);
  padding: 6px 12px 6px 10px; border-radius: var(--pill, 999px);
  background: rgba(47,230,224,0.08); border: 1px solid rgba(47,230,224,0.28);
}
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px 1px var(--cyan); }
.tag.amber { color: var(--amber); background: rgba(245,184,56,0.08); border-color: rgba(245,184,56,0.3); }
.tag.amber::before { background: var(--amber); box-shadow: 0 0 10px 1px var(--amber); }

.lead { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: var(--text-dim); max-width: 62ch; }
.mono { font-family: var(--f-mono); }

/* ---- Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-weight: 700; font-size: 0.95rem;
  padding: 13px 22px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none; line-height: 1;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: linear-gradient(180deg, var(--cyan) 0%, var(--cyan-deep) 100%); color: var(--text-onbright); box-shadow: 0 10px 30px -12px rgba(47,230,224,0.7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(47,230,224,0.85); color: var(--text-onbright); }
.btn-amber { background: linear-gradient(180deg, var(--amber-soft) 0%, var(--amber) 100%); color: var(--text-onbright); box-shadow: 0 10px 30px -12px rgba(245,184,56,0.7); }
.btn-amber:hover { transform: translateY(-2px); color: var(--text-onbright); }
.btn-ghost { background: rgba(255,255,255,0.03); border-color: var(--glass-line); color: var(--text); }
.btn-ghost:hover { border-color: var(--glass-line-hi); background: rgba(255,255,255,0.06); color: #fff; transform: translateY(-2px); }

/* ---- Top bar ------------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 90;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(6,13,22,0.92), rgba(6,13,22,0.72));
  border-bottom: 1px solid var(--glass-line);
}
.topbar-in { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 38px; width: auto; }
.topnav { display: flex; gap: 4px; margin-left: 8px; }
.topnav a {
  font-family: var(--f-mono); font-size: 12.5px; letter-spacing: 0.06em;
  color: var(--text-dim); padding: 9px 13px; border-radius: 8px; transition: color .15s, background .15s;
}
.topnav a:hover { color: #fff; background: rgba(255,255,255,0.04); }
.topnav a[aria-current="page"] { color: var(--cyan); background: rgba(47,230,224,0.08); }
.topbar-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--lime); padding: 6px 11px; border-radius: 999px;
  border: 1px solid rgba(124,227,139,0.28); background: rgba(124,227,139,0.07);
}
.status-pill .blip { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 8px 1px var(--lime); animation: blip 2s ease-in-out infinite; }
@keyframes blip { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.topbar .tel { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 13px; color: var(--text); }
.topbar .tel svg { width: 15px; height: 15px; color: var(--cyan); }
.topbar .tel:hover { color: var(--cyan); }
.topbar .btn { padding: 10px 16px; font-size: 0.85rem; }
.menu-btn { display: none; background: none; border: 1px solid var(--glass-line); border-radius: 8px; color: var(--text); padding: 8px; cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }

/* ---- Layout shell: side rail + content ----------------------------------- */
.layout { position: relative; }
.railnav {
  position: fixed; top: 50%; left: max(18px, calc((100vw - var(--shell)) / 2 - 16px));
  transform: translateY(-50%); z-index: 60;
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 12px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--glass-line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--panel-shadow);
}
.railnav a { display: flex; align-items: center; gap: 11px; padding: 6px 6px; border-radius: 8px; color: var(--text-faint); transition: color .18s; }
.railnav a:hover { color: var(--text); }
.rail-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; flex-shrink: 0; transition: all .2s ease; }
.rail-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.08em; white-space: nowrap; opacity: 0; max-width: 0; overflow: hidden; transition: opacity .2s ease, max-width .2s ease; }
.railnav:hover .rail-label { opacity: 1; max-width: 150px; }
.railnav a.active { color: var(--cyan); }
.railnav a.active .rail-dot { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 10px 1px var(--cyan); }
.railnav a.active .rail-label { opacity: 1; max-width: 150px; }

/* ---- Section scaffolding ------------------------------------------------- */
.console-section { padding-block: var(--pad-y); position: relative; }
.section-head { max-width: 720px; margin-bottom: 42px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin: 16px 0 14px; }
.readout {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-faint); display: flex; align-items: center; gap: 10px;
}
.readout::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, var(--glass-line), transparent); }

/* ---- HERO console -------------------------------------------------------- */
.hero {
  position: relative; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(48px, 7vw, 96px);
  overflow: hidden;
}
.hero-grid-lines {
  position: absolute; 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: 46px 46px; mask-image: radial-gradient(120% 90% at 70% 20%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 20%, #000 30%, transparent 78%);
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1.15fr; gap: 46px; align-items: center; }
.hero-copy h1 { margin: 20px 0 20px; }
.hero-copy h1 .hl { color: transparent; background: linear-gradient(120deg, var(--cyan), var(--amber-soft)); -webkit-background-clip: text; background-clip: text; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-family: var(--f-mono); font-size: 12px; color: var(--text-faint); }
.hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

/* Map panel with node graph + KPI counters */
.map-panel {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-line);
  box-shadow: var(--panel-shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.map-panel .panel-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--glass-line); font-family: var(--f-mono); font-size: 11.5px; color: var(--text-faint); letter-spacing: 0.1em;
}
.map-panel .panel-bar .dotset { display: flex; gap: 6px; }
.map-panel .panel-bar .dotset i { width: 9px; height: 9px; border-radius: 50%; display: block; background: rgba(255,255,255,0.18); }
.map-panel .panel-bar .dotset i:nth-child(1) { background: var(--rose); }
.map-panel .panel-bar .dotset i:nth-child(2) { background: var(--amber); }
.map-panel .panel-bar .dotset i:nth-child(3) { background: var(--lime); }
.map-panel .panel-bar .live { margin-left: auto; color: var(--lime); display: inline-flex; align-items: center; gap: 6px; }
.map-panel .panel-bar .live::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--lime); box-shadow: 0 0 8px 1px var(--lime); animation: blip 2s infinite; }
.map-figure { position: relative; background: radial-gradient(120% 130% at 80% 10%, rgba(47,230,224,0.10), transparent 55%), var(--deck); }
.map-figure svg { width: 100%; height: auto; display: block; }

/* KPI deck */
.kpi-deck { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--glass-line); }
.kpi { padding: 16px 16px 18px; border-right: 1px solid var(--glass-line); }
.kpi:last-child { border-right: none; }
.kpi .num { font-family: var(--f-mono); font-weight: 700; font-size: clamp(1.35rem, 2.4vw, 1.9rem); color: #fff; line-height: 1; letter-spacing: -0.02em; }
.kpi .num .unit { color: var(--cyan); }
.kpi .lbl { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-faint); margin-top: 8px; display: block; }

/* ---- Trade-lane pipeline ------------------------------------------------- */
.lane-flow { position: relative; }
.pipeline {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--glass-line); background: var(--glass); box-shadow: var(--panel-shadow);
}
.pipeline::before {
  content: ""; position: absolute; left: 6%; right: 6%; top: 74px; height: 2px;
  background: linear-gradient(90deg, var(--cyan-deep), var(--cyan), var(--amber));
  opacity: 0.5; z-index: 0;
}
.waypoint { position: relative; z-index: 1; padding: 30px 22px 26px; border-right: 1px solid var(--glass-line); }
.waypoint:last-child { border-right: none; }
.wp-node {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--deck-2); border: 1px solid var(--glass-line-hi); color: var(--cyan);
  box-shadow: 0 0 22px -6px rgba(47,230,224,0.5);
}
.waypoint:nth-child(4) .wp-node { color: var(--amber); box-shadow: 0 0 22px -6px rgba(245,184,56,0.5); }
.wp-node svg { width: 22px; height: 22px; }
.wp-code { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--text-faint); text-transform: uppercase; }
.waypoint h3 { margin: 4px 0 8px; font-size: 1.12rem; }
.waypoint p { font-size: 0.92rem; margin: 0; }

/* ---- Telemetry stat tiles ------------------------------------------------ */
.telemetry { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile {
  position: relative; padding: 26px 22px; border-radius: var(--r); overflow: hidden;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--panel-shadow);
  transition: transform .2s ease, border-color .2s ease;
}
.tile:hover { transform: translateY(-4px); border-color: var(--glass-line-hi); }
.tile::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--cyan), transparent); }
.tile.amber::after { background: linear-gradient(90deg, var(--amber), transparent); }
.tile .val { font-family: var(--f-mono); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.35rem); color: #fff; line-height: 1; }
.tile.amber .val { color: var(--amber-soft); }
.tile.cyan .val { color: var(--cyan-soft); }
.tile .cap { font-size: 0.9rem; color: var(--text-dim); margin-top: 12px; }

/* ---- Module grid (services) ---------------------------------------------- */
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module {
  position: relative; padding: 26px 24px 24px; border-radius: var(--r);
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--panel-shadow);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.module:hover { transform: translateY(-4px); border-color: var(--glass-line-hi); background: var(--glass-hi); }
.module .m-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.module .m-icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(160deg, rgba(47,230,224,0.16), rgba(47,230,224,0.03)); border: 1px solid rgba(47,230,224,0.28); color: var(--cyan); }
.module .m-icon svg { width: 24px; height: 24px; }
.module .m-id { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--text-faint); }
.module h3 { margin-bottom: 10px; }
.module p { font-size: 0.93rem; margin: 0; }
.module.feature { background: linear-gradient(165deg, rgba(245,184,56,0.10), var(--glass)); border-color: rgba(245,184,56,0.28); }
.module.feature .m-icon { background: linear-gradient(160deg, rgba(245,184,56,0.18), rgba(245,184,56,0.03)); border-color: rgba(245,184,56,0.32); color: var(--amber); }

/* ---- Timeline ------------------------------------------------------------ */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(180deg, var(--cyan), var(--amber)); opacity: 0.4; }
.tl-step { position: relative; padding: 0 0 30px 0; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content: ""; position: absolute; left: -34px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--deck-2); border: 2px solid var(--cyan); box-shadow: 0 0 12px -2px var(--cyan); }
.tl-step .tl-code { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--cyan); text-transform: uppercase; }
.tl-step h3 { margin: 4px 0 8px; }
.tl-step p { margin: 0; font-size: 0.95rem; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.figure-panel { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--glass-line); box-shadow: var(--panel-shadow); position: relative; }
.figure-panel img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.05) contrast(1.02); }
.figure-panel .fp-label { position: absolute; left: 14px; bottom: 14px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text); background: rgba(6,13,22,0.72); border: 1px solid var(--glass-line); padding: 6px 11px; border-radius: 8px; backdrop-filter: blur(6px); }

/* ---- Ticker -------------------------------------------------------------- */
.ticker-wrap { border-block: 1px solid var(--glass-line); background: rgba(10,20,33,0.6); overflow: hidden; padding-block: 16px; }
.ticker { display: flex; gap: 0; width: max-content; animation: scroll-x 42s linear infinite; }
.ticker .tk { display: inline-flex; align-items: center; gap: 12px; padding: 0 30px; font-family: var(--f-mono); font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.ticker .tk::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 8px 1px var(--cyan); }
.ticker .tk.up::before { background: var(--lime); box-shadow: 0 0 8px 1px var(--lime); }
.ticker .tk.amber::before { background: var(--amber); box-shadow: 0 0 8px 1px var(--amber); }
.ticker .tk b { color: var(--text); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-wrap:hover .ticker { animation-play-state: paused; }

/* ---- Coverage grid ------------------------------------------------------- */
.coverage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.region {
  padding: 22px; border-radius: var(--r); background: var(--glass);
  border: 1px solid var(--glass-line); transition: border-color .2s, transform .2s;
}
.region:hover { border-color: var(--glass-line-hi); transform: translateY(-3px); }
.region .r-icon { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(47,230,224,0.08); border: 1px solid rgba(47,230,224,0.22); color: var(--cyan); margin-bottom: 14px; }
.region .r-icon svg { width: 21px; height: 21px; }
.region h3 { font-size: 1.08rem; margin-bottom: 8px; }
.region p { font-size: 0.9rem; margin: 0 0 12px; }
.region .r-meta { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--text-faint); text-transform: uppercase; }

/* ---- Operator (founder) panel -------------------------------------------- */
.operator { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: stretch; }
.op-card {
  border-radius: var(--r-lg); padding: 28px; background: linear-gradient(170deg, var(--glass-hi), var(--glass));
  border: 1px solid var(--glass-line); box-shadow: var(--panel-shadow); position: relative; overflow: hidden;
}
.op-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 60% at 100% 0%, rgba(47,230,224,0.14), transparent 60%); pointer-events: none; }
.op-avatar { width: 66px; height: 66px; border-radius: 16px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; color: var(--text-onbright); background: linear-gradient(150deg, var(--cyan), var(--amber-soft)); margin-bottom: 18px; }
.op-role { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); }
.op-name { font-size: 1.5rem; margin: 6px 0 16px; }
.op-quote { font-size: 0.98rem; color: var(--text); border-left: 2px solid var(--amber); padding-left: 14px; margin: 0 0 18px; font-style: italic; }
.op-creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.op-creds li { font-family: var(--f-mono); font-size: 12px; color: var(--text-dim); padding-left: 18px; position: relative; }
.op-creds li::before { content: "▸"; position: absolute; left: 0; color: var(--cyan); }

/* ---- Directive (mission) ------------------------------------------------- */
.directive {
  position: relative; border-radius: var(--r-lg); padding: clamp(32px, 5vw, 56px);
  background: linear-gradient(150deg, rgba(14,58,95,0.5), var(--glass));
  border: 1px solid var(--glass-line); box-shadow: var(--panel-shadow); overflow: hidden;
}
.directive::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 40px 40px; opacity: 0.5; mask-image: radial-gradient(80% 80% at 90% 10%, #000, transparent 70%); -webkit-mask-image: radial-gradient(80% 80% at 90% 10%, #000, transparent 70%); }
.directive .d-in { position: relative; z-index: 1; max-width: 900px; }
.directive blockquote { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.35rem, 2.8vw, 2rem); line-height: 1.32; color: #fff; }
.directive cite { display: block; margin-top: 20px; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); font-style: normal; }

/* ---- Command bar (CTA) --------------------------------------------------- */
.command {
  position: relative; border-radius: var(--r-lg); padding: clamp(34px, 5vw, 60px);
  text-align: center; overflow: hidden;
  background: radial-gradient(120% 140% at 50% -20%, rgba(47,230,224,0.18), transparent 55%), var(--deck-2);
  border: 1px solid var(--glass-line-hi); box-shadow: var(--panel-shadow);
}
.command h2 { margin-bottom: 14px; }
.command p { max-width: 60ch; margin: 0 auto 26px; }
.command .cmd-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---- Page banner (interior) ---------------------------------------------- */
.page-banner { padding-top: clamp(48px, 6vw, 80px); padding-bottom: clamp(30px, 4vw, 48px); position: relative; }
.page-banner .pb-in { max-width: 820px; }
.page-banner h1 { margin: 18px 0 18px; }

/* ---- Prose (legal) ------------------------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 40px 0 14px; color: #fff; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-dim); }
.prose ul { padding-left: 20px; margin: 0 0 18px; }
.prose li { margin-bottom: 9px; }
.prose code { font-family: var(--f-mono); font-size: 0.85em; background: rgba(47,230,224,0.1); color: var(--cyan-soft); padding: 2px 6px; border-radius: 5px; }
.prose blockquote { margin: 0 0 18px; padding: 18px 22px; border-left: 3px solid var(--cyan); background: var(--glass); border-radius: 0 var(--r) var(--r) 0; font-family: var(--f-mono); font-size: 0.9rem; color: var(--text-dim); line-height: 1.8; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Contact ------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start; }
.form-panel { padding: 30px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--panel-shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--f-body); font-size: 0.98rem; color: var(--text);
  background: rgba(6,13,22,0.6); border: 1px solid var(--glass-line); border-radius: 10px; padding: 12px 14px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(47,230,224,0.16); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232FE6E0' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note { font-family: var(--f-mono); font-size: 12px; color: var(--text-faint); margin: 0; }
.info-panel { padding: 28px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--panel-shadow); }
.info-panel dl { margin: 0 0 20px; }
.info-panel dl:last-child { margin-bottom: 0; }
.info-panel dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 5px; }
.info-panel dd { margin: 0; color: var(--text); font-size: 0.96rem; }
.info-panel dd a { color: var(--text); }
.info-panel dd a:hover { color: var(--cyan); }

/* ---- Generic list panels ------------------------------------------------- */
.spec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.spec-list li { display: flex; gap: 13px; align-items: flex-start; }
.spec-list .tick { flex-shrink: 0; width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgba(47,230,224,0.1); border: 1px solid rgba(47,230,224,0.28); color: var(--cyan); }
.spec-list .tick svg { width: 15px; height: 15px; }
.spec-list span:last-child { color: var(--text-dim); font-size: 0.96rem; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.panel {
  padding: 26px; border-radius: var(--r); background: var(--glass);
  border: 1px solid var(--glass-line); box-shadow: var(--panel-shadow);
}
.panel h3 { margin-bottom: 12px; }
.panel p { font-size: 0.95rem; margin-bottom: 0; }
.panel.feature { border-color: rgba(245,184,56,0.3); background: linear-gradient(160deg, rgba(245,184,56,0.08), var(--glass)); }

.data-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.data-grid .cell { padding: 18px 20px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--glass-line); }
.data-grid dt { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; }
.data-grid dd { margin: 0; color: var(--text); }

.value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value-item { padding: 22px; border-radius: var(--r); background: var(--glass); border: 1px solid var(--glass-line); }
.value-item .v-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(47,230,224,0.08); border: 1px solid rgba(47,230,224,0.2); color: var(--cyan); margin-bottom: 14px; }
.value-item .v-icon svg { width: 20px; height: 20px; }
.value-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.value-item p { font-size: 0.9rem; margin: 0; }

/* ---- Footer -------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--glass-line); background: linear-gradient(180deg, transparent, rgba(6,13,22,0.7)); padding-top: 56px; margin-top: 40px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 40px; }
.footer-brand img { height: 40px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; max-width: 34ch; }
.site-footer h4 { font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; font-weight: 600; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--text-dim); font-size: 0.94rem; }
.site-footer ul a:hover { color: var(--cyan); }
.foot-contact { font-family: var(--f-mono); font-size: 12.5px; }
.foot-contact li { color: var(--text-dim); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; padding: 22px 0 40px; border-top: 1px solid var(--glass-line); font-family: var(--f-mono); font-size: 11.5px; color: var(--text-faint); }
.footer-bottom a { color: var(--text-faint); }
.footer-bottom a:hover { color: var(--cyan); }

/* ---- Reveal animation ---------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---- Responsive ---------------------------------------------------------- */
/* Side rail only appears on very wide viewports where the left gutter has real
   empty room, positioned in that gutter to the LEFT of the centered container so
   it never overlaps hero/content. Hidden below 1500px. */
@media (max-width: 1699.98px) {
  .railnav { display: none; }
}
@media (min-width: 1700px) {
  .railnav { left: max(16px, calc((100vw - var(--shell)) / 2 - 190px)); }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .modules, .coverage { grid-template-columns: repeat(2, 1fr); }
  .telemetry { grid-template-columns: repeat(2, 1fr); }
  .operator { grid-template-columns: 1fr; }
  .split-2 { grid-template-columns: 1fr; gap: 28px; }
  .split-2.reverse .figure-panel { order: -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .topnav { display: none; }
  .topbar .tel, .status-pill { display: none; }
  .menu-btn { display: inline-flex; }
  .topbar-in { height: 60px; }
  .topnav.open {
    display: flex; position: absolute; top: 60px; left: 0; right: 0; flex-direction: column; gap: 2px;
    background: var(--deck); border-bottom: 1px solid var(--glass-line); padding: 12px 20px 18px; margin: 0;
  }
  .topnav.open a { padding: 12px 10px; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline::before { display: none; }
  .waypoint { border-right: none; border-bottom: 1px solid var(--glass-line); }
  .waypoint:last-child { border-bottom: none; }
  .kpi-deck { grid-template-columns: repeat(2, 1fr); }
  .kpi { border-bottom: 1px solid var(--glass-line); }
  .kpi:nth-child(2) { border-right: none; }
}
@media (max-width: 560px) {
  .modules, .coverage, .telemetry, .two-col, .value-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .kpi-deck { grid-template-columns: 1fr; }
  .kpi { border-right: none; }
  .hero-actions .btn, .command .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ticker { animation: none; }
}
