/* ============================================================
   ASK CIPHER — Design System
   Mockup 4 — Premium light-mode redesign
   ============================================================ */

@font-face {
  font-family: 'Geist';
  src: url('../fonts/geist.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/geist-mono.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* ── Custom Properties ──────────────────────────────────── */
:root {
  --bg:           #F7F5F0;
  --surface:      #FFFFFF;
  --surface-dark: #09090B;
  --border:       rgba(14, 13, 11, 0.08);
  --border-md:    rgba(14, 13, 11, 0.13);
  --border-dark:  rgba(255, 255, 255, 0.1);

  --text:    #0E0D0B;
  --text-2:  #6B6A67;
  --text-3:  #A8A7A3;
  --text-inv:   #FFFFFF;
  --text-inv-2: rgba(255,255,255,0.55);

  --accent:        #1A3CFF;
  --accent-hover:  #1230E8;
  --accent-subtle: #EEF1FF;
  --accent-muted:  rgba(26, 60, 255, 0.12);

  --font-serif: 'Geist', system-ui, sans-serif;
  --font-sans:  'Geist', system-ui, -apple-system, sans-serif;
  --font-mono:  'Geist Mono', 'Courier New', monospace;

  --radius-sm:   6px;
  --radius-md:   10px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.07), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.09), 0 4px 16px rgba(0,0,0,0.05);

  --nav-h:    68px;
  --mobile-nav-bar-h: 60px;
  --safe-area-top: env(safe-area-inset-top, 0px);
  --safe-area-bottom: env(safe-area-inset-bottom, 0px);
  --visual-viewport-height: 100vh;
  --visual-viewport-offset-top: 0px;
  --section-y: 7.5rem;
  --max-w:    1160px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.32, 0.72, 0, 1);
}

/* ── iOS Safe Area Cover Bars ─────────────────────────────── */
.ios-safe-top {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 1999;
  pointer-events: none;
}
.ios-safe-bottom {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: env(safe-area-inset-bottom, 0px);
  background: var(--bg);
  z-index: 1999;
  pointer-events: none;
}

/* ── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  position: relative;
}

/* Lenis smooth scroll overrides */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
/* Ethereal Noise Grain Overlay for haptic paper/glass texture */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.75" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)" opacity="0.35"/%3E%3C/svg%3E');
  opacity: 0.12;
  mix-blend-mode: multiply;
}
[data-theme="dark"] body::after {
  opacity: 0.04;
  mix-blend-mode: soft-light;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }
h1,h2,h3,h4,h5,h6 { font-weight: 400; line-height: 1.15; }
::selection { background: var(--accent-muted); color: var(--accent); }

/* ── Typography ─────────────────────────────────────────── */
.t-display {
  font-family: var(--font-sans);
  font-size: clamp(2.8rem, 5.5vw, 5.25rem);
  line-height: 1.07;
  letter-spacing: -0.04em;
  font-weight: 500;
}
.t-display em { font-style: italic; font-weight: 400; }

.t-h2 {
  font-family: var(--font-sans);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.t-h2 em { font-style: italic; font-weight: 400; }

.t-h3 {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}
.t-body-lg { font-size: 1.125rem; line-height: 1.72; color: var(--text-2); }
.t-body    { font-size: 1rem; line-height: 1.7; color: var(--text-2); }
.t-sm      { font-size: 0.875rem; line-height: 1.55; color: var(--text-2); }

.eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ── Layout ─────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 2rem;
}
.section { padding-block: var(--section-y); }
.section--sm { padding-block: calc(var(--section-y) * 0.55); }

.section-header { max-width: 640px; margin-bottom: 4rem; }
.section-header--center { margin-inline: auto; text-align: center; }
.section-header .eyebrow { margin-bottom: 1rem; }
.section-header .t-h2   { margin-bottom: 1.25rem; }

/* ── Navigation (legacy fixed bar — kept for index.html stack panels) ── */
.nav {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav--scrolled {
  background: rgba(247, 245, 240, 0.88);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: 0 1px 0 var(--border);
}
.nav__inner { display: flex; align-items: center; height: 100%; gap: 2rem; }
.nav__logo { display: flex; align-items: center; gap: 0.625rem; flex-shrink: 0; color: var(--text); }
.nav__logo img { height: 24px; width: auto; object-fit: contain; filter: invert(1); }
.nav__logo-text { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; }
.nav__links { display: flex; align-items: center; gap: 0.125rem; margin-left: auto; }
.nav__link {
  font-size: 0.875rem; font-weight: 500; color: var(--text-2);
  padding: 0.4rem 0.75rem; border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  display: flex; align-items: center; gap: 0.25rem;
}
.nav__link:hover, .nav__link--active { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown__trigger {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 0.3rem;
  cursor: pointer;
  transition: color 0.2s;
}
.nav-dropdown__trigger:hover { color: var(--text); }
.nav-dropdown__trigger svg { transition: transform 0.25s var(--ease-out); }
.nav-dropdown.is-open .nav-dropdown__trigger { color: var(--text); }
.nav-dropdown.is-open .nav-dropdown__trigger svg { transform: rotate(180deg); }
.nav-dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%; transform: translateX(-50%) translateY(-6px);
  opacity: 0; pointer-events: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  min-width: 185px;
  padding: 0.375rem;
  transition: opacity 0.2s ease, transform 0.22s var(--ease-out);
}
.nav-dropdown.is-open .nav-dropdown__menu {
  opacity: 1; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown__item {
  display: block;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  color: var(--text-2);
  border-radius: var(--radius-md);
  transition: background 0.15s, color 0.15s;
}
.nav-dropdown__item:hover { background: var(--bg); color: var(--text); }

/* Mobile toggle */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  padding: 6px;
}
.nav-mobile-toggle span {
  display: block; width: 100%; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 3rem;
}
.mobile-menu__header img {
  height: 24px; width: auto; object-fit: contain; filter: invert(1);
}
.mobile-menu__close {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 1.25rem; color: var(--text-2);
  transition: background 0.2s;
}
.mobile-menu__close:hover { background: var(--border); }
.mobile-menu__links { flex: 1; }
.mobile-menu__link {
  display: block;
  font-family: var(--font-sans);
  font-size: 1.625rem;
  color: var(--text);
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
}
.mobile-menu__link:last-child { border-bottom: none; }
.mobile-menu__footer {
  padding-top: 2rem;
  display: flex; flex-direction: column; gap: 0.75rem;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem; font-weight: 500;
  line-height: 1;
  padding: 0.75rem 1.375rem;
  border-radius: 99px;
  border: 1px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: all 0.5s var(--ease-spring);
  text-decoration: none;
}
.btn:active {
  transform: scale(0.97);
}
.btn--primary {
  background: var(--accent); color: #fff;
  border-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 4px rgba(26,60,255,0.25);
}
.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 8px 24px rgba(26,60,255,0.3);
  transform: translateY(-2px);
}
.btn--secondary {
  background: transparent; color: var(--text);
  border-color: var(--border-md);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}
.btn--secondary:hover {
  background: var(--surface);
  border-color: rgba(14,13,11,0.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,1), 0 6px 16px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}
.btn--ghost {
  background: transparent; color: var(--text-2);
  border-color: transparent;
  padding-inline: 0.625rem;
}
.btn--ghost:hover { background: var(--border); color: var(--text); }
.btn--sm   { font-size: 0.875rem; padding: 0.6rem 1.1rem; }
.btn--lg   { font-size: 1rem; padding: 0.875rem 1.75rem; }
.btn--full { width: 100%; }
.btn svg   { transition: transform 0.4s var(--ease-spring); }
.btn:hover svg { transform: translateX(3px) scale(1.05); }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-size: 0.875rem; font-weight: 500; color: var(--text); }
.form-input, .form-textarea {
  width: 100%;
  font-family: var(--font-sans); font-size: 0.9375rem;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-input { height: 48px; padding-inline: 1rem; }
.form-textarea { min-height: 140px; padding: 0.875rem 1rem; resize: vertical; }
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-3); }
.form-input:focus, .form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-muted);
}

/* ── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.75rem; font-weight: 500; color: var(--text-2);
}
.badge--accent {
  background: var(--accent-subtle);
  border-color: rgba(26,60,255,0.15);
  color: var(--accent);
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: pulse-dot 2.2s ease infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; } 50% { opacity: 0.35; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  min-height: 100dvh;
  display: flex; align-items: center;
  padding-top: var(--nav-h);
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 900px; height: 700px;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  background: radial-gradient(ellipse, rgba(26,60,255,0.055) 0%, transparent 68%);
  pointer-events: none;
}
.hero__content {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
  position: relative;
}
.hero__eyebrow   { margin-bottom: 2rem; animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero__headline  { margin-bottom: 1.5rem; animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both; }
.hero__sub {
  max-width: 600px; margin-inline: auto;
  margin-bottom: 2.5rem;
  animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.26s both;
}
.hero__actions {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
  animation: fade-up 1s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}


@keyframes fade-up {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}

/* ── Partners bar ───────────────────────────────────────── */
.partners {
  padding-block: 3.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.partners__inner {
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: 2rem; flex-wrap: wrap;
}
.partners__label {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-3); white-space: nowrap;
}
.partners__logos { display: flex; align-items: center; justify-content: center; gap: 4rem; flex-wrap: wrap; }
.partners__logo {
  height: 38px; width: auto; object-fit: contain;
  filter: invert(1) grayscale(1) opacity(0.45);
  transition: filter 0.35s ease, opacity 0.35s ease;
}
.partners__logo:hover { filter: invert(1) grayscale(0) opacity(1); }

/* Stats strip inside partners */
.partners__stats {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 100%;
  max-width: 560px;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.partners__stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  padding-inline: 1.5rem;
}
.partners__stat-num {
  font-family: var(--font-sans);
  font-size: 1.625rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.02em;
}
.partners__stat-label {
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--text-3);
  font-weight: 400;
}
.partners__stat-divider {
  width: 1px;
  background: var(--border);
  flex-shrink: 0;
  margin-block: 0.25rem;
}

/* ── Stack Scroll (Methodfi-style) ─────────────────────── */
.stack-container { position: relative; }
.stack-panel {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  will-change: transform;
}
.stack-panel--dark    { background: var(--surface-dark); z-index: 1; }
.stack-panel--cream   { background: var(--bg); z-index: 2; border-top: 1px solid var(--border); }
.stack-panel--surface { 
  background: var(--surface); 
  z-index: 3; 
  border-top: 1px solid var(--border); 
  position: relative;
}

