/* ═══════════════════════════════════════════════════════════════
   YoPay.one — Launch Website Stylesheet
   Design: Dark cinematic fintech · Cyan/blue/violet gradients
   ═══════════════════════════════════════════════════════════════ */

/* ── Custom properties ────────────────────────────────────────── */
:root {
  --bg:       #06071A;
  --bg2:      #0B0D28;
  --bg3:      #0F1235;
  --card:     #0D1040;
  --border:   #1E2455;
  --cyan:     #00C8F0;
  --cyan-dim: #0899B8;
  --purple:   #8B2FC9;
  --magenta:  #D41BB8;
  --blue:     #2952D9;
  --white:    #FFFFFF;
  --gray:     #7888A8;
  --gray-lt:  #A8B8D0;
  --green:    #00D47A;

  --font-display: 'Syne', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-glow-cyan:   0 0 40px rgba(0,200,240,.18);
  --shadow-glow-purple: 0 0 40px rgba(139,47,201,.18);

  --ease-out: cubic-bezier(.22,1,.36,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);

  --section-pad: 110px 0;
  --inner-max: 1180px;
  --inner-pad: 0 32px;
}

/* ── Reset & base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button { cursor: pointer; font-family: inherit; }
a { color: inherit; text-decoration: none; }
abbr { text-decoration: none; }

/* ── Noise overlay ────────────────────────────────────────────── */
.noise-overlay {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── Canvas (background network) ──────────────────────────────── */
#networkCanvas {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: .55;
}

/* ── Layout helpers ───────────────────────────────────────────── */
.section-inner {
  position: relative; z-index: 1;
  max-width: var(--inner-max);
  margin: 0 auto;
  padding: var(--inner-pad);
}
.center { text-align: center; }
.section-header { margin-bottom: 64px; }
.section-header.center { max-width: 640px; margin-left: auto; margin-right: auto; }

/* ── Typography ───────────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.05; letter-spacing: -.025em; font-weight: 800; }
h2 { font-size: clamp(34px, 5vw, 58px); }
h3 { font-size: clamp(20px, 2.5vw, 28px); font-weight: 700; }
.section-sub {
  font-size: 17px; color: var(--gray-lt); line-height: 1.7;
  max-width: 600px; margin-top: 18px;
}
.section-header.center .section-sub { margin-left: auto; margin-right: auto; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--blue) 55%, var(--cyan) 100%);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 16px; font-weight: 700;
  border: none;
  transition: opacity .25s, transform .25s var(--ease-out),
              box-shadow .25s;
  box-shadow: 0 8px 32px rgba(0,200,240,.22), 0 2px 8px rgba(0,0,0,.3);
  background-size: 200% 100%;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 42px rgba(0,200,240,.35), 0 4px 12px rgba(0,0,0,.3);
}
.btn-primary:active { transform: translateY(0); }
.btn-full { width: 100%; }

/* ── Header ───────────────────────────────────────────────────── */
#site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  overflow: visible;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  background: rgba(6,7,26,.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
.header-inner {
  max-width: var(--inner-max); margin: 0 auto; padding: 0 32px;
  height: 76px;
  display: flex; align-items: center; justify-content: space-between;
  position: relative; z-index: 1;
}
.logo img { height: 60px; width: 135px; display: block; object-fit: contain; }
.header-nav { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--gray-lt);
  transition: color .2s;
}
.nav-link:hover { color: var(--white); }
.nav-cta-btn {
  display: inline-flex; align-items: center;
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
  padding: 9px 22px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 700;
  transition: background .22s, color .22s, box-shadow .22s;
  text-decoration: none;
}
.nav-cta-btn:hover {
  background: var(--cyan);
  color: var(--bg);
  box-shadow: 0 0 20px rgba(0,200,240,.3);
}

.nav-toggle {
  display: none; flex-direction: column; justify-content: center;
  gap: 5px; width: 32px; height: 32px;
  background: none; border: none; padding: 4px;
  cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; background: var(--white);
  border-radius: 2px;
  transition: transform .25s var(--ease-out), opacity .2s, background .2s;
  transform-origin: center;
}

