:root {
  --bg: #050816;
  --bg-elev: rgba(255, 255, 255, 0.045);
  --bg-elev-strong: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f5f7fb;
  --muted: #b7bfd1;
  --muted-2: #8b93a9;
  --accent: #8de9ff;
  --accent-2: #79b9ff;
  --accent-3: #8e8cff;
  --danger: #ffafaf;
  --shadow: 0 20px 80px rgba(0, 0, 0, 0.28);
  --radius: 28px;
  --header-h: 84px;
  --container: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-shell {
  position: relative;
  overflow: hidden;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
  opacity: 0.98;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.24;
  pointer-events: none;
}

.orb-a {
  width: 34rem;
  height: 34rem;
  top: -8rem;
  left: 50%;
  transform: translateX(-50%);
  background: #22d3ee;
}

.orb-b {
  width: 26rem;
  height: 26rem;
  right: -8rem;
  top: 24rem;
  background: #6366f1;
}

.orb-c {
  width: 22rem;
  height: 22rem;
  left: -8rem;
  top: 42rem;
  background: #38bdf8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 1rem 0 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  background: rgba(5, 8, 22, 0.72);
  border: 1px solid var(--border);
  border-radius: 999px;
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.36);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 233, 255, 0.3);
  background: rgba(141, 233, 255, 0.08);
  color: var(--accent);
  font-size: 1.2rem;
}

.brand-text {
  display: grid;
}

.brand-text strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--muted-2);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.desktop-nav a {
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  transition: 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.desktop-nav .nav-cta {
  background: rgba(255, 255, 255, 0.94);
  color: #050816;
  font-weight: 600;
}

.desktop-nav .nav-cta:hover {
  background: #fff;
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.24rem;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  padding: 0.75rem 0 0;
}

.mobile-menu.open {
  display: block;
}

.mobile-nav {
  display: grid;
  gap: 0.35rem;
  padding: 0.7rem;
  background: rgba(5, 8, 22, 0.9);
  border: 1px solid var(--border);
  border-radius: 28px;
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

.mobile-nav a {
  padding: 1rem 1rem;
  border-radius: 18px;
  color: var(--muted);
}

.mobile-nav a:hover,
.mobile-nav a.active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.section {
  position: relative;
  padding: 4.35rem 0;
}

.hero {
  padding-top: 3.85rem;
  padding-bottom: 3.7rem;
}

.hero-grid,
.split-layout,
.two-up {
  display: grid;
  gap: clamp(1.15rem, 1.6vw, 1.6rem);
}

.hero-copy {
  max-width: 48rem;
}

.eyebrow-row,
.hero-actions,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #d7dced;
  font-size: 0.78rem;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.pill.subtle {
  background: rgba(255, 255, 255, 0.04);
}

h1,
h2,
h3,
.section-kicker,
.eyebrow {
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
  hyphens: none;
}

strong,
.stat-card strong,
.compact-grid strong,
.mini-cards strong {
  overflow-wrap: normal;
  word-break: normal;
}

h1 {
  margin: 1.2rem 0 0;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

h2 {
  margin: 0.6rem 0 0;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.038em;
}

h3 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.95rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.hero-text,
.section-heading p,
.glass-card p,
.simple-list,
.check-list,
.band-item,
.timeline-item p,
.footer-inner p {
  color: var(--muted);
}

.hero-text {
  margin: 1.5rem 0 0;
  max-width: 46rem;
  font-size: clamp(1.05rem, 1.8vw, 1.32rem);
  line-height: 1.75;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.9rem 1.15rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: 180ms ease;
  border: 1px solid transparent;
}

.button-solid {
  background: rgba(255, 255, 255, 0.96);
  color: #050816;
}

.button-solid:hover {
  transform: translateY(-1px);
  background: #fff;
}

.button-ghost {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.button-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.stats-grid,
.card-grid,
.band-grid,
.mini-cards,
.footer-inner,
.visual-lower,
.bullet-grid {
  display: grid;
  gap: clamp(1.15rem, 1.5vw, 1.6rem);
}

.stats-grid {
  margin-top: 2.25rem;
}

.glass-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.7rem, 2.2vw, 2.45rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elev);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent 55%);
  pointer-events: none;
}

.glass-card > * {
  position: relative;
  z-index: 1;
}

.stats-grid > *,
.card-grid > *,
.mini-cards > *,
.compact-grid > *,
.band-grid > *,
.visual-lower > * {
  min-width: 0;
}

.stat-card strong {
  display: block;
  font-size: 1.9rem;
  line-height: 1;
}

.stat-card p {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  max-width: 40rem;
  margin-inline: auto;
}

.visual-panel,
.small-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
}

.visual-panel h3,
.small-panel p {
  margin-top: 0.7rem;
}

.panel-label,
.section-kicker,
.roadmap-label,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  font-weight: 700;
}

.panel-label.accent,
.section-kicker.accent,
.eyebrow {
  color: var(--accent);
}

.section-kicker.danger {
  color: var(--danger);
}

.top-panel {
  margin-bottom: 1rem;
}

.anchor-panel {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(99, 102, 241, 0.12));
  border-color: rgba(141, 233, 255, 0.18);
}

.connector-line {
  width: 1px;
  height: 3rem;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(141, 233, 255, 0), rgba(141, 233, 255, 0.8), rgba(141, 233, 255, 0));
}

.mini-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.mini-grid span,
.compact-grid div,
.mini-cards div,
.bullet-grid div,
.band-item {
  padding: 1.15rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(0, 0, 0, 0.18);
}

.mini-grid span {
  font-size: 0.92rem;
  color: #e8f6ff;
}

.small-panel p {
  margin: 0.55rem 0 0;
}

.band-section {
  padding-top: 1rem;
}

.band-item {
  font-size: 0.95rem;
  line-height: 1.6;
}

.section-heading {
  max-width: 52rem;
  margin-bottom: 2rem;
}

.section-heading p,
.glass-card p,
.timeline-item p,
.check-list li,
.simple-list li,
.compact-grid span,
.mini-cards span,
.footer-inner p,
.site-footer a,
.glass-card a {
  font-size: 0.98rem;
  line-height: 1.75;
}

.glass-card a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--accent);
}

.four-up,
.three-up,
.two-up,
.five-up {
  margin-top: 1.4rem;
}

.simple-list,
.check-list {
  display: grid;
  gap: 0.9rem;
  padding: 0;
  list-style: none;
  margin: 1.25rem 0 0;
}

.simple-list li,
.check-list li {
  padding: 1rem 1.05rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.check-list li {
  position: relative;
  padding-left: 2.8rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 1rem;
  top: 1rem;
  color: var(--accent);
  font-weight: 700;
}

.muted li::before {
  color: #9aa4b8;
}

.accent-list li {
  background: rgba(34, 211, 238, 0.08);
  border-color: rgba(141, 233, 255, 0.16);
  color: #e8fbff;
}

.paradox-card {
  background: linear-gradient(135deg, rgba(255, 176, 176, 0.08), rgba(255,255,255,0.04));
}

.spotlight-card,
.cta-card {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(99, 102, 241, 0.11));
  border-color: rgba(141, 233, 255, 0.18);
}

.bullet-grid,
.mini-cards,
.compact-grid {
  margin-top: 1.25rem;
}

.compact-grid div,
.mini-cards div {
  display: grid;
  gap: 0.5rem;
}

.compact-grid strong,
.mini-cards strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.stat-card strong {
  text-wrap: pretty;
}

.compact-grid span,
.mini-cards span,
.simple-list li,
.check-list li {
  text-wrap: pretty;
}

.compact-grid div,
.mini-cards div,
.bullet-grid div {
  min-height: 100%;
}

.lower-architecture .compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lower-architecture .compact-grid div {
  padding: 1.2rem 1.2rem 1.25rem;
}

.lower-architecture .compact-grid strong {
  font-size: 1.05rem;
}

.wide-list li {
  padding-right: 1.35rem;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 1.15rem;
  top: 1rem;
  bottom: 1rem;
  width: 1px;
  background: linear-gradient(180deg, rgba(141,233,255,0), rgba(141,233,255,0.85), rgba(141,233,255,0));
}

.timeline-item {
  padding-left: 4rem;
}