.stack-panel__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3.5rem;
  align-items: center;
  padding-top: var(--nav-h);
  padding-bottom: 5rem;
  position: relative;
  z-index: 1;
}
/* Dark panel: narrower text so demo has max room to expand right */
.stack-panel--dark .stack-panel__inner {
  grid-template-columns: 0.6fr 1.6fr;
  gap: 6rem;
}
.stack-panel__label {
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.stack-panel--dark .stack-panel__label   { color: rgba(255,255,255,0.35); }
.stack-panel--cream .stack-panel__label  { color: var(--text-3); }
.stack-panel--surface .stack-panel__label{ color: var(--text-3); }

.stack-panel__headline {
  font-family: var(--font-sans);
  font-size: clamp(2.25rem, 3.75vw, 3.75rem);
  line-height: 1.08; letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}
.stack-panel--dark .stack-panel__headline { color: var(--text-inv); }
.stack-panel__headline em { font-style: italic; }

.stack-panel__body {
  font-size: 1.0625rem; line-height: 1.75; max-width: 440px;
}
.stack-panel--dark .stack-panel__body   { color: var(--text-inv-2); }
.stack-panel--cream .stack-panel__body  { color: var(--text-2); }
.stack-panel--surface .stack-panel__body{ color: var(--text-2); }

.stack-panel__visual {
  border-radius: var(--radius-xl);
  overflow: visible;
  position: relative;
}

/* Text-only panel variant (Panel 1 after demo was extracted) */
.stack-panel--text-only .stack-panel__inner--centered {
  grid-template-columns: 1fr;
  max-width: 700px;
  margin-inline: auto;
}
.stack-panel__text-block {
  max-width: 560px;
}


/* ── Demo Block (AI command UI) ─────────────────────────── */
.demo-block {
  background: #0A0908;
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  border: 1px solid rgba(255,255,255,0.07);
}
.demo-block__dots { display: flex; gap: 0.375rem; margin-bottom: 1.25rem; }
.demo-block__dot { width: 10px; height: 10px; border-radius: 50%; }
.demo-block__dot:nth-child(1) { background: #FF5F57; }
.demo-block__dot:nth-child(2) { background: #FEBC2E; }
.demo-block__dot:nth-child(3) { background: #28C840; }
.demo-block__prompt {
  font-family: var(--font-mono); font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  min-height: 54px; line-height: 1.5;
}
.typewriter-cursor {
  display: inline-block; width: 2px; height: 0.85em;
  background: var(--accent); margin-left: 1px;
  vertical-align: text-bottom;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.demo-block__output {
  font-family: var(--font-mono); font-size: 0.8125rem;
  line-height: 1.9; color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  border-left: 2px solid rgba(26,60,255,0.4);
}
.demo-block__output .hl  { color: #22C55E; font-weight: 500; }
.demo-block__output .dim { color: rgba(255,255,255,0.28); }

/* Neutral demo block (for modal / How It Works) */
.demo-block--light {
  background: var(--bg);
  border: 1px solid var(--border);
}
.demo-block--light .demo-block__prompt {
  background: var(--surface);
  border-color: var(--border-md);
  color: var(--text);
}
.demo-block--light .demo-block__output {
  background: var(--surface);
  color: var(--text-2);
  border-left-color: var(--accent);
}
.demo-block--light .demo-block__output .hl  { color: #16A34A; }
.demo-block--light .demo-block__output .dim { color: var(--text-3); }

/* ── Mobile Product Proof System ─────────────────────────── */
.hero__mobile-proof,
.stack-panel__mobile-visual,
.cipher-flow__mobile-proof,
.page-hero__mobile-proof,
.security-hero__mobile-proof {
  display: none;
}

.mobile-intent-card,
.mobile-app-strip,
.mobile-learning-card {
  width: 100%;
  margin-top: 1.35rem;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.mobile-intent-card {
  padding: 1rem;
}

.mobile-intent-card__bubble {
  padding: 0.9rem 1rem;
  border-radius: 18px 18px 18px 6px;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  line-height: 1.45;
}

.mobile-intent-card__route {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.mobile-intent-card__route span {
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0.5rem 0.4rem;
  border-radius: 999px;
  color: rgba(255,255,255,0.58);
  background: rgba(255,255,255,0.055);
  font-size: 0.68rem;
  font-weight: 650;
}

.mobile-intent-card__route i {
  width: 0.5rem;
  height: 1px;
  background: rgba(255,255,255,0.22);
  flex-shrink: 0;
}

.mobile-app-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  padding: 0.85rem;
  background: var(--surface);
  border-color: var(--border);
}

@media (min-width: 769px) {
  .mobile-app-strip {
    display: none !important;
  }
}

.mobile-app-strip span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3rem;
  padding: 0.65rem 0.75rem;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 650;
}

.mobile-app-strip img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  border-radius: 6px;
}
[data-theme="dark"] .mobile-app-strip img {
  /* White tile so dark logos (NetSuite, Zendesk) stay legible on the dark pill */
  background: #fff;
  padding: 2px;
  box-sizing: border-box;
}

.mobile-learning-card {
  padding: 1rem;
  background: var(--bg);
  border-color: var(--border);
}

.mobile-learning-card > div:not(.mobile-learning-card__bar) {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.35rem;
}

.mobile-learning-card span {
  color: var(--text-2);
  font-size: 0.78rem;
}

.mobile-learning-card strong {
  color: var(--text);
  font-size: 1rem;
  font-weight: 700;
}

.mobile-learning-card__bar {
  height: 0.42rem;
  margin-top: 0.75rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(14,13,11,0.08);
}

.mobile-learning-card__bar i {
  display: block;
  width: 86%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(26,60,255,0.35), var(--accent), #38D678);
}

.mobile-trust-console {
  width: 100%;
  border-radius: 24px;
  padding: 1rem;
  background:
    radial-gradient(220px 140px at 86% 12%, rgba(56,214,120,0.18), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.035));
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 20px 56px rgba(0,0,0,0.25);
  color: var(--text-inv);
}

.mobile-trust-console__top,
.mobile-trust-console__rows div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.mobile-trust-console__top {
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mobile-trust-console__top span,
.mobile-trust-console__request small,
.mobile-trust-console__rows span {
  color: rgba(255,255,255,0.42);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mobile-trust-console__top strong {
  padding: 0.32rem 0.62rem;
  border-radius: 999px;
  background: rgba(56,214,120,0.14);
  color: #76F0A5;
  font-size: 0.72rem;
  font-weight: 760;
}

.mobile-trust-console__request {
  padding: 0.85rem 0;
}

.mobile-trust-console__request small,
.mobile-trust-console__request span {
  display: block;
}

.mobile-trust-console__request span {
  margin-top: 0.35rem;
  color: rgba(255,255,255,0.88);
  font-size: 0.9rem;
  font-weight: 620;
  line-height: 1.38;
}

.mobile-trust-console__rows {
  display: grid;
  gap: 0.45rem;
}

.mobile-trust-console__rows div {
  padding: 0.62rem 0.7rem;
  border-radius: 14px;
  background: rgba(255,255,255,0.055);
  border: 1px solid rgba(255,255,255,0.075);
}

.mobile-trust-console__rows strong {
  color: rgba(255,255,255,0.86);
  font-size: 0.76rem;
  font-weight: 680;
}

.mobile-usecase-reel {
  width: 100%;
  border-radius: 24px;
  padding: 1rem;
  background:
    radial-gradient(240px 140px at 84% 8%, rgba(26,60,255,0.13), transparent 72%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255,255,255,0.75);
}

.mobile-usecase-reel__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.mobile-usecase-reel__header span {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mobile-usecase-reel__header strong {
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 720;
}

.mobile-usecase-reel__command {
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: var(--surface-dark);
  color: rgba(255,255,255,0.9);
  font-size: 0.9rem;
  line-height: 1.42;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

.mobile-usecase-reel__apps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.mobile-usecase-reel__apps span {
  min-width: 0;
  display: grid;
  place-items: center;
  gap: 0.35rem;
  min-height: 4.2rem;
  padding: 0.5rem 0.35rem;
  border-radius: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-2);
  font-size: 0.66rem;
  font-weight: 650;
}

.mobile-usecase-reel__apps img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
}

/* Product-native mobile surfaces */
.ask-mobile-chat {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 24px;
  background: #0B0B0E;
  color: var(--text-inv);
  box-shadow: 0 28px 68px rgba(14,13,11,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
}

.ask-mobile-chat__toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 3.25rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #111113;
}

.ask-mobile-chat__tool {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 7px;
  color: rgba(255,255,255,0.52);
}

.ask-mobile-chat__tool svg {
  width: 0.95rem;
  height: 0.95rem;
}

.ask-mobile-chat__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  padding: 0.38rem 0.58rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 0.74rem;
  font-weight: 650;
}

.ask-mobile-chat__brand img {
  width: 1rem;
  height: 1rem;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.ask-mobile-chat__conn {
  margin-left: auto;
  padding: 0.38rem 0.55rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  background: rgba(255,255,255,0.055);
  color: rgba(255,255,255,0.66);
  font-size: 0.68rem;
  font-weight: 620;
  white-space: nowrap;
}

.ask-mobile-chat__body {
  display: grid;
  gap: 0.8rem;
  padding: 0.9rem;
}

.ask-mobile-chat__connected {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.ask-mobile-chat__connected span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.38rem 0.55rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: #111115;
  color: rgba(255,255,255,0.62);
  font-size: 0.66rem;
  font-weight: 650;
}

.ask-mobile-chat__connected img {
  width: 0.95rem;
  height: 0.95rem;
  border-radius: 4px;
  object-fit: contain;
}

.ask-mobile-chat__messages {
  display: grid;
  gap: 0.72rem;
}

.ask-mobile-chat__message {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr);
  gap: 0.58rem;
  align-items: start;
}

.ask-mobile-chat__message--user {
  grid-template-columns: minmax(0, 1fr);
  justify-items: end;
}

.ask-mobile-chat__avatar {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.ask-mobile-chat__avatar img {
  width: 0.95rem;
  height: 0.95rem;
  filter: brightness(0) invert(1);
  opacity: 0.78;
}

.ask-mobile-chat__bubble {
  max-width: 100%;
  padding: 0.72rem 0.85rem;
  border-radius: 14px;
  color: rgba(255,255,255,0.74);
  font-size: 0.76rem;
  line-height: 1.48;
}

.ask-mobile-chat__message--user .ask-mobile-chat__bubble {
  max-width: 88%;
  border-bottom-right-radius: 4px;
  background: rgba(255,255,255,0.94);
  color: #111113;
  font-weight: 560;
}

.ask-mobile-chat__message--assistant .ask-mobile-chat__bubble {
  padding-inline: 0;
}

.ask-mobile-chat__bubble strong {
  color: rgba(255,255,255,0.95);
  font-weight: 690;
}

.ask-mobile-chat__actions {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.65rem;
}

.ask-mobile-chat__action {
  display: grid;
  grid-template-columns: 1rem minmax(0, 1fr) auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.56rem 0.6rem;
  border: 1px solid rgba(255,255,255,0.075);
  border-radius: 12px;
  background: #111115;
}

.ask-mobile-chat__action img {
  width: 1rem;
  height: 1rem;
  object-fit: contain;
  border-radius: 4px;
}

.ask-mobile-chat__action strong {
  overflow: hidden;
  color: rgba(255,255,255,0.82);
  font-size: 0.7rem;
  font-weight: 680;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ask-mobile-chat__action small {
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono);
  font-size: 0.58rem;
}

.ask-mobile-chat__composer {
  padding: 2px;
  border-radius: 18px;
  background: linear-gradient(135deg, #D97706, #B45309, #9333EA, #7C3AED);
}

.ask-mobile-chat__composer-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.35rem;
  padding: 0.75rem 0.62rem 0.75rem 0.9rem;
  border-radius: 16px;
  background: #1A1A1A;
}

.ask-mobile-chat__composer-inner span:not(.ask-mobile-chat__send) {
  flex: 1;
  min-width: 0;
  color: rgba(255,255,255,0.36);
  font-size: 0.76rem;
  line-height: 1.2;
}

.ask-mobile-chat__send {
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.66);
}

.ask-mobile-chat__send svg {
  width: 0.9rem;
  height: 0.9rem;
}

.ask-mobile-chat--welcome {
  display: flex;
  min-height: 520px;
  flex-direction: column;
  border-color: rgba(255,255,255,0.11);
  background: #050507;
}

.hero__mobile-proof.ask-mobile-chat--welcome {
  display: none;
}

.ask-mobile-chat--welcome .ask-mobile-chat__toolbar {
  gap: 0.42rem;
  min-height: 4.1rem;
  padding: 0.72rem;
  background: #050507;
}

.ask-mobile-chat--welcome .ask-mobile-chat__tool {
  width: 2.6rem;
  height: 2.6rem;
  border-color: rgba(255,255,255,0.12);
  border-radius: 10px;
  background: #09090B;
  color: rgba(255,255,255,0.9);
}

.ask-mobile-chat--welcome .ask-mobile-chat__tool svg {
  width: 1.18rem;
  height: 1.18rem;
}

.ask-mobile-chat__tool--plus {
  font-size: 1.9rem;
  font-weight: 360;
  line-height: 1;
}

.ask-mobile-chat__conn--select {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  min-width: 0;
  height: 2.6rem;
  margin-left: 0;
  padding: 0 0.8rem;
  border-color: rgba(255,255,255,0.13);
  border-radius: 10px;
  background: #09090B;
  color: rgba(255,255,255,0.93);
  font-size: 0.84rem;
  font-weight: 650;
}

.ask-mobile-chat__conn--select svg {
  width: 0.75rem;
  height: 0.75rem;
  flex: 0 0 auto;
}

.ask-mobile-chat__body--welcome {
  display: flex;
  flex: 1;
  min-height: 0;
  flex-direction: column;
  gap: 1rem;
  padding: 0.6rem 0.95rem 0.95rem;
}

.ask-mobile-chat__welcome {
  display: grid;
  flex: 1;
  min-height: 250px;
  align-content: center;
  justify-items: center;
  padding: 1rem 0 1.25rem;
  text-align: center;
}

.ask-mobile-chat__welcome-logo {
  width: 3.75rem;
  height: 3.75rem;
  margin-bottom: 1.1rem;
  filter: brightness(0) invert(1);
  object-fit: contain;
}

.ask-mobile-chat__welcome strong,
.ask-mobile-chat__welcome span {
  display: block;
  color: rgba(255,255,255,0.96);
  font-size: clamp(1.34rem, 6vw, 1.82rem);
  font-weight: 770;
  line-height: 1.22;
  letter-spacing: 0;
}

.ask-mobile-chat__composer--actual {
  padding: 0;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 22px;
  background: #29292C;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.ask-mobile-chat__composer-main {
  display: grid;
  min-height: 8.8rem;
  align-content: space-between;
  gap: 1.25rem;
  padding: 1rem 0.82rem 0.82rem 1rem;
}

.ask-mobile-chat__composer-main > span {
  color: rgba(255,255,255,0.54);
  font-size: 1rem;
  line-height: 1.25;
}

.ask-mobile-chat__composer-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.48rem;
}

.ask-mobile-chat__round-action {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: #151518;
}

.ask-mobile-chat__round-action svg {
  width: 1.05rem;
  height: 1.05rem;
}

.ask-mobile-chat__round-action--send {
  background: rgba(255,255,255,0.52);
  color: #111113;
}

@media (max-width: 390px) {
  .ask-mobile-chat--welcome .ask-mobile-chat__tool--hide-sm {
    display: none;
  }

  .ask-mobile-chat--welcome .ask-mobile-chat__tool {
    width: 2.45rem;
    height: 2.45rem;
  }

  .ask-mobile-chat__conn--select {
    height: 2.45rem;
    font-size: 0.78rem;
  }
}

/* ── Generic mobile carousel ──────────────────────────────
   Repetitive card collections marked with [data-mcarousel]
   become swipeable snap-scroll rows on mobile (matching the
   homepage features carousel) instead of long vertical
   stacks. Desktop layout is untouched. Doubled attribute
   selector out-specifies page-level grid rules. ──────────── */
@media (max-width: 768px) {
  [data-mcarousel][data-mcarousel] {
    display: flex;
    grid-template-columns: none;
    gap: 0.85rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-inline: -1.25rem;
    padding-inline: 1.25rem;
    scroll-padding-inline: 1.25rem;
    background: transparent;
    border-radius: 0;
  }
  [data-mcarousel][data-mcarousel]::-webkit-scrollbar { display: none; }
  [data-mcarousel][data-mcarousel] > * {
    flex: 0 0 82%;
    max-width: 330px;
    min-width: 0;
    scroll-snap-align: start;
  }
  /* Containers built as hairline-divided panels need real card
     chrome once their cells become free-standing slides */
  [data-mcarousel="cells"][data-mcarousel] > * {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
  }
  .m-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 1.25rem;
    padding-bottom: 1.5rem; /* keep dots clear of section borders below */
  }
  .m-dots button {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    padding: 0;
    background: var(--border-md);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
  }
  .m-dots button.is-active {
    background: var(--text);
    transform: scale(1.3);
  }
}
@media (min-width: 769px) {
  .m-dots { display: none; }
}

/* ── Hero Demo Reel (mobile-only scroll-activated video) ──
   The recording is a desktop app window on a warm studio
   matte, so the frame is deliberately chromeless: rounded,
   hairline border, soft warm shadow — the video's own matte
   reads as the card surface. ─────────────────────────────── */
.hero-reel__frame {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border-md);
  background: #C6C2B8; /* matches the video's studio matte */
  box-shadow: 0 24px 48px -16px rgba(14,13,11,0.26), 0 6px 16px rgba(14,13,11,0.07);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transform: translateZ(0); /* clip video to radius on iOS Safari */
}
.hero-reel__frame:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.hero-reel__video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Floating status pill — frosted, sits on the video matte */
.hero-reel__badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.32rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(14,13,11,0.1);
  background: rgba(255,255,255,0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 0.66rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.hero-reel__badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse-dot 2.2s ease infinite;
}
.hero-reel__badge-time {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.hero-reel.is-ended .hero-reel__badge {
  opacity: 0;
  transform: translateY(-4px);
}

/* Center play chip — only when playback is user-paused */
.hero-reel__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3.4rem;
  height: 3.4rem;
  margin: -1.7rem 0 0 -1.7rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(9,9,11,0.52);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFF;
  opacity: 0;
  transform: scale(0.85);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out), transform 0.35s var(--ease-spring);
}
.hero-reel__play svg {
  width: 1.4rem;
  height: 1.4rem;
  margin-left: 2px;
}
.hero-reel.is-paused .hero-reel__play {
  opacity: 1;
  transform: scale(1);
}

/* Replay pill — fades in over the dark end-card */
.hero-reel__replay {
  position: absolute;
  left: 50%;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.52rem 1.05rem;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #FFF;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  opacity: 0;
  transform: translateX(-50%) translateY(6px);
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out) 0.15s, transform 0.5s var(--ease-out) 0.15s;
}
.hero-reel__replay svg {
  width: 0.85rem;
  height: 0.85rem;
}
.hero-reel.is-ended .hero-reel__replay {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* Playback progress — hairline gradient matching the brand
   orange→violet used inside the video itself */
.hero-reel__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(14,13,11,0.12);
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.hero-reel__progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #F6A21E, #A855F7);
  transform: scaleX(0);
  transform-origin: left center;
}
.hero-reel.is-active .hero-reel__progress { opacity: 1; }
.hero-reel.is-ended  .hero-reel__progress { opacity: 0; }

/* Dark theme pairs with the dark-matte cut of the footage */
[data-theme="dark"] .hero-reel__frame {
  border-color: rgba(255,255,255,0.14);
  background: #070709; /* matches the dark video's studio matte */
  box-shadow: 0 24px 48px -16px rgba(0,0,0,0.6), 0 6px 16px rgba(0,0,0,0.3);
}
[data-theme="dark"] .hero-reel__badge {
  border-color: rgba(255,255,255,0.14);
  background: rgba(9,9,11,0.62);
}
[data-theme="dark"] .hero-reel__progress {
  background: rgba(255,255,255,0.14);
}

.ask-mobile-console {
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 22px;
  background: #09090B;
  color: var(--text-inv);
  box-shadow: 0 28px 68px rgba(14,13,11,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
}

.ask-mobile-console__chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: #101014;
}

.ask-mobile-console__dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
}

.ask-mobile-console__url {
  flex: 1;
  min-width: 0;
  margin-left: 0.25rem;
  overflow: hidden;
  color: rgba(255,255,255,0.46);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.02em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ask-mobile-console__body {
  display: grid;
  gap: 0.72rem;
  padding: 0.85rem;
}

.ask-mobile-console__composer {
  padding: 0.78rem 0.85rem;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 15px;
  background: #141418;
  color: rgba(255,255,255,0.9);
  font-size: 0.86rem;
  font-weight: 560;
  line-height: 1.4;
}

.ask-mobile-console__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
}

.ask-mobile-console__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  min-width: 0;
  padding: 0.42rem 0.55rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: #111115;
  color: rgba(255,255,255,0.62);
  font-size: 0.68rem;
  font-weight: 650;
}

.ask-mobile-console__chip img {
  width: 0.95rem;
  height: 0.95rem;
  object-fit: contain;
  border-radius: 4px;
}

