/* ============================================================
   NimbusCDN — design system
   Dark technical. Single stylesheet, token-driven.
   ============================================================ */

/* ---------- 0. Fallback metrics ----------
   display=swap reflows every text block when the webfont lands. These faces make the
   system fallback occupy the same space as the real font, so the swap is near-invisible. */
@font-face {
  font-family: "Inter fallback";
  src: local("Helvetica Neue"), local("Arial"), local("Liberation Sans");
  size-adjust: 107.12%;
  ascent-override: 90.2%;
  descent-override: 22.48%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "JetBrains Mono fallback";
  src: local("Menlo"), local("Consolas"), local("DejaVu Sans Mono");
  size-adjust: 97%;
  ascent-override: 102%;
  descent-override: 30%;
  line-gap-override: 0%;
}

/* ---------- 1. Tokens ---------- */
:root {
  /* surfaces */
  --bg:            #05070e;
  --bg-elev:       #0a0e1a;
  --surface:       #0e1424;
  --surface-2:     #131b2e;
  --line:          rgba(140, 165, 215, 0.14);
  --line-strong:   rgba(140, 165, 215, 0.28);

  /* ink */
  --ink:           #eaf0fb;
  --ink-2:         #a9b6ce;
  --ink-3:         #76849e;

  /* brand */
  --accent:        #35e0ff;
  --accent-2:      #7c6cff;
  --accent-3:      #2bd8a4;
  --warn:          #ffb545;
  --danger:        #ff6b7d;

  --accent-soft:   rgba(53, 224, 255, 0.12);
  --accent-line:   rgba(53, 224, 255, 0.38);

  /* type */
  --font: "Inter", "Inter fallback", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "JetBrains Mono fallback", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* metrics */
  --nav-h: 68px;
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: var(--accent); color: #05070e; }

/* ---------- 2b. Focus ----------
   Nothing here defined a focus style, so keyboard users got only the UA default
   against a dark, custom-coloured UI. Make it explicit and high-contrast. */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 5px;
}
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 12px 18px; border-radius: 0 0 10px 0;
  background: var(--accent); color: #04070f; font-weight: 650;
}
.skip:focus { left: 0; }
main:focus { outline: none; }   /* focused only via the skip link; no ring on a page region */

/* ---------- 3. Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: 104px 0; position: relative; }
.section--tight { padding: 72px 0; }
.section--alt { background: linear-gradient(180deg, transparent, var(--bg-elev) 12%, var(--bg-elev) 88%, transparent); }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
/* Grid items default to min-width:auto, so a wide child (a table, a long token) can
   push its track past the container and scroll the whole page sideways. */
.split > *, .grid > *, .legal > * { min-width: 0; }