.timeline-step {
  position: absolute;
  left: 0.25rem;
  top: 1.3rem;
  width: 1.85rem;
  height: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(141, 233, 255, 0.14);
  border: 1px solid rgba(141, 233, 255, 0.24);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.roadmap-grid .glass-card {
  display: flex;
  flex-direction: column;
}

.price {
  display: block;
  margin-top: auto;
  font-size: 2rem;
  line-height: 1.1;
}

.meter {
  height: 0.55rem;
  margin-top: 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
}

.big-number {
  font-size: clamp(3rem, 7vw, 4.7rem);
  letter-spacing: -0.05em;
  margin: 0.8rem 0 0;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2rem 0 2.5rem;
}

.footer-inner {
  align-items: start;
}

.footer-inner strong {
  font-size: 1rem;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.site-footer a {
  color: var(--muted-2);
}

.site-footer a:hover,
.glass-card a:hover {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s cubic-bezier(.22,1,.36,1), transform 0.8s cubic-bezier(.22,1,.36,1);
}

.reveal.delay-1 {
  transition-delay: 0.08s;
}

.reveal.delay-2 {
  transition-delay: 0.14s;
}

.reveal.delay-3 {
  transition-delay: 0.2s;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 760px) {
  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  }

  .band-grid {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }

  .four-up {
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  }

  .three-up {
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  }

  .two-up,
  .split-layout,
  .hero-grid {
    grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
    align-items: start;
  }

  .visual-lower,
  .mini-grid,
  .bullet-grid,
  .mini-cards.two-cols {
    grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  }

  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics-grid.three-cols,
  .mini-cards.three-cols {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }

  .roadmap-grid {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
  }
}

@media (min-width: 1040px) {
  .container {
    width: min(calc(100% - 5.5rem), 1460px);
  }

  .desktop-nav {
    display: flex;
  }

  .menu-toggle,
  .mobile-menu {
    display: none !important;
  }

  .hero {
    padding-top: 4.8rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(20rem, 0.94fr);
    gap: clamp(1.5rem, 2vw, 2.25rem);
    align-items: center;
  }

  .band-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .four-up {
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  }

  .three-up {
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  }

  .architecture-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(1.5rem, 2vw, 2.25rem);
  }

  .lower-architecture,
  .split-layout {
    gap: clamp(1.25rem, 1.6vw, 1.7rem);
  }

  .roadmap-grid {
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  }

  .stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  }

  .lower-architecture .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .glass-card {
    padding: 2rem;
  }

  .hero-copy {
    max-width: 50rem;
  }

  .lower-architecture .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


@media (min-width: 1040px) {
  .hero-copy .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy .stats-grid > :last-child {
    grid-column: 1 / -1;
  }

  .hero-copy .stat-card {
    min-height: 13.5rem;
  }

  .hero-copy .stat-card strong {
    font-size: clamp(1.8rem, 2.2vw, 2.3rem);
  }

  .hero-copy .stat-card:last-child strong {
    font-size: clamp(1.55rem, 1.8vw, 1.95rem);
  }

  .four-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .split-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .lower-architecture .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .lower-architecture .compact-grid div {
    min-height: 11.5rem;
  }

  .check-list.wide-list li {
    padding-top: 1.15rem;
    padding-bottom: 1.15rem;
  }

  .architecture-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}

@media (min-width: 1500px) {
  .four-up {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-copy .stats-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-copy .stats-grid > :last-child {
    grid-column: auto;
  }

  .hero-copy .stat-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.delay-1,
  .reveal.delay-2,
  .reveal.delay-3 {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .bg-orb {
    animation: none !important;
  }
}


/* v5 spacing fix: the issue was inter-section block spacing, not card padding */
.card-grid + .split-layout,
.card-grid + .two-up,
.architecture-layout + .lower-architecture,
.roadmap-grid + .split-layout,
#credibility .card-grid + .split-layout,
#problem .card-grid + .split-layout {
  margin-top: clamp(1.35rem, 2vw, 2rem);
}

/* Keep paired rows comfortably separated at desktop widths */
@media (min-width: 1040px) {
  .card-grid + .split-layout,
  .card-grid + .two-up,
  .architecture-layout + .lower-architecture,
  .roadmap-grid + .split-layout,
  #credibility .card-grid + .split-layout,
  #problem .card-grid + .split-layout {
    margin-top: clamp(1.5rem, 2.1vw, 2.25rem);
  }
}

/* Slightly more breathing room inside the large lower cards */
.lower-architecture > .glass-card,
#credibility .split-layout > .glass-card,
#roadmap .split-layout > .glass-card,
#problem .split-layout > .glass-card {
  padding: clamp(1.9rem, 2.35vw, 2.7rem);
}



/* V7 polish: floating header + premium button fixes */
body {
  overflow-x: hidden;
}

.site-shell {
  overflow: visible;
}

.site-header {
  position: sticky;
  top: 0.85rem;
  z-index: 120;
  padding: 0 0 1rem;
}

.header-inner {
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.site-header.is-scrolled .header-inner {
  background: rgba(5, 8, 22, 0.86);
  border-color: rgba(141, 233, 255, 0.14);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42);
}

.desktop-nav {
  gap: 0.35rem;
}

.desktop-nav a {
  transition: color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.desktop-nav a:hover {
  transform: translateY(-1px);
}

.desktop-nav .nav-cta,
.desktop-nav .nav-cta:visited,
.desktop-nav .nav-cta:hover,
.desktop-nav .nav-cta:focus-visible {
  color: #050816 !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(240,245,255,0.96));
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 10px 28px rgba(0,0,0,0.22), inset 0 1px 0 rgba(255,255,255,0.62);
}

.hero-actions,
.tag-row {
  align-items: center;
}

.hero-actions {
  margin-top: 1.8rem;
  gap: 0.95rem;
}

.hero-actions .button {
  position: relative;
  overflow: hidden;
  min-height: 3.65rem;
  padding: 0.95rem 1.45rem;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.2);
}

.hero-actions .button::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), transparent 60%);
  pointer-events: none;
}

.button-solid,
.button-solid:visited,
.button-solid:hover,
.button-solid:focus-visible {
  color: #050816 !important;
}

.button-solid {
  background: linear-gradient(180deg, rgba(255,255,255,0.985), rgba(240,245,255,0.965));
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 16px 42px rgba(0,0,0,0.26), inset 0 1px 0 rgba(255,255,255,0.65);
}

.button-solid:hover,
.button-solid:focus-visible {
  background: linear-gradient(180deg, #ffffff, #eef4ff);
  transform: translateY(-1px);
}

.button-ghost,
.button-ghost:visited {
  color: var(--text);
  border-color: rgba(141, 233, 255, 0.12);
  background: linear-gradient(180deg, rgba(22, 31, 60, 0.86), rgba(10, 17, 36, 0.84));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 12px 28px rgba(0,0,0,0.18);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  color: #f5faff;
  background: linear-gradient(180deg, rgba(28, 41, 79, 0.92), rgba(12, 21, 45, 0.9));
  border-color: rgba(141, 233, 255, 0.24);
  transform: translateY(-1px);
}

.glass-card a.button,
.glass-card a.button:hover,
.glass-card a.button:focus-visible {
  margin-top: 0;
}

.tag-row {
  margin-top: 1rem;
  gap: 0.8rem;
  max-width: 64rem;
}

.tag-row .pill {
  padding: 0.82rem 1.08rem;
  font-size: 0.84rem;
  line-height: 1.1;
  color: #dfe7f6;
  border-color: rgba(141, 233, 255, 0.14);
  background: linear-gradient(180deg, rgba(18, 28, 52, 0.84), rgba(9, 16, 34, 0.82));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 24px rgba(0,0,0,0.16);
  transition: transform 180ms ease, border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.tag-row .pill:hover {
  transform: translateY(-1px);
  color: #ffffff;
  border-color: rgba(141, 233, 255, 0.28);
  background: linear-gradient(180deg, rgba(24, 38, 70, 0.9), rgba(10, 18, 38, 0.88));
}

#support .hero-actions {
  margin-top: 2rem;
  margin-bottom: 0.4rem;
  gap: 1rem;
}

#support .hero-actions .button {
  min-height: 3.8rem;
  padding-inline: 1.7rem;
  font-size: 1.04rem;
}

#support .hero-actions .button-solid {
  min-width: 21rem;
}

@media (max-width: 759px) {
  .site-header {
    top: 0.55rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  #support .hero-actions .button,
  #support .hero-actions .button-solid {
    width: 100%;
    min-width: 0;
  }

  .tag-row {
    gap: 0.7rem;
  }

  .tag-row .pill {
    font-size: 0.8rem;
    padding: 0.75rem 0.95rem;
  }
}

/* Verification marker: BUTTON-POLISH-V7 */


/* V8 anchor offset fix: keep section content clear of the floating header */
:root {
  --anchor-offset: 6.15rem;
}

.section[id],
footer[id] {
  scroll-margin-top: var(--anchor-offset);
}

@media (max-width: 759px) {
  :root {
    --anchor-offset: 5.35rem;
  }
}

/* V9 tighter anchor offset */


/* V10 additions: preloader, grant banner, and credibility team row */
body.is-preloading {
  overflow: hidden;
}

.preloader {
  --preload-progress: 0;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(circle at 50% 35%, rgba(34, 211, 238, 0.15), transparent 26%),
    radial-gradient(circle at 50% 60%, rgba(99, 102, 241, 0.14), transparent 28%),
    rgba(5, 8, 22, 0.96);
  transition: opacity 420ms ease, visibility 420ms ease;
}

.preloader.is-complete {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  width: min(100%, 28rem);
  display: grid;
  gap: 1.1rem;
  justify-items: center;
  text-align: center;
}

.preloader-logo-wrap {
  position: relative;
  width: clamp(9rem, 28vw, 12.5rem);
}

.preloader-logo-stack {
  position: relative;
  aspect-ratio: 1;
  border-radius: 2rem;
}