.ask-mobile-console__worklog {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.085);
  border-radius: 16px;
  background: #0F0F12;
}

.ask-mobile-console__row {
  display: grid;
  grid-template-columns: 0.8rem minmax(0, 1fr) auto;
  gap: 0.58rem;
  align-items: center;
  padding: 0.68rem 0.72rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.ask-mobile-console__row:last-child {
  border-bottom: 0;
}

.ask-mobile-console__status {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: #38D678;
  box-shadow: 0 0 0 4px rgba(56,214,120,0.1);
}

.ask-mobile-console__row.is-active .ask-mobile-console__status {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(26,60,255,0.14), 0 0 18px rgba(26,60,255,0.28);
}

.ask-mobile-console__row strong {
  display: block;
  color: rgba(255,255,255,0.88);
  font-size: 0.76rem;
  font-weight: 680;
  line-height: 1.25;
}

.ask-mobile-console__row small {
  display: block;
  margin-top: 0.12rem;
  color: rgba(255,255,255,0.42);
  font-size: 0.66rem;
  line-height: 1.25;
}

.ask-mobile-console__time {
  color: rgba(255,255,255,0.35);
  font-family: var(--font-mono);
  font-size: 0.62rem;
}

.ask-mobile-console__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 2.6rem;
  padding: 0.42rem 0.48rem 0.42rem 0.78rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: #111115;
  color: rgba(255,255,255,0.42);
  font-size: 0.72rem;
}

.ask-mobile-console__send {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 0.78rem;
  line-height: 1;
}

.ask-router-card {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.ask-router-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0.85rem;
  border-bottom: 1px solid var(--border);
  background: #FBFAF7;
}

.ask-router-card__bar span {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ask-router-card__bar strong {
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 720;
}

.ask-router-card__body {
  display: grid;
  gap: 0.68rem;
  padding: 0.85rem;
}

.ask-router-card__command {
  padding: 0.78rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 580;
  line-height: 1.4;
}

.ask-router-card__route {
  display: grid;
  gap: 0.45rem;
}

.ask-router-card__route div {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.58rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #FCFBF8;
}

.ask-router-card__route span {
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ask-router-card__route strong {
  min-width: 0;
  color: var(--text);
  font-size: 0.76rem;
  font-weight: 670;
  line-height: 1.25;
}

.ask-router-card__audit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.68rem 0.76rem;
  border: 1px solid rgba(56,214,120,0.22);
  border-radius: 14px;
  background: rgba(56,214,120,0.08);
  color: #166534;
  font-size: 0.72rem;
  font-weight: 740;
}

.ask-router-card__audit strong {
  color: #166534;
  font-size: 0.72rem;
  font-weight: 760;
}

.mobile-intent-card {
  border-color: rgba(255,255,255,0.1);
  border-radius: 20px;
  background: #09090B;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.mobile-intent-card__bubble {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  background: #141418;
}

.mobile-intent-card__route {
  display: grid;
  gap: 0.45rem;
}

.mobile-intent-card__route i {
  display: none;
}

.mobile-intent-card__route span {
  text-align: left;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  background: #0F0F12;
  color: rgba(255,255,255,0.72);
}

.mobile-learning-card__bar i {
  background: var(--accent);
}

.mobile-trust-console {
  border-radius: 22px;
  background: #09090B;
  box-shadow: 0 24px 58px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.08);
}

.mobile-usecase-reel {
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.mobile-usecase-reel__command {
  background: #09090B;
}

@media (max-width: 768px) {
  .demo-scroll-zone {
    display: none !important;
  }
}

/* ── Demo Scroll Zone ─────────────────────────────────────── */
/* -120px margin-top pulls zone into hero so card peeks on initial load. */
.demo-scroll-zone {
  position: relative;
  margin-top: -120px;
}
.demo-sticky-wrap {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
}
/* Card starts small and centered — JS drives width/height/radius.
   transform-origin is center so expansion is perfectly even. */
.demo-card {
  position: relative;
  width: 60vw;
  height: 300px;
  border-radius: 24px;
  overflow: hidden;
  background: #0B0B0E;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 16px 60px rgba(0,0,0,0.40);
  will-change: width, height, border-radius;
  pointer-events: auto;
}
/* Fixed inner — content never reflows during card resize */
.demo-card__inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
}

/* ── macOS Traffic Lights ───────────────────────────────── */
.ac-demo__traffic-lights {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.ac-tl {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
}
.ac-tl--red    { background: #FF5F57; }
.ac-tl--yellow { background: #FEBC2E; }
.ac-tl--green  { background: #28C840; }

/* ── macOS Titlebar ──────────────────────────────── */
.ac-demo__titlebar {
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #111113;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  flex-shrink: 0;
  gap: 0.75rem;
}
.ac-demo__window-title {
  flex: 1;
  text-align: center;
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.3);
  font-weight: 500;
  padding-right: 54px; /* optical centering past the dots */
}

/* ── Demo CTA (button-shaped, under text) ───────────────── */
.ac-demo-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  margin-top: 2.5rem;
  padding: 0.625rem 1.125rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  cursor: default;
  width: fit-content;
  white-space: nowrap;
}
.ac-demo-cta__badge {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
}
.ac-demo-cta__text {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
}

/* ── AskCipher Interactive Demo ─────────────────────────── */
.ac-demo {
  background: #0B0B0E;
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  font-family: var(--font-sans);
  border-radius: inherit;
}
.demo-card__inner .ac-demo,
.demo-card .ac-demo {
  position: absolute;
  inset: 0;
  border-radius: 0;
  border: none;
}
@media (max-width: 768px) {
  .demo-card { width: 100vw; border-radius: 16px 16px 0 0; }
}

/* Body: sidebar + main flex row */
.ac-demo__body {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

/* ── Sidebar ── */
.ac-sidebar {
  width: 220px;
  min-width: 220px;
  background: #111113;
  border-right: 1px solid rgba(255,255,255,0.07);
  display: flex;
  flex-direction: column;
  transition: width 0.3s var(--ease-out), min-width 0.3s var(--ease-out), opacity 0.25s ease;
  overflow: hidden;
  z-index: 5;
}
.ac-sidebar.is-collapsed {
  width: 0;
  min-width: 0;
  opacity: 0;
  border-right-width: 0;
  pointer-events: none;
}
.ac-sidebar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.75rem 0.5rem;
  flex-shrink: 0;
}
.ac-sidebar__brand {
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255,255,255,0.92);
  white-space: nowrap;
}
.ac-sidebar__close {
  width: 28px; height: 28px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.ac-sidebar__close:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }
.ac-sidebar__close svg { width: 14px; height: 14px; }
.ac-sidebar__new-chat {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0.25rem 0.75rem 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem; font-weight: 500;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.ac-sidebar__new-chat:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }
.ac-sidebar__new-chat svg { width: 12px; height: 12px; }
.ac-sidebar__filter {
  display: flex; gap: 2px;
  padding: 0 0.75rem;
  margin-bottom: 0.5rem;
}
.ac-sidebar__filter-btn {
  padding: 0.25rem 0.625rem;
  border-radius: 6px;
  font-size: 0.6875rem; font-weight: 500;
  color: rgba(255,255,255,0.4);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.ac-sidebar__filter-btn.is-active {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
}
.ac-sidebar__search {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0 0.75rem 0.625rem;
  padding: 0.375rem 0.625rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}
.ac-sidebar__search svg { width: 13px; height: 13px; color: rgba(255,255,255,0.25); flex-shrink: 0; }
.ac-sidebar__search span { font-size: 0.6875rem; color: rgba(255,255,255,0.25); white-space: nowrap; }
.ac-sidebar__chats {
  flex: 1;
  overflow-y: auto;
  padding: 0 0.375rem;
}
.ac-sidebar__group-label {
  font-size: 0.625rem; font-weight: 600;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 0.5rem 0.375rem;
}
.ac-sidebar__chat-item {
  display: block;
  padding: 0.5rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  cursor: pointer;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-sidebar__chat-item:hover { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.8); }
.ac-sidebar__chat-item.is-active {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.95);
}
/* Blinking caret shown while a freshly created chat's title types itself in */
.ac-sidebar__chat-item.is-typing {
  color: rgba(255,255,255,0.95);
}
.ac-sidebar__chat-item.is-typing::after {
  content: '';
  display: inline-block;
  width: 1px;
  height: 0.95em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -0.15em;
  animation: ac-title-caret 0.75s steps(1, end) infinite;
}
@keyframes ac-title-caret { 50% { opacity: 0; } }
.ac-sidebar__footer {
  flex-shrink: 0;
  padding: 0.625rem 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.ac-sidebar__user {
  display: flex; align-items: center; gap: 0.5rem;
  cursor: pointer;
}
.ac-sidebar__user-avatar {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.5625rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.ac-sidebar__user span {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.5);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}
.ac-sidebar__user svg { width: 10px; height: 10px; color: rgba(255,255,255,0.3); flex-shrink: 0; }

/* ── Main panel ── */
.ac-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #0B0B0E;
}

/* Chat area */
.ac-chat-gradient-wrap { flex: 1; overflow: hidden; min-height: 0; }
.ac-demo__chat {
  height: 100%;
  overflow-y: auto;
  padding: 1.5rem 2rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
  min-height: 0;
}
.ac-demo__input-area {
  padding: 0.5rem 1.25rem 0.875rem;
  flex-shrink: 0;
  position: relative;
  background: #0B0B0E;
}

/* Gradient border input — solid static gradient matching the app */
.ac-demo__input-gradient {
  padding: 2px;
  border-radius: 18px;
  background: linear-gradient(135deg, #D97706, #B45309, #9333EA, #7C3AED);
}
.ac-demo__input-gradient .ac-demo__input-wrap {
  border: none;
  border-radius: 16px;
  background: #1A1A1A;
}
.ac-demo__input-actions {
  display: flex; align-items: center; gap: 0.375rem;
}
.ac-demo__attach-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: background 0.2s;
}
.ac-demo__attach-btn:hover { background: rgba(255,255,255,0.12); }
.ac-demo__attach-btn svg { width: 14px; height: 14px; color: rgba(255,255,255,0.4); }

/* Toolbar buttons */
.ac-toolbar__sidebar-toggle,
.ac-toolbar__new-chat {
  width: 30px; height: 30px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.ac-toolbar__sidebar-toggle:hover,
.ac-toolbar__new-chat:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.8);
}
.ac-toolbar__sidebar-toggle svg,
.ac-toolbar__new-chat svg { width: 14px; height: 14px; }

/* Toolbar */
.ac-demo__toolbar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-shrink: 0;
}
.ac-demo__brand {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  padding: 0.375rem 0.625rem;
  border-radius: 8px;
  transition: background 0.15s, border-color 0.15s;
  border: 1px solid rgba(255,255,255,0.08);
  cursor: default;
}
.ac-demo__brand:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.15);
}
.ac-demo__brand svg {
  width: 10px; height: 10px;
  opacity: 0.4;
}
.ac-demo__brand img {
  height: 20px; width: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.ac-demo__toolbar-sep {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.1);
  margin-inline: 0.375rem;
}

/* Connections dropdown */
.ac-demo__conn-wrap {
  position: relative;
}
.ac-demo__conn-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.ac-demo__conn-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.18);
}
.ac-demo__conn-btn svg {
  width: 12px; height: 12px;
  opacity: 0.5;
  transition: transform 0.2s;
}
.ac-demo__conn-wrap.is-open .ac-demo__conn-btn svg {
  transform: rotate(180deg);
}

/* Pulsing ring around button to draw attention */
.ac-demo__conn-btn::after {
  content: '';
  display: none; /* pulse ring removed */
}

/* Bouncing Tooltip pointing to button */
.ac-demo-pointer {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--accent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 99px;
  white-space: nowrap;
  pointer-events: none;
  animation: ac-pointer-bounce 2s infinite ease-in-out;
  box-shadow: 0 4px 12px rgba(26,60,255,0.4);
  z-index: 30;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.ac-demo-pointer::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 6px solid var(--accent);
}
@keyframes ac-pointer-bounce {
  0%, 100% { transform: translateX(-50%) translateY(12px); }
  50% { transform: translateX(-50%) translateY(18px); }
}
/* Reveal tooltip when demo is visible */
.ac-demo-pointer.is-visible {
  opacity: 1;
}
/* Hide tooltip once interacted with */
.ac-demo__conn-wrap.is-open .ac-demo-pointer,
.ac-demo__conn-wrap.has-interacted .ac-demo-pointer {
  opacity: 0 !important;
  animation: none;
}
.ac-demo__conn-btn .ac-conn-icon {
  width: 16px; height: 16px;
  border-radius: 3px;
  object-fit: contain;
}
.ac-demo__conn-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  background: #1A1A1A;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 0.5rem;
  z-index: 20;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
}
.ac-demo__conn-wrap.is-open .ac-demo__conn-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ac-demo__conn-menu-title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0.625rem 0.375rem;
}
.ac-demo__conn-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.625rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.ac-demo__conn-item:hover {
  background: rgba(255,255,255,0.06);
}
.ac-demo__conn-item-icon {
  font-size: 1.125rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.06);
  border-radius: 6px;
  flex-shrink: 0;
}
.ac-demo__conn-item-info {
  flex: 1;
  min-width: 0;
}
.ac-demo__conn-item-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}
.ac-demo__conn-item-desc {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ac-demo__conn-item-badge {
  font-size: 0.625rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255,255,255,0.9);
  color: #0B0B0E;
  flex-shrink: 0;
}
.ac-demo__conn-item.is-connected .ac-demo__conn-item-badge {
  background: #22C55E;
  color: #fff;
}



/* Empty / welcome state */
.ac-demo__welcome {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
}
.ac-demo__welcome-icon {
  width: 52px; height: 52px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}
.ac-demo__welcome-text {
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}
.ac-demo__welcome-hint {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  max-width: 280px;
}

/* Messages */
.ac-msg {
  display: flex;
  gap: 0.625rem;
  max-width: 85%;
  animation: ac-msg-in 0.35s var(--ease-out) both;
}
@keyframes ac-msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.ac-msg--user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.ac-msg--bot {
  align-self: flex-start;
}
.ac-msg__avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  object-fit: contain;
}
.ac-msg--bot .ac-msg__avatar {
  filter: brightness(0) invert(1);
  opacity: 0.75;
}
.ac-msg__bubble {
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.8125rem;
  line-height: 1.6;
}
.ac-msg--user .ac-msg__bubble {
  background: rgba(255,255,255,0.95);
  color: #111113;
  border-bottom-right-radius: 4px;
}
.ac-msg--bot .ac-msg__bubble {
  background: transparent;
  color: rgba(255,255,255,0.75);
  padding-left: 0;
  padding-right: 0;
}
.ac-msg--bot .ac-msg__bubble strong {
  color: rgba(255,255,255,0.95);
  font-weight: 600;
}
.ac-msg__meta {
  font-size: 0.625rem;
  color: rgba(255,255,255,0.25);
  margin-top: 0.25rem;
  padding-left: 0;
}

/* Typing indicator */
.ac-typing {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 0.75rem 0;
}
.ac-typing span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  animation: ac-bounce 1.2s infinite;
}
.ac-typing span:nth-child(2) { animation-delay: 0.15s; }
.ac-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ac-bounce {
  0%,60%,100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}


.ac-demo__input-wrap {
  display: flex;
  align-items: flex-end;
  background: #1A1A1A;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 1rem 0.75rem 1rem 1.125rem;
  transition: border-color 0.2s;
  cursor: pointer;
  min-height: 72px;
}
.ac-demo__input-wrap:hover,
.ac-demo__input-wrap:focus-within {
  border-color: rgba(255,255,255,0.25);
}
.ac-demo__input-text {
  flex: 1;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  line-height: 1;
  user-select: none;
  align-self: center;
}
.ac-demo__send-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}
.ac-demo__send-btn:hover { background: rgba(255,255,255,0.2); }
.ac-demo__send-btn svg { width: 14px; height: 14px; color: rgba(255,255,255,0.5); }
.ac-demo__limit {
  text-align: center;
  font-size: 0.625rem;
  color: rgba(255,255,255,0.2);
  padding-top: 0.375rem;
}