/* Hamburger animates to X when menu is open */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Mobile nav ──────────────────────────────────────────────────
   Rendered OUTSIDE the header in HTML (after </header>).
   display:none by default; JS toggles to display:flex.
   position:fixed, top = header height (68px).
   body.nav-open gets padding-top equal to nav height so nothing
   is hidden under the dropdown.
───────────────────────────────────────────────────────────────── */
.mobile-nav {
  display: none;              /* hidden by default — JS shows it  */
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  z-index: 200;               /* above everything */
  flex-direction: column;
  gap: 0;
  background: rgba(6, 7, 26, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}
.mobile-nav.is-open {
  display: flex;
}
.mobile-nav a {
  display: block;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-lt);
  border-bottom: 1px solid rgba(255,255,255,.05);
  text-decoration: none;
  transition: color .18s, background .18s;
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover,
.mobile-nav a:focus { color: var(--white); background: rgba(255,255,255,.04); }
.mobile-nav .nav-link--cta {
  color: var(--cyan);
  font-weight: 700;
  font-family: var(--font-display);
}
.mobile-nav .nav-link--cta:hover { color: var(--cyan); background: rgba(0,200,240,.06); }

/* body class used to push page content below open nav */
body.nav-open { transition: padding-top .2s; }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 1;
  min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 140px 32px 100px;
  text-align: center;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 15% 25%, rgba(139,47,201,.28) 0%, transparent 60%),
    radial-gradient(ellipse 55% 50% at 85% 75%, rgba(0,200,240,.22) 0%, transparent 55%),
    radial-gradient(ellipse 40% 60% at 50% 50%, rgba(41,82,217,.3) 0%, transparent 65%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: min(90vw, 820px); overflow: visible; }
.hero-badge {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  border: 1px solid rgba(0,200,240,.35);
  background: rgba(0,200,240,.08);
  padding: 6px 18px; border-radius: 50px;
  margin-bottom: 32px;
  animation: fadeUp .7s .1s var(--ease-out) both;
}
.hero-headline {
  /* 7vw scales with viewport; max 88px keeps "Reimagined." from overflowing
     even at negative letter-spacing. Reduced from 96px to give a safety margin.
     Formula: "Reimagined." ≈ 11 chars × 0.58 × font-size < viewport - 64px
     → font-size < (vw - 64) / 6.38  →  at 1024px ≈ 150px (capped at 88px)  */
  font-size: clamp(38px, 6.2vw, 88px);
  letter-spacing: -.02em;  /* reduced from -.04em — less tracking = less clipping */
  line-height: 1.0;
  margin-bottom: 8px;
  animation: fadeUp .7s .2s var(--ease-out) both;
  overflow: visible;
}
.headline-line {
  display: block;
  white-space: nowrap;   /* CRITICAL: prevents mid-word wrapping */
  overflow: visible;
}
.headline-accent {
  background: linear-gradient(100deg, var(--magenta) 0%, var(--cyan) 55%, #90F0FF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(0,200,240,.3));
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--gray-lt);
  line-height: 1.65;
  max-width: 600px;
  margin: 24px auto 32px;
  animation: fadeUp .7s .3s var(--ease-out) both;
}
.hero-pills {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 40px;
  animation: fadeUp .7s .35s var(--ease-out) both;
}
.pill {
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  color: var(--white);
  background: var(--w08);
  border: 1px solid var(--border);
  padding: 6px 18px; border-radius: 50px;
  background: rgba(255,255,255,.06);
}
.hero-cta { animation: fadeUp .7s .42s var(--ease-out) both; }
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
}
.scroll-line {
  display: block; width: 1px; height: 48px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  margin: 0 auto;
  animation: scrollPulse 2.2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%,100% { opacity: 0; transform: scaleY(.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ── Audience section ─────────────────────────────────────────── */
.audience-section {
  position: relative; z-index: 1;
  padding: var(--section-pad);
}
.audience-section::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent, rgba(11,13,40,.6), transparent);
  pointer-events: none;
}
.audience-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.audience-card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  overflow: hidden;
  transition: transform .4s var(--ease-out), border-color .3s;
  cursor: pointer;
}
.audience-card:hover { transform: translateY(-6px); }
.audience-card:hover .card-glow { opacity: 1; }
.audience-card:hover .card-cta { background: var(--cyan); color: var(--bg); }