.preloader-logo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2rem;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.preloader-logo-base {
  filter: grayscale(1) brightness(0.9) contrast(1.08);
}

.preloader-logo-fill {
  clip-path: inset(0 calc(100% - (var(--preload-progress) * 1%)) 0 0 round 2rem);
  filter: saturate(1.08) drop-shadow(0 0 28px rgba(34, 211, 238, 0.22));
}

.preloader-logo-glow {
  position: absolute;
  inset: auto 12% -8% 12%;
  height: 2rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.35);
  filter: blur(24px);
  opacity: calc(0.25 + (var(--preload-progress) / 100) * 0.55);
}

.preloader-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.68rem;
  font-weight: 700;
}

.preloader-copy strong {
  display: block;
  margin-top: 0.4rem;
  font-size: clamp(1.4rem, 4vw, 2rem);
  letter-spacing: -0.04em;
}

.preloader-copy p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.preloader-meter {
  width: min(100%, 19rem);
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.preloader-meter span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(calc(var(--preload-progress) / 100));
  transform-origin: left center;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  transition: transform 180ms ease;
}

.grant-banner {
  margin-top: 1.15rem;
  display: grid;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.11), rgba(99, 102, 241, 0.11));
  border-color: rgba(141, 233, 255, 0.18);
}

.grant-banner h3 {
  margin-top: 0.5rem;
}

.grant-banner p {
  margin: 0.75rem 0 0;
}

.grant-banner-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.grant-banner-points span {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  color: #e8f6ff;
  font-size: 0.84rem;
}

.team-grid {
  margin-top: 1.4rem;
}

@media (max-width: 759px) {
  .grid-overlay {
    background-size: 88px 88px;
    opacity: 0.82;
  }

  .bg-orb {
    filter: blur(96px);
    opacity: 0.18;
  }

  .preloader-inner {
    gap: 0.95rem;
  }
}

@media (min-width: 760px) {
  .grant-banner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: center;
  }

  .team-grid {
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader,
  .preloader-meter span {
    transition: none;
  }
}


/* V11 additions: tighter section rhythm, brighter hover states, and rotating testimonial layout */
.glass-card,
.mini-grid span,
.compact-grid div,
.mini-cards div,
.bullet-grid div,
.band-item,
.simple-list li,
.check-list li {
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease, color 220ms ease;
}

.grant-banner,
.testimonial-card {
  isolation: isolate;
}

.one-up {
  grid-template-columns: 1fr;
}

.testimonial-wrap {
  margin-top: 1.4rem;
}

.testimonial-card {
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(255,255,255,0.045));
  border-color: rgba(141, 233, 255, 0.14);
}

.testimonial-topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.testimonial-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(141, 233, 255, 0.18);
  background: rgba(141, 233, 255, 0.08);
  color: #dffbff;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.testimonial-note {
  margin: 0.95rem 0 0;
  max-width: 54rem;
}

.testimonial-quote {
  margin: 1.35rem 0 0;
  font-size: clamp(1.15rem, 2.15vw, 1.7rem);
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: #f7fdff;
}

.testimonial-meta {
  display: grid;
  gap: 0.2rem;
  margin-top: 1rem;
}

.testimonial-meta strong {
  font-size: 1rem;
}

.testimonial-meta span {
  color: var(--muted);
  font-size: 0.95rem;
}

@media (hover: hover) {
  .glass-card:hover,
  .mini-grid span:hover,
  .compact-grid div:hover,
  .mini-cards div:hover,
  .bullet-grid div:hover,
  .band-item:hover,
  .simple-list li:hover,
  .check-list li:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.072);
    border-color: rgba(141, 233, 255, 0.18);
    box-shadow: 0 24px 90px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(141, 233, 255, 0.05) inset;
  }

  .anchor-panel:hover,
  .testimonial-card:hover {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.14), rgba(99, 102, 241, 0.12));
    border-color: rgba(141, 233, 255, 0.22);
  }

  .simple-list li:hover,
  .check-list li:hover {
    color: #edf8ff;
  }
}

@media (max-width: 760px) {
  .testimonial-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .testimonial-status {
    white-space: normal;
  }
}


/* v13 refinements */
.desktop-nav .nav-cta.active,
.desktop-nav .nav-cta.active:hover,
.desktop-nav .nav-cta.active:focus-visible {
  color: #050816 !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.985), rgba(233, 246, 255, 0.96));
  border: 1px solid rgba(141,233,255,0.42);
  box-shadow: 0 12px 34px rgba(0,0,0,0.24), 0 0 0 1px rgba(141,233,255,0.12) inset;
}

.mobile-nav a[href="#support"].active {
  color: var(--text);
  background: rgba(141, 233, 255, 0.12);
  border: 1px solid rgba(141, 233, 255, 0.16);
}

.footer-meta {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-meta p {
  margin: 0;
  color: var(--muted-2);
  font-size: 0.88rem;
  line-height: 1.65;
}


/* V15: strategic polish based on external review */
.desktop-nav a[href="contact/"] {
  color: #dce8f7;
}

.pill-button {
  cursor: pointer;
  font: inherit;
}

.link-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}

.link-pair a {
  margin-top: 0;
}

.standards-section {
  padding-top: 2.2rem;
}

.standards-layout {
  align-items: stretch;
}

.standards-card,
.analogy-card {
  min-height: 100%;
}

.framework-grid {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.45rem;
}

.framework-grid div,
.flow-principles div,
.phase-strip div {
  position: relative;
  min-width: 0;
  padding: 1.1rem 1.15rem;
  border: 1px solid rgba(141,233,255,0.12);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(17, 29, 54, 0.75), rgba(8, 14, 32, 0.72));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.framework-grid strong,
.flow-principles strong,
.phase-strip strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.framework-grid span,
.flow-principles span,
.phase-strip p {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.analogy-flow {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.analogy-flow span {
  display: block;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.09);
  background: rgba(0,0,0,0.2);
}

.analogy-flow strong {
  color: var(--accent);
  text-align: center;
}

.inline-button {
  margin-top: 1.35rem !important;
}

.flowbook-section {
  padding-top: 2.2rem;
}

.flowbook-layout {
  align-items: center;
}

.flowbook-copy p {
  color: var(--muted);
}

.flow-principles {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.flowbook-card {
  max-width: 40rem;
  margin-inline: auto;
  padding: clamp(1rem, 1.6vw, 1.35rem);
  border-color: rgba(141,233,255,0.18);
  background: linear-gradient(145deg, rgba(34,211,238,0.09), rgba(99,102,241,0.08) 45%, rgba(255,255,255,0.035));
}

.flowbook-topline,
.flowbook-controls,
.zkdude-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.flowbook-toggle,
.flowbook-controls button,
.flowbook-controls a,
.zkdude-prompts button {
  border: 1px solid rgba(141,233,255,0.14);
  border-radius: 999px;
  background: rgba(255,255,255,0.055);
  color: var(--text);
  padding: 0.72rem 1rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  transition: 180ms ease;
}

.flowbook-toggle:hover,
.flowbook-controls button:hover,
.flowbook-controls a:hover,
.zkdude-prompts button:hover {
  transform: translateY(-1px);
  border-color: rgba(141,233,255,0.28);
  background: rgba(141,233,255,0.08);
}

.flowbook-stage {
  display: grid;
  place-items: center;
  margin-top: 1rem;
  border-radius: 28px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 20%, rgba(141,233,255,0.1), transparent 36%), rgba(0,0,0,0.24);
  border: 1px solid rgba(255,255,255,0.08);
  min-height: 20rem;
}

.flowbook-stage img {
  display: block;
  width: min(100%, 27rem);
  max-height: 35rem;
  object-fit: contain;
  filter: drop-shadow(0 20px 45px rgba(0,0,0,0.35));
  transition: opacity 220ms ease, transform 220ms ease;
}

.flowbook-stage.is-changing img {
  opacity: 0.35;
  transform: scale(0.985);
}

.flowbook-caption {
  padding: 1.2rem 0.25rem 0;
}

.flowbook-caption p {
  margin: 0.65rem 0 0;
  color: var(--muted);
}

.flowbook-progress {
  height: 0.55rem;
  margin: 1.15rem 0 1rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
}

.flowbook-progress span {
  display: block;
  height: 100%;
  width: 5%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  transition: width 260ms ease;
}

.phase-strip {
  display: grid;
  gap: 0.9rem;
  margin: 2rem 0 1.4rem;
}

.phase-strip div span {
  display: inline-flex;
  margin-bottom: 0.45rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.7rem;
  font-weight: 700;
}

.zkdude-launcher {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 110;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.95rem 0.62rem 0.62rem;
  border-radius: 999px;
  border: 1px solid rgba(141,233,255,0.22);
  background: rgba(5, 8, 22, 0.78);
  color: var(--text);
  box-shadow: 0 18px 52px rgba(0,0,0,0.38);
  backdrop-filter: blur(18px);
  cursor: pointer;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.zkdude-launcher img {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(141,233,255,0.32);
}

.zkdude-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.zkdude-modal.open {
  display: flex;
}

.zkdude-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.62);
  backdrop-filter: blur(14px);
}