/* Prompt suggestions */
.ac-demo__prompts {
  position: absolute;
  bottom: calc(100%);
  left: 1rem;
  right: 1rem;
  background: #1A1A1A;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 -8px 30px rgba(0,0,0,0.5);
  z-index: 15;
}
.ac-demo__prompts.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.ac-demo__prompt-item {
  padding: 0.625rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ac-demo__prompt-item:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.95);
}
.ac-demo__prompt-item::before {
  content: '→';
  opacity: 0.3;
  font-size: 0.625rem;
}
/* Ran-out state: shown inside the popover once a chat has used every prompt */
.ac-demo__prompt-empty {
  padding: 0.625rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.55);
}
.ac-demo__prompt-newchat {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: rgba(255,255,255,0.92);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.ac-demo__prompt-newchat:hover {
  color: #fff;
}

/* No-connection hint tooltip */
.ac-no-conn-hint {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 1rem;
  right: 1rem;
  background: #1A1A1A;
  border: 1px solid rgba(255,200,50,0.25);
  border-radius: 10px;
  padding: 0.625rem 0.875rem;
  font-size: 0.75rem;
  color: rgba(255,200,50,0.85);
  text-align: center;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 16;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
}
.ac-no-conn-hint.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Editorial Section ───────────────────────────────────── */
.editorial {
  padding: 8rem 0;
}
.editorial__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.editorial__manifesto {
  font-family: var(--font-sans);
  font-size: 3.5rem;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
}
.editorial__content p {
  font-size: 1.125rem;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.editorial__content p:last-child { margin-bottom: 0; }
.editorial__visual {
  border-radius: var(--radius-xl);
  background: var(--bg);
  border: 1px solid var(--border);
  height: 400px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}

/* ── Home How It Works: Command Routing ─────────────────── */

.cipher-flow-section {
  --cipher-green: #2F8F5B;
  --cipher-warm-line: rgba(14, 13, 11, 0.075);
  padding: 8.5rem 0 9rem;
  background:
    radial-gradient(680px 360px at 82% 22%, rgba(14,13,11,0.035), transparent 72%),
    radial-gradient(720px 380px at 18% 84%, rgba(240,240,243,0.55), transparent 72%),
    linear-gradient(180deg, rgba(255,255,255,0.58), rgba(247,245,240,0.98) 52%, rgba(255,255,255,0.46)),
    var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.cipher-flow-section::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* Structural Grid Pattern + Subtle Scanlines */
  background-image: 
    linear-gradient(to right, rgba(14, 13, 11, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 13, 11, 0.04) 1px, transparent 1px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(14, 13, 11, 0.015) 2px, rgba(14, 13, 11, 0.015) 4px);
  background-size: 32px 32px, 32px 32px, 100% 4px;
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 0%, rgba(0,0,0,0) 70%);
  z-index: 0;
}

.cipher-flow-section .container {
  position: relative;
  z-index: 1;
}

.cipher-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(3rem, 7vw, 6rem);
  align-items: center;
}

.cipher-flow__copy {
  max-width: 520px;
}

.cipher-flow__copy .eyebrow {
  margin-bottom: 1rem;
}

.cipher-flow__copy .t-h2 {
  margin-bottom: 1.25rem;
}

.cipher-flow__signals {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 2rem;
}

.cipher-signal {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid rgba(14,13,11,0.08);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.52);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cipher-signal:hover {
  transform: translateX(5px);
  border-color: rgba(14,13,11,0.15);
  background: rgba(255,255,255,0.72);
}