/* Per-card accent colors */
.audience-card[data-type="consumer"] { --card-color: var(--cyan); }
.audience-card[data-type="merchant"] { --card-color: var(--purple); }
.audience-card[data-type="bank"]     { --card-color: var(--blue); }

.audience-card:hover { border-color: var(--card-color); }
.card-glow {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(0,200,240,.06) 0%, transparent 70%);
  opacity: 0; transition: opacity .4s;
  pointer-events: none;
}
.audience-card[data-type="merchant"] .card-glow {
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(139,47,201,.06) 0%, transparent 70%);
}
.audience-card[data-type="bank"] .card-glow {
  background: radial-gradient(ellipse 70% 60% at 50% 30%, rgba(41,82,217,.06) 0%, transparent 70%);
}
.card-inner { padding: 36px 32px; position: relative; z-index: 1; }
.card-visual {
  height: 180px; margin-bottom: 28px;
  display: flex; align-items: center; justify-content: center;
}
.card-svg { width: 200px; height: 200px; color: var(--cyan); }
.card--merchant .card-svg { color: var(--purple); }
.card--bank .card-svg { color: var(--blue); }
.card-label {
  display: block;
  font-size: 11px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cyan); margin-bottom: 10px;
}
.card--merchant .card-label { color: var(--purple); }
.card--bank .card-label { color: var(--blue); }
.card-title { font-size: 22px; font-weight: 700; margin-bottom: 12px; line-height: 1.2; }
.card-desc { font-size: 14px; color: var(--gray-lt); line-height: 1.65; margin-bottom: 24px; }
.card-cta {
  display: inline-flex; align-items: center;
  background: transparent;
  color: var(--cyan);
  border: 1.5px solid var(--cyan);
  padding: 9px 22px;
  border-radius: 50px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  transition: background .22s, color .22s;
}
.card--merchant .card-cta { color: var(--purple); border-color: var(--purple); }
.card--merchant:hover .card-cta { background: var(--purple); color: var(--white); }
.card--bank .card-cta { color: var(--blue); border-color: var(--blue); }
.card--bank:hover .card-cta { background: var(--blue); color: var(--white); }

/* SVG animations */
.pulse-ring { animation: pulseRing 2.2s ease-in-out infinite; }
.pulse-dot  { animation: pulseDot 2.2s ease-in-out infinite; }
@keyframes pulseRing {
  0%,100% { r: 8; opacity: 1; }
  50% { r: 13; opacity: .4; }
}
@keyframes pulseDot {
  0%,100% { opacity: 1; }
  50% { opacity: .5; }
}
.arc-1 { animation: arcFade 2.5s .1s ease-in-out infinite; }
.arc-2 { animation: arcFade 2.5s .3s ease-in-out infinite; }
.arc-3 { animation: arcFade 2.5s .5s ease-in-out infinite; }
@keyframes arcFade {
  0%,100% { opacity: .4; }
  50% { opacity: 1; }
}
.check-ring { animation: checkRing 2s ease-in-out infinite; }
@keyframes checkRing {
  0%,100% { opacity: .6; }
  50% { opacity: 1; }
}
.check-mark { stroke-dasharray: 30; stroke-dashoffset: 30; animation: drawCheck 1.2s .3s var(--ease-out) forwards; }
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}
.shield-path { animation: shieldGlow 3s ease-in-out infinite; }
@keyframes shieldGlow {
  0%,100% { opacity: .7; }
  50% { opacity: 1; filter: drop-shadow(0 0 6px currentColor); }
}
.shield-check { stroke-dasharray: 40; stroke-dashoffset: 40; animation: drawCheck 1s .6s var(--ease-out) forwards; }