.zkdude-panel {
  position: relative;
  width: min(100%, 42rem);
  padding: clamp(1.4rem, 2.4vw, 2.3rem);
  border-radius: 32px;
  border: 1px solid rgba(141,233,255,0.18);
  background: linear-gradient(145deg, rgba(12,20,42,0.96), rgba(7,11,26,0.98));
  box-shadow: 0 34px 100px rgba(0,0,0,0.55);
}

.zkdude-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.05);
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.zkdude-panel-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding-right: 2.5rem;
}

.zkdude-panel-head img {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 1.35rem;
  box-shadow: 0 0 34px rgba(141,233,255,0.24);
}

.zkdude-panel > p {
  color: var(--muted);
  line-height: 1.75;
}

.zkdude-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.zkdude-note,
.form-note {
  color: var(--muted-2) !important;
  font-size: 0.9rem !important;
  margin-top: 1rem !important;
}

.contact-hero {
  padding-top: 4rem;
}

.contact-layout {
  align-items: start;
}

.contact-intro h1 {
  font-size: clamp(3rem, 5vw, 5.2rem);
}

.contact-direct {
  display: inline-grid;
  gap: 0.2rem;
  margin-top: 1.4rem;
  padding: 1rem 1.2rem;
  border-radius: 22px;
  border: 1px solid rgba(141,233,255,0.16);
  background: rgba(141,233,255,0.06);
}

.contact-direct span {
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.68rem;
  font-weight: 700;
}

.contact-direct a {
  color: var(--accent);
  font-weight: 700;
}

.contact-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  background: rgba(0,0,0,0.24);
  color: var(--text);
  padding: 0.95rem 1rem;
  font: inherit;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(141,233,255,0.42);
  box-shadow: 0 0 0 4px rgba(141,233,255,0.08);
}

@media (min-width: 760px) {
  .framework-grid,
  .flow-principles,
  .phase-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form .full,
  .contact-form button,
  .contact-form .form-note {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1040px) {
  .standards-layout {
    grid-template-columns: minmax(0, 1.18fr) minmax(20rem, 0.82fr);
  }

  .flowbook-layout {
    grid-template-columns: minmax(0, 0.85fr) minmax(25rem, 0.95fr);
  }

  .phase-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .zkdude-launcher {
    right: 0.85rem;
    bottom: 0.85rem;
  }

  .zkdude-launcher span {
    display: none;
  }

  .flowbook-stage img {
    width: 100%;
  }
}

/* Verification marker: STRATEGIC-POLISH-V15 */


/* V16 refinements: uniform storyboard viewport + illustrative code block */
.flowbook-card {
  max-width: 35rem;
}

.flowbook-stage {
  width: min(100%, 28rem);
  aspect-ratio: 10 / 14.2;
  margin-inline: auto;
  padding: 1rem;
  min-height: 0;
  background: #f7f8fb;
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35);
}

.flowbook-stage img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  background: #f7f8fb;
  border-radius: 18px;
}

.flowbook-caption,
.flowbook-progress,
.flowbook-controls {
  max-width: 28rem;
  margin-inline: auto;
}

.anchor-example-layout {
  align-items: center;
}

.anchor-example-copy p {
  color: var(--muted);
}

.code-mock-card {
  padding: clamp(1.35rem, 1.8vw, 1.75rem);
}