/* ---------- 4. Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid var(--accent-line);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.h1 { font-size: clamp(2.35rem, 4.1vw, 3.55rem); font-weight: 700; letter-spacing: -0.035em; }
.h2 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 680; letter-spacing: -0.03em; }
.h3 { font-size: 1.28rem; font-weight: 640; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--ink-2); line-height: 1.7; }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: 0.86em; letter-spacing: -0.01em; }
.grad {
  background: linear-gradient(100deg, var(--accent) 0%, #8fe6ff 35%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head .h2 { margin: 18px 0 16px; }
.section-head--center { margin-inline: auto; text-align: center; }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 10px;
  font-size: 0.94rem; font-weight: 600; white-space: nowrap;
  transition: transform .18s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), #35b8ff 55%, var(--accent-2));
  color: #04070f; box-shadow: 0 10px 30px -12px rgba(53, 224, 255, 0.75);
}
.btn--primary:hover { box-shadow: 0 16px 42px -12px rgba(53, 224, 255, 0.9); transform: translateY(-1px); }
.btn--ghost { border: 1px solid var(--line-strong); color: var(--ink); background: rgba(255,255,255,0.02); }
.btn--ghost:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.btn--sm { height: 38px; padding: 0 16px; font-size: 0.875rem; }
.btn--lg { height: 52px; padding: 0 28px; font-size: 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 0.93rem; }
.link-arrow svg { transition: transform .2s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- 6. Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; height: var(--nav-h); z-index: 80;
  display: flex; align-items: center;
  background: rgba(5, 7, 14, 0.62);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease;
}
.nav.is-stuck { background: rgba(5, 7, 14, 0.92); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; gap: 36px; width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.06rem; letter-spacing: -0.02em; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 13px; border-radius: 8px;
  font-size: 0.925rem; font-weight: 520; color: var(--ink-2);
  transition: color .18s ease, background .18s ease;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--ink); background: rgba(255,255,255,0.05); }
.nav__link.is-active { color: var(--ink); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--accent);
}
.nav__cta { display: flex; align-items: center; gap: 10px; }
.nav__burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line); }

/* dropdown */
.has-menu { position: relative; }
.menu {
  position: absolute; top: calc(100% + 10px); left: -12px; width: 460px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px;
  display: grid; gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-menu:hover .menu, .menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.menu__item { display: flex; gap: 12px; padding: 12px; border-radius: 10px; transition: background .16s ease; }
.menu__item:hover { background: var(--surface-2); }
.menu__ico { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }
.menu__t { display: block; font-size: 0.93rem; font-weight: 600; }
.menu__d { display: block; font-size: 0.82rem; color: var(--ink-3); line-height: 1.5; margin-top: 2px; }

/* mobile drawer */
.drawer {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 79;
  background: var(--bg); padding: 24px; overflow-y: auto;
  display: none; flex-direction: column; gap: 6px;
}
.drawer.is-open { display: flex; }
/* The drawer belongs to the mobile breakpoint only. Relying on JS alone let the
   overlay survive a rotation into desktop width, where the burger that dismisses
   it is hidden — so gate it in CSS and let JS handle only the scroll lock. */
@media (min-width: 901px) { .drawer, .drawer.is-open { display: none; } }
/* Scroll lock is scoped to the same breakpoint, so widening the viewport releases it
   without needing a resize event to fire. */
@media (max-width: 900px) { body.is-drawer-open { overflow: hidden; } }
.drawer a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 1.05rem; font-weight: 550; }
.drawer .btn { margin-top: 18px; }

/* ---------- 7. Hero ---------- */
.hero { position: relative; padding: calc(var(--nav-h) + 96px) 0 96px; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__bg::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 760px;
  background:
    radial-gradient(52% 58% at 22% 8%, rgba(53,224,255,0.20), transparent 62%),
    radial-gradient(46% 52% at 82% 22%, rgba(124,108,255,0.20), transparent 64%);
  filter: blur(8px);
}
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(140,165,215,0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140,165,215,0.075) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 85% 62% at 50% 22%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 85% 62% at 50% 22%, #000 35%, transparent 78%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.12fr 0.88fr; gap: 48px; align-items: center; }
.hero__copy { max-width: 620px; }
.hero__copy .h1 { margin: 22px 0 22px; }
.hero__copy .lead { max-width: 540px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; font-size: 0.85rem; color: var(--ink-3); }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.tick { color: var(--accent-3); }