.cipher-signal__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--text);
  background: rgba(14,13,11,0.045);
  border: 1px solid rgba(14,13,11,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.cipher-signal__icon svg {
  width: 22px;
  height: 22px;
}

.cipher-signal strong {
  display: block;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.cipher-signal small {
  display: block;
  color: var(--text-2);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.cipher-flow__visual {
  min-width: 0;
}

.cipher-routing-shell {
  padding: 0.55rem;
  border: 1px solid rgba(14,13,11,0.08);
  border-radius: 32px;
  background: rgba(240,240,243,0.48);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 32px 80px rgba(14,13,11,0.075), inset 0 1px 0 rgba(255,255,255,0.72);
}

.cipher-routing {
  min-height: 560px;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(14,13,11,0.08);
  border-radius: 24px;
  background:
    linear-gradient(160deg, rgba(255,255,255,0.82), rgba(243,240,232,0.72)),
    var(--surface);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  backdrop-filter: blur(16px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
  overflow: hidden;
  position: relative;
}

.cipher-routing::before {
  content: '';
  position: absolute;
  inset: 1rem;
  border-radius: 20px;
  background:
    radial-gradient(420px 240px at 54% 58%, rgba(14,13,11,0.05), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.44), transparent);
  opacity: 0.74;
  pointer-events: none;
}

.cipher-routing__prompt {
  position: relative;
  z-index: 2;
  max-width: 430px;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(14,13,11,0.08);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.72);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: var(--shadow-sm);
}

.cipher-routing__prompt span {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
}

.cipher-routing__prompt strong {
  display: block;
  color: var(--text);
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.45;
}

.cipher-routing__map {
  position: relative;
  z-index: 1;
  height: 340px;
  margin-top: 1.35rem;
}

.cipher-route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.cipher-route__line {
  fill: none;
  stroke-linecap: round;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
}

.cipher-route__line--base {
  stroke: var(--cipher-warm-line);
}

.cipher-route__line--active {
  stroke: url(#cipherRouteGradient);
  stroke-width: 2.5;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
}

.cipher-flow__visual.is-visible .cipher-route__line--active {
  animation: cipher-route-draw 1.5s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.cipher-flow__visual.is-visible .cipher-route__line--delayed {
  animation-delay: 0.42s;
}

.cipher-node,
.cipher-core {
  position: absolute;
  z-index: 2;
}

.cipher-node {
  width: 140px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(14,13,11,0.08);
  border-radius: 18px;
  background: rgba(255,255,255,0.7);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 16px 34px rgba(14,13,11,0.08), inset 0 1px 0 rgba(255,255,255,0.86);
}

.cipher-flow__visual.is-visible .cipher-node {
  animation: cipher-node-in 0.78s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cipher-node--crm { left: 0.25rem; top: 1.25rem; animation-delay: 0.14s; }
.cipher-node--erp { left: 0.25rem; bottom: 1.25rem; animation-delay: 0.26s; }
.cipher-node--action { right: 0.25rem; top: 1.25rem; animation-delay: 0.62s; }
.cipher-node--record { right: 0.25rem; bottom: 1.25rem; animation-delay: 0.76s; }

.cipher-node span {
  display: block;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.cipher-node small {
  display: block;
  color: var(--text-2);
  font-size: 0.72rem;
  line-height: 1.35;
}

.cipher-core {
  left: 50%;
  top: 50%;
  width: 154px;
  height: 154px;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 32px;
  background: var(--surface-dark);
  color: var(--text-inv);
  box-shadow: 0 28px 54px rgba(14,13,11,0.24), inset 0 1px 0 rgba(255,255,255,0.12);
}

.cipher-core i {
  position: absolute;
  inset: -8px;
  z-index: -1;
  padding: 1px;
  border-radius: 38px;
  background: conic-gradient(from 90deg, transparent, rgba(14,13,11,0.22), transparent 42%, rgba(47,143,91,0.36), transparent 72%);
  opacity: 0.42;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: cipher-ring 7.2s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.cipher-flow__visual.is-visible .cipher-core {
  animation: cipher-core-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both;
}

.cipher-core__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 0.7rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  background: rgba(255,255,255,0.08);
}

.cipher-core__mark img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.cipher-core strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.2;
}

.cipher-core small {
  display: block;
  margin-top: 0.3rem;
  color: rgba(255,255,255,0.52);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cipher-routing__status {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.cipher-routing__status span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  padding: 0.72rem 0.8rem;
  border: 1px solid rgba(14,13,11,0.075);
  border-radius: 14px;
  background: rgba(255,255,255,0.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  color: var(--text-2);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.cipher-routing__status i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cipher-green);
  box-shadow: 0 0 0 4px rgba(47,143,91,0.11);
  flex-shrink: 0;
}

.cipher-flow__visual.is-visible .cipher-routing__status span {
  animation: cipher-status-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cipher-flow__visual.is-visible .cipher-routing__status span:nth-child(1) { animation-delay: 0.55s; }
.cipher-flow__visual.is-visible .cipher-routing__status span:nth-child(2) { animation-delay: 0.68s; }
.cipher-flow__visual.is-visible .cipher-routing__status span:nth-child(3) { animation-delay: 0.81s; }

.cipher-underlay {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 1.05fr;
  grid-template-areas:
    "translate translate guard"
    "coordinate proof proof";
  gap: 1rem;
  margin-top: 1.25rem;
}

.cipher-underlay__panel {
  min-height: 245px;
  padding: clamp(1.25rem, 2vw, 1.65rem);
  border: 1px solid rgba(14,13,11,0.08);
  border-radius: var(--radius-xl);
  background: rgba(255,255,255,0.56);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.72);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.45s cubic-bezier(0.22, 1, 0.36, 1), background 0.45s cubic-bezier(0.22, 1, 0.36, 1), backdrop-filter 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.cipher-underlay__panel:nth-child(1) { grid-area: translate; }
.cipher-underlay__panel:nth-child(2) { grid-area: guard; }
.cipher-underlay__panel:nth-child(3) { grid-area: coordinate; }
.cipher-underlay__panel:nth-child(4) { grid-area: proof; }

.cipher-underlay__panel.btn:hover {
  transform: translateY(-1px);
}

/* ── Simple Text Link ────────────────────────────────────── */
.text-link {
  color: var(--text-2);
  font-weight: 500;
  text-decoration: none;
  font-size: 1.125rem;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.text-link:hover {
  color: var(--text);
}

/* ── Hero CTA Button ─────────────────────────────────────── */
.hero-cta-btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--text);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 100px;
  transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.hero-cta-btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.cipher-underlay__panel:hover {
  transform: translateY(-4px);
  border-color: rgba(14,13,11,0.15);
  background: rgba(255,255,255,0.78);
}

.cipher-underlay__panel h3 {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.32;
  letter-spacing: -0.01em;
  max-width: 480px;
  margin-bottom: 0.65rem;
}

.cipher-underlay__panel p {
  color: var(--text-2);
  font-size: 0.925rem;
  line-height: 1.62;
  max-width: 520px;
}

.cipher-underlay__icon {
  position: absolute;
  left: 1.4rem;
  top: 1.4rem;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(14,13,11,0.045);
  color: var(--text);
  border: 1px solid rgba(14,13,11,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.76);
}

.cipher-underlay__icon svg {
  width: 24px;
  height: 24px;
}

.cipher-underlay__panel--dark {
  background: var(--surface-dark);
  color: var(--text-inv);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 24px 60px rgba(14,13,11,0.18), inset 0 1px 0 rgba(255,255,255,0.1);
  /* Taller so the floating chips clear the heading text; grid stretch
     keeps the adjacent "proof" panel in the same row matched in height. */
  min-height: 310px;
}

.cipher-underlay__panel--dark:hover {
  background: #14120F;
  border-color: rgba(255,255,255,0.18);
}

.cipher-underlay__panel--dark h3 {
  color: var(--text-inv);
}

.cipher-underlay__panel--dark p {
  color: rgba(255,255,255,0.62);
}

/* Sample result summary that fills the taller "proof" panel and illustrates
   the copy ("a clear summary of what ran, what changed"). */
.cipher-underlay__summary {
  position: absolute;
  left: 1.4rem;
  right: 1.4rem;
  top: 4.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cipher-underlay__summary span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(14,13,11,0.075);
  border-radius: 12px;
  background: rgba(255,255,255,0.6);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 550;
  line-height: 1.2;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.cipher-underlay__summary svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--cipher-green, #2F8F5B);
}

.cipher-underlay__pulse {
  position: absolute;
  inset: 1.4rem 1.4rem auto;
  height: 104px;
}

.cipher-underlay__pulse span {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  height: 34px;
  padding: 0 0.85rem;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.72);
  font-size: 0.72rem;
  font-weight: 600;
  animation: cipher-chip-float 5.8s cubic-bezier(0.45, 0, 0.2, 1) infinite;
}

.cipher-underlay__pulse span:nth-child(1) { left: 0; top: 6px; }
.cipher-underlay__pulse span:nth-child(2) { right: 0.4rem; top: 0; animation-delay: -1.1s; }
.cipher-underlay__pulse span:nth-child(3) { left: 24%; bottom: 0; animation-delay: -2.2s; }
.cipher-underlay__pulse span:nth-child(4) { right: 10%; bottom: 18px; animation-delay: -3.2s; }

@keyframes cipher-route-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes cipher-node-in {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cipher-core-in {
  from { opacity: 0; transform: translate(-50%, -50%) scale(0.92); }
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

@keyframes cipher-status-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cipher-ring {
  0%, 100% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.035); }
}

@keyframes cipher-chip-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -7px, 0); }
}

@media (max-width: 1024px) {
  .cipher-flow {
    grid-template-columns: 1fr;
  }

  .cipher-flow__copy {
    max-width: 760px;
  }

  .cipher-underlay {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "translate translate"
      "guard coordinate"
      "proof proof";
  }
}

@media (max-width: 720px) {
  .cipher-flow-section {
    padding: 3.5rem 0;
  }

  .cipher-routing {
    min-height: auto;
  }

  .cipher-routing__map {
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-block: 1rem;
  }

  .cipher-route {
    display: none;
  }

  .cipher-node,
  .cipher-core {
    position: relative;
    inset: auto;
    width: 100%;
    transform: none;
  }

  .cipher-core {
    left: auto;
    top: auto;
    height: auto;
    min-height: 132px;
    order: 3;
  }

  .cipher-flow__visual.is-visible .cipher-core {
    animation-name: cipher-mobile-core-in;
  }

  .cipher-node--action { order: 4; }
  .cipher-node--record { order: 5; }

  .cipher-routing__status {
    grid-template-columns: 1fr;
  }

  /* ── How-it-works: radically simplified on mobile ── */
  .cipher-flow__visual { display: none; }
  .cipher-underlay { display: none; }
}

@media (max-width: 520px) {
  .cipher-routing-shell {
    border-radius: 24px;
    padding: 0.35rem;
  }

  .cipher-routing {
    border-radius: 19px;
  }

  .cipher-signal {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 0.9rem;
  }

  .cipher-signal__icon {
    width: 40px;
    height: 40px;
  }
}

@keyframes cipher-mobile-core-in {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .cipher-route__line--active,
  .cipher-flow__visual.is-visible .cipher-node,
  .cipher-flow__visual.is-visible .cipher-core,
  .cipher-flow__visual.is-visible .cipher-routing__status span,
  .cipher-core i,
  .cipher-underlay__pulse span {
    animation: none;
  }

  .cipher-route__line--active {
    stroke-dashoffset: 0;
  }
}

/* ── Bridge Transition ────────────────────────────────────── */
.bridge-transition {
  height: 230vh; /* extra room keeps the color and text reveal from feeling rushed */
  position: relative;
  background: var(--bg);
  z-index: 2; /* To sit above other relative content, but below sticky CTA stack */
}
.bridge-transition__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  will-change: background-color;
}
.bridge-transition__text {
  font-family: var(--font-sans);
  font-size: 4rem;
  line-height: 1.2;
  font-weight: 400;
  color: rgba(14,13,11,0.12); 
  letter-spacing: -0.02em;
}
.bridge-transition__text span {
  color: rgba(14,13,11,0.12);
  will-change: color;
  transition: text-shadow 0.28s var(--ease-out);
}
.bridge-transition__text span.is-active {
  color: inherit;
}

/* ── Security Section ───────────────────────────────────── */
.security-section {
  background: var(--surface-dark);
  color: var(--text-inv);
  padding: 8rem 0;
  position: relative;
}
.security-section .eyebrow { color: rgba(255,255,255,0.4); border-color: rgba(255,255,255,0.1); }
.security-section .t-h2 { color: #FFF; }
.security-section .t-body-lg { color: rgba(255,255,255,0.7); }
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 4rem;
}
.security-card {
  padding: 2.5rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
}
.security-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: #FFF;
}
.security-card__body {
  font-size: 0.9375rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

/* ── Visual Placeholders (Tasteful Themes) ──────────────── */
.theme-amber { background: linear-gradient(135deg, #FFF4E5 0%, #FFFAEE 100%); border-color: rgba(255, 138, 0, 0.1); }
.theme-amber .placeholder-text { color: #B36200; }

.theme-teal { background: linear-gradient(135deg, #E0F2FE 0%, #F0F9FF 100%); border-color: rgba(13, 148, 136, 0.1); }
.theme-teal .placeholder-text { color: #0D9488; }

.theme-purple { background: linear-gradient(135deg, #EDE9FE 0%, #F5F3FF 100%); border-color: rgba(139, 92, 246, 0.1); }
.theme-purple .placeholder-text { color: #6D28D9; }

.theme-dark { background: linear-gradient(135deg, #1A1A1A 0%, #2A2A2A 100%); border-color: rgba(255,255,255,0.08); }
.theme-dark .placeholder-text { color: rgba(255,255,255,0.4); }

.theme-glass { background: rgba(255,255,255,0.5); backdrop-filter: blur(10px); }

/* ── Bento Grid ──────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: transform 0.28s var(--ease-out), box-shadow 0.28s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.bento-card:hover {
  transform: translateY(-3px) scale(1.005);
  box-shadow: var(--shadow-md);
}

/* ── Bento Grid Pop-Open Accordion ── */
.bento-card__body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}
.bento-card__body-inner {
  overflow: hidden;
}
.bento-card:hover .bento-card__body-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
  transition: grid-template-rows 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease 0.1s;
}
.bento-card__content {
  padding: 1.5rem;
  flex: 1;
}
.bento-card--a { 
  grid-column: span 2; 
  flex-direction: row; 
  align-items: stretch; 
}
.bento-card--a .bento-card__content {
  width: 45%;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bento-icon {
  width: 46px; height: 46px;
  border-radius: var(--radius-md);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
}
.bento-card--a .bento-icon { background: rgba(26,60,255,0.1); }

/* Visual Placeholders */
.bento-placeholder {
  background: linear-gradient(135deg, var(--bg) 0%, rgba(14,13,11,0.02) 100%);
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.bento-placeholder--right {
  flex: 1;
  margin: 1rem 1rem 1rem 0;
}
.bento-placeholder--top {
  height: 160px;
  margin: 1rem 1rem 0 1rem;
}
.placeholder-text {
  font-size: 0.6875rem;
  color: var(--text-3);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bento-card__title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.5rem; line-height: 1.35; }
.bento-card__body  { font-size: 0.9375rem; color: var(--text-2); line-height: 1.6; }

/* ── How It Works (Home — 3 steps) ─────────────────────── */
.how-steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1rem; margin-top: 4rem;
  position: relative;
}
.how-steps-grid::before {
  content: '';
  position: absolute; top: 20px; left: 8%; right: 8%; height: 1px;
  background: linear-gradient(to right, transparent, var(--border-md), var(--border-md), transparent);
  pointer-events: none;
}
.how-step {
  padding: 2rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
}
.how-step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--border-md);
  font-size: 0.8125rem; font-weight: 600; color: var(--text-2);
  margin-bottom: 1.5rem;
}
.how-step__title { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 0.625rem; }
.how-step__body  { font-size: 0.9375rem; color: var(--text-2); line-height: 1.65; }

/* ── Integration chips / teaser ────────────────────────── */
.int-chips { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 2.5rem; }
.int-chip {
  display: flex; align-items: center; gap: 0.625rem;
  padding: 0.625rem 1.125rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 0.875rem; font-weight: 500; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.int-chip:hover { border-color: var(--border-md); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.int-chip__dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; flex-shrink: 0; }

/* ── CTA / Waitlist section ─────────────────────────────── */
.cta-band {
  background: #EDE9E2;
  border-radius: var(--radius-xl);
  margin-inline: 2rem;
  padding: 5rem 2rem;
  text-align: center;
}
.cta-band .t-h2 { margin-bottom: 1rem; letter-spacing: -0.04em; }
.cta-band .t-body-lg { margin-bottom: 2rem; max-width: 480px; margin-inline: auto; margin-bottom: 2rem; letter-spacing: -0.01em; }
.cta-form {
  display: flex; gap: 0.75rem; flex-wrap: wrap;
  justify-content: center; max-width: 480px; margin-inline: auto;
}
.cta-form .form-input { flex: 1; min-width: 220px; background: var(--surface); }
.cta-note { font-size: 0.8125rem; color: var(--text-3); margin-top: 1rem; }

/* ── Footer ─────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding-block: 4rem 3rem; }
.footer__inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer__logo {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.9375rem; font-weight: 700; color: var(--text);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.footer__logo img {
  height: 24px; width: auto; object-fit: contain; filter: invert(1);
}
.footer__tagline { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; max-width: 270px; margin-bottom: 2rem; }
.footer__copy { font-size: 0.75rem; color: var(--text-3); }
.footer__col-title {
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 1.25rem;
}
.footer__links { display: flex; flex-direction: column; gap: 0.75rem; }
.footer__link { font-size: 0.875rem; color: var(--text-2); transition: color 0.2s; }
.footer__link:hover { color: var(--text); }

/* ── Scroll Reveal ───────────────────────────────────────── */
[data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
[data-reveal].is-visible { opacity: 1; transform: none; }


[data-delay="1"] { transition-delay: 0.14s; }
[data-delay="2"] { transition-delay: 0.28s; }
[data-delay="3"] { transition-delay: 0.42s; }
[data-delay="4"] { transition-delay: 0.56s; }
[data-delay="5"] { transition-delay: 0.7s; }

/* ── How It Works Page (deep-dive) ─────────────────────── */
.hiw-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: center;
  padding-block: 5rem;
  border-bottom: 1px solid var(--border);
}
.hiw-section:last-child { border-bottom: none; }
.hiw-section--flip .hiw-section__visual { order: -1; }
.hiw-section__num {
  font-family: var(--font-sans); font-size: 0.875rem;
  color: var(--text-3); letter-spacing: 0.06em;
  margin-bottom: 1rem;
}
.hiw-section__title {
  font-family: var(--font-sans);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  line-height: 1.15; letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hiw-section__body { font-size: 1.0625rem; color: var(--text-2); line-height: 1.75; }
.hiw-section__visual {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  aspect-ratio: 4/3;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
}

/* ── Integrations Page ───────────────────────────────────── */
.integrations-filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.filter-btn {
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.8125rem; font-weight: 500; color: var(--text-2);
  cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--border-md); color: var(--text); }
.filter-btn.active { background: var(--text); color: #fff; border-color: var(--text); }

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 1rem;
}
.integration-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.25rem;
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem; text-align: center;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
  position: relative;
}
.integration-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-md); }
.integration-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
}
.integration-card__name { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.integration-card__cat  { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.integration-card--soon { opacity: 0.6; }
.integration-card--soon::after {
  content: 'Soon';
  position: absolute; top: 0.75rem; right: 0.75rem;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 2px 7px; color: var(--text-3);
}

/* ── Changelog ───────────────────────────────────────────── */
.changelog-layout {
  display: grid; grid-template-columns: 220px 1fr;
  gap: 4rem; align-items: start;
}
.changelog-sidebar {
  position: sticky; top: calc(var(--nav-h) + 2rem);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1rem;
}
.changelog-sidebar__title {
  font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); padding: 0.25rem 0.75rem; margin-bottom: 0.5rem;
}
.changelog-sidebar__link {
  display: block; padding: 0.5rem 0.75rem;
  font-size: 0.875rem; color: var(--text-2);
  border-radius: var(--radius-md);
  transition: background 0.15s, color 0.15s;
}
.changelog-sidebar__link:hover { background: var(--bg); color: var(--text); }
.changelog-sidebar__link.is-active { background: var(--accent-subtle); color: var(--accent); }

.changelog-entry {
  padding-bottom: 4rem; margin-bottom: 4rem;
  border-bottom: 1px solid var(--border);
}
.changelog-entry:last-child { border-bottom: none; }
.changelog-entry__meta { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1.25rem; }
.changelog-entry__date { font-size: 0.8125rem; color: var(--text-3); }
.changelog-entry__ver {
  font-family: var(--font-mono); font-size: 0.6875rem; color: var(--text-3);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius-full); padding: 2px 8px;
}
.cl-tag {
  display: inline-block; font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 9px; border-radius: var(--radius-full);
}
.cl-tag--new      { background: #DCFCE7; color: #16A34A; }
.cl-tag--improved { background: #DBEAFE; color: #1D4ED8; }
.cl-tag--fixed    { background: #FEF3C7; color: #D97706; }

.changelog-entry__title {
  font-family: var(--font-sans);
  font-size: 2rem; letter-spacing: -0.04em;
  line-height: 1.15; margin-bottom: 1rem;
}
.changelog-entry__body { font-size: 1rem; color: var(--text-2); line-height: 1.78; }
.changelog-entry__body p + p { margin-top: 1rem; }
.changelog-entry__items { margin-top: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.cl-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.9375rem; color: var(--text-2); line-height: 1.6;
}
.cl-item::before {
  content: '→'; color: var(--accent); flex-shrink: 0;
  font-size: 0.875rem; margin-top: 0.05rem;
}

/* ── About Page ─────────────────────────────────────────── */
.about-hero { padding-top: calc(var(--nav-h) + 4rem); padding-bottom: 4rem; }
.about-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
  margin-block: 5rem;
}
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2rem;
}
.stat-card__val {
  font-family: var(--font-sans);
  font-size: 3.5rem; line-height: 1; margin-bottom: 0.75rem;
}
.stat-card__label { font-size: 0.9375rem; color: var(--text-2); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 1rem; margin-top: 2.5rem;
}
.team-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 1.75rem;
  text-align: center;
}
.team-card__avatar {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--border);
  margin-inline: auto; margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-size: 1.375rem; color: var(--text-2);
}
.team-card__name { font-weight: 600; font-size: 0.9375rem; margin-bottom: 0.25rem; }
.team-card__role { font-size: 0.8125rem; color: var(--text-2); }

/* ── Careers Page ────────────────────────────────────────── */
.values-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 2.5rem;
}
.value-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}
.value-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.value-card__num {
  font-family: var(--font-sans); font-size: 3rem;
  color: rgba(26,60,255,0.1); line-height: 1; margin-bottom: 1rem;
}
.value-card__title { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; }
.value-card__body  { font-size: 0.9375rem; color: var(--text-2); line-height: 1.65; }

.roles-list {
  border: 1px solid var(--border); border-radius: var(--radius-xl);
  overflow: hidden; margin-top: 2.5rem;
}
.role-item {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.role-item:last-child { border-bottom: none; }
.role-item:hover { background: var(--bg); }
.role-item__title { font-weight: 600; font-size: 0.9375rem; flex: 1; }
.role-item__dept  { font-size: 0.875rem; color: var(--text-2); min-width: 130px; }
.role-item__loc   { font-size: 0.875rem; color: var(--text-2); min-width: 110px; text-align: right; }
.role-item__cta   { color: var(--accent); font-size: 0.875rem; font-weight: 500; flex-shrink: 0; }

/* ── Contact Page ────────────────────────────────────────── */
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start;
  padding-top: calc(var(--nav-h) + 5rem);
  padding-bottom: 6rem;
}
.contact-info__item {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.9375rem; color: var(--text-2);
  padding-block: 1.25rem; border-bottom: 1px solid var(--border);
}
.contact-info__item:first-child { border-top: 1px solid var(--border); }
.contact-icon {
  width: 38px; height: 38px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); flex-shrink: 0;
}
.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 2.5rem;
}
.contact-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form__grid .form-group:last-child { grid-column: span 2; }

/* ── Login Page ──────────────────────────────────────────── */
.login-page {
  min-height: 100dvh;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  background: var(--bg);
}
.login-card {
  width: 100%; max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.75rem;
  box-shadow: var(--shadow-lg);
}
.login-card__logo {
  display: flex; align-items: center; justify-content: center;
  gap: 0.625rem;
  font-weight: 600; font-size: 1rem; color: var(--text);
  margin-bottom: 1.25rem;
}
.login-card__logo img {
  height: 32px; width: auto; object-fit: contain; filter: invert(1);
}
.login-card__header { text-align: center; margin-bottom: 2rem; }
.login-card__form { display: flex; flex-direction: column; gap: 1.25rem; }
.login-divider {
  display: flex; align-items: center; gap: 1rem;
  font-size: 0.8125rem; color: var(--text-3); margin-block: 0.5rem;
}
.login-divider::before, .login-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.login-footer {
  text-align: center; font-size: 0.875rem; color: var(--text-2);
  margin-top: 1.5rem;
}
.login-footer a { color: var(--accent); font-weight: 500; }

/* ── Page Hero (inner pages) ────────────────────────────── */
.page-hero {
  padding-top: calc(var(--nav-h) + 4rem);
  padding-bottom: 3.5rem;
}
.page-hero--center { text-align: center; max-width: 720px; margin-inline: auto; }
.page-hero .eyebrow { margin-bottom: 1rem; }
.page-hero .t-h2   { margin-bottom: 1.25rem; }

/* ── Shared pill / status ────────────────────────────────── */
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.status-dot--live { background: #22C55E; }
.status-dot--soon { background: #D1D5DB; }

/* ── Interactive Features Section (Light Mode) ─────────────── */
.section--features-interactive {
  background: var(--bg);
  position: relative;
  padding-block: var(--section-y);
  /* The section-header typography automatically inherits from global styles */
}
.features-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.features-tabs button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}
.features-tabs button:hover {
  background: rgba(14, 13, 11, 0.04);
  color: var(--text);
}
.features-tabs button.is-active {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.features-content-area {
  position: relative;
  min-height: 400px;
}
.features-panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.features-panel.is-active {
  display: grid;
  animation: panelEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.features-panel.is-exiting {
  display: grid;
  animation: panelExit 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes panelEnter {
  0% { opacity: 0; transform: translateY(28px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes panelExit {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-16px); }
}
/* Desktop: hide mobile-only carousel elements */
.features-dots { display: none; }
.features-carousel-label { display: none; }
/* Desktop: carousel track is invisible wrapper */
.features-carousel-track { display: contents; }
.feature-card-outer {
  background: var(--surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
}
.feature-card-inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--text);
}
.feature-card-inner h3 {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--text);
}
.feature-card-inner p {
  color: var(--text-2);
  line-height: 1.7;
  flex: 1;
}
.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.feature-tags span {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-2);
}
.feature-examples-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
  flex: 1;
}
.feature-examples-list li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
}

/* ── Connected Apps Block (Panel 2) ──────────────────────── */
.ac-connected-apps,
.ac-connected-apps * {
  box-sizing: border-box;
}

.ac-connected-apps {
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}

.ac-connected-apps__head {
  padding: 32px 32px 20px;
}

.ac-connected-apps__head h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.2;
}

.ac-connected-apps__head p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.875rem;
}

.ac-connected-apps__search {
  margin: 0 32px 24px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-3);
  font-size: 0.875rem;
}

.ac-connected-apps__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0 24px 32px;
}

.ac-connected-app {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  transition: background 0.2s ease;
}

.ac-connected-app:hover {
  background: var(--bg);
}

.ac-connected-app__logo {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  padding: 8px;
}

.ac-connected-app__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ac-connected-app h4 {
  margin: 0 0 2px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 600;
}