.code-mock-card pre {
  margin: 1rem 0 0.85rem;
  padding: 1.1rem 1rem;
  border-radius: 22px;
  overflow: auto;
  background: linear-gradient(180deg, rgba(3,10,28,0.96), rgba(8,15,38,0.92));
  border: 1px solid rgba(141,233,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.code-mock-card code {
  display: block;
  color: #d9ecff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre;
}

.code-mock-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (min-width: 1040px) {
  .anchor-example-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(24rem, 1.05fr);
  }
}

@media (max-width: 759px) {
  .flowbook-card {
    max-width: 100%;
  }

  .flowbook-stage,
  .flowbook-caption,
  .flowbook-progress,
  .flowbook-controls {
    max-width: 100%;
    width: 100%;
  }

  .flowbook-stage {
    aspect-ratio: 10 / 13.8;
    padding: 0.8rem;
  }

  .code-mock-card code {
    font-size: 0.78rem;
  }
}

/* Verification marker: FLOWBOOK-UNIFORM-V16 */


/* V18 bespoke phone-native walkthrough */
.flowbook-card.phone-storyboard {
  max-width: 24.5rem;
  margin-inline: auto;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  overflow: visible;
}

.phone-storyboard .flowbook-topline,
.phone-storyboard .flowbook-caption,
.phone-storyboard .flowbook-progress,
.phone-storyboard .flowbook-controls {
  max-width: 22rem;
  margin-inline: auto;
}

.phone-scene {
  display: block;
  width: min(100%, 22rem);
  margin: 0.7rem auto 0;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.phone-shell {
  position: relative;
  width: 100%;
  aspect-ratio: 390 / 844;
  padding: 0.4rem;
  border-radius: 3rem;
  background: linear-gradient(145deg, rgba(170,179,195,0.9), rgba(44,51,70,0.92) 15%, rgba(7,9,18,1) 50%, rgba(82,92,115,0.82) 84%, rgba(193,197,207,0.92));
  box-shadow: 0 26px 70px rgba(1,6,20,0.42), 0 8px 20px rgba(2,8,20,0.22);
}

.phone-shell::before {
  content: '';
  position: absolute;
  inset: -5% -8%;
  border-radius: 4rem;
  background: radial-gradient(circle at 50% 36%, rgba(112, 98, 255, 0.25), rgba(111,225,255,0.15) 30%, rgba(8,11,27,0) 72%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

.phone-shell::after {
  content: '';
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: -1.3rem;
  height: 2.4rem;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.35), rgba(0,0,0,0));
  filter: blur(10px);
  pointer-events: none;
}

.phone-button {
  position: absolute;
  z-index: 1;
  right: -0.18rem;
  width: 0.16rem;
  border-radius: 99px;
  background: linear-gradient(180deg, rgba(205, 209, 217, 0.75), rgba(86, 93, 110, 0.75));
}

.phone-button-top { top: 18%; height: 9%; }
.phone-button-mid { top: 31%; height: 14%; }
.phone-button-right { top: 49%; height: 11%; }

.phone-screen {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 2.55rem;
  background: radial-gradient(circle at 50% 18%, rgba(91, 76, 235, 0.22), rgba(8, 11, 25, 0) 34%), linear-gradient(180deg, #0a0d17 0%, #0a0e19 48%, #0b1020 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.025);
  transition: opacity 180ms ease, transform 180ms ease;
}

.phone-screen.is-changing {
  opacity: 0.78;
  transform: scale(0.992);
}

.phone-screen-glow {
  position: absolute;
  inset: 14% 14% 28%;
  background: radial-gradient(circle at 50% 28%, rgba(116, 103, 255, 0.22), rgba(105,222,255,0.07) 45%, rgba(5,9,18,0) 72%);
  filter: blur(16px);
  pointer-events: none;
}

.phone-status {
  position: absolute;
  top: 1rem;
  left: 1.15rem;
  right: 1.15rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(237, 243, 255, 0.82);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.phone-status-icons {
  display: inline-flex;
  align-items: center;
  gap: 0.24rem;
}

.phone-status-icons i {
  display: block;
  width: 0.9rem;
  height: 0.5rem;
  border-radius: 0.18rem;
  border: 1px solid rgba(232,238,255,0.9);
  opacity: 0.9;
}

.phone-status-icons i:nth-child(1) { width: 0.46rem; border-radius: 999px; }
.phone-status-icons i:nth-child(2) { width: 0.72rem; }
.phone-status-icons i:nth-child(3) { width: 1rem; position: relative; }
.phone-status-icons i:nth-child(3)::after {
  content: '';
  position: absolute;
  right: -0.18rem;
  top: 0.12rem;
  width: 0.12rem;
  height: 0.22rem;
  border-radius: 99px;
  background: rgba(232,238,255,0.9);
}

.phone-notch {
  position: absolute;
  top: 0.7rem;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 1.45rem;
  border-radius: 999px;
  background: #04060d;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,0.04);
}

.phone-brand {
  position: absolute;
  top: 3.3rem;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(232, 240, 255, 0.86);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: -0.03em;
}

.phone-content {
  position: absolute;
  inset: 5.75rem 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.screen-layout {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.8rem;
  color: #eef4ff;
}

.screen-layout h4 {
  margin: 0;
  font-size: 1.55rem;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.screen-layout p {
  margin: 0;
  color: rgba(214, 224, 244, 0.82);
  font-size: 0.94rem;
  line-height: 1.48;
}

.screen-mini-label {
  color: #8fe7ff;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
}

.screen-glyph,
.screen-hex-badge,
.request-card,
.continuity-ring,
.masked-panel {
  align-self: center;
}

.screen-glyph {
  width: 7rem;
  height: 7rem;
  position: relative;
  border-radius: 2rem;
  background: radial-gradient(circle at 50% 35%, rgba(137,120,255,0.28), rgba(66,84,255,0.08) 45%, rgba(0,0,0,0) 72%);
}

.shield-glyph::before,
.shield-glyph::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.shield-glyph::before {
  top: 0.8rem;
  width: 4.2rem;
  height: 4.9rem;
  clip-path: polygon(50% 0%, 90% 18%, 90% 56%, 50% 100%, 10% 56%, 10% 18%);
  background: linear-gradient(180deg, rgba(161, 150, 255, 0.95), rgba(92, 85, 242, 0.6));
  box-shadow: 0 0 24px rgba(113,108,255,0.42);
}

.shield-glyph::after {
  top: 2rem;
  width: 1.3rem;
  height: 1.7rem;
  border: 2px solid rgba(239,243,255,0.95);
  border-top-left-radius: 0.7rem;
  border-top-right-radius: 0.7rem;
  border-bottom: 0;
}

.screen-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.screen-chip-row.three .screen-chip { flex: 1 1 calc(33.333% - 0.5rem); }
.screen-chip-row.two .screen-chip { flex: 1 1 calc(50% - 0.5rem); }
.screen-chip-row.compact .screen-chip { padding-inline: 0.65rem; }

.screen-chip {
  border-radius: 999px;
  border: 1px solid rgba(143, 231, 255, 0.16);
  background: rgba(15, 21, 38, 0.72);
  color: rgba(235, 242, 255, 0.9);
  font-size: 0.8rem;
  padding: 0.48rem 0.72rem;
  text-align: center;
  line-height: 1.2;
}

.screen-primary-action,
.primary-action,
.ghost-action {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 2.9rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.screen-primary-action,
.primary-action {
  background: linear-gradient(90deg, rgba(116, 104, 255, 0.94), rgba(146, 132, 255, 0.94));
  color: #f8fbff;
  box-shadow: 0 8px 20px rgba(100,92,255,0.32);
}

.screen-primary-action {
  width: 100%;
  margin-top: auto;
  font-size: 0.95rem;
}

.screen-idline {
  margin-top: -0.15rem;
  color: rgba(221, 229, 247, 0.66);
  font-size: 0.82rem;
  text-align: center;
  word-break: break-all;
}

.screen-hex-badge {
  width: 10rem;
  height: 9.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.screen-hex-core {
  position: absolute;
  inset: 0.7rem 1.2rem 1.8rem;
  clip-path: polygon(50% 0%, 89% 24%, 89% 76%, 50% 100%, 11% 76%, 11% 24%);
  background: linear-gradient(180deg, rgba(111, 97, 255, 0.92), rgba(62, 71, 214, 0.42));
  box-shadow: 0 0 26px rgba(111, 97, 255, 0.42);
}

.screen-hex-badge strong,
.screen-hex-badge small {
  position: relative;
  z-index: 1;
}

.screen-hex-badge strong {
  font-size: 1.08rem;
}

.screen-hex-badge small {
  color: rgba(223, 231, 247, 0.72);
  margin-top: 0.2rem;
}

.screen-soft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: auto;
}

.screen-soft-grid span {
  border-radius: 1rem;
  padding: 0.65rem 0.45rem;
  background: rgba(15, 19, 32, 0.64);
  border: 1px solid rgba(255,255,255,0.06);
  color: rgba(219, 228, 246, 0.9);
  font-size: 0.72rem;
  text-align: center;
  line-height: 1.25;
}

.screen-flow-stage {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.2rem;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}

.flow-node span {
  width: 4.6rem;
  height: 4.6rem;
  border-radius: 1.35rem;
  background: linear-gradient(180deg, rgba(111, 96, 255, 0.2), rgba(14, 22, 42, 0.85));
  border: 1px solid rgba(143,231,255,0.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03), 0 0 20px rgba(108, 102, 255, 0.22);
  position: relative;
}

.flow-node-phone span::before,
.flow-node-registry span::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.flow-node-phone span::before {
  width: 1.7rem;
  height: 2.3rem;
  border-radius: 0.52rem;
  border: 2px solid rgba(235, 241, 255, 0.9);
}

.flow-node-registry span::before {
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  border: 2px solid rgba(235, 241, 255, 0.9);
  box-shadow: 0 0 0 0.35rem rgba(109, 100, 255, 0.16);
}

.flow-node label {
  color: rgba(221, 229, 247, 0.88);
  font-size: 0.78rem;
}

.flow-link {
  display: flex;
  gap: 0.32rem;
  align-items: center;
}

.flow-link i {
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(143,231,255,1), rgba(127, 119, 255, 1));
  box-shadow: 0 0 12px rgba(143,231,255,0.5);
}

.screen-meter {
  width: 100%;
  height: 0.4rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}

.screen-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(128, 234, 255, 1), rgba(134, 118, 255, 1));
}

.request-card {
  width: 100%;
  padding: 1rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(14, 20, 37, 0.96), rgba(11, 15, 28, 0.88));
  border: 1px solid rgba(255,255,255,0.07);
  box-shadow: 0 18px 34px rgba(2,6,18,0.26);
}

.request-head {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.8rem;
}

.request-head strong { display: block; font-size: 1rem; }
.request-head small { display: block; color: rgba(216,224,243,0.72); margin-top: 0.12rem; }

.request-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 1rem;
  background: linear-gradient(180deg, rgba(112, 98, 255, 0.26), rgba(10, 18, 36, 0.85));
  border: 1px solid rgba(143,231,255,0.16);
  position: relative;
}

.request-icon::before,
.request-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(240,244,255,0.92);
}

.request-icon::before { top: 0.45rem; width: 0.75rem; height: 0.75rem; }
.request-icon::after { top: 1.28rem; width: 1.35rem; height: 0.7rem; }

.request-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.95rem;
}

.ghost-action {
  background: rgba(15, 21, 38, 0.74);
  border: 1px solid rgba(255,255,255,0.08);
  color: rgba(228, 236, 251, 0.88);
}

.proof-stack {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.proof-chip {
  border-radius: 1rem;
  padding: 0.8rem 0.9rem;
  background: linear-gradient(180deg, rgba(12,20,39,0.92), rgba(9,14,28,0.82));
  border: 1px solid rgba(144, 232, 255, 0.14);
  font-weight: 700;
  color: #edf4ff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.02) inset;
}

.proof-chip.success::before {
  content: '✓';
  display: inline-flex;
  width: 1.2rem;
  height: 1.2rem;
  margin-right: 0.55rem;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: rgba(128, 234, 255, 0.16);
  color: #8fe7ff;
}

.masked-panel {
  width: 100%;
  padding: 0.95rem;
  border-radius: 1.35rem;
  background: rgba(11, 16, 29, 0.8);
  border: 1px solid rgba(255,255,255,0.06);
}

.masked-row {
  height: 0.72rem;
  border-radius: 999px;
  margin-bottom: 0.55rem;
  background: linear-gradient(90deg, rgba(143,231,255,0.16), rgba(118, 104, 255, 0.18));
}

.masked-row.short { width: 68%; }

.masked-panel small {
  display: block;
  margin-top: 0.2rem;
  color: rgba(209, 218, 238, 0.68);
  line-height: 1.45;
}

.continuity-ring {
  position: relative;
  width: 8.2rem;
  height: 8.2rem;
}

.ring-core,
.ring-orbit {
  position: absolute;
  border-radius: 50%;
}

.ring-core {
  inset: 1.9rem;
  background: radial-gradient(circle at 50% 45%, rgba(131, 118, 255, 0.95), rgba(72, 81, 220, 0.52));
  box-shadow: 0 0 26px rgba(104, 99, 255, 0.38);
}

.ring-orbit {
  inset: 0.2rem;
  border: 1px solid rgba(143,231,255,0.22);
}

.orbit-b {
  inset: 1rem;
  border-color: rgba(118,104,255,0.26);
}

.phone-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.38rem;
}

.phone-dots span {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: rgba(245,248,255,0.22);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.05);
}

.phone-dots span.active {
  width: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(128,234,255,1), rgba(130,114,255,1));
}

.phone-tap-hint {
  margin-top: 0.75rem;
  color: rgba(201, 217, 244, 0.7);
  font-size: 0.92rem;
}

.phone-storyboard .flowbook-progress,
.phone-storyboard .flowbook-controls {
  margin-top: 0.95rem;
}

.phone-storyboard .flowbook-controls {
  gap: 0.75rem;
  justify-content: space-between;
}

@media (max-width: 759px) {
  .flowbook-card.phone-storyboard { max-width: 100%; }
  .phone-storyboard .flowbook-topline,
  .phone-storyboard .flowbook-caption,
  .phone-storyboard .flowbook-progress,
  .phone-storyboard .flowbook-controls,
  .phone-scene {
    max-width: min(100%, 21rem);
  }

  .screen-layout h4 {
    font-size: 1.4rem;
  }

  .screen-chip {
    font-size: 0.76rem;
  }
}

/* Verification marker: LEFT-PANEL-V21 */