/* ── Why section ──────────────────────────────────────────────── */
.why-section {
  position: relative; z-index: 1;
  padding: var(--section-pad);
  background: linear-gradient(to bottom, transparent, rgba(11,13,40,.5), transparent);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}
.why-item {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: border-color .3s, transform .3s var(--ease-out);
}
.why-item:hover { border-color: var(--cyan-dim); transform: translateY(-4px); }
.why-visual { margin-bottom: 24px; }
.why-svg { width: 100%; height: 140px; }
.why-title {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700; margin-bottom: 12px;
}
.why-desc { font-size: 15px; color: var(--gray-lt); line-height: 1.7; }

/* Safer SVG animations */
.shield-outline { animation: shieldPulse 3.5s ease-in-out infinite; }
@keyframes shieldPulse {
  0%,100% { stroke-opacity: 1; }
  50% { stroke-opacity: .5; filter: drop-shadow(0 0 8px var(--purple)); }
}
.shield-pulse { animation: pulseRing 2.5s ease-in-out infinite; stroke-color: var(--cyan); }
.p1 { animation: particleFloat 3s 0s ease-in-out infinite; }
.p2 { animation: particleFloat 3s .5s ease-in-out infinite; }
.p3 { animation: particleFloat 3s 1s ease-in-out infinite; }
.p4 { animation: particleFloat 3s 1.5s ease-in-out infinite; }
.p5 { animation: particleFloat 3s 2s ease-in-out infinite; }
.p6 { animation: particleFloat 3s 2.5s ease-in-out infinite; }
@keyframes particleFloat {
  0%,100% { transform: translate(0,0); opacity: .7; }
  33% { transform: translate(2px,-3px); opacity: 1; }
  66% { transform: translate(-2px,2px); opacity: .5; }
}

/* Smarter SVG animations */
.center-pulse { animation: centerGlow 2.5s ease-in-out infinite; }
@keyframes centerGlow {
  0%,100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 8px var(--cyan)); }
}
.smart-node { animation: nodePop 3s ease-in-out infinite; }
.smart-node:nth-child(even) { animation-delay: .8s; }
@keyframes nodePop {
  0%,100% { r: 7; opacity: .7; }
  50% { r: 9; opacity: 1; }
}

/* ── Journey section ──────────────────────────────────────────── */
.journey-section {
  position: relative; z-index: 1;
  padding: var(--section-pad);
}
.journey-section h2 em { font-style: normal; color: var(--cyan); }
.journey-track {
  display: flex; align-items: center;
  margin-top: 60px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.journey-track::-webkit-scrollbar { display: none; }
.journey-step {
  display: flex; flex-direction: column; align-items: center;
  gap: 14px; flex-shrink: 0; min-width: 80px;
}
.step-node {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg);
  transition: all .4s var(--ease-out);
  position: relative;
}
.journey-step.active .step-node {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(0,200,240,.5);
}
.journey-step.done .step-node {
  border-color: var(--cyan-dim);
  background: var(--cyan-dim);
}
.step-label {
  font-size: 12px; font-weight: 500;
  color: var(--gray); text-align: center;
  white-space: nowrap;
  transition: color .4s;
}
.journey-step.active .step-label { color: var(--cyan); font-weight: 600; }
.journey-step.done .step-label { color: var(--gray-lt); }
.journey-connector {
  flex: 1; height: 1px; min-width: 32px;
  background: var(--border);
  position: relative; overflow: hidden;
}
.journey-connector.lit::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, var(--cyan), var(--blue));
  animation: connectorFill .4s var(--ease-out) forwards;
}
@keyframes connectorFill {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); transform-origin: left; }
}
.journey-conclusion {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 40px);
  font-weight: 700;
  text-align: center;
  margin-top: 48px;
  color: var(--gray);
  transition: color .5s;
}
.journey-conclusion.active { color: var(--white); }