.ac-connected-app p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.8rem;
  line-height: 1.4;
}

.ac-connected-app button {
  min-height: 32px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.ac-connected-app button:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}

@media (max-width: 520px) {
  .ac-connected-apps__head,
  .ac-connected-apps__list {
    padding-inline: 18px;
  }

  .ac-connected-apps__search {
    margin-inline: 18px;
  }

  .ac-connected-app {
    grid-template-columns: 40px minmax(0, 1fr);
    padding: 12px 0;
  }

  .ac-connected-app button {
    grid-column: 2;
    justify-self: start;
    margin-top: 8px;
  }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root { --section-y: 5.5rem; }
  .bento-card--a { grid-column: span 2; }
  .bento-card--f { grid-column: span 3; flex-direction: column; gap: 1.5rem; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .about-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  :root { --section-y: 4rem; --nav-h: var(--mobile-nav-bar-h); }

  /* ── Global mobile tightening ── */
  .container { padding-inline: 1.25rem; }

  /* ── Typography scaling ── */
  .t-display { font-size: clamp(2rem, 8vw, 2.8rem); }
  .t-h2 { font-size: clamp(1.625rem, 6vw, 2rem); }
  .t-body-lg { font-size: 1rem; }
  .t-body { font-size: 0.9375rem; }
  .eyebrow { font-size: 0.625rem; }

  /* ── Nav ── */
  .nav__links, .nav__actions .btn, .nav__actions .nav__link:not(.nav-mobile-toggle) { display: none; }
  .nav-mobile-toggle { display: flex; }

  /* ── Hero ── */
  .hero { min-height: auto; padding-top: calc(var(--nav-h) + 1.25rem); padding-bottom: 1.5rem; }
  .hero__content { text-align: center; }
  .hero__sub { font-size: 0.9375rem; margin: 0 auto 1.35rem; max-width: 340px; }
  .hero__actions { flex-direction: column; align-items: center; gap: 0; }
  .hero__mobile-proof {
    display: block;
    max-width: 358px;
    margin: 1.25rem auto 0;
    text-align: left;
  }
  /* Demo reel is a landscape scene — let it run wider than the
     old portrait mockup and breathe a little past the copy */
  .hero__mobile-proof.hero-reel {
    max-width: 480px;
    margin-top: 2.5rem;
    margin-bottom: 1.75rem;
  }

  /* Contact form: name/company side-by-side is too cramped to type
     in on a phone (inline style needs the !important) */
  .contact-form__grid { grid-template-columns: 1fr !important; }

  /* Hide the desktop buttons on mobile */
  .hero__actions .btn { display: none; }

  /* Show a single Sign up button via the first btn becoming visible and relabeled via CSS */
  .hero__actions .btn--primary {
    display: inline-block;
    width: auto;
    padding: 0.7rem 2.25rem;
    font-size: 0; /* hide original text node */
    font-weight: 500;
    border-radius: 100px;
    letter-spacing: 0.01em;
  }
  .hero__actions .btn--primary svg { display: none; }
  .hero__actions .btn--primary::after { content: 'Sign up now'; font-size: 0.9375rem; }
  .hero__actions .btn--secondary { display: none; }

  /* ── Partners ── */
  .partners { padding-block: 2rem; }
  .partners__logos { gap: 1.5rem; }
  .partners__logo { height: 28px; }
  .partners__stats { flex-direction: column; gap: 1.25rem; max-width: 100%; padding-top: 1.5rem; }
  .partners__stat { padding-inline: 0; }
  .partners__stat-divider { width: 100%; height: 1px; }
  .partners__stat-num { font-size: 1.375rem; }

  /* ── Editorial ── */
  .editorial { padding: 3.25rem 0; }
  .editorial__inner { grid-template-columns: 1fr; gap: 2rem; }
  .editorial__manifesto { font-size: clamp(1.75rem, 7vw, 2.5rem); }
  .editorial__content p { font-size: 1rem; }
  .editorial__content p:nth-child(2) { display: none; }

  /* ── Stack panels ── */
  .stack-panel__inner { grid-template-columns: 1fr; }
  .stack-panel__visual { display: none !important; }
  .stack-panel {
    min-height: auto;
    padding-block: 3.25rem;
    position: relative;
    display: block;
    align-items: initial;
    transform: none !important;
    filter: none !important;
  }
  .stack-panel__inner {
    padding-top: 0;
    padding-bottom: 0;
  }
  .stack-panel--dark .stack-panel__inner { grid-template-columns: 1fr; gap: 2rem; }
  .stack-panel__headline { font-size: clamp(1.75rem, 6vw, 2.25rem); }
  .stack-panel__body { font-size: 0.9375rem; max-width: 100%; }
  .stack-panel__label { font-size: 0.625rem; }
  .stack-panel__mobile-visual { display: block; }
  .stack-panel--cream .stack-panel__mobile-visual,
  .stack-panel--surface .stack-panel__mobile-visual {
    box-shadow: var(--shadow-sm);
  }

  /* ── Bento ── */
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card--a, .bento-card--f { grid-column: span 1; }
  .bento-card--a { flex-direction: column; }
  .bento-card--a .bento-card__content { width: 100%; padding: 1.5rem; }
  .bento-card--f { flex-direction: column; }
  .bento-card__content { padding: 1.25rem; }

  /* ── How steps ── */
  .how-steps-grid { grid-template-columns: 1fr; gap: 0.75rem; margin-top: 2.5rem; }
  .how-steps-grid::before { display: none; }
  .how-step { padding: 1.5rem 1.25rem; }

  /* ── Features: swipeable carousel on mobile ── */
  .features-tabs { display: none; }
  .section--features-interactive .section-header .t-body-lg { display: none; }

  .features-content-area {
    min-height: auto;
    overflow: hidden;
    position: relative;
  }

  .features-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
  }
  .features-carousel-track::-webkit-scrollbar { display: none; }

  .features-panel {
    display: flex !important;
    flex-direction: column;
    gap: 0;
    min-width: 100%;
    width: 100%;
    flex-shrink: 0;
    scroll-snap-align: center;
    padding: 0 0.25rem;
    box-sizing: border-box;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .features-panel.is-exiting {
    animation: none !important;
  }

  /* Hide second card (examples) on mobile — single card per slide */
  .features-panel .feature-card-outer:nth-child(2) { display: none; }

  /* Compact single card */
  .feature-card-outer {
    padding: 1.25rem 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
  }
  .feature-icon-wrap {
    width: 36px;
    height: 36px;
    margin-bottom: 1rem;
  }
  .feature-icon-wrap svg { width: 18px; height: 18px; }
  .feature-card-inner h3 { font-size: 1.125rem; margin-bottom: 0.625rem; }
  .feature-card-inner p { font-size: 0.875rem; line-height: 1.6; }
  .feature-tags { margin-top: 1rem; gap: 0.375rem; }
  .feature-tags span { font-size: 0.6875rem; padding: 0.25rem 0.625rem; }

  /* Carousel dots */
  .features-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding-top: 1.25rem;
  }
  .features-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.15s ease;
  }
  .features-dot.is-active {
    background: var(--text);
    transform: scale(1.3);
  }

  /* Carousel label */
  .features-carousel-label {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-2);
    padding-top: 0.625rem;
    min-height: 1.25em;
  }

  /* ── Security ── */
  .security-section {
    padding: 4rem 0;
    position: static !important;
    min-height: auto !important;
    transform: none !important;
    filter: none !important;
  }
  .security-grid { grid-template-columns: 1fr; gap: 1rem; margin-top: 2.5rem; }
  .security-card { padding: 1.75rem; }
  .security-card__title { font-size: 1rem; }
  .security-card__body { font-size: 0.875rem; }

  /* ── Bridge transition ── */
  .bridge-transition {
    height: auto !important;
    min-height: 0 !important;
  }
  .bridge-transition__sticky {
    position: static !important;
    min-height: 18rem;
    height: auto !important;
    display: flex;
    align-items: center;
    padding-block: 4rem;
    background: var(--surface-dark) !important;
  }
  .bridge-transition__text {
    font-size: clamp(1.7rem, 7vw, 2.35rem);
    text-align: center;
    padding-inline: 1rem;
    color: rgba(255,255,255,0.92) !important;
  }
  .bridge-transition__text span {
    color: rgba(255,255,255,0.92) !important;
    text-shadow: none !important;
  }

  /* ── CTA band ── */
  .cta-band { margin-inline: 0; border-radius: 0; padding: 3rem 1.5rem; }
  .cta-band .t-body-lg { font-size: 0.9375rem; }
  .cta-form { flex-direction: column; }
  .cta-form .form-input { min-width: unset; }

  /* ── HIW pages ── */
  .hiw-section { grid-template-columns: 1fr; gap: 2rem; padding-block: 3rem; }
  .hiw-section--flip .hiw-section__visual { order: 0; }
  .hiw-section__visual {
    aspect-ratio: auto;
    min-height: 0;
    overflow: visible;
    align-items: stretch;
    padding: 1rem;
  }
  .hiw-section__visual > div {
    min-width: 0;
  }
  .hiw-section__visual [style*="min-width:90px"] {
    min-width: 4.75rem !important;
  }
  .hiw-section__visual [style*="display:flex; align-items:center"] {
    flex-wrap: wrap;
    row-gap: 0.55rem;
  }

  /* ── Pages ── */
  .page-hero { padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 2rem; }
  .page-hero--center { padding-inline: 0.5rem; }
  .page-hero__mobile-proof {
    display: block;
    margin-top: 1.5rem;
  }

  /* ── Product page ── */
  .product-hero {
    padding-top: calc(var(--nav-h) + 2.25rem) !important;
    padding-bottom: 2.75rem !important;
  }
  .product-hero .product-hero__inner {
    gap: 2rem !important;
  }
  .product-hero .product-hero__body {
    margin-bottom: 1.25rem !important;
  }
  .product-hero .product-hero__actions {
    gap: 0.65rem !important;
  }
  .product-hero .product-hero__actions .btn--secondary {
    display: none;
  }
  .product-hero .workspace-mock {
    border-radius: 22px;
    box-shadow: 0 24px 58px rgba(14,13,11,0.22);
  }
  .product-hero .workspace-mock__body {
    padding: 1rem;
  }
  .product-hero .workspace-mock__cmd {
    font-size: 0.75rem;
    padding: 0.78rem 0.82rem;
  }
  .product-hero .workspace-mock__step {
    padding: 0.62rem 0;
  }

  /* ── Integrations ── */
  .integrations-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .integrations-filters { gap: 0.375rem; }
  .filter-btn { padding: 0.4rem 0.875rem; font-size: 0.75rem; }

  /* ── Use cases ── */
  .uc-grid .uc-card {
    padding: 1.45rem 1.25rem;
  }
  .uc-grid .uc-card__title {
    font-size: 1.2rem;
  }
  .uc-grid .uc-card__body {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
  }
  .uc-grid .uc-card__examples li {
    font-size: 0.8rem;
  }
  .uc-grid .uc-card__examples li:nth-child(n+3) {
    display: none;
  }

  /* ── Security page ── */
  .security-hero .security-hero__sub {
    margin-bottom: 1.25rem;
  }
  .security-hero .security-hero__badges {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .security-hero .security-badge:nth-child(n+3) {
    display: none;
  }
  .security-hero .security-hero__mobile-proof {
    display: block;
    margin-top: 1rem;
  }

  /* ── Changelog ── */
  .changelog-layout { grid-template-columns: 1fr; }
  .changelog-sidebar { display: none; }
  .changelog-entry__title { font-size: 1.5rem; }

  /* ── Contact ── */
  .contact-layout { grid-template-columns: 1fr; padding-top: calc(var(--nav-h) + 3rem); gap: 2.5rem; }
  .contact-form { padding: 1.5rem; }
  .contact-form__grid { grid-template-columns: 1fr; }
  .contact-form__grid .form-group:last-child { grid-column: span 1; }

  /* ── About / Stats / Teams ── */
  .about-hero { padding-top: calc(var(--nav-h) + 2.5rem); padding-bottom: 2rem; }
  .about-stats { grid-template-columns: 1fr; margin-block: 3rem 0; } /* dots follow — no stranded gap */
  .section [style*="grid-template-columns:1fr 1.2fr"],
  .section [style*="grid-template-columns:repeat(3,1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  .stat-card { padding: 1.5rem; }
  .stat-card__val { font-size: 2.5rem; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .team-card { padding: 1.25rem; }

  /* ── Careers ── */
  .values-grid { grid-template-columns: 1fr; }
  .value-card { padding: 1.5rem; }
  .value-card__num { font-size: 2.25rem; }
  .role-item { flex-wrap: wrap; gap: 0.5rem; padding: 1rem 1.25rem; }
  .role-item__dept { min-width: auto; }
  .role-item__loc { text-align: left; min-width: auto; }

  /* ── Footer ── */
  .footer { padding-block: 3rem 2rem; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .footer__tagline { max-width: 100%; }

  /* ── Login ── */
  .login-card { padding: 2rem 1.5rem; }

  /* ── Section headers ── */
  .section-header { margin-bottom: 2.5rem; }

  .cipher-flow__mobile-proof {
    display: block;
    margin: 1.5rem 0 0;
  }
  .cipher-flow__signals {
    margin-top: 1.2rem;
  }
}
@media (min-width: 769px) and (max-width: 900px) {
  .bento-grid { grid-template-columns: repeat(2, 1fr); }
  .bento-card--a { grid-column: span 2; }
  .bento-card--f { grid-column: span 2; }
}

/* ── Micro-breakpoint for very small phones (≤ 480px) ── */
@media (max-width: 480px) {
  .container { padding-inline: 1rem; }

  .t-display { font-size: 1.875rem; }
  .t-h2 { font-size: 1.5rem; }

  .hero__headline br { display: none; }

  .partners__logos { gap: 1rem; }
  .partners__logo { height: 22px; }

  .editorial__manifesto { font-size: 1.625rem; }

  .stack-panel__headline { font-size: 1.625rem; }

  .bridge-transition__text { font-size: 1.5rem; }

  .bento-card__content { padding: 1rem; }
  .bento-card__title { font-size: 0.9375rem; }
  .bento-card__body { font-size: 0.875rem; }

  .how-step { padding: 1.25rem 1rem; }
  .how-step__title { font-size: 0.9375rem; }
  .how-step__body { font-size: 0.875rem; }

  .feature-card-outer { padding: 1.25rem; }
  .feature-card-inner h3 { font-size: 1.125rem; }
  .feature-card-inner p { font-size: 0.875rem; }
  .feature-tags span { font-size: 0.6875rem; padding: 0.25rem 0.5rem; }
  .feature-examples-list li { padding: 0.75rem 1rem; font-size: 0.875rem; }

  .security-card { padding: 1.25rem; }
  .team-grid { grid-template-columns: 1fr; }

  /* Disable sticky stack on mobile */
  #security-panel {
    position: static !important;
    min-height: auto !important;
    padding-block: 4rem;
  }
  #signup-cta {
    padding-top: 0 !important; /* Flow naturally from security */
  }
  #signup-cta .cta-band {
    box-shadow: none !important;
  }

  .cta-band { padding: 2.5rem 1rem; }
  .cta-band .t-h2 { font-size: 1.375rem; }

  .btn { font-size: 0.875rem; padding: 0.675rem 1.125rem; }
  .btn--lg { font-size: 0.9375rem; padding: 0.75rem 1.5rem; }

  .changelog-entry__title { font-size: 1.25rem; }
  .cl-item { font-size: 0.875rem; }

  .int-chip { font-size: 0.8125rem; padding: 0.5rem 0.875rem; }

  .team-grid { grid-template-columns: 1fr; }

  .integrations-grid { grid-template-columns: repeat(2, 1fr); }
  .integration-card { padding: 1.25rem 0.75rem; }
  .integration-card__name { font-size: 0.8125rem; }

  .cipher-signal strong { font-size: 0.875rem; }
  .cipher-signal small { font-size: 0.75rem; }

  .badge { font-size: 0.6875rem; padding: 0.25rem 0.625rem; }

  .mobile-menu__link { font-size: 1.375rem; }
}