/* V19 refinements: richer phone flow and better desktop balance */
.flowbook-support-note {
  margin-top: 0.9rem;
  max-width: 42rem;
  color: rgba(204, 219, 243, 0.84);
  font-size: 0.98rem;
}

.phone-storyboard .flowbook-panel {
  max-width: 22rem;
  margin-inline: auto;
}

.flowbook-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.95rem;
}

.flowbook-note-grid div {
  border-radius: 1rem;
  padding: 0.85rem 0.9rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.flowbook-note-grid strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--text);
  font-size: 0.85rem;
}

.flowbook-note-grid span {
  display: block;
  color: rgba(205, 220, 244, 0.72);
  font-size: 0.8rem;
  line-height: 1.4;
}

.phone-storyboard .flowbook-caption {
  padding-top: 0.2rem;
}

.phone-storyboard .flowbook-caption h3 {
  font-size: clamp(2rem, 2.6vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.phone-storyboard .flowbook-caption p:first-of-type {
  font-size: 1.03rem;
  color: rgba(217, 227, 244, 0.82);
  line-height: 1.45;
}

.phone-dots {
  gap: 0.3rem;
}

.phone-dots span {
  width: 0.34rem;
  height: 0.34rem;
}

.phone-dots span.active {
  width: 0.95rem;
}

.screen-keygrid,
.resolver-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.key-card,
.resolver-item {
  border-radius: 1rem;
  padding: 0.9rem 0.85rem;
  background: linear-gradient(180deg, rgba(15,21,38,0.9), rgba(11,16,29,0.82));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.key-card.wide,
.resolver-item.blocked {
  grid-column: 1 / -1;
}

.key-card strong,
.resolver-item strong {
  display: block;
  font-size: 0.84rem;
  margin-bottom: 0.18rem;
}

.key-card span,
.resolver-item span {
  display: block;
  font-size: 0.78rem;
  color: rgba(208, 219, 239, 0.72);
  line-height: 1.35;
}

.resolver-item.blocked {
  background: linear-gradient(180deg, rgba(32, 14, 34, 0.88), rgba(16, 10, 22, 0.84));
  border-color: rgba(255, 131, 175, 0.12);
}

.vault-stack {
  position: relative;
  height: 7rem;
  margin-top: 0.2rem;
}

.vault-card {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  border-radius: 1.15rem;
  padding: 0.95rem 1rem;
  background: linear-gradient(180deg, rgba(18, 24, 42, 0.96), rgba(11, 15, 28, 0.82));
  border: 1px solid rgba(143,231,255,0.12);
  color: rgba(236, 242, 255, 0.92);
  font-size: 0.86rem;
  box-shadow: 0 12px 30px rgba(4,7,18,0.16);
}

.vault-card.front { top: 0; z-index: 3; }
.vault-card.mid { top: 1rem; width: 84%; opacity: 0.86; z-index: 2; }
.vault-card.back { top: 2rem; width: 78%; opacity: 0.68; z-index: 1; }

.proving-ring {
  position: relative;
  width: 9rem;
  height: 9rem;
  margin: 0.15rem auto 0.25rem;
}

.proving-core {
  position: absolute;
  inset: 2.2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 42%, rgba(137, 121, 255, 0.98), rgba(76, 82, 221, 0.55));
  box-shadow: 0 0 28px rgba(108, 98, 255, 0.42);
  font-weight: 800;
  letter-spacing: 0.06em;
}

.proving-orbit {
  position: absolute;
  padding: 0.32rem 0.55rem;
  border-radius: 999px;
  background: rgba(13, 20, 37, 0.86);
  border: 1px solid rgba(143,231,255,0.12);
  color: rgba(222, 232, 249, 0.88);
  font-size: 0.72rem;
}

.orbit-1 { top: 0.4rem; left: 50%; transform: translateX(-50%); }
.orbit-2 { bottom: 1.1rem; left: -0.2rem; }
.orbit-3 { bottom: 1.1rem; right: -0.2rem; }

@media (min-width: 1180px) {
  .flowbook-layout {
    grid-template-columns: minmax(0, 0.88fr) minmax(34rem, 1.02fr);
    align-items: start;
    gap: 1.5rem;
  }

  .phone-storyboard {
    max-width: none;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(19rem, 22rem) minmax(15rem, 1fr);
    grid-template-areas:
      "top top"
      "phone panel";
    column-gap: 1.55rem;
    align-items: center;
  }

  .phone-storyboard .flowbook-topline {
    grid-area: top;
    max-width: none;
    width: 100%;
    margin-bottom: 0.2rem;
  }

  .phone-storyboard .phone-scene {
    grid-area: phone;
    max-width: 22rem;
    margin: 0;
  }

  .phone-storyboard .flowbook-panel {
    grid-area: panel;
    max-width: none;
    margin: 0;
    align-self: center;
  }
}

@media (max-width: 980px) {
  .flowbook-note-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 759px) {
  .phone-storyboard .flowbook-panel {
    max-width: min(100%, 21rem);
  }

  .phone-storyboard .flowbook-caption h3 {
    font-size: 2.2rem;
  }

  .screen-keygrid,
  .resolver-grid {
    grid-template-columns: 1fr;
  }
}

/* Verification marker: LEFT-PANEL-V21 */


/* V20 balance pass: widen phone-side text and remove note-card space */
.flowbook-note-grid {
  display: none !important;
}

.phone-storyboard .flowbook-panel {
  max-width: 26rem;
}

.phone-storyboard .flowbook-caption h3 {
  font-size: clamp(2rem, 2.2vw, 2.65rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.phone-storyboard .flowbook-caption p:first-of-type {
  max-width: 26rem;
}

.phone-storyboard .flowbook-controls {
  justify-content: flex-start;
}

@media (min-width: 1180px) {
  .flowbook-layout {
    grid-template-columns: minmax(0, 0.74fr) minmax(46rem, 1.32fr);
    gap: clamp(1.1rem, 2vw, 2rem);
  }

  .phone-storyboard {
    grid-template-columns: minmax(18rem, 21.5rem) minmax(24rem, 1fr);
    column-gap: clamp(1.6rem, 2.4vw, 2.8rem);
  }

  .phone-storyboard .flowbook-panel {
    max-width: 30rem;
  }

  .phone-storyboard .phone-scene {
    justify-self: end;
  }
}

@media (min-width: 1420px) {
  .flowbook-layout {
    grid-template-columns: minmax(0, 0.7fr) minmax(50rem, 1.35fr);
  }

  .phone-storyboard {
    grid-template-columns: minmax(18rem, 22rem) minmax(27rem, 1fr);
  }
}

@media (max-width: 1179px) {
  .phone-storyboard .flowbook-panel {
    max-width: 22rem;
    margin-inline: auto;
  }
}

/* Verification marker: LEFT-PANEL-V21 */


/* V21 left-panel restoration pass: keep phone side, improve left composition */
.flowbook-copy h2 {
  max-width: 48rem;
}

.flowbook-copy > p:not(.flowbook-support-note) {
  max-width: 46rem;
}

.flowbook-support-note {
  display: none !important;
}

@media (min-width: 1180px) {
  .flowbook-layout {
    grid-template-columns: minmax(0, 0.86fr) minmax(46rem, 1.18fr);
    gap: clamp(1rem, 1.6vw, 1.8rem);
  }

  .flowbook-copy {
    padding-top: clamp(2.2rem, 3.5vw, 4.2rem);
  }

  .flowbook-copy h2 {
    font-size: clamp(3.8rem, 4.8vw, 6.2rem);
    line-height: 0.96;
    letter-spacing: -0.065em;
  }

  .flowbook-copy > p:not(.flowbook-support-note) {
    font-size: clamp(1.05rem, 1.15vw, 1.22rem);
    line-height: 1.38;
    margin-top: 1.15rem;
  }

  .flow-principles {
    max-width: 39rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.55rem;
  }
}

@media (min-width: 1420px) {
  .flowbook-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(50rem, 1.22fr);
  }

  .flowbook-copy h2 {
    font-size: clamp(4.2rem, 4.95vw, 6.6rem);
  }
}

@media (max-width: 1179px) {
  .flowbook-copy h2 {
    max-width: 46rem;
  }
}

/* Verification marker: LEFT-PANEL-V21 */


/* V22 symmetry pass: match left and right panel height while preserving the phone composition */
@media (min-width: 1180px) {
  .flowbook-layout {
    align-items: stretch;
    grid-template-columns: minmax(0, 0.84fr) minmax(47rem, 1.16fr);
    gap: clamp(1rem, 1.5vw, 1.7rem);
  }

  .flowbook-copy,
  .phone-storyboard {
    min-height: 47rem;
  }

  .flowbook-copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 1.35rem;
    padding-bottom: 0.55rem;
  }

  .flowbook-copy h2 {
    max-width: 31rem;
    font-size: clamp(3.55rem, 4.35vw, 5.8rem);
    line-height: 0.94;
    letter-spacing: -0.068em;
    margin-bottom: 0.9rem;
  }

  .flowbook-copy > p:not(.flowbook-support-note) {
    max-width: 35rem;
    font-size: 1.02rem;
    line-height: 1.42;
    margin-top: 0;
  }

  .flow-principles {
    max-width: 38rem;
    margin-top: auto;
    padding-top: 1.45rem;
    gap: 0.9rem;
  }

  .flow-principles div {
    padding: 1rem 1.05rem;
  }
}

@media (min-width: 1420px) {
  .flowbook-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(49rem, 1.18fr);
  }

  .flowbook-copy,
  .phone-storyboard {
    min-height: 47.5rem;
  }

  .flowbook-copy h2 {
    max-width: 32rem;
    font-size: clamp(3.85rem, 4.55vw, 6rem);
  }
}

/* Verification marker: SYMMETRY-V22 */


/* V23 alignment pass: align section labels and bring the phone cluster left without changing the visual design */
@media (min-width: 1180px) {
  .flowbook-layout {
    grid-template-columns: minmax(0, 0.88fr) minmax(43.5rem, 1.08fr);
    gap: clamp(0.8rem, 1.15vw, 1.15rem);
    align-items: stretch;
  }

  .flowbook-copy {
    padding-top: 0.9rem;
  }

  .phone-storyboard {
    min-height: 47rem;
    grid-template-columns: minmax(18.8rem, 20.8rem) minmax(16.8rem, 1fr);
    column-gap: clamp(0.95rem, 1.25vw, 1.25rem);
    align-content: start;
  }

  .phone-storyboard .flowbook-topline {
    padding-top: 0.9rem;
    margin-bottom: 0.15rem;
    align-items: center;
  }

  .phone-storyboard .phone-scene {
    justify-self: start;
  }

  .phone-storyboard .flowbook-panel {
    max-width: 27rem;
  }
}

@media (min-width: 1420px) {
  .flowbook-layout {
    grid-template-columns: minmax(0, 0.86fr) minmax(45.5rem, 1.1fr);
    gap: clamp(0.95rem, 1.25vw, 1.35rem);
  }

  .phone-storyboard {
    min-height: 47.5rem;
    grid-template-columns: minmax(19rem, 21rem) minmax(18rem, 1fr);
    column-gap: clamp(1rem, 1.3vw, 1.4rem);
  }

  .flowbook-copy {
    padding-top: 0.95rem;
  }
}

/* Verification marker: ALIGNMENT-V23 */


/* V24 final spacing polish: pull the phone cluster left, add breathing room between phone and copy, and tighten top alignment */
@media (min-width: 1180px) {
  .flowbook-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(40.75rem, 0.98fr);
    gap: clamp(0.75rem, 0.95vw, 1rem);
  }

  .phone-storyboard {
    width: min(100%, 41.75rem);
    justify-self: start;
    grid-template-columns: minmax(18.9rem, 20.3rem) minmax(17.8rem, 1fr);
    column-gap: clamp(1.35rem, 1.7vw, 1.65rem);
  }

  .phone-storyboard .flowbook-topline {
    padding-top: 0.05rem;
    margin-bottom: 0.28rem;
  }

  .phone-storyboard .phone-scene {
    margin-left: -0.1rem;
  }

  .phone-storyboard .flowbook-panel {
    max-width: 18.8rem;
  }
}

