/* ============================================================
   Velo Proxy — Design System
   "Full speed. Zero logs."
   Palette: deep indigo midnight, velocity-stream gradient
   Type: Archivo (expanded display) + Schibsted Grotesk (body)
   ============================================================ */

:root {
  --ink:      #0A0E24;
  --ink-2:    #101638;
  --ink-3:    #161D45;
  --snow:     #F1F3FF;
  --fog:      #A2AADB;
  --fog-dim:  #6E77A8;
  --violet:   #8B7BFF;
  --cyan:     #4CC9F0;
  --stream:   linear-gradient(90deg, #8B7BFF 0%, #4CC9F0 100%);
  --stream-soft: linear-gradient(90deg, rgba(139,123,255,.16), rgba(76,201,240,.16));
  --line:     rgba(139, 123, 255, 0.16);
  --line-soft: rgba(162, 170, 219, 0.12);
  --radius-panel: 18px;
  --radius-btn: 10px;
  --container: 1180px;
  --header-h: 76px;
  --font-display: "Archivo", "Helvetica Neue", sans-serif;
  --font-body: "Schibsted Grotesk", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--ink);
  color: var(--fog);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: rgba(139, 123, 255, .35); color: var(--snow); }

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

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

/* ---------- Typography ---------- */

h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  color: var(--snow);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.08;
}

.display-xl {
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  font-weight: 800;
  font-variation-settings: "wdth" 118;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.display-l {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 700;
  font-variation-settings: "wdth" 110;
}

.display-m {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 700;
  font-variation-settings: "wdth" 105;
  line-height: 1.2;
}

.lead {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  line-height: 1.65;
  color: var(--fog);
  max-width: min(60ch, 100%);
}

.small { font-size: .88rem; color: var(--fog-dim); line-height: 1.6; }

.link-accent {
  color: var(--cyan);
  border-bottom: 1px solid rgba(76, 201, 240, .35);
  transition: border-color .2s;
}
.link-accent:hover { border-color: var(--cyan); }

/* ---------- Layout ---------- */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.section {
  padding: clamp(76px, 10vw, 136px) 0;
  position: relative;
}

.section + .section { border-top: 1px solid var(--line-soft); }

.section-head { max-width: 720px; margin-bottom: clamp(44px, 5vw, 68px); }
.section-head .lead { margin-top: 18px; }

/* ---------- Buttons & chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--stream);
  color: #0A0E24;
  font-weight: 700;
  box-shadow: 0 4px 24px rgba(108, 140, 255, .25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(108, 140, 255, .42);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--snow);
  background: rgba(22, 29, 69, .35);
}
.btn-ghost:hover { border-color: rgba(139, 123, 255, .55); background: rgba(22, 29, 69, .7); }

.btn-sm { padding: 10px 18px; font-size: .9rem; }

.btn svg { width: 20px; height: 20px; flex: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--fog);
  background: rgba(16, 22, 56, .5);
}

.chip .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--stream);
  flex: none;
}

.pill-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(16, 22, 56, .6);
  font-size: .85rem;
  font-weight: 500;
  color: var(--fog);
}

.pill-status .live-dot {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}
.pill-status .live-dot::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(76, 201, 240, .5);
  animation: ping 2.4s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes ping {
  0% { transform: scale(.6); opacity: 1; }
  80%, 100% { transform: scale(1.6); opacity: 0; }
}

/* ---------- Skip link & store button ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink-2);
  color: var(--snow);
  padding: 12px 20px;
  border-radius: 0 0 10px 0;
  border: 1px solid var(--line);
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.btn-play .play-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.18;
}
.btn-play .play-text small {
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .05em;
  opacity: .72;
}
.btn-play .play-text strong {
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-weight: 800;
  font-variation-settings: "wdth" 105;
  letter-spacing: .01em;
}

.hero .container { position: relative; }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background .25s ease, border-color .25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(10, 14, 36, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 36px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-right: auto;
}

.brand-mark { width: 34px; height: 34px; flex: none; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 115;
  font-size: 1.12rem;
  letter-spacing: .01em;
  color: var(--snow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-links a {
  font-size: .92rem;
  font-weight: 500;
  color: var(--fog);
  transition: color .18s;
  position: relative;
}
.nav-links a:hover { color: var(--snow); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 2px;
  background: var(--stream);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--snow);
  border-radius: 2px;
  position: relative;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-panel {
  display: none;
  position: fixed;
  top: var(--header-h); left: 0; right: 0;
  z-index: 99;
  background: rgba(10, 14, 36, .97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
  padding: 12px 28px 24px;
}
.nav-open .mobile-panel { display: block; }
.mobile-panel a {
  display: block;
  padding: 13px 4px;
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--fog);
  border-bottom: 1px solid var(--line-soft);
}
.mobile-panel a:last-of-type { border-bottom: none; }
.mobile-panel .btn { width: 100%; margin-top: 16px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(48px, 8vh, 96px));
  padding-bottom: clamp(64px, 9vh, 110px);
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58% 70% at 78% 34%, rgba(139, 123, 255, .14) 0%, transparent 62%),
    radial-gradient(46% 56% at 12% 78%, rgba(76, 201, 240, .09) 0%, transparent 60%),
    var(--ink);
}

#streams {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(105deg, transparent 4%, black 30%, black 72%, transparent 96%);
  mask-image: linear-gradient(105deg, transparent 4%, black 30%, black 72%, transparent 96%);
  opacity: .85;
}

.hero-gridlines {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero-gridlines .gl {
  position: absolute;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--line-soft) 18%, var(--line-soft) 72%, transparent);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  min-height: min(78vh, 720px);
}

.hero-copy { max-width: 640px; min-width: 0; }
.hero-phone { min-width: 0; }

.hero-title { margin: 26px 0 24px; }
.hero-title .line2 { color: var(--fog); }

.hero-sub { margin-bottom: 36px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Phone mockup ---------- */

.hero-phone {
  display: flex;
  justify-content: center;
  position: relative;
}

.hero-phone::before {
  content: "";
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(139, 123, 255, .2) 0%, transparent 66%);
  filter: blur(28px);
  z-index: -1;
}