/* ═══════════════════════════════════════════════════════════
   MEGA-MENU SITE HEADER  — new nav across all pages
   ═══════════════════════════════════════════════════════════ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  border-bottom: 1px solid rgba(14,13,11,0.08);
  background:
    linear-gradient(180deg,
      rgba(247,245,240,0.94) 0%,
      rgba(247,245,240,0.76) 100%);
  backdrop-filter: blur(28px) saturate(1.38);
  -webkit-backdrop-filter: blur(28px) saturate(1.38);
  transition: background 0.18s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0%, rgba(247,245,240,0) 100%);
  transform-origin: top;
  animation: header-glass-reveal 2.45s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}
.site-header::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 0;
  height: 42px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(247,245,240,0.46), rgba(247,245,240,0));
  -webkit-backdrop-filter: blur(18px) saturate(1.22);
  backdrop-filter: blur(18px) saturate(1.22);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 100%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 100%);
  transform-origin: top;
  animation: header-glass-spill 2.8s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}
.site-header.animate-load-down {
  animation-duration: 2.05s;
  animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes header-glass-reveal {
  0% { opacity: 0; transform: scaleY(0.35); }
  45% { opacity: 0.62; }
  100% { opacity: 1; transform: scaleY(1); }
}
@keyframes header-glass-spill {
  0% { opacity: 0; transform: translateY(-22px) scaleY(0.35); }
  55% { opacity: 0.48; }
  100% { opacity: 1; transform: translateY(0) scaleY(1); }
}
.site-header.is-scrolled {
  box-shadow: 0 1px 8px rgba(14,13,11,0.06);
  border-bottom-color: rgba(14,13,11,0.12);
}

.site-nav {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: var(--nav-h);
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  text-decoration: none;
}
.site-brand__mark {
  display: grid;
  width: 38px; height: 38px;
  place-items: center;
}
.site-brand__mark img {
  width: 36px; height: 36px;
  object-fit: contain;
  filter: brightness(0);
}
.site-brand__name { letter-spacing: -0.03em; }

.site-nav__links, .site-nav__actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.site-nav__links a,
.site-nav__actions a,
.site-dropdown__trigger {
  display: inline-flex;
  position: relative;
  min-height: 36px;
  align-items: center;
  padding: 0 11px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s, color 0.18s;
}

.site-nav__links a:hover,
.site-nav__actions a:hover,
.site-dropdown__trigger:hover,
.site-dropdown:focus-within .site-dropdown__trigger,
.site-dropdown:hover .site-dropdown__trigger {
  background: rgba(14,13,11,0.06);
  color: var(--text);
}

.site-dropdown__trigger::after {
  content: "";
  width: 5px; height: 5px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.2s var(--ease-out);
  flex-shrink: 0;
}
.site-dropdown:hover .site-dropdown__trigger::after,
.site-dropdown:focus-within .site-dropdown__trigger::after {
  transform: translateY(1px) rotate(225deg);
}

.site-dropdown { position: relative; }
.site-dropdown::after {
  content: "";
  position: absolute;
  top: 100%; left: -8px; right: -8px;
  height: 14px;
}

.site-mega-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 200;
  display: grid;
  width: min(760px, calc(100vw - 40px));
  grid-template-columns: minmax(0,1.15fr) minmax(0,1fr) minmax(220px,0.85fr);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.99);
  box-shadow: 0 24px 72px rgba(14,13,11,0.18), 0 4px 16px rgba(14,13,11,0.06);
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transform: translate(-50%, -8px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.site-dropdown:hover .site-mega-menu,
.site-dropdown:focus-within .site-mega-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.mega-col {
  display: grid;
  align-content: start;
  gap: 4px;
  min-height: 240px;
  padding: 26px 22px 28px;
  border-right: 1px solid var(--border);
}
.mega-col:last-child { border-right: 0; }
.mega-col--featured { background: #fafbf9; }
.mega-col--note { background: #f1f4ee; }

.mega-label {
  margin: 0 0 8px;
  color: var(--text-3);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-mega-menu a {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 56px;
  padding: 9px 10px 9px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  white-space: normal;
  transition: background 0.15s;
}
.site-mega-menu a:hover { background: rgba(14,13,11,0.04); }

.site-mega-menu a::before {
  content: "";
  position: absolute;
  top: 11px; bottom: 11px; left: 7px;
  width: 3px;
  border-radius: 999px;
  background: transparent;
  transition: background 0.15s;
}
.site-mega-menu a:hover::before,
.site-mega-menu a.is-active::before { background: var(--accent); }

.site-mega-menu a span {
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
}
.site-mega-menu a small {
  color: var(--text-2);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.3;
}

.mega-col--note strong {
  display: block;
  max-width: 240px;
  color: var(--text);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}
.mega-col--note small {
  display: block;
  max-width: 240px;
  color: var(--text-2);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.site-nav__beta {
  background: var(--text) !important;
  color: #fff !important;
  border-radius: 7px !important;
}
.site-nav__beta:hover { background: #25272c !important; color: #fff !important; }

.site-nav__toggle {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  place-items: center;
  padding: 0;
}
.hamburger-icon line {
  transition: transform 0.3s ease, opacity 0.2s ease;
}
.hamburger-top { transform-origin: 10px 5px; }
.hamburger-mid { transform-origin: 10px 10px; }
.hamburger-bot { transform-origin: 10px 15px; }

body.nav-open .hamburger-top {
  transform: translateY(5px) rotate(45deg);
}
body.nav-open .hamburger-mid {
  opacity: 0;
}
body.nav-open .hamburger-bot {
  transform: translateY(-5px) rotate(-45deg);
}

@media (min-width: 881px) {
  main { transition: filter 0.16s ease; }
  .site-header:has(.site-dropdown:hover) ~ main,
  .site-header:has(.site-dropdown:focus-within) ~ main { filter: blur(3px); }
}

@media (max-width: 880px) {
  :root {
    --nav-h: calc(var(--safe-area-top) + var(--mobile-nav-bar-h));
  }

  html {
    background: #000;
    height: 100%;
    overflow: hidden; /* body scroll replaced by main container scroll */
  }

  body {
    height: 100%;
    overflow: hidden; /* prevent body scroll reaching the notch */
  }

  /* ── Main scroll container ───────────────────────────────────
     Page content lives here, starting at the BOTTOM of the nav bar.
     Content physically cannot scroll above top: var(--nav-h),
     so it can never appear in the notch / Dynamic Island area.
     The nav bar extends upward into the notch via padding-top:
     env(safe-area-inset-top) — covering that zone with solid bg. */
  main {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    bottom: 0;
    overflow-y: scroll;
    /* vertical-only: no sideways panning while scrolling */
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }
  /* Swipeable rows opt back in to horizontal touch */
  main [data-mcarousel],
  main .features-carousel-track,
  main .comparison-wrap,
  main .legal-nav__links {
    touch-action: pan-x pan-y;
  }

  /* ── iOS Safe Area Cover Bars ───────────────────────────────
     Real DOM elements that paint the correct background over the
     notch / Dynamic Island and home-indicator zones.
     They sit above all page content (z-index 1999) but below modals.
     Must be real elements — pseudo-elements don't reliably composite
     in Safari's status-bar region. ────────────────────────────── */
  .ios-safe-top,
  .ios-safe-bottom {
    display: block;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    min-height: var(--nav-h);
    padding-top: var(--safe-area-top);
    background: #F7F5F0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  /* Kill load animation on mobile — transform/will-change break
     Safari's fixed-position compositing, letting content paint
     above the header in the status-bar area. */
  .site-header.animate-load-down {
    animation: none;
    opacity: 1;
    will-change: auto;
    transform: none;
  }


  .site-nav {
    min-height: var(--mobile-nav-bar-h);
    padding-top: 0;
  }

  .site-header::before,
  .site-header::after {
    content: none;
  }

  .site-nav__toggle { display: inline-grid; }

  /* Hide in-header links on mobile — the standalone overlay handles it */
  .site-nav__links,
  .site-nav__actions { display: none !important; }

  body.nav-open {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
    touch-action: none;
    overscroll-behavior: none;
  }

  body.nav-open::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: var(--visual-viewport-height);
    z-index: 998;
    background: var(--bg);
  }
}

/* ── Standalone mobile menu overlay ───────────────────────── */
.mobile-menu {
  position: fixed;
  inset: 0;
  top: var(--nav-h, 60px);
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.mobile-menu.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0.5rem 1.5rem 2rem;
}

/* Section headings (Product, Solutions, Company) */
.mobile-menu__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 1rem 0;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mobile-menu__heading::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-3);
  transition: transform 0.2s ease;
}
.mobile-menu__heading[aria-expanded="true"]::after {
  content: '−';
}

/* Collapsible sub-links */
.mobile-menu__sub {
  display: none;
  flex-direction: column;
  padding: 0.25rem 0 0.5rem;
}
.mobile-menu__heading[aria-expanded="true"] + .mobile-menu__sub {
  display: flex;
}
.mobile-menu__sub a {
  display: block;
  padding: 0.625rem 0 0.625rem 0.125rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text-2);
  text-decoration: none;
  transition: color 0.15s ease;
}
.mobile-menu__sub a:active {
  color: var(--text);
}

/* Standalone links (Pricing, Changelog) */
.mobile-menu__link {
  display: block;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

/* Footer with CTA buttons */
.mobile-menu__footer {
  display: flex;
  flex-direction: row; /* legacy rule above sets column — keep buttons side by side */
  flex-wrap: wrap;
  gap: 0.625rem;
  padding: 1rem 1.5rem calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* ── Mobile appearance (theme) control ───────────────────── */
.mobile-menu__theme {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.375rem;
}
.mobile-menu__theme-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-2);
}
.mobile-menu__theme-seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border-md);
  border-radius: var(--radius-full);
  background: var(--bg);
}
.mobile-menu__theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border: none;
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-menu__theme-btn svg {
  width: 0.85rem;
  height: 0.85rem;
}
.mobile-menu__theme-btn.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .mobile-menu__theme-seg {
  background: rgba(255,255,255,0.04);
}

@media (max-width: 880px) {
  .mobile-menu {
    top: var(--nav-h, 60px);
    bottom: auto;
    height: calc(var(--visual-viewport-height) - var(--nav-h, 60px));
    min-height: 0;
    max-height: calc(var(--visual-viewport-height) - var(--nav-h, 60px));
    /* dvh tracks Safari's collapsing toolbar natively — the JS-synced
       var can go stale mid-session, clipping the menu's scroll range */
    height: calc(100dvh - var(--nav-h, 60px));
    max-height: calc(100dvh - var(--nav-h, 60px));
    z-index: 999;
  }

  .mobile-menu__body {
    min-height: 0;
    /* generous run-out so the last expanded item always clears */
    padding-bottom: calc(3.5rem + var(--safe-area-bottom));
  }

  .mobile-menu__footer {
    padding-top: 0.75rem;
    padding-bottom: calc(0.75rem + var(--safe-area-bottom));
  }
}

.mobile-menu__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  text-decoration: none;
  transition: background 0.15s ease;
}
.mobile-menu__btn--secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.mobile-menu__btn--primary {
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
}

/* Dark mode */
[data-theme="dark"] .mobile-menu {
  background: var(--bg);
}
[data-theme="dark"] .mobile-menu__heading {
  color: var(--text);
  border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .mobile-menu__heading::after { color: var(--text-3); }
[data-theme="dark"] .mobile-menu__sub a { color: var(--text-2); }
[data-theme="dark"] .mobile-menu__sub a:active { color: var(--text); }
[data-theme="dark"] .mobile-menu__link {
  color: var(--text);
  border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .mobile-menu__footer {
  border-top-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .mobile-menu__btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .mobile-menu__btn--primary {
  background: var(--text);
  color: var(--bg);
}

/* Hide on desktop */
@media (min-width: 881px) {
  .mobile-menu { visibility: hidden !important; opacity: 0 !important; pointer-events: none !important; }
}


/* ═══════════════════════════════════════════════════════════
   DARK MODE
   ═══════════════════════════════════════════════════════════ */

/* ── Theme toggle button ──────────────────────────────────── */
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(14,13,11,0.06);
  color: var(--text);
}
.theme-toggle svg {
  width: 18px; height: 18px;
  transition: transform 0.3s var(--ease-out);
}
.theme-toggle:hover svg { transform: rotate(15deg); }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }

/* ── Dark mode custom properties ─────────────────────────── */
[data-theme="dark"] {
  --bg:           #111113;
  --surface:      #18181B;
  --surface-dark: #09090B;
  --border:       rgba(255, 255, 255, 0.08);
  --border-md:    rgba(255, 255, 255, 0.12);
  --border-dark:  rgba(255, 255, 255, 0.1);

  --text:       #E4E4E7;
  --text-2:     #A1A1AA;
  --text-3:     #71717A;
  --text-inv:   #FFFFFF;
  --text-inv-2: rgba(255,255,255,0.55);

  --accent:        #3D5AFF;
  --accent-hover:  #5570FF;
  --accent-subtle: rgba(61,90,255,0.12);
  --accent-muted:  rgba(61,90,255,0.18);

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.2);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.25);

  color-scheme: dark;
}

[data-theme="dark"] ::selection {
  background: var(--accent-muted);
  color: #fff;
}

/* ── Logo inversion ───────────────────────────────────────── */
[data-theme="dark"] .nav__logo img,
[data-theme="dark"] .mobile-menu__header img,
[data-theme="dark"] .footer__logo img,
[data-theme="dark"] .login-card__logo img {
  filter: brightness(0) invert(1);
}

/* ── Partners logos ───────────────────────────────────────── */
[data-theme="dark"] .partners__logo {
  filter: grayscale(1) opacity(0.45);
}
[data-theme="dark"] .partners__logo:hover {
  filter: grayscale(0) opacity(1);
}

/* ── Site header / mega-menu ──────────────────────────────── */
[data-theme="dark"] .site-header {
  background:
    linear-gradient(180deg,
      rgba(17,17,19,0.9) 0%,
      rgba(17,17,19,0.74) 100%);
  border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .site-header::before {
  background: linear-gradient(180deg, var(--bg) 0%, rgba(17,17,19,0) 100%);
}
[data-theme="dark"] .site-header::after {
  background: linear-gradient(180deg, rgba(17,17,19,0.5), rgba(17,17,19,0));
}
[data-theme="dark"] .site-header.is-scrolled {
  box-shadow: 0 1px 8px rgba(0,0,0,0.3);
  border-bottom-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .site-brand__mark img {
  filter: brightness(0) invert(1);
}
[data-theme="dark"] .site-nav__links a:hover,
[data-theme="dark"] .site-nav__actions a:hover,
[data-theme="dark"] .site-dropdown__trigger:hover,
[data-theme="dark"] .site-dropdown:focus-within .site-dropdown__trigger,
[data-theme="dark"] .site-dropdown:hover .site-dropdown__trigger {
  background: rgba(255,255,255,0.06);
}
[data-theme="dark"] .site-mega-menu {
  background: rgba(24,24,27,0.98);
  box-shadow: 0 24px 72px rgba(0,0,0,0.5), 0 4px 16px rgba(0,0,0,0.3);
}
[data-theme="dark"] .site-mega-menu a:hover {
  background: rgba(255,255,255,0.04);
}
[data-theme="dark"] .mega-col--featured {
  background: rgba(255,255,255,0.02);
}
[data-theme="dark"] .mega-col--note {
  background: rgba(255,255,255,0.03);
}
[data-theme="dark"] .site-nav__beta {
  background: #E4E4E7 !important;
  color: #111113 !important;
}
[data-theme="dark"] .site-nav__beta:hover {
  background: #fff !important;
}
[data-theme="dark"] .site-nav__toggle {
  border-color: rgba(255,255,255,0.1);
  background: var(--surface);
}
[data-theme="dark"] .theme-toggle {
  border-color: rgba(255,255,255,0.1);
}
[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255,255,255,0.06);
}

/* ── Mobile: force fully opaque header (overrides desktop glass effect & dark theme gradients) ── */
@media (max-width: 880px) {
  .site-header {
    background: #F7F5F0 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .site-header.is-scrolled {
    background: #F7F5F0 !important;
  }
  [data-theme="dark"] .site-header,
  [data-theme="dark"] .site-header.is-scrolled {
    background: #111113 !important;
  }
}

/* ── Nav (legacy) ─────────────────────────────────────────── */
[data-theme="dark"] .nav--scrolled {
  background: rgba(17,17,16,0.88);
}

/* ── Hero ─────────────────────────────────────────────────── */
[data-theme="dark"] .hero::before {
  background: radial-gradient(ellipse, rgba(61,90,255,0.08) 0%, transparent 68%);
}

/* ── Buttons ──────────────────────────────────────────────── */
[data-theme="dark"] .btn--secondary {
  border-color: rgba(255,255,255,0.12);
  color: var(--text);
}
[data-theme="dark"] .btn--secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.2);
}
[data-theme="dark"] .btn--primary {
  box-shadow: 0 1px 4px rgba(61,90,255,0.35);
}
[data-theme="dark"] .btn--primary:hover {
  box-shadow: 0 6px 20px rgba(61,90,255,0.35);
}