@media (min-width: 1420px) {
  .flowbook-layout {
    grid-template-columns: minmax(0, 0.88fr) minmax(42.5rem, 1fr);
    gap: clamp(0.85rem, 1.05vw, 1.12rem);
  }

  .phone-storyboard {
    width: min(100%, 43.5rem);
    grid-template-columns: minmax(19rem, 20.8rem) minmax(18.5rem, 1fr);
    column-gap: clamp(1.45rem, 1.8vw, 1.85rem);
  }

  .phone-storyboard .flowbook-panel {
    max-width: 19.75rem;
  }
}

/* Verification marker: FINAL-SPACING-V24 */


/* V25 phone-panel final nudge: pull the phone cluster left and open more breathing room to the right copy */
@media (min-width: 1180px) {
  .phone-storyboard {
    width: min(100%, 41.2rem);
    grid-template-columns: minmax(18.7rem, 19.9rem) minmax(18.1rem, 1fr);
    column-gap: clamp(1.75rem, 2.15vw, 2rem);
  }

  .phone-storyboard .phone-scene {
    margin-left: -0.8rem;
  }

  .phone-storyboard .flowbook-panel {
    max-width: 19.25rem;
  }
}

@media (min-width: 1420px) {
  .phone-storyboard {
    width: min(100%, 42.8rem);
    grid-template-columns: minmax(18.9rem, 20.2rem) minmax(18.9rem, 1fr);
    column-gap: clamp(1.9rem, 2.25vw, 2.15rem);
  }

  .phone-storyboard .phone-scene {
    margin-left: -0.95rem;
  }

  .phone-storyboard .flowbook-panel {
    max-width: 19.9rem;
  }
}

/* Verification marker: PHONE-NUDGE-V25 */


/* V26 direct phone-panel shift: preserve internal spacing, move the whole phone/text cluster left */
@media (min-width: 1180px) {
  .phone-storyboard {
    transform: translateX(-2.4rem);
  }
}

@media (min-width: 1420px) {
  .phone-storyboard {
    transform: translateX(-3.15rem);
  }
}

@media (min-width: 1700px) {
  .phone-storyboard {
    transform: translateX(-3.6rem);
  }
}

/* Verification marker: PHONE-SHIFT-V26 */


/* V27 stable phone-panel shift: use layout margins instead of transform so reveal animation cannot move it back right */
@media (min-width: 1180px) {
  .phone-storyboard,
  .phone-storyboard.reveal,
  .phone-storyboard.visible {
    transform: none !important;
    margin-left: -2.4rem;
    margin-right: 2.4rem;
  }
}

@media (min-width: 1420px) {
  .phone-storyboard,
  .phone-storyboard.reveal,
  .phone-storyboard.visible {
    transform: none !important;
    margin-left: -3.15rem;
    margin-right: 3.15rem;
  }
}

@media (min-width: 1700px) {
  .phone-storyboard,
  .phone-storyboard.reveal,
  .phone-storyboard.visible {
    transform: none !important;
    margin-left: -3.6rem;
    margin-right: 3.6rem;
  }
}

/* Verification marker: STABLE-MARGIN-SHIFT-V27 */


/* V28 calibrated phone-panel shift: halfway back from v27 so the phone cluster lands between v25 and v27 */
@media (min-width: 1180px) {
  .phone-storyboard,
  .phone-storyboard.reveal,
  .phone-storyboard.visible {
    transform: none !important;
    margin-left: -1.25rem;
    margin-right: 1.25rem;
  }
}

@media (min-width: 1420px) {
  .phone-storyboard,
  .phone-storyboard.reveal,
  .phone-storyboard.visible {
    transform: none !important;
    margin-left: -1.75rem;
    margin-right: 1.75rem;
  }
}

@media (min-width: 1700px) {
  .phone-storyboard,
  .phone-storyboard.reveal,
  .phone-storyboard.visible {
    transform: none !important;
    margin-left: -2rem;
    margin-right: 2rem;
  }
}

/* Verification marker: CALIBRATED-SHIFT-V28 */


/* V29 structural desktop rebuild: stop fighting nested offsets; place copy, phone, and caption on one explicit grid */
@media (min-width: 1180px) {
  .flowbook-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(18.5rem, 20.2rem) minmax(18rem, 21.4rem);
    grid-template-areas:
      "copy topline topline"
      "copy phone panel";
    column-gap: clamp(1.25rem, 1.6vw, 1.7rem);
    align-items: start;
  }

  .flowbook-copy {
    grid-area: copy;
    min-height: 47rem;
    padding-top: 0.9rem;
  }

  .phone-storyboard,
  .phone-storyboard.reveal,
  .phone-storyboard.visible {
    display: contents;
    transform: none !important;
    margin: 0 !important;
  }

  .phone-storyboard .flowbook-topline {
    grid-area: topline;
    max-width: none;
    width: 100%;
    padding-top: 0.9rem;
    margin: 0 0 0.35rem 0;
  }

  .phone-storyboard .phone-scene {
    grid-area: phone;
    width: min(100%, 20.2rem);
    max-width: 20.2rem;
    margin: 0 !important;
    justify-self: start;
    align-self: start;
  }

  .phone-storyboard .flowbook-panel {
    grid-area: panel;
    max-width: 21.4rem;
    margin: 0 0 0 0.35rem !important;
    align-self: center;
  }
}

@media (min-width: 1420px) {
  .flowbook-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(19.2rem, 20.7rem) minmax(19rem, 22rem);
    column-gap: clamp(1.35rem, 1.7vw, 1.9rem);
  }

  .phone-storyboard .phone-scene {
    width: min(100%, 20.7rem);
    max-width: 20.7rem;
  }

  .phone-storyboard .flowbook-panel {
    max-width: 22rem;
    margin-left: 0.45rem !important;
  }
}

/* Verification marker: STRUCTURAL-GRID-V29 */


/* V30 neural background layer + mobile proof-flow spacing */
.neural-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.32;
  mix-blend-mode: screen;
  z-index: 0;
}