.phone {
  width: min(318px, 84vw);
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(160deg, #232B57, #0C1130 55%);
  border: 1px solid rgba(162, 170, 219, .22);
  box-shadow:
    0 36px 90px rgba(4, 6, 20, .66),
    inset 0 1px 0 rgba(241, 243, 255, .12);
}

.phone-screen {
  border-radius: 34px;
  background: linear-gradient(178deg, #0D1233 0%, #0A0E24 62%, #0C1236 100%);
  overflow: hidden;
  position: relative;
  padding: 0 22px 24px;
}

.app-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 4px 6px;
  font-size: .72rem;
  font-weight: 600;
  color: var(--fog);
  letter-spacing: .04em;
}
.app-statusbar .sb-icons { display: flex; gap: 5px; align-items: center; }
.app-statusbar .sb-icons i {
  display: block; width: 14px; height: 9px;
  border: 1.5px solid var(--fog);
  border-radius: 2px;
  position: relative;
}
.app-statusbar .sb-icons i::after {
  content: ""; position: absolute; inset: 1.5px; width: 60%;
  background: var(--fog); border-radius: 1px;
}
.app-statusbar .sb-icons svg { width: 14px; height: 11px; }

.app-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 2px 4px;
}
.app-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 115;
  font-size: .82rem;
  letter-spacing: .08em;
  color: var(--snow);
}
.app-gear { color: var(--fog-dim); font-size: 1rem; line-height: 1; }

.app-ring-wrap {
  display: flex;
  justify-content: center;
  padding: 26px 0 20px;
  position: relative;
}

