/* ============================================================
   NAS — Embedded-finance landing site
   Static rebuild · accessible · security-headers friendly
   No external dependencies — fonts self-hosted.
   ============================================================ */

/* ----- 0. self-hosted webfonts (variable; latin subset) ----- */
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/assets/fonts/jetbrains-mono.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ----- 1. tokens --------------------------------------------- */
:root {
  /* ink */
  --bg: #0b0d1f;
  --bg-2: #11142b;
  --bg-3: #1a1f3d;
  --surface: #161a36;
  --surface-2: #1f2447;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* type */
  --text: #f3f4f8;
  --text-muted: #a4a8c4;
  --text-dim: #8a8fb5;  /* ≥4.5:1 against --bg and --surface (WCAG AA body) */

  /* brand */
  --brand: #34e0a1;
  --brand-2: #7c5cff;
  --brand-glow: rgba(52, 224, 161, 0.35);
  --accent: #f9c46a;
  --danger: #ff7e7e;

  /* gradients */
  --gradient-surface: linear-gradient(180deg, #161a36 0%, #11142d 100%);

  /* shape */
  --r: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, 0.55);

  /* spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 72px;
  --s-9: 96px;

  --max: 1200px;
  --nav-h: 72px;

  /* fonts */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ----- 2. reset --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* Ensure the `hidden` attribute always wins, even on elements with a
   non-default display (e.g. .form has display:grid, .form-success-card
   was rendering alongside the form). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
section[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--brand); color: #06210f; }

/* ----- 3. typography ---------------------------------------- */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; margin: 0 0 0.6em; line-height: 1.1; color: var(--text); }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); font-weight: 900; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; }
h4 { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text); font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: var(--brand); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1, "ss01" 1; letter-spacing: -0.01em; }
.gradient-text {
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--accent), var(--brand));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradientShift 9s ease-in-out infinite;
}

/* ----- 4. layout primitives --------------------------------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--s-9) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.sec-head { text-align: center; max-width: 740px; margin: 0 auto var(--s-7); }
.sec-head p { font-size: 1.05rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.22em;
  font-weight: 700; color: var(--brand);
  padding: 6px 12px; border-radius: var(--r-pill);
  background: rgba(52, 224, 161, 0.08);
  border: 1px solid rgba(52, 224, 161, 0.25);
  margin-bottom: 18px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: 8px;
  background: var(--brand); color: #06210f;
  padding: 10px 14px; border-radius: 8px;
  font-weight: 700; z-index: 200;
  transform: translateY(-200%); transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

/* ----- 5. button -------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--brand); color: #06210f;
  box-shadow: 0 10px 30px var(--brand-glow);
  position: relative; overflow: hidden; isolation: isolate;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  z-index: -1;
}
.btn-primary:hover { transform: translateY(-2px); color: #06210f; box-shadow: 0 18px 45px var(--brand-glow); }
.btn-primary:hover::after { animation: shimmer 0.9s ease; }
.btn-ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover { color: var(--text); border-color: var(--brand); transform: translateY(-2px); }

.linklike {
  background: none; border: 0; padding: 0;
  color: var(--text-muted); font-size: 0.95rem;
  cursor: pointer;
}
.linklike:hover { color: var(--brand); }

/* ----- 6. nav ----------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 80;
  background: rgba(11, 13, 31, 0.55);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(11, 13, 31, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 900; letter-spacing: 0.05em;
  color: var(--text); font-size: 1.18rem;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  background: conic-gradient(from 220deg, var(--brand), var(--brand-2), var(--brand));
  box-shadow: 0 0 0 2px rgba(255,255,255,0.05), 0 0 24px var(--brand-glow);
  position: relative;
  animation: brandPulse 3s ease-in-out infinite;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 6px;
  border-radius: 4px;
  background: var(--bg);
}
.brand-mark::before {
  content: "N";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--brand);
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0;
  z-index: 1;
}
@keyframes brandPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255,255,255,0.05), 0 0 24px var(--brand-glow); }
  50%      { box-shadow: 0 0 0 2px rgba(255,255,255,0.05), 0 0 38px rgba(52,224,161,0.55); }
}
.brand-wordmark { font-weight: 900; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: var(--text-muted); font-weight: 500; font-size: 0.95rem;
  position: relative; padding: 6px 0;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--brand);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; align-items: center; gap: 12px; }

/* mobile menu toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  background: transparent; border: 1px solid var(--border-strong);
  border-radius: 10px; padding: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 1px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { border-top: 1px solid var(--border); background: rgba(11,13,31,0.98); }
.mobile-menu nav { display: flex; flex-direction: column; padding: 16px 24px 24px; gap: 14px; max-width: var(--max); margin: 0 auto; }
.mobile-menu nav a { color: var(--text-muted); padding: 8px 0; font-size: 1rem; }
.mobile-menu nav a:hover { color: var(--brand); }
.mobile-menu nav .btn { align-self: flex-start; }

@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ----- 7. hero ---------------------------------------------- */
.hero { padding: 110px 0 60px; position: relative; overflow: hidden; }
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  filter: blur(80px); will-change: transform;
}
.hero::before {
  top: -260px; left: 50%; margin-left: -450px;
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(124,92,255,0.32), transparent 60%);
  animation: floatSlow 22s ease-in-out infinite;
}
.hero::after {
  bottom: -340px; right: -200px;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(52,224,161,0.22), transparent 60%);
  animation: floatSlower 26s ease-in-out infinite;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero h1 { margin-top: 8px; }