/* ---------- 8. Globe ---------- */
.globe { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; margin-inline: auto; }
.globe svg { width: 100%; height: 100%; overflow: visible; }
.globe__ring { fill: none; stroke: rgba(140,165,215,0.17); stroke-width: 1; }
.globe__ring--lit { stroke: rgba(53,224,255,0.34); }
.globe__core { fill: url(#globeFill); }
.pop { fill: var(--accent); }
.pop--pulse { animation: popPulse 2.6s ease-out infinite; transform-origin: center; }
@keyframes popPulse { 0% { r: 3; opacity: .9 } 70% { r: 16; opacity: 0 } 100% { r: 16; opacity: 0 } }
.arc { fill: none; stroke: url(#arcGrad); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 240; stroke-dashoffset: 240; animation: arcDraw 4.4s ease-in-out infinite; }
@keyframes arcDraw {
  0%   { stroke-dashoffset: 240; opacity: 0 }
  18%  { opacity: 1 }
  55%  { stroke-dashoffset: 0; opacity: 1 }
  78%  { stroke-dashoffset: -240; opacity: 0 }
  100% { stroke-dashoffset: -240; opacity: 0 }
}
.globe__badge {
  position: absolute; display: flex; align-items: center; gap: 9px;
  padding: 9px 13px; border-radius: 11px;
  background: rgba(14, 20, 36, 0.86); border: 1px solid var(--line-strong);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: var(--shadow);
  font-size: 0.8rem; white-space: nowrap;
}
.globe__badge b { font-size: 0.95rem; font-weight: 650; }
.globe__badge--a { top: 8%; left: -6%; }
.globe__badge--b { bottom: 16%; right: -8%; }
.globe__badge--c { bottom: -2%; left: 10%; }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 0 0 rgba(43,216,164,.6); animation: live 2s infinite; flex: none; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(43,216,164,.55) } 70% { box-shadow: 0 0 0 9px rgba(43,216,164,0) } 100% { box-shadow: 0 0 0 0 rgba(43,216,164,0) } }

/* ---------- 9. Logo strip ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; gap: 64px; padding-right: 64px; width: max-content; animation: slide 34s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%) } }
.marquee__item { font-size: 1.05rem; font-weight: 640; letter-spacing: -0.02em; color: var(--ink-3); opacity: .72; white-space: nowrap; display: flex; align-items: center; gap: 9px; }

/* ---------- 10. Cards ---------- */
.card {
  position: relative; padding: 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(14,20,36,0.5));
  border: 1px solid var(--line);
  transition: border-color .22s ease, transform .22s ease, background .22s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card--link:hover { border-color: var(--accent-line); }
.card__ico { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); margin-bottom: 18px; }
.card .h3 { margin-bottom: 9px; }
.card p:not([class]) { color: var(--ink-2); font-size: 0.945rem; }
.card__list { margin-top: 16px; display: grid; gap: 9px; font-size: 0.9rem; color: var(--ink-2); }
.card__list li { display: flex; gap: 9px; align-items: flex-start; }
.card__list svg { flex: none; margin-top: 4px; color: var(--accent-3); }
.card--feature { padding: 30px; }
.card--glow::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 60% at 50% 0%, rgba(53,224,255,.22), transparent 70%);
  opacity: 0; transition: opacity .25s ease;
}
.card--glow:hover::after { opacity: 1; }

/* industry card */
.icard { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.icard__top { padding: 26px 26px 22px; }
.icard__art { height: 128px; border-top: 1px solid var(--line); background: var(--surface-2); position: relative; overflow: hidden; }
.icard__foot { padding: 18px 26px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.tagpill { display: inline-block; font-size: 0.72rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-3); }

/* ---------- 11. Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.stat { padding: 30px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat__n { font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.035em; font-family: var(--mono); }
.stat__l { font-size: 0.855rem; color: var(--ink-3); margin-top: 4px; }

/* ---------- 12. Tabs ---------- */
.tabs { display: flex; gap: 6px; padding: 5px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); width: max-content; max-width: 100%; overflow-x: auto; }
.tab { padding: 9px 18px; border-radius: 8px; font-size: 0.9rem; font-weight: 570; color: var(--ink-3); white-space: nowrap; transition: .18s ease; }
.tab:hover { color: var(--ink-2); }
.tab.is-active { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); padding: 8px 17px; }
.panel { display: none; }
.panel.is-active { display: block; animation: fadeUp .4s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px) } to { opacity: 1; transform: none } }