.app-ring {
  width: 168px; height: 168px;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 42%, rgba(139, 123, 255, .16), transparent 62%),
    #0C1130;
  border: 1px solid rgba(139, 123, 255, .3);
}
.app-ring::before {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  background: conic-gradient(from 210deg, #8B7BFF, #4CC9F0, rgba(76, 201, 240, .05) 72%, rgba(139, 123, 255, .05) 88%, #8B7BFF);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.4px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.4px));
  animation: ring-breathe 5.5s ease-in-out infinite;
}
@keyframes ring-breathe {
  0%, 100% { opacity: .85; }
  50% { opacity: .45; }
}
.app-ring-inner { text-align: center; }
.app-ring-inner svg { width: 44px; height: 44px; margin: 0 auto 10px; }
.app-state {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "wdth" 108;
  font-size: 1.02rem;
  letter-spacing: .12em;
  color: var(--snow);
}
.app-state-sub { font-size: .74rem; color: var(--fog-dim); margin-top: 3px; letter-spacing: .02em; }

.app-location {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  padding: 12px 15px;
  background: rgba(16, 22, 56, .55);
  margin-bottom: 12px;
}
.app-loc-name { font-weight: 600; font-size: .92rem; color: var(--snow); }
.app-loc-hint { font-size: .72rem; color: var(--fog-dim); margin-top: 1px; }
.app-loc-ping { font-size: .76rem; color: var(--cyan); font-weight: 600; }

.app-speeds {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.app-speed {
  border: 1px solid var(--line-soft);
  border-radius: 13px;
  padding: 11px 15px;
  background: rgba(16, 22, 56, .4);
}
.app-speed .dir { font-size: .7rem; color: var(--fog-dim); letter-spacing: .06em; }
.app-speed .val {
  font-family: var(--font-display);
  font-weight: 700;
  font-variation-settings: "wdth" 105;
  font-size: 1.16rem;
  color: var(--snow);
}
.app-speed .val small { font-size: .66rem; font-weight: 500; color: var(--fog-dim); margin-left: 3px; }

.app-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.app-chips .chip { padding: 5px 11px; font-size: .7rem; background: rgba(139, 123, 255, .08); }

.app-foot {
  border-top: 1px solid var(--line-soft);
  padding-top: 11px;
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--fog-dim);
}
.app-foot .nolog { color: var(--cyan); }

/* ---------- Stats band ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.stat {
  padding: clamp(30px, 4vw, 46px) 24px;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 18%; bottom: 18%;
  width: 1px;
  background: var(--line-soft);
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 115;
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  color: var(--snow);
  letter-spacing: -0.02em;
  line-height: 1;
}
.stat-num .suf {
  background: var(--stream);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label { margin-top: 10px; font-size: .88rem; color: var(--fog-dim); }

/* ---------- Bento features ---------- */

.bento {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.panel {
  background: linear-gradient(180deg, rgba(16, 22, 56, .82), rgba(12, 16, 42, .9));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-panel);
  padding: clamp(26px, 3vw, 36px);
  transition: border-color .25s ease;
}
.panel:hover { border-color: var(--line); }

.bento-lg {
  grid-row: span 3;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.bento-lg::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--stream);
  opacity: .7;
}

.bento-lg .display-m { margin: 14px 0 14px; max-width: 22ch; }
.bento-lg p { font-size: .95rem; max-width: 44ch; }

.nologs-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .84rem;
  letter-spacing: .08em;
  color: var(--cyan);
}

.nologs-list {
  margin-top: 26px;
  border-top: 1px solid var(--line-soft);
  flex: 1;
}
.nologs-list li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line-soft);
  font-size: .9rem;
  color: var(--fog);
}
.nologs-list .x {
  flex: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(255, 122, 148, .5);
  color: #FF7A94;
  font-size: .68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(3px);
}
.bento-lg .small { margin-top: 20px; }

.cell-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(139, 123, 255, .09);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet);
  margin-bottom: 18px;
}
.cell-icon svg { width: 22px; height: 22px; }

.panel h3 { font-size: 1.06rem; margin-bottom: 8px; letter-spacing: 0; }
.panel p { font-size: .9rem; line-height: 1.62; color: var(--fog); }

/* ---------- Security / spec sheet ---------- */

.security-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.spec-sheet { border-top: 1px solid var(--line); }
.spec-row {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 20px;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line-soft);
  align-items: baseline;
}
.spec-k {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .88rem;
  color: var(--snow);
  letter-spacing: .01em;
}
.spec-v { font-size: .92rem; color: var(--fog); }
.spec-v .hl { color: var(--cyan); font-weight: 600; }

.tunnel-diagram {
  margin-top: 40px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-panel);
  padding: 28px 26px 24px;
  background: rgba(16, 22, 56, .45);
}
.tunnel-diagram .td-title { font-size: .8rem; color: var(--fog-dim); margin-bottom: 22px; letter-spacing: .02em; }
.td-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.td-node {
  flex: 1;
  text-align: center;
  position: relative;
  padding: 0 6px;
}
.td-node .td-dot {
  width: 12px; height: 12px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--violet);
  position: relative;
  z-index: 1;
}
.td-node:nth-child(odd) .td-dot { border-color: var(--cyan); }
.td-node .td-name { font-size: .84rem; font-weight: 600; color: var(--snow); }
.td-node .td-sub { font-size: .72rem; color: var(--fog-dim); margin-top: 3px; line-height: 1.5; }
.td-line {
  position: absolute;
  top: 5px; left: 50%; right: -50%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(139,123,255,.55) 0 6px, transparent 6px 12px);
}
.td-node:last-child .td-line { display: none; }

/* ---------- Network ---------- */

.regions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.region {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-panel);
  padding: 26px 24px;
  background: rgba(16, 22, 56, .4);
  transition: border-color .25s;
}
.region:hover { border-color: var(--line); }

.region-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.region-head h3 { font-size: 1rem; letter-spacing: 0; }
.region-head .count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  color: var(--cyan);
}