/* ── Signup section ───────────────────────────────────────────── */
.signup-section {
  position: relative; z-index: 1;
  padding: var(--section-pad);
}
.signup-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 60% at 0% 50%, rgba(139,47,201,.12) 0%, transparent 60%),
              radial-gradient(ellipse 50% 50% at 100% 50%, rgba(0,200,240,.1) 0%, transparent 55%);
  pointer-events: none;
}
.signup-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.signup-perks { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.perk {
  display: flex; align-items: center; gap: 12px;
  font-size: 15px; color: var(--gray-lt);
}
.perk-dot {
  width: 8px; height: 8px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
}
.signup-form-wrap {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
}

/* Audience toggle */
.audience-select-group { border: none; margin-bottom: 28px; }
.audience-select-group .field-label { margin-bottom: 10px; }
.audience-toggle {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.toggle-btn {
  flex: 1; min-width: 80px;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--gray-lt);
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  transition: all .22s;
}
.toggle-btn:hover { border-color: var(--cyan-dim); color: var(--white); }
.toggle-btn.active {
  background: rgba(0,200,240,.12);
  border-color: var(--cyan);
  color: var(--cyan);
}

/* Form fields */
.form-group { margin-bottom: 20px; }
.field-label {
  display: block;
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 8px;
}
.field-label abbr { color: var(--magenta); }
.form-input {
  width: 100%;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-input::placeholder { color: var(--gray); }
.form-input:focus {
  border-color: var(--cyan);
  background: rgba(0,200,240,.06);
  box-shadow: 0 0 0 3px rgba(0,200,240,.1);
}
.form-input.is-error { border-color: #FF5B5B; }
.form-input.is-valid { border-color: var(--green); }
.field-error {
  display: block;
  font-size: 12px; color: #FF5B5B;
  margin-top: 5px; min-height: 18px;
}
.label-merchant, .label-bank { display: none; }

/* Conditional field visibility */
.form-group[data-visible-for] { display: none; }
.form-group.visible { display: block; }

/* Labels per audience */
body.audience-merchant .label-merchant { display: inline; }
body.audience-merchant .label-bank    { display: none; }
body.audience-bank .label-bank        { display: inline; }
body.audience-bank .label-merchant    { display: none; }
.label-optional { font-weight: 400; color: var(--gray); font-style: italic; }

/* CAPTCHA */
.captcha-wrap { margin-bottom: 20px; }


/* ── Image CAPTCHA ────────────────────────────────────────────── */
.captcha-image-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.captcha-img {
  display: block;
  width: 200px;
  height: 70px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #0D1030;
  /* Slight brightness boost — helps legibility on all displays */
  filter: brightness(1.08) contrast(1.05);
  flex-shrink: 0;
  object-fit: cover;
}
.captcha-hint {
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 8px;
  margin-top: 0;
}
.captcha-refresh-btn {
  flex-shrink: 0;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .2s, color .2s, background .2s;
  white-space: nowrap;
  gap: 6px;
}
.captcha-refresh-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,200,240,.06);
}
.captcha-refresh-btn svg { display: block; flex-shrink: 0; }
.captcha-refresh-btn.spinning svg { animation: spin .7s linear infinite; }
.captcha-input {
  /* Fixed width for exactly 4 digits */
  max-width: 130px;
  letter-spacing: .25em;
  font-size: 18px;
  font-weight: 600;
  text-align: center;
  font-family: var(--font-display);
}

/* Consent */
.consent-text {
  font-size: 12px; color: var(--gray); line-height: 1.55;
  margin-bottom: 20px;
}
.link-inline { color: var(--cyan-dim); text-decoration: underline; }
.link-inline:hover { color: var(--cyan); }

/* Submit button states */
#submit-btn { position: relative; }
.btn-loader svg {
  width: 20px; height: 20px;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.form-error-global {
  font-size: 13px; color: #FF5B5B; text-align: center;
  margin-top: 12px; padding: 10px;
  background: rgba(255,91,91,.08);
  border-radius: var(--radius-sm);
}

/* Success state */
.signup-success {
  padding: 48px 24px; text-align: center;
}
.success-icon { width: 64px; height: 64px; margin: 0 auto 24px; }
.success-ring {
  stroke-dasharray: 163;
  stroke-dashoffset: 163;
  animation: drawCircle .8s var(--ease-out) forwards;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
.success-check {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawCheck .5s .7s var(--ease-out) forwards;
}
.success-title {
  font-family: var(--font-display);
  font-size: 32px; font-weight: 800; margin-bottom: 10px;
  color: var(--cyan);
}
.success-msg { font-size: 16px; color: var(--gray-lt); line-height: 1.65; }

/* ── Final CTA ────────────────────────────────────────────────── */
.final-cta-section {
  position: relative; z-index: 1;
  padding: 140px 32px;
  text-align: center;
}
.final-cta-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 70% at 50% 50%, rgba(41,82,217,.2) 0%, transparent 65%);
  pointer-events: none;
}
.final-wordmark {
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700; letter-spacing: .3em;
  color: var(--gray); margin-bottom: 20px;
  position: relative; z-index: 1;
}
.final-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 800; letter-spacing: -.04em;
  margin-bottom: 14px;
  position: relative; z-index: 1;
  background: linear-gradient(120deg, var(--white) 30%, var(--cyan) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.final-sub {
  font-size: 18px; color: var(--gray-lt);
  margin-bottom: 40px;
  position: relative; z-index: 1;
}

/* ── Footer ───────────────────────────────────────────────────── */
.site-footer {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 32px;
  background: var(--bg2);
}
.footer-inner {
  max-width: var(--inner-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 24px;
}
.footer-brand img { height: 32px; width: auto; margin-bottom: 6px; }
.footer-tagline { font-size: 13px; color: var(--gray); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px 28px; }
.footer-link { font-size: 13px; color: var(--gray); transition: color .2s; }
.footer-link:hover { color: var(--cyan); }
.footer-copy { font-size: 12px; color: var(--gray); }

/* ── Animations ────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Accessibility ────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 3px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  #networkCanvas { display: none; }
  .scroll-hint { display: none; }
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .audience-cards { grid-template-columns: 1fr 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .signup-inner { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 768px) {
  :root { --section-pad: 80px 0; }

  /* Nav */
  .header-nav { display: none; }
  .nav-toggle  { display: flex; }

  /* Hero — smaller font so "Reimagined." stays on one line */
  .hero { padding: 110px 16px 80px; overflow-x: hidden; }
  .hero-headline { font-size: min(9.5vw, 60px); letter-spacing: -.015em; white-space: nowrap; }
  .hero-sub br { display: none; }
  .hero-sub { font-size: 15px; }

  /* Logo in header */
  .logo img { height: 44px; width: 99px; }

  /* Layouts */
  .audience-cards { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .signup-inner { grid-template-columns: 1fr; gap: 40px; }

  /* Spacing */
  .section-inner, .footer-inner { padding: 0 20px; }
  .journey-section .section-inner { padding: 0; }
  .journey-track { padding: 0 20px 12px; gap: 0; }
  .signup-form-wrap { padding: 24px 18px; }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav   { flex-direction: column; gap: 12px; }

  /* Canvas */
  #networkCanvas { opacity: .25; }
}

@media (max-width: 480px) {
  .hero-headline { font-size: min(10vw, 48px); letter-spacing: -.01em; }
  .hero-badge { font-size: 10px; }
  .audience-toggle { flex-direction: column; }
  .toggle-btn { flex: none; }
  .header-inner { padding: 0 18px; }
}

@media (max-width: 360px) {
  .hero-headline { font-size: min(9vw, 34px); letter-spacing: 0; }
}