/* ── Badge ────────────────────────────────────────────────── */
[data-theme="dark"] .badge--accent {
  background: rgba(61,90,255,0.12);
  border-color: rgba(61,90,255,0.2);
}

/* ── Stack panels ─────────────────────────────────────────── */
[data-theme="dark"] .stack-panel--dark {
  background: #09090B;
}
[data-theme="dark"] .stack-panel--cream {
  background: var(--bg);
}
[data-theme="dark"] .stack-panel--surface {
  background: var(--surface);
}
[data-theme="dark"] .stack-panel--dark .stack-panel__headline {
  color: #E4E4E7;
}
[data-theme="dark"] .stack-panel--dark .stack-panel__body {
  color: rgba(234,234,232,0.55);
}
[data-theme="dark"] .stack-panel--dark .stack-panel__label {
  color: rgba(234,234,232,0.35);
}

/* ── Editorial ────────────────────────────────────────────── */
[data-theme="dark"] .editorial__visual {
  background: var(--surface);
}

/* ── Cipher flow / routing section ────────────────────────── */
[data-theme="dark"] .cipher-flow-section {
  background:
    radial-gradient(680px 360px at 82% 22%, rgba(255,255,255,0.02), transparent 72%),
    radial-gradient(720px 380px at 18% 84%, rgba(255,255,255,0.02), transparent 72%),
    linear-gradient(180deg, rgba(24,24,27,0.6), rgba(17,17,19,0.98) 52%, rgba(24,24,27,0.5)),
    var(--bg);
}
[data-theme="dark"] .cipher-flow-section::before {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(255, 255, 255, 0.01) 2px, rgba(255, 255, 255, 0.01) 4px);
}
[data-theme="dark"] .cipher-signal {
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
[data-theme="dark"] .cipher-signal:hover {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.09);
}
[data-theme="dark"] .cipher-signal__icon {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
  box-shadow: none;
}
[data-theme="dark"] .cipher-routing-shell {
  border-color: rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.04);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.05);
}
[data-theme="dark"] .cipher-routing {
  border-color: rgba(255,255,255,0.07);
  background:
    linear-gradient(160deg, rgba(24,24,27,0.72), rgba(17,17,19,0.78)),
    var(--surface);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
[data-theme="dark"] .cipher-routing::before {
  background:
    radial-gradient(420px 240px at 54% 58%, rgba(255,255,255,0.02), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
}
[data-theme="dark"] .cipher-routing__prompt {
  border-color: rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.07);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
}
[data-theme="dark"] .cipher-node {
  border-color: rgba(255,255,255,0.09);
  background: rgba(24,24,27,0.65);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  backdrop-filter: blur(14px) saturate(1.3);
  box-shadow: 0 16px 34px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.07);
}
[data-theme="dark"] .cipher-core {
  border-color: rgba(255,255,255,0.1);
  background: #E4E4E7;
  color: #111113;
  box-shadow: 0 28px 54px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
[data-theme="dark"] .cipher-core__mark {
  border-color: rgba(0,0,0,0.1);
  background: rgba(0,0,0,0.06);
}
[data-theme="dark"] .cipher-core__mark img {
  filter: brightness(0);
}
[data-theme="dark"] .cipher-core small {
  color: rgba(0,0,0,0.5);
}
[data-theme="dark"] .cipher-underlay__summary span {
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  box-shadow: none;
}
[data-theme="dark"] .cipher-underlay__summary svg {
  color: #34D399;
}
[data-theme="dark"] .cipher-routing__status span {
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: none;
}
[data-theme="dark"] .cipher-underlay__panel {
  border-color: rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.05);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}
[data-theme="dark"] .cipher-underlay__panel:hover {
  border-color: rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.09);
}
[data-theme="dark"] .cipher-underlay__icon {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.08);
  box-shadow: none;
}
[data-theme="dark"] .cipher-underlay__panel--dark {
  background: rgba(9,9,11,0.7);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-color: rgba(255,255,255,0.07);
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
[data-theme="dark"] .cipher-underlay__panel--dark:hover {
  background: rgba(9,9,11,0.82);
  border-color: rgba(255,255,255,0.13);
}

/* Route lines in dark mode */
[data-theme="dark"] .cipher-flow-section {
  --cipher-warm-line: rgba(255, 255, 255, 0.075);
}
[data-theme="dark"] .cipher-route__line--base {
  stroke: rgba(255,255,255,0.08);
}
[data-theme="dark"] .cipher-route__line--active {
  stroke: url(#cipherRouteGradientDark);
}
[data-theme="dark"] .cipher-routing__status i {
  background: #34D399;
  box-shadow: 0 0 0 4px rgba(52,211,153,0.15);
}

/* ── Bridge transition ────────────────────────────────────── */
[data-theme="dark"] .bridge-transition {
  background: var(--bg);
}
[data-theme="dark"] .bridge-transition__text {
  color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .bridge-transition__text span {
  color: rgba(255,255,255,0.08);
}

/* ── Security (already dark, subtly differentiate) ────────── */
[data-theme="dark"] .security-section {
  background: #09090B;
}
[data-theme="dark"] .security-card {
  background: rgba(255,255,255,0.02);
  border-color: rgba(255,255,255,0.06);
}

/* ── CTA / Waitlist ───────────────────────────────────────── */
[data-theme="dark"] .cta-band {
  background: #18181B;
}
[data-theme="dark"] .cta-form .form-input {
  background: #222120;
}

/* ── Features section ─────────────────────────────────────── */
[data-theme="dark"] .features-tabs button:hover {
  background: rgba(255,255,255,0.04);
}
[data-theme="dark"] .features-tabs button.is-active {
  background: var(--surface);
  border-color: rgba(255,255,255,0.08);
}
[data-theme="dark"] .feature-icon-wrap {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .feature-tags span {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .feature-examples-list li {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.06);
}

/* ── Connected apps panel ─────────────────────────────────── */
[data-theme="dark"] .ac-connected-apps__search {
  background: rgba(255,255,255,0.03);
}
[data-theme="dark"] .ac-connected-app:hover {
  background: rgba(255,255,255,0.03);
}
[data-theme="dark"] .ac-connected-app__logo {
  /* White tile so dark brand logos (NetSuite, Zendesk) stay legible on the
     dark card — the near-transparent chip made them nearly invisible. */
  background: #fff;
  border-color: rgba(255,255,255,0.12);
}

/* ── Bento / cards ────────────────────────────────────────── */
[data-theme="dark"] .bento-placeholder {
  background: linear-gradient(135deg, var(--surface) 0%, rgba(255,255,255,0.02) 100%);
}
[data-theme="dark"] .bento-icon {
  background: rgba(255,255,255,0.04);
}
[data-theme="dark"] .bento-card--a .bento-icon {
  background: rgba(61,90,255,0.12);
}

/* ── How it works steps ───────────────────────────────────── */
[data-theme="dark"] .how-steps-grid::before {
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.06), rgba(255,255,255,0.06), transparent);
}

/* ── Integration cards ────────────────────────────────────── */
[data-theme="dark"] .integration-card__icon {
  background: rgba(255,255,255,0.04);
}
[data-theme="dark"] .integration-card--soon::after {
  background: rgba(255,255,255,0.04);
}

/* ── Changelog ────────────────────────────────────────────── */
[data-theme="dark"] .changelog-entry__ver {
  background: rgba(255,255,255,0.04);
}
[data-theme="dark"] .cl-tag--new {
  background: rgba(22,163,74,0.15);
  color: #4ADE80;
}
[data-theme="dark"] .cl-tag--improved {
  background: rgba(29,78,216,0.15);
  color: #60A5FA;
}
[data-theme="dark"] .cl-tag--fixed {
  background: rgba(217,119,6,0.15);
  color: #FBBF24;
}

/* ── About / stat cards ───────────────────────────────────── */
[data-theme="dark"] .team-card__avatar {
  background: rgba(255,255,255,0.04);
}

/* ── Values / careers ─────────────────────────────────────── */
[data-theme="dark"] .value-card__num {
  color: rgba(61,90,255,0.15);
}
[data-theme="dark"] .role-item:hover {
  background: rgba(255,255,255,0.03);
}

/* ── Contact ──────────────────────────────────────────────── */
[data-theme="dark"] .contact-icon {
  background: rgba(255,255,255,0.04);
}

/* ── Filter buttons ───────────────────────────────────────── */
[data-theme="dark"] .filter-btn.active {
  background: #E4E4E7;
  color: #111113;
  border-color: #E4E4E7;
}

/* ── Visual theme classes ─────────────────────────────────── */
[data-theme="dark"] .theme-amber {
  background: linear-gradient(135deg, rgba(255,138,0,0.08) 0%, rgba(255,138,0,0.03) 100%);
  border-color: rgba(255,138,0,0.12);
}
[data-theme="dark"] .theme-amber .placeholder-text { color: #F59E0B; }
[data-theme="dark"] .theme-teal {
  background: linear-gradient(135deg, rgba(13,148,136,0.08) 0%, rgba(13,148,136,0.03) 100%);
  border-color: rgba(13,148,136,0.12);
}
[data-theme="dark"] .theme-teal .placeholder-text { color: #2DD4BF; }
[data-theme="dark"] .theme-purple {
  background: linear-gradient(135deg, rgba(139,92,246,0.08) 0%, rgba(139,92,246,0.03) 100%);
  border-color: rgba(139,92,246,0.12);
}
[data-theme="dark"] .theme-purple .placeholder-text { color: #A78BFA; }
[data-theme="dark"] .theme-glass {
  background: rgba(255,255,255,0.03);
}

/* (old mobile nav dark rules removed — standalone .mobile-menu handles dark mode above) */


/* ── Form inputs focus ────────────────────────────────────── */
[data-theme="dark"] .form-input:focus,
[data-theme="dark"] .form-textarea:focus {
  box-shadow: 0 0 0 3px rgba(61,90,255,0.2);
}

/* ── Demo section (already dark, ensure it stays correct) ── */
[data-theme="dark"] .demo-card {
  box-shadow: 0 32px 80px rgba(0,0,0,0.4);
}

/* ── Partners stats ───────────────────────────────────────── */
[data-theme="dark"] .partners__stats {
  border-top-color: rgba(255,255,255,0.06);
}

/* ── Haptic Depth & Premium Spazaz (Doppelrand) ───────────── */
.pillar, .pricing-card, .api-card, .hiw-section__visual, .workspace-mock, .code-block, .arch-diagram {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 2px 8px rgba(14,13,11,0.02);
  transition: transform 0.5s var(--ease-spring), box-shadow 0.5s var(--ease-spring), border-color 0.5s var(--ease-spring);
}
.pillar:hover, .pricing-card:hover, .api-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: inset 0 1px 0 rgba(255,255,255,1), 0 12px 32px rgba(14,13,11,0.08);
}
[data-theme="dark"] .pillar, [data-theme="dark"] .pricing-card, [data-theme="dark"] .api-card, [data-theme="dark"] .hiw-section__visual, [data-theme="dark"] .workspace-mock, [data-theme="dark"] .code-block, [data-theme="dark"] .arch-diagram {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 4px 16px rgba(0,0,0,0.3);
}
[data-theme="dark"] .pillar:hover, [data-theme="dark"] .pricing-card:hover, [data-theme="dark"] .api-card:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 16px 40px rgba(0,0,0,0.5);
}
[data-theme="dark"] .btn--secondary {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}
[data-theme="dark"] .btn--secondary:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.1), 0 6px 16px rgba(0,0,0,0.4);
}

/* ── Smooth theme transition ──────────────────────────────── */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition-duration: 0.35s !important;
  transition-property: background, background-color, color, border-color, box-shadow, fill, stroke, filter !important;
}

/* ── Initial Page Load Animations ─────────────────────────── */
@keyframes screen-fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

body {
  animation: screen-fade 1.4s ease-out forwards;
}

@keyframes fade-in-down {
  0% {
    opacity: 0;
    transform: translateY(-2rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in-up {
  0% {
    opacity: 0;
    transform: translateY(2rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-load-down {
  animation: fade-in-down 1.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0ms);
  opacity: 0; /* Hidden before animation starts */
  will-change: transform, opacity;
}

.animate-load-up {
  animation: fade-in-up 1.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0ms);
  opacity: 0; /* Hidden before animation starts */
  will-change: transform, opacity;
}

@keyframes bounce-in-down {
  0% {
    opacity: 0;
    transform: translateY(-2rem);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-bounce-in {
  animation: bounce-in-down 1.4s cubic-bezier(0.34, 1.9, 0.64, 1) forwards;
  animation-delay: var(--delay, 0ms);
  opacity: 0;
  will-change: transform, opacity;
}

/* ── Word Flipper ──────────────────────────────── */
.word-flipper {
  display: inline-grid;
  overflow: hidden;
  height: 1.2em; /* match line-height */
  vertical-align: bottom;
  min-width: 350px; /* keep width stable so text doesn't jump */
  text-align: center;
  justify-items: center;
}
.word-flipper > span {
  grid-area: 1 / 1;
  animation: word-flip 16s infinite;
  opacity: 0;
  transform: translateY(100%);
}
.word-flipper > span:nth-child(1) { animation-delay: -1s; }
.word-flipper > span:nth-child(2) { animation-delay: 3s; }
.word-flipper > span:nth-child(3) { animation-delay: 7s; }
.word-flipper > span:nth-child(4) { animation-delay: 11s; }

@keyframes word-flip {
  0% { 
    opacity: 1; 
    transform: translateY(100%);
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
  3.5% { 
    opacity: 1; 
    transform: translateY(-4%);
    animation-timing-function: ease-in-out;
  }
  4.7% { 
    opacity: 1; 
    transform: translateY(1%);
    animation-timing-function: ease-in-out;
  }
  5.5% { 
    opacity: 1; 
    transform: translateY(0);
  }
  6.25% { 
    opacity: 1; 
    transform: translateY(0);
  }
  25% { 
    opacity: 1; 
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }
  28.5% { 
    opacity: 1; 
    transform: translateY(-104%);
    animation-timing-function: ease-in-out;
  }
  29.7% { 
    opacity: 1; 
    transform: translateY(-99%);
    animation-timing-function: ease-in-out;
  }
  30.5% { 
    opacity: 1; 
    transform: translateY(-100%);
  }
  31.25% { 
    opacity: 1; 
    transform: translateY(-100%);
  }
  31.26% { 
    opacity: 0; 
    transform: translateY(-100%);
  }
  99.99% { 
    opacity: 0; 
    transform: translateY(100%);
  }
  100% { 
    opacity: 1; 
    transform: translateY(100%);
  }
}