@media (max-width: 759px) {
  .neural-canvas {
    opacity: 0.16;
  }

  .phone-storyboard .flowbook-caption {
    margin-top: 2.15rem;
    padding-top: 0;
  }

  .phone-storyboard .flowbook-progress {
    margin-top: 1.2rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .neural-canvas {
    opacity: 0.18;
  }
}

/* Verification marker: NEURAL-BG-V30 */


/* V32 neural beam refinement: preserve the subtle layer while supporting node-to-node beam transmissions. */
.neural-canvas { opacity: 0.36; }
@media (max-width: 759px) { .neural-canvas { opacity: 0.2; } }
@media (prefers-reduced-motion: reduce) { .neural-canvas { opacity: 0.18; } }

/* Verification marker: RANDOM-LONG-BEAMS-V35 */


/* V36 hero title refinement: keeps the new headline premium without pushing the hero balance too far. */
.hero-title-evolved {
  max-width: 47rem;
  font-size: clamp(2.85rem, 6.25vw, 4.85rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-subtitle {
  margin: 0.85rem 0 0;
  max-width: 46rem;
  color: #e7edf9;
  font-size: clamp(1.22rem, 1.75vw, 1.68rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.hero-subtitle + .hero-text {
  margin-top: 0.95rem;
}

@media (max-width: 759px) {
  .hero-title-evolved {
    font-size: clamp(2.5rem, 11.5vw, 3.75rem);
    line-height: 1;
  }

  .hero-subtitle {
    margin-top: 0.75rem;
    font-size: 1.13rem;
    line-height: 1.28;
  }
}

/* Verification marker: HERO-TITLE-REFINE-V36 */


/* V37 mobile Safari performance polish + ZkDude access note + touch swipe affordance. */
.neural-canvas {
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
  contain: strict;
}

@media (max-width: 759px), (pointer: coarse) {
  .neural-canvas {
    opacity: 0.14;
    mix-blend-mode: normal;
  }
}

.phone-scene {
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.zkdude-access-note {
  display: inline-flex;
  align-items: center;
  margin: 0.85rem 0 0;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(141, 233, 255, 0.16);
  border-radius: 999px;
  background: rgba(141, 233, 255, 0.075);
  color: #dff8ff;
  font-size: 0.86rem;
  line-height: 1.35;
}

/* Verification marker: MOBILE-SAFARI-SWIPE-ZKDUDE-V37 */


/* V38 stronger ZkDude account-required badge + more visible mobile neural layer. */
.zkdude-access-note {
  gap: 0.58rem;
  padding: 0.72rem 1rem 0.72rem 0.74rem;
  border-color: rgba(255, 203, 118, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 199, 94, 0.16), rgba(141, 233, 255, 0.07)),
    rgba(5, 8, 22, 0.68);
  color: #fff0c8;
  box-shadow:
    inset 0 0 0 1px rgba(255, 232, 171, 0.06),
    0 14px 36px rgba(255, 180, 74, 0.08);
}

.zkdude-access-note::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(255, 219, 142, 0.5);
  background: rgba(255, 203, 118, 0.2);
  color: #ffe3a0;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

@media (max-width: 759px), (pointer: coarse) {
  .neural-canvas {
    opacity: 0.23;
  }
}

@supports (-webkit-touch-callout: none) {
  @media (max-width: 900px), (pointer: coarse) {
    .neural-canvas {
      opacity: 0.24;
    }
  }
}

/* Verification marker: MOBILE-NEURAL-VISIBILITY-WARNING-BADGE-V38 */


/* V39 real contact form states and honeypot field. */
.form-hp {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  white-space: nowrap !important;
}

.contact-form button[disabled] {
  cursor: wait;
  opacity: 0.74;
  transform: none !important;
}

.form-note.success {
  color: #b9ffd8;
}

.form-note.error {
  color: #ffb9b9;
}

/* Verification marker: PHP-CONTACT-FORM-V39 */


/* V40 dedicated contact success landing page. */
.sent-shell {
  min-height: 100svh;
}

.sent-main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 4rem);
}

.sent-card {
  width: min(100%, 48rem);
  text-align: center;
  padding: clamp(2rem, 5vw, 4.3rem);
  border-color: rgba(141, 233, 255, 0.2);
  background:
    radial-gradient(circle at 50% 0%, rgba(141, 233, 255, 0.18), transparent 38%),
    linear-gradient(135deg, rgba(34, 211, 238, 0.12), rgba(99, 102, 241, 0.12)),
    rgba(5, 8, 22, 0.7);
}

.sent-mark {
  width: 5.3rem;
  height: 5.3rem;
  display: inline-grid;
  place-items: center;
  margin: 0 auto 1.3rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(141, 233, 255, 0.32), rgba(141, 233, 255, 0.08));
  border: 1px solid rgba(141, 233, 255, 0.38);
  box-shadow: 0 0 42px rgba(141, 233, 255, 0.16);
}

.sent-mark span {
  display: inline-grid;
  place-items: center;
  width: 3.45rem;
  height: 3.45rem;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.96);
  color: #050816;
  font-size: 1.65rem;
  font-weight: 900;
}

.sent-card h1 {
  margin-top: 0.95rem;
  font-size: clamp(2.25rem, 6vw, 4.4rem);
  line-height: 0.98;
}

.sent-copy {
  max-width: 35rem;
  margin: 1.2rem auto 0;
  color: var(--muted);
  font-size: clamp(1.03rem, 1.7vw, 1.22rem);
  line-height: 1.7;
}

.sent-pulse {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 1.7rem 0 0;
}

.sent-pulse i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: rgba(141, 233, 255, 0.8);
  box-shadow: 0 0 18px rgba(141, 233, 255, 0.5);
  animation: sentPulse 1.7s ease-in-out infinite;
}

.sent-pulse i:nth-child(2) { animation-delay: 0.16s; }
.sent-pulse i:nth-child(3) { animation-delay: 0.32s; }

@keyframes sentPulse {
  0%, 100% { transform: translateY(0); opacity: 0.35; }
  50% { transform: translateY(-0.28rem); opacity: 1; }
}

.sent-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.sent-note {
  margin: 1.25rem 0 0;
  color: var(--muted-2);
  font-size: 0.92rem;
}

.sent-note a {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .sent-pulse i { animation: none; }
}

/* Verification marker: CONTACT-SUCCESS-PAGE-V40 */


/* Verification marker: PHP-COMPAT-CRITICAL-FALLBACK-V41 */


/* Verification marker: CLEAN-CONTACT-MAIL-V42 */


/* V43 restore original darker page mood: fallback CSS no longer tints the loaded layout. */
.site-shell {
  background: transparent;
}

/* Verification marker: DARK-MOOD-RESTORE-V43 */


/* Verification marker: NATURAL-CONTACT-MAIL-V44 */

/* HEADER-ZKDUDE-FIRST-V46: compact ZkDude access in main navigation */
.nav-zkdude {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.58rem;
  min-height: 2.72rem;
  padding: 0.34rem 0.92rem 0.34rem 0.42rem;
  border: 1px solid rgba(141, 233, 255, 0.24);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(141, 233, 255, 0.08), rgba(99, 102, 241, 0.08)), rgba(255, 255, 255, 0.035);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nav-zkdude:hover,
.nav-zkdude:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(141, 233, 255, 0.42);
  background: linear-gradient(135deg, rgba(141, 233, 255, 0.12), rgba(99, 102, 241, 0.11)), rgba(255, 255, 255, 0.055);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24), 0 0 28px rgba(141, 233, 255, 0.07);
}

.nav-zkdude img {
  width: 1.9rem;
  height: 1.9rem;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 18px rgba(141, 233, 255, 0.22);
}

.mobile-zkdude {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.72rem;
  width: 100%;
  padding: 0.78rem 1rem 0.78rem 0.78rem;
  border: 1px solid rgba(141, 233, 255, 0.2);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(141, 233, 255, 0.08), rgba(99, 102, 241, 0.08)), rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}

.mobile-zkdude img {
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 auto;
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 0 20px rgba(141, 233, 255, 0.24);
}

.mobile-zkdude:hover,
.mobile-zkdude:focus-visible {
  border-color: rgba(141, 233, 255, 0.35);
  background: linear-gradient(135deg, rgba(141, 233, 255, 0.12), rgba(99, 102, 241, 0.1)), rgba(255, 255, 255, 0.06);
}

@media (min-width: 1040px) and (max-width: 1280px) {
  .desktop-nav {
    gap: 0.18rem;
  }

  .desktop-nav a {
    padding-inline: 0.72rem;
    font-size: 0.88rem;
  }

  .nav-zkdude {
    padding-right: 0.72rem;
    font-size: 0.84rem;
  }

  .nav-zkdude img {
    width: 1.74rem;
    height: 1.74rem;
  }
}

@media (min-width: 1040px) and (max-width: 1160px) {
  .nav-zkdude span {
    display: none;
  }

  .nav-zkdude {
    gap: 0;
    padding: 0.36rem;
  }
}