.region .chips { display: flex; flex-wrap: wrap; gap: 7px; }
.region .chip { padding: 4.5px 11px; font-size: .76rem; background: rgba(139, 123, 255, .06); }

.network-note { margin-top: 26px; display: flex; gap: 12px; align-items: baseline; }
.network-note .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--stream); flex: none; transform: translateY(-2px); }

/* ---------- Steps ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  position: relative;
}

.step {
  padding: 34px 36px 34px 0;
  position: relative;
}
.step + .step { padding-left: 36px; border-left: 1px solid var(--line-soft); }

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-variation-settings: "wdth" 115;
  font-size: 2.6rem;
  line-height: 1;
  background: var(--stream);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 20px;
}
.step h3 { font-size: 1.2rem; margin-bottom: 10px; }
.step p { font-size: .93rem; max-width: 34ch; }

/* ---------- Use cases ---------- */

.usecases {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 44px;
}

.usecase {
  display: flex;
  gap: 18px;
  padding: 24px 6px;
  border-bottom: 1px solid var(--line-soft);
  align-items: flex-start;
}

.usecase .uc-icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  background: rgba(76, 201, 240, .07);
}
.usecase .uc-icon svg { width: 20px; height: 20px; }
.usecase h3 { font-size: 1.02rem; margin-bottom: 6px; letter-spacing: 0; }
.usecase p { font-size: .89rem; line-height: 1.6; }

/* ---------- FAQ ---------- */

.faq { max-width: 840px; margin: 0 auto; border-top: 1px solid var(--line-soft); }

.faq-item { border-bottom: 1px solid var(--line-soft); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 6px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.04rem;
  color: var(--snow);
  letter-spacing: 0;
  transition: color .2s;
}
.faq-q:hover { color: var(--cyan); }

.faq-q .sign {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
  transition: transform .3s ease, border-color .3s;
}
.faq-q .sign::before,
.faq-q .sign::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 10px; height: 1.6px;
  background: var(--snow);
  transform: translate(-50%, -50%);
  border-radius: 2px;
}
.faq-q .sign::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .3s ease; }
.faq-item.open .sign { border-color: var(--cyan); }
.faq-item.open .sign::after { transform: translate(-50%, -50%) rotate(0deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; }
.faq-a p {
  padding: 0 60px 26px 6px;
  font-size: .94rem;
  max-width: 76ch;
}

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-top: 1px solid var(--line);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 90% at 50% 118%, rgba(139, 123, 255, .22) 0%, transparent 64%),
    radial-gradient(34% 60% at 50% -18%, rgba(76, 201, 240, .12) 0%, transparent 60%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band .display-l { max-width: 20ch; margin: 0 auto 18px; }
.cta-band .lead { margin: 0 auto 38px; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-bottom: 34px; }
.cta-req { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: clamp(56px, 7vw, 84px) 0 34px;
  background: rgba(8, 11, 30, .6);
}

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 40px;
  padding-bottom: 48px;
}

.foot-brand .brand { margin-bottom: 18px; }
.foot-tagline { font-size: .9rem; max-width: 34ch; margin-bottom: 18px; }
.foot-email { font-size: .88rem; color: var(--cyan); word-break: break-all; }

.foot-col h4 {
  font-family: var(--font-display);
  font-size: .84rem;
  font-weight: 700;
  color: var(--snow);
  letter-spacing: .04em;
  margin-bottom: 18px;
}
.foot-col a {
  display: block;
  padding: 5.5px 0;
  font-size: .9rem;
  color: var(--fog-dim);
  transition: color .18s;
}
.foot-col a:hover { color: var(--snow); }

.foot-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  align-items: baseline;
}
.foot-bottom .small { max-width: 78ch; }

/* ---------- Legal pages ---------- */

.legal-hero {
  padding-top: calc(var(--header-h) + clamp(52px, 8vh, 92px));
  padding-bottom: clamp(36px, 5vh, 56px);
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(52% 80% at 22% 0%, rgba(139, 123, 255, .13) 0%, transparent 62%);
  pointer-events: none;
}
.legal-hero .container { position: relative; }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.legal-title { margin: 20px 0 16px; max-width: 24ch; }

.legal-layout {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: clamp(36px, 5vw, 84px);
  padding-bottom: clamp(72px, 9vw, 120px);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  border-left: 1px solid var(--line-soft);
  padding-left: 20px;
  max-height: calc(100vh - var(--header-h) - 56px);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--ink-3) transparent;
}
.legal-toc .toc-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .08em;
  color: var(--fog-dim);
  margin-bottom: 14px;
}
.legal-toc a {
  display: block;
  padding: 6px 0;
  font-size: .84rem;
  line-height: 1.45;
  color: var(--fog-dim);
  transition: color .18s;
  border-left: 2px solid transparent;
  padding-left: 12px;
  margin-left: -14px;
}
.legal-toc a:hover { color: var(--snow); }
.legal-toc a.active {
  color: var(--cyan);
  border-left-color: var(--cyan);
}