/* ---------- 13. Bar chart ---------- */
.bars { display: grid; gap: 18px; }
.bar__head { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.9rem; margin-bottom: 8px; }
.bar__head b { font-family: var(--mono); font-size: 0.95rem; }
.bar__track { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.bar__fill { height: 100%; border-radius: 6px; width: 0; transition: width 1.1s cubic-bezier(.22,.8,.3,1); }
.bar__fill--us { background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 18px rgba(53,224,255,.45); }
.bar__fill--them { background: var(--surface-2); border-right: 2px solid var(--ink-3); }

/* ---------- 14. Code block ---------- */
.code {
  border-radius: var(--radius); border: 1px solid var(--line); background: #070b15; overflow: hidden;
  box-shadow: var(--shadow);
}
.code__bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.code__dot { width: 10px; height: 10px; border-radius: 50%; }
.code__file { margin-left: 8px; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-3); }
.code pre { margin: 0; padding: 20px; overflow-x: auto; font-family: var(--mono); font-size: 0.83rem; line-height: 1.75; color: #c6d3ea; }
.c-key { color: #7c9dff; } .c-str { color: #6de2b0; } .c-com { color: #6d7a94; font-style: italic; }
.c-fn  { color: #35e0ff; } .c-num { color: #ffb545; } .c-tag { color: #ff8fa3; }

/* ---------- 15. Table ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 620px; }
th, td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-size: 0.76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 650; background: var(--surface); }
td { color: var(--ink-2); }
td:first-child { color: var(--ink); font-weight: 540; }
tbody tr:last-child td { border-bottom: 0; }
/* Must not target td: the `background` shorthand would reset background-clip:text
   on .grad cells while their color:transparent survives, blanking them out. */
tbody tr:hover { background-color: rgba(255,255,255,0.018); }

/* ---------- 16. Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan { padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 20px; }
.plan--hot { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(53,224,255,.07), var(--surface) 55%); box-shadow: 0 30px 70px -40px rgba(53,224,255,.55); position: relative; }
.plan__badge { position: absolute; top: -12px; left: 30px; font-size: 0.7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04070f; }
.plan__price { display: flex; align-items: baseline; gap: 6px; }
.plan__price b { font-size: 2.5rem; font-weight: 700; letter-spacing: -.04em; font-family: var(--mono); }
.plan__price > span { color: var(--ink-3); font-size: 0.88rem; }
.plan ul { display: grid; gap: 11px; font-size: 0.9rem; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex: none; margin-top: 4px; color: var(--accent-3); }
.plan li.off { color: var(--ink-3); } .plan li.off svg { color: var(--ink-3); opacity: .5; }
.toggle { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.toggle button { padding: 7px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 600; color: var(--ink-3); }
.toggle button.is-active { background: var(--accent-soft); border: 1px solid var(--accent-line); color: var(--accent); }

/* ---------- 17. Accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; text-align: left; font-size: 1.02rem; font-weight: 570; }
.faq__q svg { flex: none; color: var(--ink-3); transition: transform .24s ease; }
.faq__item.is-open .faq__q svg { transform: rotate(45deg); color: var(--accent); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq__a p { padding: 0 4px 24px; color: var(--ink-2); font-size: 0.95rem; max-width: 780px; }

/* ---------- 18. CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: 76px 32px; border-radius: 26px;
  border: 1px solid var(--accent-line);
  background: radial-gradient(90% 130% at 50% 0%, rgba(53,224,255,.16), transparent 62%), var(--surface);
}
.cta .h2 { margin-bottom: 16px; }
.cta .lead { max-width: 560px; margin: 0 auto 30px; }
.cta .btn-row { justify-content: center; }

/* ---------- 19. Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 34px; background: var(--bg-elev); }
.footer__grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 40px; }
.footer__about p { color: var(--ink-3); font-size: 0.9rem; margin-top: 14px; max-width: 280px; }
.footer h3 { font-size: 0.76rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.footer li { margin-bottom: 4px; }
.footer li a { display: inline-block; padding: 3px 0; font-size: 0.9rem; color: var(--ink-2); transition: color .16s; }
.footer li a:hover { color: var(--accent); }
.footer__bar a { display: inline-block; padding: 2px 0; }
.footer__bar { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 0.83rem; color: var(--ink-3); }
.footer__social { display: flex; gap: 10px; }
.footer__social a { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--line); color: var(--ink-3); transition: .18s; }
.footer__social a:hover { color: var(--accent); border-color: var(--accent-line); }

/* ---------- 20. Page header (sub-pages) ---------- */
.phead { position: relative; overflow: hidden; padding: calc(var(--nav-h) + 76px) 0 64px; border-bottom: 1px solid var(--line); }
.phead__inner { position: relative; }
.phead__inner > .h1, .phead__inner > .lead { max-width: 800px; }
.phead .h1 { font-size: clamp(2.3rem, 4.4vw, 3.4rem); margin: 20px 0 18px; }
.crumbs { font-size: 0.83rem; color: var(--ink-3); margin-bottom: 20px; }
.crumbs a { display: inline-block; padding: 5px 2px; margin: -5px 0; }
.crumbs a:hover { color: var(--accent); }

/* ---------- 21. Misc ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.22,.8,.3,1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.kv { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--ink-2); }
.kv svg { flex: none; margin-top: 4px; color: var(--accent-3); }
.note { font-size: 0.82rem; color: var(--ink-3); }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { font-size: 0.8rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); }

/* ---------- 22. Responsive ---------- */
@media (min-width: 1081px) and (max-width: 1240px) {
  .globe__badge--b { right: 0; }   /* overhang exceeded the container slack and got clipped */
}
@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 64px; }
  .hero__copy { max-width: 100%; }
  .globe { max-width: 420px; }
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__about { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  /* .nav__links carried the margin-right:auto that right-aligned this group;
     hiding it removed that, so re-anchor on an element that is still visible. */
  .nav__cta { margin-left: auto; }
  .nav__inner { gap: 16px; }
  .nav__cta .btn--sm { height: 44px; padding-inline: 18px; }
  .nav__cta .btn--ghost { display: none; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .g3, .g4, .plans { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 420px) {
  /* Below ~420px the nav CTA crowds the burger off-screen; the drawer carries both CTAs. */
  .nav__cta .btn--primary { display: none; }
}
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .g2, .g3, .g4, .plans { grid-template-columns: 1fr; }
  .globe__badge--a { left: 0; } .globe__badge--b { right: 0; }
  .cta { padding: 56px 22px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .btn-row .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .arc { stroke-dashoffset: 0; }   /* animation is collapsed, so show the drawn state */
}

/* ============================================================
   23. Auth — sign in / sign up / reset
   ============================================================ */
.authbar {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: var(--nav-h); padding-inline: 24px;
  max-width: var(--maxw); margin-inline: auto;
}
.auth {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: calc(100vh - var(--nav-h));
  align-items: center;
}
.auth__form { padding: 40px 24px 72px; }
.auth__card {
  width: 100%; max-width: 412px; margin-inline: auto;
}
.auth__card h1 { font-size: 1.85rem; letter-spacing: -0.03em; }
.auth__sub { color: var(--ink-2); font-size: 0.95rem; margin-top: 10px; }
.auth__foot { margin-top: 26px; font-size: 0.9rem; color: var(--ink-2); text-align: center; }
.auth__foot a { display: inline-block; padding: 4px 2px; color: var(--accent); font-weight: 600; }

/* brand panel */
.auth__aside {
  position: relative; overflow: hidden; align-self: stretch;
  display: flex; flex-direction: column; justify-content: center; gap: 30px;
  padding: 56px; border-left: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 80% 12%, rgba(124,108,255,.20), transparent 62%),
    radial-gradient(60% 60% at 15% 85%, rgba(53,224,255,.16), transparent 60%),
    var(--bg-elev);
}
.auth__quote { position: relative; font-size: 1.24rem; line-height: 1.55; letter-spacing: -0.02em; max-width: 440px; }
.auth__cite { position: relative; display: flex; align-items: center; gap: 12px; font-size: 0.88rem; color: var(--ink-2); }
.auth__avatar {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 0.85rem; color: #04070f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.auth__stats { position: relative; display: flex; gap: 34px; flex-wrap: wrap; margin-top: 8px; }
.auth__stats div { font-size: 0.82rem; color: var(--ink-3); }
.auth__stats b { display: block; font-family: var(--mono); font-size: 1.32rem; color: var(--ink); letter-spacing: -0.03em; }

/* ---- form primitives ---- */
.field { margin-bottom: 18px; }
.field__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 7px; }
.label { display: block; font-size: 0.875rem; font-weight: 550; margin-bottom: 7px; }
.field__row .label { margin-bottom: 0; }
.field__link { display: inline-block; padding: 4px 2px; margin: -4px 0; font-size: 0.83rem; color: var(--accent); font-weight: 550; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input {
  width: 100%; height: 46px; padding: 0 14px;
  border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
  font: inherit; font-size: 0.94rem;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.input::placeholder { color: var(--ink-3); }
.input:hover { border-color: rgba(140,165,215,0.4); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(53,224,255,.16); background: var(--surface-2); }
.input[aria-invalid="true"] { border-color: var(--danger); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(255,107,125,.18); }
.input--pw { padding-right: 46px; }
.pw-toggle {
  position: absolute; right: 6px; width: 34px; height: 34px;
  display: grid; place-items: center; border-radius: 8px; color: var(--ink-3);
}
.pw-toggle:hover { color: var(--ink); background: rgba(255,255,255,.05); }

.field__err {
  display: none; align-items: flex-start; gap: 6px;
  margin-top: 7px; font-size: 0.82rem; color: var(--danger);
}
.field.is-invalid .field__err { display: flex; }
.field__hint { margin-top: 7px; font-size: 0.8rem; color: var(--ink-3); }
.field__hint a { display: inline-block; padding: 5px 2px; }

/* checkbox */
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: var(--ink-2); cursor: pointer; }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check__box {
  width: 18px; height: 18px; flex: none; margin-top: 1px;
  border-radius: 5px; border: 1px solid var(--line-strong); background: var(--surface);
  display: grid; place-items: center; transition: .16s ease;
}
.check__box svg { opacity: 0; transform: scale(.6); transition: .16s ease; color: #04070f; }
.check input:checked + .check__box { background: var(--accent); border-color: var(--accent); }
.check input:checked + .check__box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 2px solid var(--accent); outline-offset: 3px; }
.check a { color: var(--accent); }
.field.is-invalid .check__box { border-color: var(--danger); }

/* alert */
.alert {
  display: none; gap: 10px; align-items: flex-start;
  padding: 13px 15px; border-radius: 10px; margin-bottom: 20px;
  font-size: 0.88rem; line-height: 1.5;
}
.alert.is-shown { display: flex; }
.alert svg { flex: none; margin-top: 2px; }
.alert--err  { background: rgba(255,107,125,.10); border: 1px solid rgba(255,107,125,.34); color: #ffc4cc; }
.alert--ok   { background: rgba(43,216,164,.10);  border: 1px solid rgba(43,216,164,.34);  color: #a5f0d8; }
.alert--info { background: rgba(53,224,255,.09);  border: 1px solid var(--accent-line);    color: #b6ecfb; }

/* full-width submit + busy state */
.btn--block { width: 100%; }
.btn.is-busy { pointer-events: none; opacity: .75; }
.btn.is-busy .btn__label { visibility: hidden; }
.spinner {
  display: none; position: absolute;
  width: 17px; height: 17px; border-radius: 50%;
  border: 2px solid rgba(4,7,15,.28); border-top-color: #04070f;
  animation: spin .7s linear infinite;
}
.btn--ghost .spinner { border-color: rgba(234,240,251,.25); border-top-color: var(--ink); }
.btn.is-busy .spinner { display: block; }
.btn { position: relative; }
@keyframes spin { to { transform: rotate(360deg) } }

/* password strength */
.strength { margin-top: 10px; }
.strength__bar { display: flex; gap: 4px; }
.strength__seg { height: 4px; flex: 1; border-radius: 2px; background: var(--surface-2); transition: background .22s ease; }
.strength__txt { margin-top: 7px; font-size: 0.78rem; color: var(--ink-3); }
.strength[data-score="1"] .strength__seg:nth-child(-n+1) { background: var(--danger); }
.strength[data-score="2"] .strength__seg:nth-child(-n+2) { background: var(--warn); }
.strength[data-score="3"] .strength__seg:nth-child(-n+3) { background: #9ad86a; }
.strength[data-score="4"] .strength__seg { background: var(--accent-3); }

/* one-time code */
.otp { display: flex; gap: 10px; justify-content: space-between; }
.otp input {
  width: 100%; aspect-ratio: 1 / 1.15; min-width: 0; padding: 0;
  text-align: center; font-family: var(--mono); font-size: 1.3rem; font-weight: 500;
  border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--ink);
}
.otp input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(53,224,255,.16); }

@media (max-width: 980px) {
  .auth { grid-template-columns: 1fr; min-height: 0; }
  .auth__aside { display: none; }
  .auth__form { padding-top: 24px; }
}
@media (max-width: 420px) {
  .otp { gap: 7px; }
}

/* ============================================================
   24. App shell — signed-in dashboard
   ============================================================ */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

.app__side {
  position: sticky; top: 0; align-self: start; height: 100vh;
  display: flex; flex-direction: column; gap: 22px;
  padding: 20px 16px; border-right: 1px solid var(--line); background: var(--bg-elev);
}
.app__side .brand { padding: 6px 8px 0; }
.sidenav { display: grid; gap: 2px; }
.sidenav__label {
  padding: 14px 10px 6px; font-size: 0.7rem; letter-spacing: .13em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 650;
}
.sidenav a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 10px; border-radius: 9px;
  font-size: 0.9rem; font-weight: 520; color: var(--ink-2);
  transition: background .16s ease, color .16s ease;
}
.sidenav a:hover { background: rgba(255,255,255,.05); color: var(--ink); }
.sidenav a.is-active { background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); padding: 8px 9px; }
.sidenav svg { flex: none; opacity: .85; }
.sidenav__tag { margin-left: auto; font-size: 0.68rem; padding: 2px 7px; border-radius: 999px; background: var(--surface-2); color: var(--ink-3); }

.app__user {
  margin-top: auto; display: flex; align-items: center; gap: 10px;
  padding: 10px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface);
}
.avatar {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; color: #04070f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.app__user span { min-width: 0; font-size: 0.82rem; }
.app__user b { display: block; font-size: 0.86rem; font-weight: 600; }
.app__user .dim { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.app__main { min-width: 0; display: flex; flex-direction: column; }
.app__top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 14px 28px; border-bottom: 1px solid var(--line);
  background: rgba(5,7,14,.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.app__body { padding: 28px; display: grid; gap: 22px; }
.app__title { font-size: 1.5rem; letter-spacing: -0.03em; }

.searchbox { position: relative; flex: 1; max-width: 380px; }
.searchbox svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.searchbox input {
  width: 100%; height: 38px; padding: 0 12px 0 36px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: inherit; font-size: 0.88rem;
}
.searchbox input:focus { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px rgba(53,224,255,.14); }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.kpi__l { font-size: 0.8rem; color: var(--ink-3); }
.kpi__v { font-family: var(--mono); font-size: 1.62rem; font-weight: 600; letter-spacing: -0.03em; margin: 6px 0 4px; }
.kpi__d { font-size: 0.78rem; display: inline-flex; align-items: center; gap: 4px; }
.up { color: var(--accent-3); } .down { color: var(--danger); }

.panel-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.panel-card__hd { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel-card__hd h2 { font-size: 1rem; font-weight: 620; }
.panel-card__bd { padding: 20px; }
.app__cols { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }

.legend { display: flex; gap: 16px; font-size: 0.78rem; color: var(--ink-3); }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 6px; }

.evt { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.evt:last-child { border-bottom: 0; }
.evt__dot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 6px; }
.evt time { display: block; font-size: 0.75rem; color: var(--ink-3); margin-top: 3px; }

@media (max-width: 1080px) { .app__cols { grid-template-columns: 1fr; } .kpis { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .app__side { position: static; height: auto; flex-direction: row; align-items: center; gap: 14px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .app__side .brand { padding: 0; }
  .sidenav { grid-auto-flow: column; gap: 4px; }
  .sidenav__label, .app__user, .sidenav__tag { display: none; }
  .app__body, .app__top { padding-inline: 18px; }
}
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr; } .searchbox { display: none; } }

/* ============================================================
   25. Legal — terms, privacy
   ============================================================ */
.legal { display: grid; grid-template-columns: 236px 1fr; gap: 56px; align-items: start; }

.legal__toc { position: sticky; top: calc(var(--nav-h) + 28px); }
.legal__toc h2 { font-size: 0.72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.legal__toc ol { display: grid; gap: 1px; list-style: none; }
.legal__toc a {
  display: block; padding: 6px 10px; border-radius: 7px;
  font-size: 0.845rem; line-height: 1.45; color: var(--ink-3);
  border-left: 2px solid transparent;
  transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.legal__toc a:hover { color: var(--ink); background: rgba(255,255,255,.04); }
.legal__toc a.is-current { color: var(--accent); border-left-color: var(--accent); background: var(--accent-soft); }

.prose { max-width: 720px; }
.prose > section { scroll-margin-top: calc(var(--nav-h) + 24px); padding-bottom: 6px; }
.prose h2 {
  font-size: 1.32rem; font-weight: 640; letter-spacing: -0.02em;
  margin: 44px 0 14px; padding-top: 4px;
}
.prose > section:first-of-type h2 { margin-top: 0; }
.prose h2 .prose__num { color: var(--ink-3); font-family: var(--mono); font-size: 0.86rem; margin-right: 10px; }
.prose h3 { font-size: 1.01rem; font-weight: 620; margin: 24px 0 9px; color: var(--ink); }
.prose p { color: var(--ink-2); font-size: 0.95rem; line-height: 1.75; margin-bottom: 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 0; display: grid; gap: 9px; }
.prose li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 0.95rem; line-height: 1.7; }
.prose ul > li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: .8;
}
.prose ol { counter-reset: li; list-style: none; }
.prose ol > li { counter-increment: li; }
.prose ol > li::before {
  content: counter(li) "."; position: absolute; left: 0; top: 0;
  font-family: var(--mono); font-size: 0.82rem; color: var(--ink-3);
}
.prose strong { color: var(--ink); font-weight: 620; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }
.prose table { margin-bottom: 18px; }
.prose__updated { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-3); }
.prose__updated a { display: inline-block; padding: 5px 2px; }

.callout {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 16px 18px; border-radius: var(--radius); margin-bottom: 36px;
  background: rgba(255,181,69,.08); border: 1px solid rgba(255,181,69,.32);
}
.callout svg { flex: none; margin-top: 2px; color: var(--warn); }
.callout p { font-size: 0.89rem; line-height: 1.6; color: #f3d9ae; margin: 0; }
.callout strong { color: #ffd79a; }

@media (max-width: 900px) {
  .legal { grid-template-columns: 1fr; gap: 32px; }
  .legal__toc { position: static; border-bottom: 1px solid var(--line); padding-bottom: 18px; }
  .legal__toc ol { grid-auto-flow: row; }
}
