/* ==========================================================================
   Secure Store — site styles
   Brand tokens preserved from the original site (primary #2563eb,
   secondary #7ea2ff, accent #7ee29b, background #0b0e13).
   ========================================================================== */

:root {
  --color-primary: #2563eb;
  --color-primary-hi: #3b76f6;
  --color-secondary: #7ea2ff;
  --color-accent: #7ee29b;
  --color-bg: #0b0e13;
  --color-text: #e6edf3;
  --bg-elev: #11151b;
  --bg-elev2: #0e1116;
  --bg-elev3: #151a22;
  --line: #1e2630;
  --line2: #2a323c;
  --muted: #9aa4b1;
  --dim: #7b8694;
  --warn: #f0a020;
  --danger: #f2777a;

  --font-heading: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .65), 0 2px 8px rgba(0, 0, 0, .3);
  --shadow-glow: 0 18px 50px -18px rgba(37, 99, 235, .55);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
[hidden] { display: none !important; }
:where(svg[aria-hidden="true"]) { width: 1.15em; height: 1.15em; flex: none; }
main { overflow-x: clip; }
a { color: var(--color-secondary); text-decoration: none; }
a:hover { color: #a9c0ff; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 750; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); letter-spacing: -.03em; }
h3 { font-size: 1.22rem; letter-spacing: -.01em; }
code, pre, kbd { font-family: var(--mono); font-size: .9em; }
code { background: rgba(126, 162, 255, .1); border: 1px solid rgba(126, 162, 255, .18); padding: .08em .4em; border-radius: 6px; color: #c9d7ff; }
::selection { background: rgba(37, 99, 235, .45); }

:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; border-radius: 6px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--color-accent); color: #04130a; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; color: #04130a; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 820px; }
section { position: relative; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tight { padding: clamp(48px, 7vw, 80px) 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-elev2), var(--color-bg)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* ---------- typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); color: #b9c3cf; max-width: 640px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.grad-text {
  background: linear-gradient(100deg, #ffffff 10%, #a9c0ff 45%, var(--color-accent) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lede { margin-left: auto; margin-right: auto; }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- buttons ---------- */
.btn {
  --b-bg: var(--bg-elev3);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 12px;
  font: 650 .98rem/1.1 var(--font-body); letter-spacing: -.005em;
  color: var(--color-text); background: var(--b-bg); border: 1px solid var(--line2);
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, background .25s, color .2s;
  -webkit-tap-highlight-color: transparent; text-align: center;
}
.btn:hover { transform: translateY(-2px); border-color: #3a4552; color: #fff; }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(4px); }
.btn-primary {
  background: linear-gradient(135deg, var(--color-primary-hi), var(--color-primary) 55%, #1d4ed8);
  border-color: rgba(126, 162, 255, .5); color: #fff; box-shadow: var(--shadow-glow);
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, .28) 45%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn-primary:hover { border-color: rgba(169, 192, 255, .8); box-shadow: 0 22px 60px -18px rgba(37, 99, 235, .8); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { background: transparent; border-color: var(--line2); }
.btn-ghost:hover { background: rgba(126, 162, 255, .08); }
.btn-mint { background: var(--color-accent); color: #062312; border-color: transparent; }
.btn-mint:hover { color: #062312; box-shadow: 0 18px 44px -16px rgba(126, 226, 155, .6); }
.btn-sm { min-height: 40px; padding: 9px 16px; font-size: .9rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
.text-link svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.text-link:hover svg { transform: translateX(3px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(11, 14, 19, .72);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-color: var(--line); background: rgba(11, 14, 19, .88); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--color-text); font-weight: 750; font-size: 1.08rem; letter-spacing: -.02em; white-space: nowrap; }
.brand:hover { color: #fff; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(145deg, #16203a, #0f1420); border: 1px solid #263252; color: var(--color-secondary); }
.brand-mark svg { width: 20px; height: 20px; }
.main-nav { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav-link, .nav-trigger {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 10px;
  color: #c4ccd6; font: 550 .94rem/1 var(--font-body); background: none; border: 0; cursor: pointer;
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-trigger:hover, .nav-item.open .nav-trigger { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-link[aria-current="page"] { color: #fff; }
.nav-trigger svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.nav-item { position: relative; }
.nav-item.open .nav-trigger svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: -12px; min-width: 300px; padding: 10px;
  background: rgba(17, 21, 27, .97); border: 1px solid var(--line2); border-radius: 16px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top left;
  transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s .25s;
}
.nav-item.open .dropdown { opacity: 1; visibility: visible; transform: none; transition: opacity .2s var(--ease), transform .25s var(--ease); }
.dropdown a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; color: var(--color-text); }
.dropdown a:hover, .dropdown a:focus-visible { background: rgba(126, 162, 255, .08); }
.dropdown .di { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(126, 162, 255, .1); color: var(--color-secondary); }
.dropdown .di svg { width: 18px; height: 18px; }
.dropdown strong { display: block; font-size: .93rem; font-weight: 650; }
.dropdown span.dd { display: block; font-size: .82rem; color: var(--muted); line-height: 1.4; }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-cta .signin { color: #c4ccd6; font-weight: 550; font-size: .94rem; padding: 9px 10px; }
.header-cta .signin:hover { color: #fff; }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 11px; background: var(--bg-elev); border: 1px solid var(--line2); color: var(--color-text); cursor: pointer; place-items: center; }
.menu-toggle svg { width: 22px; height: 22px; }

.mobile-panel {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99; background: rgba(11, 14, 19, .98);
  padding: 20px var(--gutter) 120px; overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.mobile-panel.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .3s var(--ease); }
.mobile-panel h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 22px 0 8px; }
.mobile-panel a { display: block; padding: 12px 4px; color: var(--color-text); font-size: 1.05rem; font-weight: 550; border-bottom: 1px solid var(--line); }
.mobile-panel .btn { margin-top: 12px; border-bottom: 1px solid var(--line2); }
body.menu-open { overflow: hidden; }

/* mobile sticky CTA bar */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90; display: none;
  gap: 8px; padding: 8px; border-radius: 16px;
  background: rgba(17, 21, 27, .92); border: 1px solid var(--line2); box-shadow: var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.sticky-cta.show { transform: none; }
.sticky-cta .btn { flex: 1; min-height: 46px; padding: 10px 12px; font-size: .92rem; }

/* ---------- background layers ---------- */
.bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: radial-gradient(rgba(126, 162, 255, .16) 1px, transparent 1.2px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 75%);
}
.glow { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0; opacity: .55; }
.glow.blue { background: #2563eb; }
.glow.mint { background: #2fbf71; opacity: .22; }
.glow.violet { background: #5b5bf0; opacity: .3; }
.drift { animation: drift 18s ease-in-out infinite alternate; }
.drift.slow { animation-duration: 26s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(40px, -30px, 0) scale(1.12); } }
.relative-z { position: relative; z-index: 1; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 8vw, 96px) 0 clamp(64px, 9vw, 112px); overflow: hidden; }
.hero-grid > *, .contact-grid > *, .feature-row > *, .challenge-wrap > *, .walkthrough > *, .e2e-demo > *, .explorer > *, .docs-layout > *, .cta-band > * { min-width: 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin-bottom: 22px; font-size: clamp(2.5rem, 5vw, 4.1rem); }
.hero .lede { margin-bottom: 30px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 30px; color: var(--muted); font-size: .9rem; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges svg { width: 17px; height: 17px; color: var(--color-accent); }
.status-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; margin-bottom: 22px;
  border-radius: 999px; border: 1px solid rgba(126, 226, 155, .28); background: rgba(126, 226, 155, .07);
  color: #c8f3d5; font-size: .85rem; font-weight: 600;
}
.status-pill svg { width: 15px; height: 15px; }
.status-pill:hover { color: #fff; border-color: rgba(126, 226, 155, .5); }
.status-pill .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(126, 226, 155, .15); }
.status-pill .dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 0 rgba(126, 226, 155, .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(126, 226, 155, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(126, 226, 155, 0); } }

.page-hero { padding: clamp(56px, 9vw, 104px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); max-width: 900px; }
.page-hero .lede { margin-bottom: 28px; }
.breadcrumbs { display: flex; gap: 8px; font-size: .85rem; color: var(--dim); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumbs a { color: var(--muted); }

/* ---------- hero flow visual ---------- */
.flow-card {
  position: relative; border-radius: var(--radius-lg); padding: 22px;
  background: linear-gradient(180deg, rgba(21, 26, 34, .92), rgba(14, 17, 22, .92));
  border: 1px solid var(--line2); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .04);
}
.flow-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(126, 162, 255, .55), transparent 35%, transparent 65%, rgba(126, 226, 155, .45));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.window-bar { display: flex; align-items: center; gap: 7px; margin-bottom: 16px; }
.window-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a323c; }
.window-bar i:first-child { background: #3a2a2d; }
.window-bar .wb-title { margin-left: 10px; font: 600 .78rem/1 var(--mono); color: var(--dim); letter-spacing: .02em; }
.window-bar .wb-tag { margin-left: auto; font-size: .7rem; color: var(--dim); border: 1px dashed var(--line2); padding: 3px 8px; border-radius: 6px; }
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1.2fr); gap: 0; align-items: center; }
.hosts { display: grid; gap: 10px; }
.host {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: var(--bg-elev2); border: 1px solid var(--line); font-size: .82rem;
}
.host .os { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(126, 162, 255, .1); color: var(--color-secondary); flex: none; }
.host .os svg { width: 16px; height: 16px; }
.host b { display: block; font-weight: 650; font-size: .82rem; white-space: nowrap; }
.host > span:nth-child(2) { min-width: 0; }
.host small { display: block; color: var(--dim); font-size: .7rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.host .st { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 10px rgba(126, 226, 155, .7); flex: none; }
.lanes { position: relative; align-self: stretch; min-height: 180px; }
.flow > * { min-width: 0; }
.lanes svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lane-path { stroke: #2a3445; stroke-width: 1.5; fill: none; stroke-dasharray: 3 5; }
.packet { fill: var(--color-secondary); filter: drop-shadow(0 0 6px rgba(126, 162, 255, .9)); }
.server {
  border-radius: 16px; padding: 14px; background: linear-gradient(180deg, #121a2a, #0f141d);
  border: 1px solid #263252;
}
.server-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.server-head .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: rgba(37, 99, 235, .2); color: #a9c0ff; }
.server-head .ic svg { width: 17px; height: 17px; }
.server-head b { font-size: .86rem; display: block; }
.server-head small { font-size: .7rem; color: var(--dim); display: block; }
.safe {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; margin-top: 8px;
  background: rgba(11, 14, 19, .7); border: 1px solid var(--line);
}
.safe .lock { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: rgba(126, 226, 155, .12); color: var(--color-accent); flex: none; }
.safe .lock svg { width: 14px; height: 14px; }
.safe .cipher { font: 500 .7rem/1.2 var(--mono); color: #6f7f97; white-space: nowrap; overflow: hidden; text-overflow: clip; flex: 1; min-width: 0; }
.safe .tag { font-size: .66rem; font-weight: 700; letter-spacing: .06em; color: var(--color-accent); }
.flow-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.mini-stat { padding: 10px 12px; border-radius: 12px; background: var(--bg-elev2); border: 1px solid var(--line); }
.mini-stat small { display: block; font-size: .68rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.mini-stat b { font-size: .92rem; }
.mini-stat b.ok { color: var(--color-accent); }
.floating-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 12px;
  background: rgba(17, 21, 27, .95); border: 1px solid var(--line2); box-shadow: var(--shadow);
  font-size: .78rem; font-weight: 600; white-space: nowrap; z-index: 2;
}
.floating-chip svg { width: 16px; height: 16px; color: var(--color-accent); }
.floating-chip.c1 { top: -18px; right: 18px; animation: bob 6s ease-in-out infinite; }
.floating-chip.c2 { bottom: -18px; left: 22px; animation: bob 7s ease-in-out -2s infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(21, 26, 34, .75), rgba(14, 17, 22, .75));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s var(--ease);
}
.card.lift:hover { transform: translateY(-6px); border-color: #334058; box-shadow: 0 26px 60px -30px rgba(37, 99, 235, .55); }
.card .spot { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(126, 162, 255, .12), transparent 60%); }
.card:hover .spot { opacity: 1; }
.card h3 { margin-top: 18px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .card-link { margin-top: 18px; }
.icon-tile {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(37, 99, 235, .25), rgba(37, 99, 235, .06)); border: 1px solid rgba(126, 162, 255, .25);
  color: #b4c8ff;
}
.icon-tile svg { width: 24px; height: 24px; }
.icon-tile.mint { background: linear-gradient(145deg, rgba(126, 226, 155, .2), rgba(126, 226, 155, .04)); border-color: rgba(126, 226, 155, .28); color: var(--color-accent); }
.card-num { font: 700 .78rem/1 var(--mono); color: var(--color-secondary); letter-spacing: .1em; }

/* ---------- value strip / stats ---------- */
.value-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: rgba(17, 21, 27, .6); overflow: hidden; }
.value-strip > div { padding: 26px 24px; border-right: 1px solid var(--line); }
.value-strip > div:last-child { border-right: 0; }
.value-strip .big { display: block; font: 780 clamp(1.8rem, 3vw, 2.4rem)/1 var(--font-heading); letter-spacing: -.03em; margin-bottom: 8px; color: #fff; }
.value-strip .big em { font-style: normal; color: var(--color-accent); }
.value-strip .vl { display: block; font-weight: 700; color: #dfe6ee; margin-bottom: 4px; font-size: .98rem; }
.value-strip p { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.45; }

/* ---------- challenge picker ---------- */
.challenge-wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 28px; align-items: start; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px;
  background: var(--bg-elev); border: 1px solid var(--line2); color: #cfd6df; cursor: pointer;
  font: 550 .95rem/1.25 var(--font-body); text-align: left;
  transition: border-color .2s, background .2s, color .2s, transform .2s var(--ease);
}
.chip:hover { border-color: #3d4a5c; color: #fff; transform: translateY(-1px); }
.chip .ck { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid #46556b; display: grid; place-items: center; flex: none; transition: all .2s; }
.chip .ck svg { width: 12px; height: 12px; opacity: 0; transform: scale(.5); transition: all .2s var(--ease); color: #062312; }
.chip[aria-pressed="true"] { background: rgba(126, 226, 155, .1); border-color: rgba(126, 226, 155, .55); color: #fff; }
.chip[aria-pressed="true"] .ck { background: var(--color-accent); border-color: var(--color-accent); }
.chip[aria-pressed="true"] .ck svg { opacity: 1; transform: none; }
.solution-panel { border-radius: var(--radius-lg); border: 1px solid var(--line2); background: linear-gradient(180deg, #121823, #0e1218); padding: 26px; min-height: 340px; }
.solution-panel .empty { color: var(--muted); display: grid; place-items: center; text-align: center; min-height: 290px; gap: 14px; }
.solution-panel .empty svg { width: 44px; height: 44px; color: #3a4a66; margin: 0 auto; }
.solution { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); animation: slideIn .45s var(--ease) both; }
.solution:last-of-type { border-bottom: 0; }
.solution .icon-tile { width: 40px; height: 40px; flex: none; }
.solution .icon-tile svg { width: 20px; height: 20px; }
.solution h4 { font-size: 1.02rem; margin: 2px 0 4px; }
.solution p { margin: 0; color: var(--muted); font-size: .94rem; }
.solution a { font-size: .88rem; font-weight: 650; }
.solution-cta { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
@keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- tabs / product explorer ---------- */
.explorer { display: grid; grid-template-columns: 300px 1fr; gap: 24px; }
.tablist { display: flex; flex-direction: column; gap: 6px; }
.tab {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px 16px; border-radius: 14px;
  background: transparent; border: 1px solid transparent; color: #b9c3cf; cursor: pointer; font: 600 .97rem/1.3 var(--font-body);
  transition: background .2s, border-color .2s, color .2s;
}
.tab .ti { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-elev); border: 1px solid var(--line); flex: none; color: var(--muted); transition: all .25s; }
.tab .ti svg { width: 18px; height: 18px; }
.tab:hover { background: rgba(255, 255, 255, .03); color: #fff; }
.tab[aria-selected="true"] { background: linear-gradient(90deg, rgba(37, 99, 235, .16), rgba(37, 99, 235, .03)); border-color: rgba(126, 162, 255, .3); color: #fff; }
.tab[aria-selected="true"] .ti { background: var(--color-primary); border-color: transparent; color: #fff; }
.tab .bar { margin-left: auto; width: 3px; height: 22px; border-radius: 3px; background: transparent; }
.tab[aria-selected="true"] .bar { background: var(--color-accent); }
.tabpanel { border-radius: var(--radius-lg); border: 1px solid var(--line2); background: linear-gradient(180deg, #121823, #0d1117); padding: clamp(22px, 3vw, 34px); display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.tabpanel[hidden] { display: none; }
.tabpanel.enter { animation: panelIn .45s var(--ease) both; }
@keyframes panelIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.tabpanel h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-top: 0; }
.tabpanel .benefit { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(126, 226, 155, .07); border: 1px solid rgba(126, 226, 155, .2); color: #d4f5de; font-size: .93rem; margin: 16px 0; }
.tabpanel .benefit svg { width: 18px; height: 18px; color: var(--color-accent); flex: none; margin-top: 3px; }
.checks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 9px; }
.checks li { display: flex; gap: 10px; color: #c4ccd6; font-size: .95rem; }
.checks li svg { width: 18px; height: 18px; color: var(--color-accent); flex: none; margin-top: 4px; }
.checks.x li svg { color: var(--dim); }

details.tech { border: 1px solid var(--line); border-radius: 12px; background: rgba(11, 14, 19, .5); }
details.tech summary { cursor: pointer; padding: 12px 14px; font-size: .88rem; font-weight: 650; color: var(--color-secondary); list-style: none; display: flex; align-items: center; gap: 8px; }
details.tech summary::-webkit-details-marker { display: none; }
details.tech summary svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
details.tech[open] summary svg { transform: rotate(90deg); }
details.tech .tech-body { padding: 0 14px 14px; color: var(--muted); font-size: .9rem; }
details.tech .tech-body p:last-child { margin: 0; }

/* mock screens used inside panels */
.mock { border-radius: 16px; border: 1px solid var(--line2); background: #0b0f15; padding: 16px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.mock-label { position: absolute; right: 10px; bottom: 8px; font-size: .64rem; color: #58657a; letter-spacing: .04em; }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; background: #10151d; border: 1px solid #19212c; margin-bottom: 7px; font-size: .8rem; }
.mock-row svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.mock-title svg { width: 15px; height: 15px; }
.mock-row .k { color: var(--dim); font-family: var(--mono); font-size: .74rem; }
.mock-row .v { margin-left: auto; font-weight: 650; }
.mock-row .v.ok { color: var(--color-accent); }
.mock-row .v.info { color: var(--color-secondary); }
.mock-row .v.warn { color: var(--warn); }
.mock-title { font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin: 2px 0 10px; display: flex; align-items: center; gap: 8px; }
.bar-track { height: 7px; border-radius: 7px; background: #19212c; overflow: hidden; flex: 1; }
.bar-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--color-primary), var(--color-secondary)); width: 0; transition: width 1.4s var(--ease); }
.bar-fill.mint { background: linear-gradient(90deg, #2fbf71, var(--color-accent)); }
.in-view .bar-fill, .tabpanel:not([hidden]) .bar-fill, .wt-screen.active .bar-fill { width: var(--w, 60%); }
.term { font: 500 .8rem/1.7 var(--mono); color: #c4ccd6; }
.term .p { color: var(--color-accent); }
.term .c { color: var(--dim); }
.cipher-live { font: 500 .78rem/1.5 var(--mono); color: #6f84a8; word-break: break-all; }

/* ---------- walkthrough ---------- */
.walkthrough { display: grid; grid-template-columns: 1fr 1.25fr; gap: 32px; align-items: center; }
.wt-steps { display: grid; gap: 10px; counter-reset: wt; }
.wt-step {
  position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; text-align: left; width: 100%;
  padding: 16px; border-radius: 16px; background: transparent; border: 1px solid var(--line); color: var(--color-text); cursor: pointer;
  font: inherit; transition: background .25s, border-color .25s;
}
.wt-step:hover { background: rgba(255, 255, 255, .025); }
.wt-step .n { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 750 1rem/1 var(--mono); background: var(--bg-elev); border: 1px solid var(--line2); color: var(--muted); transition: all .25s; }
.wt-step b { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.wt-step span.d { color: var(--muted); font-size: .92rem; line-height: 1.45; display: block; }
.wt-step[aria-selected="true"] { background: rgba(37, 99, 235, .08); border-color: rgba(126, 162, 255, .35); }
.wt-step[aria-selected="true"] .n { background: var(--color-primary); color: #fff; border-color: transparent; }
.wt-step .progress { position: absolute; left: 16px; right: 16px; bottom: 0; height: 2px; border-radius: 2px; background: transparent; overflow: hidden; }
.wt-step[aria-selected="true"] .progress::after { content: ""; display: block; height: 100%; background: var(--color-accent); animation: wtprog var(--wt-dur, 6s) linear forwards; }
.walkthrough.paused .wt-step .progress::after { animation-play-state: paused; }
@keyframes wtprog { from { width: 0; } to { width: 100%; } }
.wt-stage { position: relative; min-height: 380px; }
.wt-screen { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.985); transition: opacity .45s var(--ease), transform .5s var(--ease), visibility 0s .5s; }
.wt-screen.active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease), transform .5s var(--ease); }
.wt-screen .mock { height: 100%; }
.wt-controls { display: flex; gap: 10px; align-items: center; margin-top: 14px; color: var(--dim); font-size: .85rem; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-elev); border: 1px solid var(--line2); color: var(--color-text); cursor: pointer; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { border-color: #3d4a5c; }

/* ---------- E2E toggle demo ---------- */
.e2e-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; }
.switch { display: inline-flex; align-items: center; gap: 14px; cursor: pointer; user-select: none; font-weight: 650; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 58px; height: 32px; border-radius: 99px; background: #232c38; border: 1px solid var(--line2); position: relative; transition: background .3s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #c4ccd6; transition: transform .35s var(--ease), background .3s; }
.switch input:checked + .track { background: rgba(126, 226, 155, .3); border-color: rgba(126, 226, 155, .6); }
.switch input:checked + .track::after { transform: translateX(26px); background: var(--color-accent); }
.switch input:focus-visible + .track { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.vis-table { border-radius: 16px; border: 1px solid var(--line2); overflow: hidden; background: #0e1218; }
.vis-row { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; border-bottom: 1px solid var(--line); }
.vis-row:last-child { border-bottom: 0; }
.vis-row > div { padding: 14px 16px; font-size: .92rem; }
.vis-row.head > div { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--dim); background: #10151d; }
.vis-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; transition: color .3s; }
.vis-state svg { width: 16px; height: 16px; }
.vis-state.yes { color: var(--warn); }
.vis-state.no { color: var(--color-accent); }
.vis-state.meta { color: var(--color-secondary); }
.vis-state .swap { display: inline-block; animation: slideIn .35s var(--ease); }

/* ---------- before / after ---------- */
.compare-slider { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line2); user-select: none; --pos: 50%; background: #0e1218; }
.cs-layer { padding: clamp(22px, 3.5vw, 40px); min-height: 380px; }
.cs-before { background: linear-gradient(135deg, #1a1416, #121015); }
.cs-after { position: absolute; inset: 0; background: linear-gradient(135deg, #0f1a24, #0c1420); clip-path: inset(0 0 0 var(--pos)); }
.cs-layer h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }
.cs-layer .pill { font-size: .7rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.cs-before .pill { background: rgba(242, 119, 122, .14); color: #f7a8aa; }
.cs-after .pill { background: rgba(126, 226, 155, .14); color: var(--color-accent); }
.cs-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.cs-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; max-width: 46%; }
.cs-after .cs-list { margin-left: auto; }
.cs-before .cs-head, .cs-before .cs-list { max-width: 46%; }
.cs-after .cs-head { max-width: 46%; margin-left: auto; }
.cs-list li { display: flex; gap: 10px; font-size: .95rem; color: #c4ccd6; }
.cs-list li svg { width: 18px; height: 18px; flex: none; margin-top: 4px; }
.cs-before li svg { color: #f2777a; }
.cs-after li svg { color: var(--color-accent); }
.cs-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; background: linear-gradient(var(--color-secondary), var(--color-accent)); transform: translateX(-1px); pointer-events: none; }
.cs-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; border-radius: 50%; transform: translate(-50%, -50%); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0e13' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center/20px no-repeat; box-shadow: 0 6px 24px rgba(0, 0, 0, .5); }
.compare-slider input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.compare-slider:focus-within .cs-handle::after { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.cs-hint { text-align: center; color: var(--dim); font-size: .85rem; margin-top: 12px; }

/* ---------- split feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; }
.feature-row + .feature-row { border-top: 1px solid var(--line); }
.feature-row.flip .fr-media { order: -1; }
.feature-row h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.fr-media { position: relative; }

/* ---------- steps timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; position: relative; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); opacity: .35; transform-origin: left; transform: scaleX(var(--tl, 0)); transition: transform 1.6s var(--ease); }
.timeline.in-view::before { --tl: 1; }
.tl-step { position: relative; text-align: center; padding: 0 6px; }
.tl-step .n { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; background: var(--bg-elev); border: 1px solid var(--line2); color: #fff; font: 750 1.1rem/1 var(--mono); position: relative; z-index: 1; box-shadow: 0 0 0 6px var(--color-bg); }
.tl-step h3 { font-size: 1.08rem; }
.tl-step p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- audience cards ---------- */
.aud-card { display: flex; flex-direction: column; }
.aud-card .card-link { margin-top: auto; padding-top: 18px; }
.aud-card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.aud-card li { display: flex; gap: 9px; color: #c4ccd6; font-size: .93rem; }
.aud-card li svg { width: 16px; height: 16px; color: var(--color-accent); flex: none; margin-top: 5px; }

/* ---------- straight talk ---------- */
.straight { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.st-box { padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg-elev2); }
.st-box h3 { display: flex; align-items: center; gap: 10px; }
.st-box h3 svg { width: 22px; height: 22px; }
.st-box.yes h3 svg { color: var(--color-accent); }
.st-box.no h3 svg { color: var(--dim); }

/* ---------- placeholder (stories) ---------- */
.placeholder-card { border: 1.5px dashed #34405a; background: repeating-linear-gradient(135deg, rgba(126, 162, 255, .03) 0 12px, transparent 12px 24px); }
.placeholder-card .ph-tag { display: inline-block; font-size: .68rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--warn); border: 1px solid rgba(240, 160, 32, .35); padding: 4px 8px; border-radius: 6px; }
.placeholder-card blockquote { margin: 16px 0; font-size: 1.05rem; color: #c4ccd6; font-style: italic; }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: var(--bg-elev2); transition: border-color .25s, background .25s; }
.faq-item.open { border-color: #2f3b4f; background: #10151d; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; text-align: left; padding: 20px 22px; background: none; border: 0; color: var(--color-text); cursor: pointer; font: 650 1.04rem/1.4 var(--font-body); }
.faq-q .pm { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-elev3); border: 1px solid var(--line2); flex: none; transition: transform .3s var(--ease), background .3s; }
.faq-q .pm svg { width: 15px; height: 15px; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--color-primary); border-color: transparent; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a .inner { padding: 0 22px 20px; color: var(--muted); }
.faq-a .inner p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; border-radius: 28px; padding: clamp(36px, 6vw, 72px);
  background: radial-gradient(120% 140% at 0% 0%, #1b3a8a 0%, #12245a 30%, #0d1424 70%), #0d1424;
  border: 1px solid rgba(126, 162, 255, .3);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center;
}
.cta-band h2 { margin-bottom: 14px; }
.cta-band p { color: #c3cff0; margin: 0; max-width: 520px; }
.cta-band .btn-row { justify-content: flex-end; }
.cta-band .bg-grid { opacity: .5; }
.cta-band .ring { position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; border: 1px solid rgba(126, 162, 255, .18); }
.cta-band .ring.r2 { width: 520px; height: 520px; right: -170px; top: -170px; border-color: rgba(126, 162, 255, .1); }
.cta-band .ring.r3 { width: 700px; height: 700px; right: -260px; top: -260px; border-color: rgba(126, 162, 255, .06); }
.cta-band > *:not(.ring):not(.bg-grid) { position: relative; z-index: 1; }

/* ---------- forms ---------- */
.form-shell { border-radius: var(--radius-lg); border: 1px solid var(--line2); background: linear-gradient(180deg, #121823, #0e1218); padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow); }
.form-shell h2, .form-shell h3 { margin-top: 0; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label, .field .label { font-size: .88rem; font-weight: 650; color: #d6dde6; }
.field .req { color: var(--color-accent); }
.field small { color: var(--dim); font-size: .8rem; }
.input, .field input[type=text], .field input[type=email], .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 11px;
  background: #0b0f15; border: 1px solid var(--line2); color: var(--color-text);
  font: 500 1rem/1.4 var(--font-body); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; -webkit-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='%239aa4b1' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 4px rgba(126, 162, 255, .16); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.interest-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.interest-opt { position: relative; }
.interest-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.interest-opt span { display: flex; align-items: center; gap: 9px; min-height: 46px; padding: 10px 12px; border-radius: 11px; border: 1px solid var(--line2); background: #0b0f15; font-size: .9rem; color: #c4ccd6; transition: all .2s; }
.interest-opt span::before { content: ""; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid #46556b; flex: none; transition: all .2s; }
.interest-opt input:checked + span { border-color: rgba(126, 226, 155, .55); background: rgba(126, 226, 155, .08); color: #fff; }
.interest-opt input:checked + span::before { background: var(--color-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23062312' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; border-color: var(--color-accent); }
.interest-opt input:focus-visible + span { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.captcha { margin: 6px 0 14px; min-height: 0; }
.form-note { font-size: .8rem; color: var(--dim); margin: 12px 0 0; }
.form-status { margin-top: 14px; padding: 12px 14px; border-radius: 11px; font-size: .92rem; display: none; }
.form-status.show { display: block; animation: slideIn .35s var(--ease); }
.form-status.error { background: rgba(242, 119, 122, .1); border: 1px solid rgba(242, 119, 122, .35); color: #ffc3c4; }
.form-status.info { background: rgba(126, 162, 255, .08); border: 1px solid rgba(126, 162, 255, .25); color: #cdd9ff; }
.form-success { text-align: center; padding: 28px 8px; animation: slideIn .5s var(--ease); }
.form-success .tick { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px; display: grid; place-items: center; background: rgba(126, 226, 155, .14); border: 1px solid rgba(126, 226, 155, .45); color: var(--color-accent); }
.form-success .tick svg { width: 30px; height: 30px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.key-out { text-align: left; white-space: pre-wrap; word-break: break-all; padding: 14px; border-radius: 11px; background: #0b0f15; border: 1px solid var(--line2); font-size: .8rem; max-height: 200px; overflow: auto; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-points { display: grid; gap: 14px; margin-top: 28px; }
.cp { display: flex; gap: 14px; padding: 18px; border-radius: 16px; background: var(--bg-elev2); border: 1px solid var(--line); }
.cp .icon-tile { width: 42px; height: 42px; flex: none; }
.cp .icon-tile svg { width: 20px; height: 20px; }
.cp b { display: block; margin-bottom: 2px; }
.cp p { margin: 0; color: var(--muted); font-size: .93rem; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.price-card { display: flex; flex-direction: column; padding: 30px; border-radius: var(--radius-lg); border: 1px solid var(--line2); background: linear-gradient(180deg, #121823, #0e1218); }
.price-card.featured { border-color: rgba(126, 162, 255, .5); box-shadow: var(--shadow-glow); }
.price-card .tier { font-weight: 700; color: var(--color-secondary); text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; }
.price-card .amount { font: 780 2.8rem/1 var(--font-heading); letter-spacing: -.03em; margin: 14px 0 6px; }
.price-card .amount small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card .sub { color: var(--muted); font-size: .92rem; min-height: 1.4em; }
.price-card .checks { margin: 22px 0 26px; }
.price-card .btn-row { margin-top: auto; }

/* ---------- prose & docs ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.85rem); margin-top: 2.2em; }
.prose h3 { margin-top: 1.8em; }
.prose p, .prose li { color: #c4ccd6; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(126, 162, 255, .4); }
.docs-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.docs-nav { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 4px; }
.docs-nav h4 { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin: 16px 0 6px; }
.docs-nav h4:first-child { margin-top: 0; }
.docs-nav a { display: block; padding: 8px 12px; border-radius: 9px; color: #b9c3cf; font-size: .94rem; border-left: 2px solid transparent; }
.docs-nav a:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.docs-nav a[aria-current="page"] { background: rgba(37, 99, 235, .12); color: #fff; border-left-color: var(--color-accent); }
.callout { display: flex; gap: 12px; padding: 16px 18px; border-radius: 14px; background: rgba(126, 162, 255, .07); border: 1px solid rgba(126, 162, 255, .22); margin: 22px 0; color: #cdd9ff; font-size: .95rem; }
.callout svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--color-secondary); }
.callout.warn { background: rgba(240, 160, 32, .07); border-color: rgba(240, 160, 32, .28); color: #f7dcae; }
.callout.warn svg { color: var(--warn); }
.callout p:last-child { margin: 0; }
.doc-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.doc-next a { display: block; padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-elev2); color: var(--color-text); transition: border-color .2s, transform .25s var(--ease); }
.doc-next a:hover { border-color: #334058; transform: translateY(-2px); }
.doc-next small { display: block; color: var(--dim); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list > li { counter-increment: s; position: relative; padding: 0 0 0 48px; margin-bottom: 18px; }
.steps-list > li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--bg-elev3); border: 1px solid var(--line2); font: 700 .88rem/1 var(--mono); color: var(--color-secondary); }
.arch { margin: 26px 0; }

/* compare table */
.ctable { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line2); border-radius: 16px; overflow: hidden; font-size: .95rem; }
.ctable th, .ctable td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.ctable tr:last-child td { border-bottom: 0; }
.ctable thead th { background: #10151d; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.ctable td:first-child { color: #d6dde6; font-weight: 650; width: 30%; }
.ctable td { color: #c4ccd6; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 16px; }

/* ---------- ask widget ---------- */
.ask-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 95; display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px; border-radius: 999px; cursor: pointer;
  background: #141a24; color: var(--color-text); border: 1px solid #2c3850; box-shadow: var(--shadow);
  font: 650 .92rem/1 var(--font-body); transition: transform .25s var(--ease), border-color .2s;
}
.ask-fab:hover { transform: translateY(-2px); border-color: var(--color-secondary); }
.ask-fab svg { width: 20px; height: 20px; color: var(--color-accent); }
.ask-panel {
  position: fixed; right: 20px; bottom: 84px; z-index: 96; width: min(420px, calc(100vw - 24px)); max-height: min(640px, calc(100vh - 120px));
  display: flex; flex-direction: column; border-radius: 20px; overflow: hidden;
  background: #10151d; border: 1px solid var(--line2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98); transform-origin: bottom right;
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.ask-panel.open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .3s var(--ease); }
.ask-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 18px 14px; border-bottom: 1px solid var(--line); }
.ask-head b { display: block; }
.ask-head small { color: var(--dim); font-size: .8rem; }
.ask-head .icon-btn { margin-left: auto; }
.ask-body { padding: 16px 18px; overflow-y: auto; flex: 1; font-size: .93rem; }
.ask-suggest { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ask-suggest button { font: 550 .8rem/1.2 var(--font-body); padding: 7px 11px; border-radius: 999px; border: 1px solid var(--line2); background: var(--bg-elev); color: #c4ccd6; cursor: pointer; }
.ask-suggest button:hover { border-color: var(--color-secondary); color: #fff; }
.ask-answer { padding: 14px; border-radius: 12px; background: #0b0f15; border: 1px solid var(--line); color: #c4ccd6; white-space: pre-wrap; margin-bottom: 12px; animation: slideIn .35s var(--ease); }
.ask-answer .src { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; white-space: normal; }
.ask-answer .src a { font-size: .78rem; padding: 4px 9px; border-radius: 7px; background: rgba(126, 162, 255, .1); }
.ask-form { padding: 14px 18px 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.ask-form textarea, .ask-form input[type=email] { width: 100%; padding: 10px 12px; border-radius: 10px; background: #0b0f15; border: 1px solid var(--line2); color: var(--color-text); font: 500 .93rem/1.4 var(--font-body); resize: none; }
.ask-form textarea:focus, .ask-form input:focus { outline: none; border-color: var(--color-secondary); }
.ask-form .row { display: flex; gap: 8px; }
.ask-form .row .btn { flex: 1; }
.ask-links { display: flex; flex-wrap: wrap; gap: 12px; font-size: .8rem; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 36px; background: linear-gradient(180deg, var(--color-bg), #080a0e); margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; }
.footer-grid h4 { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-grid a { color: #b9c3cf; font-size: .93rem; }
.footer-grid a:hover { color: #fff; }
.footer-about p { color: var(--muted); font-size: .93rem; max-width: 330px; margin-top: 14px; }
.footer-contact { display: grid; gap: 6px; margin-top: 16px; font-size: .9rem; color: var(--muted); }
.footer-contact a { color: #c4ccd6; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--dim); font-size: .85rem; }
.footer-bottom a { color: var(--muted); }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.from-left { transform: translateX(-30px); }
.reveal.from-right { transform: translateX(30px); }
.reveal.zoom { transform: scale(.96); }
.reveal.in-view { opacity: 1; transform: none; }
.hero-in > * { opacity: 0; transform: translateY(18px); animation: heroIn .9s var(--ease) forwards; }
.hero-in > *:nth-child(1) { animation-delay: .05s; }
.hero-in > *:nth-child(2) { animation-delay: .15s; }
.hero-in > *:nth-child(3) { animation-delay: .27s; }
.hero-in > *:nth-child(4) { animation-delay: .39s; }
.hero-in > *:nth-child(5) { animation-delay: .5s; }
.hero-visual-in { opacity: 0; transform: translateY(24px) scale(.97); animation: heroIn 1.1s .3s var(--ease) forwards; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.no-js .reveal, .no-js .hero-in > *, .no-js .hero-visual-in { opacity: 1; transform: none; animation: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .main-nav, .header-cta .signin, .header-cta .btn-ghost { display: none; }
  .menu-toggle { display: grid; }
  .header-cta { margin-left: auto; }
  .header-cta + .menu-toggle { margin-left: 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .hero-grid, .challenge-wrap, .walkthrough, .e2e-demo, .feature-row, .contact-grid, .cta-band, .docs-layout { grid-template-columns: 1fr; }
  .feature-row.flip .fr-media { order: 0; }
  .contact-grid > .form-shell { order: -1; }
  .explorer { grid-template-columns: 1fr; }
  .tablist { flex-direction: row; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .tab { flex: none; width: auto; scroll-snap-align: start; padding: 10px 14px; }
  .tab .bar { display: none; }
  .tabpanel { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .value-strip { grid-template-columns: 1fr 1fr; }
  .value-strip > div:nth-child(2) { border-right: 0; }
  .value-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .timeline::before { display: none; }
  .cta-band .btn-row { justify-content: flex-start; }
  .docs-nav { position: static; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
  .docs-nav h4 { grid-column: 1 / -1; }
  .wt-stage { min-height: 360px; }
  .straight { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .header-cta .btn-primary { display: none; }
  .sticky-cta { display: flex; }
  .ask-fab { bottom: 84px; right: 14px; padding: 12px; }
  .ask-fab .lbl { display: none; }
  .ask-panel { right: 12px; bottom: 144px; max-height: calc(100vh - 220px); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .field-row, .interest-grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 10px; }
  .lanes { min-height: 54px; }
  .lanes svg { display: none; }
  .lanes::before { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; background: repeating-linear-gradient(var(--color-secondary) 0 4px, transparent 4px 9px); animation: down 1s linear infinite; }
  @keyframes down { to { background-position: 0 9px; } }
  .hosts { grid-template-columns: 1fr 1fr; }
  .hosts .host:nth-child(3) { display: none; }
  .flow-foot { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .mini-stat { padding: 8px; }
  .floating-chip { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cs-cols { grid-template-columns: 1fr; }
  .cs-layer { min-height: 520px; }
  .cs-list, .cs-before .cs-head, .cs-before .cs-list, .cs-after .cs-head { max-width: 48%; font-size: .88rem; }
  .cs-list li { font-size: .86rem; }
  .doc-next { grid-template-columns: 1fr; }
  .value-strip > div { padding: 20px 16px; }
  .wb-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .site-footer { padding-bottom: 110px; }
  .timeline { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .hosts { grid-template-columns: 1fr; }
  .hosts .host:nth-child(2) { display: none; }
  .btn-row .btn { width: 100%; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .reveal, .hero-in > *, .hero-visual-in { opacity: 1 !important; transform: none !important; }
  .drift, .floating-chip { animation: none !important; }
  .packet { display: none; }
}

@media print {
  .site-header, .sticky-cta, .ask-fab, .ask-panel, .site-footer, .cta-band { display: none !important; }
  body { background: #fff; color: #000; }
}