.legal-doc { max-width: 760px; font-size: .97rem; }

.legal-section {
  padding-top: 44px;
  margin-top: 44px;
  border-top: 1px solid var(--line-soft);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.legal-section:first-child { border-top: none; margin-top: 0; padding-top: 0; }

.legal-section h2 {
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  font-variation-settings: "wdth" 105;
  margin-bottom: 20px;
  display: flex;
  gap: 14px;
  align-items: baseline;
}
.legal-section h2 .sec-no {
  font-size: .82em;
  background: var(--stream);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.legal-section h3 {
  font-size: 1.04rem;
  margin: 28px 0 12px;
  letter-spacing: 0;
  font-variation-settings: "wdth" 102;
}

.legal-section p { margin-bottom: 16px; }
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul.doc-list,
.legal-section ol.doc-list { margin: 0 0 18px; }
.doc-list li {
  position: relative;
  padding: 5px 0 5px 24px;
  font-size: .95rem;
}
.doc-list li::before {
  content: "";
  position: absolute;
  left: 4px; top: 15px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--stream);
  opacity: .8;
}
.doc-list li strong { color: var(--snow); font-weight: 600; }

.doc-callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--violet);
  border-radius: 0 12px 12px 0;
  background: rgba(139, 123, 255, .07);
  padding: 20px 24px;
  margin: 22px 0;
  font-size: .95rem;
  color: var(--fog);
}
.doc-callout strong { color: var(--snow); }

.doc-table-wrap { overflow-x: auto; margin: 20px 0 24px; }
table.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 480px;
}
.doc-table th {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--snow);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(139, 123, 255, .08);
}
.doc-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.doc-table tr:last-child td { border-bottom: none; }
.doc-table td:first-child { color: var(--snow); font-weight: 600; font-size: .88rem; }

.legal-contact {
  margin-top: 52px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-panel);
  background: rgba(16, 22, 56, .5);
  padding: 28px 30px;
}
.legal-contact h3 { margin: 0 0 10px; font-size: 1.05rem; }
.legal-contact p { margin-bottom: 8px; }

.legal-nav-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--line-soft);
  flex-wrap: wrap;
}

/* ---------- Reveal animation ---------- */
/* Hidden state only applies when JS is running (html.js), so content
   is never invisible without scripts. */

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-copy { max-width: 100%; }
  .hero-phone { margin-top: 52px; }
  .bento { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bento-lg { grid-column: span 2; grid-row: span 1; }
  .regions { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .security-grid { grid-template-columns: minmax(0, 1fr); }
  .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .legal-toc {
    position: static;
    max-height: none;
    border-left: none;
    border-top: 1px solid var(--line-soft);
    padding: 20px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 28px;
  }
  .legal-toc .toc-label { grid-column: span 2; }
  .legal-toc a { border-left: none; padding-left: 0; margin-left: 0; }
  .legal-toc a.active { color: var(--cyan); border-left: none; text-decoration: underline; text-underline-offset: 4px; }
}

@media (max-width: 860px) {
  .nav-links, .nav > .btn { display: none; }
  .nav-toggle { display: flex; }
  .stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .stat:nth-child(3)::before { display: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { padding: 26px 0; }
  .step + .step { padding-left: 0; border-left: none; border-top: 1px solid var(--line-soft); }
  .usecases { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-brand { grid-column: span 2; }
  .spec-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento-lg { grid-column: span 1; }
  .regions { grid-template-columns: minmax(0, 1fr); }
  .stats { grid-template-columns: minmax(0, 1fr); }
  .stat::before { display: none !important; }
  .stat + .stat { border-top: 1px solid var(--line-soft); }
  .td-flow { flex-direction: column; gap: 20px; }
  .td-node { text-align: left; display: flex; gap: 14px; align-items: flex-start; padding: 0; }
  .td-node .td-dot { margin: 5px 0 0; }
  .td-line { display: none; }
  .td-flow { position: relative; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-brand { grid-column: span 1; }
  .legal-toc { grid-template-columns: minmax(0, 1fr); }
  .legal-toc .toc-label { grid-column: span 1; }
  .hero-actions .btn { width: 100%; }
  .faq-a p { padding-right: 12px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  #streams { display: none; }
}