.hero p.lead { font-size: 1.15rem; max-width: 560px; margin-bottom: 18px; }
.hero p.lead-secondary { font-size: 1rem; max-width: 560px; margin-top: 0; margin-bottom: 28px; color: var(--text-dim); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; margin: 36px 0 0;
  padding-top: 24px; border-top: 1px solid var(--border);
}
.hero-stats div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats dt { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); font-weight: 600; }
.hero-stats dd { margin: 0; font-size: 1.5rem; font-weight: 800; color: var(--text); }

.hero-mock { position: relative; display: grid; place-items: center; min-height: 380px; }
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 80px 0 40px; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .hero-stats dd { font-size: 1.15rem; }
}
/* Below 560px the 3-column stats are too narrow for the longer labels. Stack
   them into a 1-column list with horizontal label/value pairs. */
@media (max-width: 560px) {
  .hero-stats { grid-template-columns: 1fr; gap: 14px; padding-top: 20px; margin-top: 28px; }
  .hero-stats div { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 12px; }
  .hero-stats dt { flex: 1; }
  .hero-stats dd { font-size: 1.05rem; }
}

/* ----- 8. card mock (hero) ---------------------------------- */
.card-mock {
  width: 340px; max-width: 100%; aspect-ratio: 1.586 / 1;
  border-radius: 22px; padding: 24px;
  background:
    linear-gradient(135deg, rgba(52,224,161,0.25), transparent 50%),
    linear-gradient(225deg, rgba(124,92,255,0.40), transparent 60%),
    linear-gradient(180deg, #1f2447, #0c0f25);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: var(--shadow-lg);
  position: relative; color: #fff;
  transform: rotate(-6deg);
  animation: float 6s ease-in-out infinite;
  transition: transform 0.25s ease;
}
.card-mock::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.16) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shimmer 5s ease-in-out infinite;
  pointer-events: none;
}
.card-mock .chip { width: 38px; height: 28px; border-radius: 6px; background: linear-gradient(135deg, var(--accent), #c98c2a); margin-bottom: 34px; }
.card-mock .number { font-family: var(--font-mono); font-size: 1.05rem; letter-spacing: 0.16em; margin-bottom: 14px; }
.card-mock .row { display: flex; justify-content: space-between; align-items: flex-end; font-size: 0.78rem; color: rgba(255,255,255,0.78); }
.card-mock .label { font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; opacity: 0.6; }
.card-mock .nas-mark { position: absolute; top: 22px; right: 26px; font-weight: 900; letter-spacing: 0.2em; font-size: 1rem; }
.card-mock .nas-mark span { color: var(--brand); }
.card-mock .scheme { position: absolute; bottom: 22px; right: 26px; width: 46px; height: 30px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-radius: 6px; opacity: 0.9; }
.card-mock.behind {
  position: absolute; z-index: -1;
  transform: rotate(8deg) translate(40px, 28px);
  filter: blur(0.5px); opacity: 0.7;
}

/* ----- 9. trust strip / logos marquee ----------------------- */
.logos-marquee {
  overflow: hidden; position: relative;
  margin-top: 80px; padding: 14px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.logos-track {
  display: flex; gap: 36px; width: max-content;
  animation: marquee 30s linear infinite;
  padding: 0;
}
.logos-marquee:hover .logos-track { animation-play-state: paused; }
.logos-track span {
  font-weight: 700; color: var(--text-muted);
  letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.75rem;
  border: 1px solid var(--border); padding: 9px 16px; border-radius: 6px;
  white-space: nowrap; flex-shrink: 0;
  transition: color 0.3s ease, border-color 0.3s ease;
}
.logos-track span:hover { color: var(--brand); border-color: rgba(52,224,161,0.4); }

.live-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 0 var(--brand-glow);
  animation: pulseGlow 1.6s ease-in-out infinite;
}

/* ----- 10. features ----------------------------------------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform 0.35s cubic-bezier(0.2,0.7,0.2,1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative; overflow: hidden;
}
.feature::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(135deg, rgba(52,224,161,0.6), rgba(124,92,255,0.6));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s ease; pointer-events: none;
}
.feature:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
.feature:hover::before { opacity: 1; }
.feature .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: rgba(52,224,161,0.12); color: var(--brand);
  font-size: 1.2rem; margin-bottom: 16px;
  transition: transform 0.3s ease, background 0.3s ease;
}
.feature:hover .icon { transform: scale(1.08) rotate(-3deg); background: rgba(52,224,161,0.22); }
.feature p { margin: 0; font-size: 0.95rem; }

/* ----- 11. surfaces grid (mobile/web/business/admin) -------- */
.surfaces-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.surface {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px 28px;
  transition: transform 0.35s cubic-bezier(0.2,0.7,0.2,1), border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative; overflow: hidden;
}
.surface:hover { transform: translateY(-6px); border-color: rgba(52,224,161,0.4); box-shadow: 0 30px 60px rgba(0,0,0,0.35); }
.surface::after {
  content: ""; position: absolute;
  inset: -50% -10% auto -10%; height: 60%;
  background: radial-gradient(ellipse at center, rgba(52,224,161,0.1), transparent 70%);
  pointer-events: none; z-index: 0;
}
.surface > * { position: relative; z-index: 1; }
.surface-mock { margin: 0 auto 22px; display: grid; place-items: center; height: 260px; }
.surface-eyebrow { display: inline-block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; font-weight: 700; color: var(--brand); margin-bottom: 8px; }
.surface h3 { margin-bottom: 6px; font-size: 1.15rem; }
.surface p { margin: 0; font-size: 0.92rem; }

/* phone mock */
.phone-mock {
  width: 170px; height: 340px; border-radius: 28px;
  background: linear-gradient(180deg, #1a1f3d, #0b0d1f);
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 30px 60px rgba(0,0,0,0.55), inset 0 0 30px rgba(52,224,161,0.05);
  padding: 18px 10px 10px; position: relative;
  transform: rotate(-2deg);
  animation: float 7s ease-in-out infinite;
}
.phone-mock::before {
  content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 50px; height: 14px; border-radius: 0 0 12px 12px; background: #050616;
}
.phone-screen {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border-radius: 18px; height: 100%; padding: 18px 12px 8px;
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid rgba(255,255,255,0.04);
}
.phone-header { font-size: 0.55rem; color: var(--text-dim); text-align: center; letter-spacing: 0.1em; }
.phone-balance { font-size: 0.65rem; color: var(--text-muted); text-align: center; }
.phone-balance strong { display: block; font-size: 1.2rem; color: var(--brand); margin-top: 2px; letter-spacing: -0.02em; font-family: var(--font-mono); }
.phone-asset-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px; background: rgba(255,255,255,0.04); border-radius: 6px; font-size: 0.6rem; color: var(--text-muted); }
.phone-asset-row strong { color: var(--text); font-weight: 600; font-family: var(--font-mono); }
.phone-card {
  margin-top: auto; height: 64px; border-radius: 8px;
  background: linear-gradient(135deg, rgba(52,224,161,0.4), transparent 60%), linear-gradient(180deg, #1f2447, #0c0f25);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 10px; display: flex; flex-direction: column; justify-content: space-between;
  font-size: 0.55rem; color: rgba(255,255,255,0.8); font-family: var(--font-mono);
}
.phone-card .small { font-size: 0.5rem; opacity: 0.6; letter-spacing: 0.15em; text-transform: uppercase; }
.phone-tabs { display: flex; justify-content: space-around; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.06); }
.phone-tabs span { font-size: 0.5rem; color: var(--text-dim); letter-spacing: 0.08em; }
.phone-tabs span.active { color: var(--brand); font-weight: 600; }

/* browser mock */
.browser-mock {
  width: 100%; max-width: 340px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
  font-size: 0.6rem;
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: rgba(0,0,0,0.3); border-bottom: 1px solid rgba(255,255,255,0.05); }
.browser-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.15); }
.browser-bar .dot:nth-child(1) { background: #ff5f57; }
.browser-bar .dot:nth-child(2) { background: #febc2e; }
.browser-bar .dot:nth-child(3) { background: #28c840; }
.browser-bar .url { flex: 1; margin-left: 8px; font-size: 0.55rem; color: var(--text-dim); font-family: var(--font-mono); background: rgba(0,0,0,0.3); padding: 4px 8px; border-radius: 4px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser-body { display: grid; grid-template-columns: 80px 1fr; min-height: 200px; }
.browser-sidebar { background: rgba(0,0,0,0.2); padding: 10px 8px; display: flex; flex-direction: column; gap: 6px; border-right: 1px solid rgba(255,255,255,0.04); }
.browser-sidebar span { font-size: 0.55rem; color: var(--text-dim); padding: 3px 6px; border-radius: 4px; }
.browser-sidebar span.active { color: var(--brand); background: rgba(52,224,161,0.1); font-weight: 600; }
.browser-content { padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.browser-content .title { font-size: 0.72rem; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.browser-row { display: flex; justify-content: space-between; align-items: center; padding: 5px 8px; background: rgba(255,255,255,0.04); border-radius: 4px; font-size: 0.55rem; color: var(--text-muted); }
.browser-row strong { color: var(--brand); font-weight: 600; font-family: var(--font-mono); }
.browser-pill { display: inline-block; font-size: 0.5rem; color: var(--brand); background: rgba(52,224,161,0.1); padding: 2px 6px; border-radius: 999px; letter-spacing: 0.08em; text-transform: uppercase; border: 1px solid rgba(52,224,161,0.25); align-self: flex-start; }
.browser-pill.violet { color: var(--brand-2); background: rgba(124,92,255,0.1); border-color: rgba(124,92,255,0.25); }
.browser-pill.amber { color: var(--accent); background: rgba(249,196,106,0.1); border-color: rgba(249,196,106,0.25); }
.browser-bars { display: grid; grid-template-columns: repeat(8, 1fr); gap: 3px; align-items: end; height: 40px; margin-top: 4px; }
.browser-bars span { background: linear-gradient(180deg, var(--brand), var(--brand-2)); border-radius: 2px 2px 0 0; opacity: 0.75; }
.browser-bars .h-40 { height: 40%; }
.browser-bars .h-50 { height: 50%; }
.browser-bars .h-60 { height: 60%; }
.browser-bars .h-65 { height: 65%; }
.browser-bars .h-70 { height: 70%; }
.browser-bars .h-75 { height: 75%; }
.browser-bars .h-80 { height: 80%; }
.browser-bars .h-90 { height: 90%; }

/* ---- small utility classes used by legal-page footnotes and the 404 page ---- */
.note-mono { color: var(--text-dim); font-size: 0.82rem; }
.last-updated { color: var(--text-dim); font-size: 0.85rem; }
.error-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.error-page .eyebrow-mono { color: var(--brand); letter-spacing: 0.3em; font-size: 0.78rem; margin-bottom: 24px; }
.error-page h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 0 0 12px; }
.error-page p { color: var(--text-muted); max-width: 520px; margin: 0 auto 32px; }
.error-page .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ----- 12. products grid ------------------------------------ */
.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
@media (max-width: 880px) { .products-grid { grid-template-columns: 1fr; } }
.product {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  position: relative;
  transition: transform 0.35s ease, border-color 0.3s ease;
}
.product:hover { transform: translateY(-4px); border-color: rgba(52,224,161,0.35); }
.product-tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-2); padding: 4px 10px;
  border: 1px solid rgba(124,92,255,0.3);
  border-radius: 4px; margin-bottom: 14px;
}
.product h3 { font-size: 1.45rem; margin-bottom: 8px; }
.product-lede { color: var(--text); font-size: 1.02rem; margin-bottom: 22px; }
.flow {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.flow li {
  display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 14px;
  padding: 10px 12px; background: rgba(0,0,0,0.18); border-radius: 8px;
  font-size: 0.92rem; color: var(--text-muted);
}
.step-num {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--brand); font-weight: 600;
  display: inline-block;
}
.bullets { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.bullets li {
  padding-left: 22px; position: relative;
  color: var(--text-muted); font-size: 0.92rem;
}
.bullets li::before {
  content: "▸"; position: absolute; left: 0;
  color: var(--brand); font-family: var(--font-mono);
}

/* ----- 13. model split panels ------------------------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 18px; } }
.panel {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
}
.panel header { margin-bottom: 18px; }
.panel-eyebrow { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-dim); }
.panel h3 { font-size: 1.4rem; margin: 8px 0 0; }
.panel ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.panel li { padding-left: 28px; position: relative; color: var(--text-muted); font-size: 0.95rem; }
.panel .x, .panel .check { position: absolute; left: 0; top: 1px; font-weight: 700; }
.panel-bad .x { color: var(--danger); }
.panel-good .check { color: var(--brand); }
.panel-bad { border-color: rgba(255,126,126,0.18); }
.panel-good { border-color: rgba(52,224,161,0.35); box-shadow: 0 30px 60px rgba(52,224,161,0.06); }

.callout {
  margin: var(--s-7) auto 0; max-width: 760px; text-align: center;
  padding: 22px 28px;
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  color: var(--text);
}
.callout em { color: var(--brand); font-style: normal; }
.callout-mark { color: var(--brand); margin-right: 6px; }

/* ----- 14. pricing ------------------------------------------ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 880px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.plan:hover { transform: translateY(-6px); border-color: rgba(52,224,161,0.45); box-shadow: 0 30px 70px rgba(0,0,0,0.35); }
.plan.featured { border-color: rgba(52,224,161,0.6); box-shadow: 0 30px 80px rgba(52,224,161,0.12); transform: translateY(-4px); }
.plan.featured:hover { transform: translateY(-10px); }
.plan-eyebrow { font-size: 0.7rem; color: var(--text-dim); }
.plan h3 { font-size: 1.6rem; margin: 0; }
.plan-claim { color: var(--text); font-size: 1rem; margin: 0; }
.plan ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan li { color: var(--text-muted); font-size: 0.95rem; padding-left: 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
.plan .tag {
  position: absolute; top: -12px; right: 22px;
  background: var(--brand); color: #06210f;
  font-size: 0.72rem; font-weight: 800; padding: 5px 10px;
  border-radius: 999px; letter-spacing: 0.1em; text-transform: uppercase;
  animation: pulseGlow 2.5s ease-in-out infinite;
}
.fineprint { text-align: center; max-width: 680px; margin: 28px auto 0; color: var(--text-dim); font-size: 0.9rem; }

/* ----- 15. capabilities ------------------------------------- */
.capability-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.built-for-grid {
  list-style: none; padding: 0; margin: 32px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.built-for-grid li {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
}
.built-for-cta {
  margin: 28px 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
}
.built-for-cta a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.built-for-cta a:hover { color: var(--text); }

/* Architecture diagram */
.architecture {
  margin: 40px auto 0;
  max-width: 1100px;
  padding: 0;
}
.arch-svg {
  width: 100%;
  height: auto;
  display: block;
  background: #0a0d22;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 8px;
  box-sizing: border-box;
}
.arch-caption {
  margin: 16px 4px 0;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}
/* Architecture diagram: the SVG works on tablet+ where text in the viewBox
   remains readable. Below 720px the labels get too small, so we hide the SVG
   and show a stacked-text version that carries the same information. */
.arch-mobile { display: none; }
@media (max-width: 720px) {
  .arch-svg { display: none; }
  .arch-mobile {
    display: flex; flex-direction: column; gap: 10px;
    list-style: none; padding: 0; margin: 0;
  }
  .arch-mobile-tier {
    background: var(--gradient-surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex; flex-direction: column; gap: 4px;
  }
  .arch-mobile-tier-nas { border-color: #3b4fa8; }
  .arch-mobile-tier-providers { border-color: rgba(34, 211, 155, 0.4); }
  .arch-mobile-eyebrow {
    font-size: 0.95rem; font-weight: 700; color: var(--text);
    letter-spacing: 0.01em;
  }
  .arch-mobile-sub { font-size: 0.85rem; color: var(--text-dim); }
  .arch-mobile-tag {
    font-size: 0.8rem; font-weight: 600; color: var(--brand);
    margin-top: 4px;
  }
  .arch-mobile-divider {
    text-align: center; font-size: 0.72rem; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--text-dim); padding: 2px 0;
  }
  .arch-mobile-providers {
    list-style: none; padding: 0; margin: 8px 0 0;
    display: flex; flex-direction: column; gap: 8px;
  }
  .arch-mobile-providers li {
    font-size: 0.85rem; color: var(--text-muted); line-height: 1.45;
  }
  .arch-mobile-providers li strong { color: var(--text); font-weight: 600; }
  .arch-mobile-funds {
    margin-top: 6px;
    background: rgba(34, 211, 155, 0.08);
    border: 1px dashed #22d39b;
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
  }
  .arch-mobile-funds strong { color: #22d39b; display: block; margin-bottom: 4px; }
}
/* Node entry animations */
.arch-node { opacity: 0; transform: translateY(8px); transform-box: fill-box; transform-origin: center; }
[data-reveal].is-visible .arch-enterprise   { animation: arch-fade-in 0.5s ease-out 0.0s forwards; }
[data-reveal].is-visible .arch-nas          { animation: arch-fade-in 0.5s ease-out 0.35s forwards; }
[data-reveal].is-visible .arch-provider-1   { animation: arch-fade-in 0.5s ease-out 0.7s forwards; }
[data-reveal].is-visible .arch-provider-2   { animation: arch-fade-in 0.5s ease-out 0.8s forwards; }
[data-reveal].is-visible .arch-provider-3   { animation: arch-fade-in 0.5s ease-out 0.9s forwards; }
[data-reveal].is-visible .arch-provider-4   { animation: arch-fade-in 0.5s ease-out 1.0s forwards; }
@keyframes arch-fade-in {
  to { opacity: 1; transform: translateY(0); }
}
/* Solid control/data lines draw in */
.arch-line {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  opacity: 0;
}
[data-reveal].is-visible .arch-control .arch-line              { animation: arch-line-draw 0.7s ease-out 1.2s forwards; }
[data-reveal].is-visible .arch-control .arch-line.arch-delay-1 { animation-delay: 1.4s; }
[data-reveal].is-visible .arch-control .arch-line.arch-delay-2 { animation-delay: 1.5s; }
[data-reveal].is-visible .arch-control .arch-line.arch-delay-3 { animation-delay: 1.6s; }
[data-reveal].is-visible .arch-control .arch-line.arch-delay-4 { animation-delay: 1.7s; }
@keyframes arch-line-draw {
  0%   { stroke-dashoffset: 400; opacity: 0; }
  10%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
/* Funds bypass: draws after control lines, then gentle pulse */
.arch-funds-line {
  stroke-dasharray: 12 10;
  stroke-dashoffset: 1200;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(34, 211, 155, 0.4));
}
[data-reveal].is-visible .arch-funds-line {
  animation:
    arch-funds-draw 1.2s ease-out 2.2s forwards,
    arch-funds-pulse 2.6s ease-in-out 3.6s infinite;
}
@keyframes arch-funds-draw {
  0%   { stroke-dashoffset: 1200; opacity: 0; }
  10%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes arch-funds-pulse {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(34, 211, 155, 0.4)); }
  50%      { filter: drop-shadow(0 0 12px rgba(34, 211, 155, 0.75)); }
}
.arch-funds-callout { opacity: 0; }
[data-reveal].is-visible .arch-funds-callout {
  animation: arch-fade-in 0.5s ease-out 2.8s forwards;
}
/* Reduced motion: show end-state, no animation */
@media (prefers-reduced-motion: reduce) {
  .arch-node,
  .arch-funds-callout { opacity: 1; transform: none; }
  .arch-line,
  .arch-funds-line { stroke-dashoffset: 0; opacity: 1; }
  [data-reveal].is-visible .arch-node,
  [data-reveal].is-visible .arch-control .arch-line,
  [data-reveal].is-visible .arch-funds-line,
  [data-reveal].is-visible .arch-funds-callout { animation: none; }
}
.cap {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px 24px;
  transition: transform 0.35s ease, border-color 0.3s ease;
  position: relative;
}
.cap:hover { transform: translateY(-4px); border-color: rgba(124,92,255,0.4); }
.cap-tag { display: inline-block; font-size: 0.7rem; color: var(--brand-2); letter-spacing: 0.2em; margin-bottom: 12px; }
.cap p { margin: 6px 0 0; font-size: 0.92rem; }

/* ----- 16. stats -------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-top: 30px; }
.stat {
  padding: 28px 24px; border-radius: var(--r);
  border: 1px solid var(--border); background: var(--surface);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.stat:hover { transform: translateY(-4px); border-color: rgba(52,224,161,0.4); }
.stat .num { font-size: 2.5rem; font-weight: 800; color: var(--brand); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; margin-bottom: 8px; }
.stat .label { color: var(--text-muted); font-size: 0.9rem; }
.stat .src { color: var(--text-dim); font-size: 0.8rem; }

/* ----- 17. timeline ----------------------------------------- */
.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.timeline li {
  display: grid; grid-template-columns: 80px 1fr; gap: 24px; align-items: start;
  padding: 24px 28px;
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.timeline li:hover { transform: translateX(6px); border-color: rgba(52,224,161,0.35); }
.t-num { font-size: 1.6rem; color: var(--brand); font-weight: 700; letter-spacing: -0.02em; }
.timeline h3 { margin: 0 0 4px; font-size: 1.15rem; }
.timeline p { margin: 0; font-size: 0.95rem; }
@media (max-width: 600px) {
  .timeline li { grid-template-columns: 60px 1fr; gap: 16px; padding: 18px 20px; }
  .t-num { font-size: 1.3rem; }
}

/* ----- 18. quotes ------------------------------------------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.quote {
  margin: 0;
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
}
.quote::before {
  content: "\201C"; position: absolute; top: 12px; left: 18px;
  font-family: Georgia, serif; font-size: 3.5rem;
  color: var(--brand); opacity: 0.18; line-height: 1;
}
.quote blockquote { margin: 0 0 18px; font-size: 1.02rem; color: var(--text); font-weight: 500; position: relative; z-index: 1; }
.quote figcaption { color: var(--text-muted); font-size: 0.9rem; }
.quote figcaption strong { color: var(--text); font-weight: 700; }

/* ----- 19. faq ---------------------------------------------- */
.faq-container { max-width: 860px; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 18px 22px;
  background: var(--surface);
  margin-bottom: 12px;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.faq-item:hover, .faq-item[open] { border-color: rgba(52,224,161,0.3); background: var(--surface-2); }
.faq-item summary { cursor: pointer; font-weight: 600; color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand); font-size: 1.4rem; font-weight: 400; transition: transform 0.2s ease; flex-shrink: 0; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 12px 0 0; font-size: 0.95rem; }

/* ----- 20. contact form ------------------------------------- */
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }
.contact-direct { color: var(--text-muted); font-size: 0.95rem; }
.contact-direct a { font-weight: 600; }
.contact-points {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: flex; flex-direction: column; gap: 8px;
}
.contact-points li {
  padding-left: 22px; position: relative; color: var(--text-muted); font-size: 0.95rem;
}
.contact-points li::before { content: "▸"; position: absolute; left: 0; color: var(--brand); font-family: var(--font-mono); }

.form {
  background: var(--gradient-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px;
  display: grid; gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label {
  display: block; font-size: 0.74rem; color: var(--text-muted);
  margin-bottom: 6px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
}
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-2);
  border: 1px solid var(--border); color: var(--text);
  padding: 12px 14px; border-radius: 10px;
  font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(52,224,161,0.15);
  background: rgba(11,13,31,0.7);
  outline: none;
}
/* Only flash red after the user has interacted with a field — never on empty
   fields just sitting there. `:user-invalid` is the modern selector for this. */
.field input:user-invalid, .field textarea:user-invalid {
  border-color: rgba(255,126,126,0.6);
}
.field textarea { min-height: 130px; resize: vertical; }
.field.consent { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.field.consent label { text-transform: none; letter-spacing: 0; font-size: 0.88rem; margin: 0; color: var(--text-muted); font-weight: 500; }
.field.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); }

/* honeypot for spam bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* reCAPTCHA disclosure under submit button — required by Google when the floating badge is hidden */
.recaptcha-disclosure {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.5;
}
.recaptcha-disclosure a { color: var(--text-muted); text-decoration: underline; }
.recaptcha-disclosure a:hover { color: var(--brand); }

/* Hide Google's floating badge — disclosure text in the form replaces it. */
.grecaptcha-badge { visibility: hidden !important; }

/* Success card shown in place of the form after a successful submission. */
.form-success-card {
  background: var(--gradient-surface);
  border: 1px solid rgba(52,224,161,0.5);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(52,224,161,0.15) inset;
  animation: successPop 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.form-success-card .success-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: rgba(52,224,161,0.15);
  color: var(--brand);
  font-size: 2rem; font-weight: 800;
  display: grid; place-items: center;
  margin: 0 auto 20px;
  border: 2px solid rgba(52,224,161,0.5);
}
.form-success-card h3 {
  font-size: 1.3rem; margin: 0 0 12px; color: var(--text);
}
.form-success-card p {
  color: var(--text-muted); max-width: 480px; margin: 0 auto 22px; font-size: 0.95rem;
}
.form-success-card .btn { margin: 0 auto; }

@keyframes successPop {
  0%   { opacity: 0; transform: translateY(8px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.form-submit { position: relative; padding-right: 30px; }
.form-submit .spinner {
  display: none;
  width: 14px; height: 14px;
  border: 2px solid rgba(6,33,15,0.3);
  border-top-color: #06210f;
  border-radius: 50%;
  animation: spinSlow 0.8s linear infinite;
}
.form-submit[data-state="loading"] .spinner { display: inline-block; }
.form-submit[data-state="loading"] { pointer-events: none; opacity: 0.85; }

.form-status { margin: 0; font-size: 0.9rem; min-height: 1.2em; color: var(--text-muted); }
.form-status[data-state="success"] { color: var(--brand); }
.form-status[data-state="error"] { color: var(--danger); }

/* ----- 21. footer ------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 28px;
  margin-top: 60px;
  background: var(--bg-2);
}
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand p { font-size: 0.92rem; max-width: 280px; margin: 16px 0 0; }
.footer h4 { margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer ul a { color: var(--text-muted); font-size: 0.95rem; }
.footer ul a:hover { color: var(--brand); }
.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 36px; padding-top: 20px;
  display: flex; justify-content: space-between;
  color: var(--text-dim); font-size: 0.85rem;
  flex-wrap: wrap; gap: 12px;
}

/* ----- 22. cookie banner ------------------------------------ */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px;
  z-index: 100;
  background: rgba(17, 20, 43, 0.96);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 18px 20px;
  transform: translateY(20px); opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
.cookie-banner h2 { font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; margin: 0 0 6px; color: var(--brand); }
.cookie-banner p { margin: 0; font-size: 0.92rem; max-width: 720px; color: var(--text-muted); }
.cookie-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
}
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* ePrivacy: reject and accept get equal visual weight. Override both .btn variants
   inside the cookie banner so neither button leads the user toward a choice. */
.cookie-actions .btn { box-shadow: none; transform: none; }
.cookie-actions .btn-primary,
.cookie-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-weight: 600;
}
.cookie-actions .btn-primary:hover,
.cookie-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand);
  transform: none;
  box-shadow: none;
  color: var(--text);
}
.cookie-actions .btn-primary::after { display: none; }
@media (max-width: 720px) {
  .cookie-inner { grid-template-columns: 1fr; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}
/* On very small screens, prevent the cookie banner from covering the footer
   "Cookie preferences" button — add bottom padding to body so the banner sits
   below the last footer link in the natural scroll. */
@media (max-width: 480px) {
  body:has(.cookie-banner.is-visible) { padding-bottom: 220px; }
}

/* ----- 23. legal/static pages ------------------------------- */
.page-head { padding: 100px 0 40px; text-align: center; position: relative; overflow: hidden; }
.page-head::before {
  content: ""; position: absolute; top: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,92,255,0.22), transparent 60%);
  filter: blur(60px); z-index: -1;
}
.page-head h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-head p { max-width: 640px; margin: 0 auto; font-size: 1.05rem; color: var(--text-muted); }
.prose { max-width: 760px; margin: 0 auto; padding: 0 24px 80px; }
.prose h2 { margin-top: 40px; font-size: 1.4rem; }
.prose h3 { margin-top: 24px; font-size: 1.05rem; color: var(--text); }
.prose p, .prose li { color: var(--text-muted); font-size: 0.98rem; }
.prose ul, .prose ol { padding-left: 22px; }
.prose strong { color: var(--text); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 40px 0; }
.prose .toc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 18px 22px; margin: 0 0 32px;
}
.prose .toc ol { margin: 8px 0 0; padding-left: 22px; }

.divider { height: 1px; background: var(--border); margin: 32px 0; }

/* ----- 24. noscript ----------------------------------------- */
.noscript-note {
  margin: 80px auto;
  padding: 18px 22px;
  border: 1px solid rgba(249,196,106,0.4);
  background: rgba(249,196,106,0.07);
  border-radius: var(--r);
  color: var(--accent);
}

/* ----- 25. reveal-on-scroll --------------------------------- */
/* Reveal-on-scroll: only hide the elements if JS is around to reveal them
   again. The .js class is added by app.js at parse time; users with JS off
   (or slow JS) see the content immediately. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.2,0.7,0.2,1), transform 0.7s cubic-bezier(0.2,0.7,0.2,1);
  will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="right"] { transform: translateX(40px); }
[data-reveal="scale"] { transform: scale(0.94); }
[data-reveal].is-visible { opacity: 1; transform: translate(0) scale(1); }
[data-delay="1"].is-visible { transition-delay: 0.08s; }
[data-delay="2"].is-visible { transition-delay: 0.16s; }
[data-delay="3"].is-visible { transition-delay: 0.24s; }
[data-delay="4"].is-visible { transition-delay: 0.32s; }
[data-delay="5"].is-visible { transition-delay: 0.4s; }
[data-delay="6"].is-visible { transition-delay: 0.48s; }

/* ----- 26. keyframes ---------------------------------------- */
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-14px) rotate(-4deg); }
}
@keyframes floatSlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, -30px); }
}
@keyframes floatSlower {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, 30px); }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes shimmer {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(220%); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,224,161,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(52,224,161,0); }
}
@keyframes spinSlow {
  to { transform: rotate(360deg); }
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ----- 27. reduced motion ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card-mock, .phone-mock { animation: none !important; }
  .logos-track { animation: none !important; }
  .hero::before, .hero::after { animation: none !important; }
  .brand-mark { animation: none !important; }
}

/* ----- 28. print -------------------------------------------- */
@media print {
  .nav, .footer, .cookie-banner, .hero-mock, .logos-marquee, .skip-link { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  a { color: #000 !important; text-decoration: underline; }
  .section { padding: 24px 0; }
  .hero { padding: 24px 0; }
  .feature, .product, .plan, .cap, .surface, .panel, .quote, .stat, .timeline li, .form, .faq-item, .callout {
    background: #fff !important;
    color: #000 !important;
    border-color: #aaa !important;
    box-shadow: none !important;
  }
  .gradient-text { -webkit-text-fill-color: #000; color: #000; }
}

/* ----- 29. forced-colors / high contrast -------------------- */
@media (forced-colors: active) {
  .btn, .feature, .product, .plan, .cap, .surface, .panel, .quote {
    border: 1px solid CanvasText;
  }
  .gradient-text { color: LinkText; -webkit-text-fill-color: LinkText; }
}
