/* ============================================================
   Virtual Work Permit (RemPro) — Waitlist
   Brand: pitch-deck forest green, energized with multicolor accents
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Forest greens (from the pitch deck) */
  --forest:      #134E36;
  --forest-500:  #1C6A49;
  --forest-700:  #0E3D2A;
  --forest-900:  #08271B;

  /* Surfaces */
  --cream:       #FBFAF7;
  --cream-200:   #F2F0E9;
  --white:       #FFFFFF;

  /* Ink */
  --ink:         #0E1B15;
  --ink-600:     #41504A;
  --ink-400:     #6E7B74;

  /* Multicolor accents */
  --lime:        #A3E635;
  --gold:        #F5B301;
  --coral:       #FB7185;
  --sky:         #38BDF8;
  --violet:      #8B7BF0;

  /* Misc */
  --radius:      14px;
  --radius-sm:   10px;
  --radius-lg:   24px;
  --maxw:        1160px;
  --shadow:      0 20px 60px -20px rgba(8,39,27,0.28);
  --shadow-sm:   0 8px 28px -12px rgba(8,39,27,0.22);
  --ring:        0 0 0 4px rgba(163,230,53,0.30);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Multicolor gradient text — animated, slowly shifting hues */
.grad-text {
  background: linear-gradient(100deg, var(--lime) 0%, var(--gold) 30%, var(--coral) 60%, var(--sky) 85%, var(--violet) 100%);
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradShift 7s ease-in-out infinite;
}
@keyframes gradShift {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

/* Animated multicolor brand bar across the very top of the page */
.brandbar {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 200;
  background: linear-gradient(90deg, var(--lime), var(--gold), var(--coral), var(--sky), var(--violet), var(--lime));
  background-size: 300% 100%;
  animation: barFlow 6s linear infinite;
}
@keyframes barFlow {
  to { background-position: 300% 0; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 4px; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: rgba(251,250,247,0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(19,78,54,0.10);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand:hover .brand-mark { animation: logo-bob 0.6s ease; }
@keyframes logo-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
/* Multicolor flag tiles orbiting the globe */
.logo-orbit {
  transform-box: fill-box;
  transform-origin: center;
  animation: logo-orbit-spin 14s linear infinite;
}
@keyframes logo-orbit-spin { to { transform: rotate(360deg); } }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 15px;
  color: var(--forest); letter-spacing: -0.01em;
}
.brand-sub {
  font-size: 10px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-400); margin-top: 3px;
}
.nav-cta {
  font-size: 13px; font-weight: 600;
  color: var(--white); background: var(--forest);
  padding: 9px 18px; border-radius: 100px;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover { background: var(--forest-500); transform: translateY(-1px); box-shadow: var(--shadow-sm); }

/* ============================================================
   HERO  (dark forest, multicolor glow)
   ============================================================ */
.hero {
  position: relative;
  background: radial-gradient(120% 120% at 50% -10%, var(--forest-500) 0%, var(--forest) 45%, var(--forest-900) 100%);
  color: var(--white);
  padding: 150px 24px 96px;
  overflow: hidden;
  isolation: isolate;
}
/* multicolor glow blobs */
.hero::before, .hero::after {
  content: ''; position: absolute; z-index: -1;
  width: 520px; height: 520px; border-radius: 50%;
  filter: blur(90px); opacity: 0.5; pointer-events: none;
}
.hero::before { background: var(--lime);  top: -120px; left: -100px; animation: drift1 19s ease-in-out infinite; }
.hero::after  { background: var(--sky);   bottom: -180px; right: -120px; opacity: 0.4; animation: drift2 23s ease-in-out infinite; }
@keyframes drift1 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(70px, 50px) scale(1.1); } }
@keyframes drift2 { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-60px,-40px) scale(1.08); } }
/* dot grid texture (deck motif) */
.hero-dots {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 75%);
}
.hero-coral-blob {
  position: absolute; z-index: -1; top: 30%; right: 8%;
  width: 320px; height: 320px; border-radius: 50%;
  background: var(--coral); filter: blur(110px); opacity: 0.28; pointer-events: none;
  animation: drift3 17s ease-in-out infinite;
}
@keyframes drift3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-50px, 60px); } }

.hero-inner { max-width: 920px; margin: 0 auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  padding: 7px 14px 7px 9px; border-radius: 100px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.92);
  margin-bottom: 26px;
}
.eyebrow .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--lime);
  box-shadow: 0 0 0 0 rgba(163,230,53,0.6);
  animation: pulse 2.2s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(163,230,53,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(163,230,53,0); }
  100% { box-shadow: 0 0 0 0 rgba(163,230,53,0); }
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 80px);
  color: var(--white);
  margin-bottom: 22px;
}
.hero h1 .grad-text { display: inline-block; }

/* Staggered word-by-word entrance for the hero headline */
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(34px) rotate(2deg);
  animation: word-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes word-rise {
  to { opacity: 1; transform: translateY(0) rotate(0); }
}

.hero-sub {
  font-size: clamp(16px, 1.9vw, 20px);
  font-weight: 400; line-height: 1.65;
  color: rgba(255,255,255,0.82);
  max-width: 600px; margin: 0 auto 18px;
}

.trust-chips {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-top: 26px;
}
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 8px 14px; border-radius: 100px;
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; }
.chip .dot.lime  { background: var(--lime); }
.chip .dot.gold  { background: var(--gold); }
.chip .dot.coral { background: var(--coral); }

/* ── WAITLIST CARD ── */
.waitlist-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%; max-width: 560px;
  margin: 44px auto 0;
  box-shadow: var(--shadow);
  text-align: left;
  position: relative;
  color: var(--ink);
}
.waitlist-card::before {
  content: ''; position: absolute; inset: 0; border-radius: var(--radius-lg);
  padding: 1.5px;
  background: linear-gradient(130deg, var(--lime), var(--gold), var(--coral), var(--sky), var(--violet), var(--lime));
  background-size: 300% 300%;
  animation: gradShift 8s ease infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.card-head { margin-bottom: 22px; }
.card-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--forest-500); margin-bottom: 8px;
}
.card-title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 23px; color: var(--ink); line-height: 1.25;
}

.form-group { margin-bottom: 14px; }
.form-group label {
  display: block; font-size: 12.5px; font-weight: 600;
  color: var(--ink-600); margin-bottom: 6px;
}
.form-group input,
.form-group select {
  width: 100%; padding: 13px 15px;
  border: 1.5px solid rgba(14,27,21,0.14);
  border-radius: var(--radius-sm);
  font-family: 'Inter', sans-serif; font-size: 16px;
  color: var(--ink); background: var(--cream);
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  appearance: none; -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2341504A' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
  padding-right: 38px;
}
.form-group input::placeholder { color: var(--ink-400); }
.form-group input:focus,
.form-group select:focus {
  outline: none; border-color: var(--forest-500);
  background: var(--white); box-shadow: var(--ring);
}
.form-group input.invalid,
.form-group select.invalid {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(251,113,133,0.18);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.submit-btn {
  width: 100%; margin-top: 8px; padding: 16px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px;
  color: var(--white); cursor: pointer;
  border: none; border-radius: var(--radius-sm);
  background: var(--forest);
  position: relative; overflow: hidden;
  transition: transform 0.12s, box-shadow 0.2s, background 0.2s;
}
.submit-btn::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--gold), var(--coral), var(--sky));
}
.submit-btn:hover:not(:disabled) { background: var(--forest-500); transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(19,78,54,0.6); }
.submit-btn:active:not(:disabled) { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.card-note { font-size: 12px; color: var(--ink-400); text-align: center; margin-top: 14px; }
.form-error {
  display: none; font-size: 12.5px; color: #C0392B; font-weight: 500;
  text-align: center; margin-top: 12px;
}
.form-error.visible { display: block; }

/* Success state */
.success-state { display: none; text-align: center; padding: 22px 4px; }
.success-icon {
  width: 64px; height: 64px; margin: 0 auto 20px;
  border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--lime), var(--gold));
  color: var(--forest-900); font-size: 30px; font-weight: 700;
}
.success-title {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 22px; color: var(--ink); margin-bottom: 10px;
}
.success-text { font-size: 14.5px; color: var(--ink-600); line-height: 1.7; }

/* ── HERO COUNTERS ── */
.counters {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-top: 56px;
}
.counter {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.13);
  border-radius: var(--radius);
  padding: 20px 26px; min-width: 150px; text-align: center;
}
.counter-num {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: 34px; line-height: 1;
}
.counter:nth-child(1) .counter-num { color: var(--lime); }
.counter:nth-child(2) .counter-num { color: var(--gold); }
.counter:nth-child(3) .counter-num { color: var(--coral); }
.counter-label {
  font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.66); margin-top: 8px;
}

/* ============================================================
   SECTIONS (shared)
   ============================================================ */
.section { padding: 96px 0; }
.section.tight { padding: 80px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--forest-500); margin-bottom: 14px;
}
.section-eyebrow.gold { color: var(--gold); }
.section-title { font-size: clamp(28px, 4vw, 44px); color: var(--ink); }
.section-sub { font-size: 16.5px; color: var(--ink-600); margin-top: 16px; line-height: 1.7; }

/* ── PROBLEM ── */
.problem { background: var(--white); }
.problem-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.problem-list { display: flex; flex-direction: column; gap: 16px; }
.problem-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--cream); border: 1px solid rgba(19,78,54,0.08);
  border-radius: var(--radius); padding: 20px 22px;
}
.problem-icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 11px;
  display: grid; place-items: center; font-size: 20px;
  background: rgba(251,113,133,0.14);
}
.problem-item h4 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; margin-bottom: 4px; }
.problem-item p { font-size: 13.5px; color: var(--ink-600); line-height: 1.6; }
.stat-hero {
  background: linear-gradient(140deg, var(--forest) 0%, var(--forest-700) 100%);
  border-radius: var(--radius-lg); padding: 44px 40px; color: var(--white);
  position: relative; overflow: hidden;
}
.stat-hero::after {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: var(--gold); filter: blur(70px); opacity: 0.28;
}
.stat-hero .big {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(56px, 9vw, 84px); line-height: 1;
}
.stat-hero .big .grad-text { display: inline-block; }
.stat-hero p { font-size: 15px; color: rgba(255,255,255,0.82); margin-top: 16px; line-height: 1.7; }

/* ── SOLUTION ── */
.solution { background: var(--cream); }
.benefit-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px;
}
.benefit {
  background: var(--white); border: 1px solid rgba(19,78,54,0.08);
  border-radius: var(--radius); padding: 28px 26px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.benefit:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); border-color: rgba(19,78,54,0.16); }
.benefit-ic {
  width: 48px; height: 48px; border-radius: 13px; margin-bottom: 18px;
  display: grid; place-items: center; font-size: 22px; color: var(--white);
}
.benefit:nth-child(1) .benefit-ic { background: var(--forest); }
.benefit:nth-child(2) .benefit-ic { background: var(--gold); }
.benefit:nth-child(3) .benefit-ic { background: var(--coral); }
.benefit:nth-child(4) .benefit-ic { background: var(--sky); }
.benefit h4 { font-family: 'Space Grotesk', sans-serif; font-size: 17px; margin-bottom: 9px; }
.benefit p { font-size: 13.5px; color: var(--ink-600); line-height: 1.65; }

/* ── STEPS ── */
.steps { background: var(--white); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.step {
  position: relative; padding: 30px 26px;
  background: var(--cream); border-radius: var(--radius);
  border: 1px solid rgba(19,78,54,0.08);
}
.step-num {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 13px;
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  color: var(--white); margin-bottom: 18px;
}
.step:nth-child(1) .step-num { background: var(--forest); }
.step:nth-child(2) .step-num { background: var(--gold); color: var(--forest-900); }
.step:nth-child(3) .step-num { background: var(--coral); }
.step:nth-child(4) .step-num { background: var(--sky); color: var(--forest-900); }
.step h4 { font-family: 'Space Grotesk', sans-serif; font-size: 16.5px; margin-bottom: 9px; line-height: 1.3; }
.step p { font-size: 13.5px; color: var(--ink-600); line-height: 1.65; }

/* ── VALUE PROPOSITION ── */
.value { background: var(--forest); color: var(--white); }
.value .section-eyebrow { color: var(--lime); }
.value .section-title { color: var(--white); }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-col {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); padding: 30px 28px;
}
.value-col h3 {
  font-family: 'Space Grotesk', sans-serif; font-size: 19px; margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.value-col h3 .swatch { width: 14px; height: 14px; border-radius: 5px; }
.value-col:nth-child(1) .swatch { background: var(--lime); }
.value-col:nth-child(2) .swatch { background: var(--gold); }
.value-col:nth-child(3) .swatch { background: var(--coral); }
.value-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.value-col li {
  font-size: 14.5px; color: rgba(255,255,255,0.85);
  display: flex; gap: 10px; align-items: flex-start;
}
.value-col li::before { content: '✦'; color: var(--gold); flex-shrink: 0; }

/* ── AUDIENCE TAGS ── */
.audience { background: var(--cream); }
.tags { display: flex; flex-wrap: wrap; gap: 11px; }
.tag {
  font-size: 14px; font-weight: 500; color: var(--forest);
  background: var(--white); border: 1px solid rgba(19,78,54,0.16);
  border-radius: 100px; padding: 10px 18px;
  transition: all 0.2s;
}
.tag:nth-child(4n+1):hover { background: var(--forest); color: var(--white); border-color: var(--forest); }
.tag:nth-child(4n+2):hover { background: var(--gold); color: var(--forest-900); border-color: var(--gold); }
.tag:nth-child(4n+3):hover { background: var(--coral); color: var(--white); border-color: var(--coral); }
.tag:nth-child(4n):hover   { background: var(--sky);  color: var(--forest-900); border-color: var(--sky); }
.tag:hover { transform: translateY(-2px); }

/* ── FINAL CTA ── */
.final-cta {
  background: radial-gradient(120% 140% at 50% 0%, var(--forest-500), var(--forest) 55%, var(--forest-900));
  color: var(--white); text-align: center; padding: 100px 24px;
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1.3px, transparent 1.3px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(100% 100% at 50% 50%, #000, transparent 70%);
          mask-image: radial-gradient(100% 100% at 50% 50%, #000, transparent 70%);
}
.final-cta-inner { position: relative; max-width: 680px; margin: 0 auto; }
.final-cta h2 { font-size: clamp(30px, 4.5vw, 50px); color: var(--white); margin-bottom: 18px; }
.final-cta p { font-size: 17px; color: rgba(255,255,255,0.82); margin-bottom: 32px; line-height: 1.65; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 16px;
  color: var(--forest-900);
  background: linear-gradient(100deg, var(--lime), var(--gold), var(--coral), var(--lime));
  background-size: 250% auto;
  animation: gradShift 5s ease infinite;
  padding: 16px 30px; border-radius: 100px;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 12px 34px -10px rgba(163,230,53,0.5);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -10px rgba(163,230,53,0.6); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--forest-900); color: rgba(255,255,255,0.7); padding: 56px 24px 36px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; }
.footer-top {
  display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer .brand-name { color: var(--white); }
.footer .brand-sub { color: rgba(255,255,255,0.5); }
.footer-blurb { max-width: 320px; font-size: 13.5px; margin-top: 14px; line-height: 1.65; }
.footer-contact { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; }
.footer-contact a:hover { color: var(--lime); }
.footer-contact .label {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.4); margin-bottom: 4px;
}
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 28px; font-size: 12.5px; color: rgba(255,255,255,0.5);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16,1,0.3,1), transform 0.7s cubic-bezier(0.16,1,0.3,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.08s; }
.reveal[data-delay="2"] { transition-delay: 0.16s; }
.reveal[data-delay="3"] { transition-delay: 0.24s; }
.reveal[data-delay="4"] { transition-delay: 0.32s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .problem-grid { grid-template-columns: 1fr; gap: 36px; }
  .value-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 640px) {
  .nav { padding: 12px 18px; }
  .brand-sub { display: none; }
  .hero { padding: 124px 18px 72px; }
  .waitlist-card { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .counters { gap: 10px; margin-top: 40px; }
  .counter { min-width: 0; flex: 1 1 30%; padding: 16px 12px; }
  .counter-num { font-size: 26px; }
  .wrap { padding: 0 18px; }
  .stat-hero, .final-cta { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 420px) {
  .nav-cta { padding: 8px 14px; font-size: 12px; }
  .hero h1 { font-size: 36px; }
  .counter-label { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero-title .word { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   CONNECTIVITY TOAST  (offline / back-online banner)
   ============================================================ */
.net-toast {
  position: fixed; left: 50%; bottom: 22px;
  transform: translate(-50%, 180%);
  z-index: 300;
  display: flex; align-items: center; gap: 11px;
  font-size: 14px; font-weight: 500; color: var(--white);
  padding: 13px 22px; border-radius: 100px;
  box-shadow: var(--shadow);
  max-width: calc(100% - 28px);
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
}
.net-toast.show { transform: translate(-50%, 0); }
.net-toast.offline { background: #2A1417; border: 1px solid rgba(251,113,133,0.55); }
.net-toast.online  { background: var(--forest); border: 1px solid rgba(163,230,53,0.55); }
.net-toast .ico {
  width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0;
}
.net-toast.offline .ico { background: var(--coral); animation: blink 1.4s ease-in-out infinite; }
.net-toast.online  .ico { background: var(--lime); }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

/* ============================================================
   404 PAGE
   ============================================================ */
.nf {
  min-height: 100vh;
  display: grid; place-items: center; text-align: center;
  padding: 110px 24px 80px;
  color: var(--white);
  background: radial-gradient(120% 120% at 50% -10%, var(--forest-500) 0%, var(--forest) 45%, var(--forest-900) 100%);
  position: relative; overflow: hidden; isolation: isolate;
}
.nf::before, .nf::after {
  content: ''; position: absolute; z-index: -1;
  width: 480px; height: 480px; border-radius: 50%;
  filter: blur(100px); pointer-events: none;
}
.nf::before { background: var(--lime); top: -140px; left: -120px; opacity: 0.4; }
.nf::after  { background: var(--coral); bottom: -160px; right: -120px; opacity: 0.32; }
.nf-dots {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1.4px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(110% 90% at 50% 30%, #000 35%, transparent 78%);
          mask-image: radial-gradient(110% 90% at 50% 30%, #000 35%, transparent 78%);
}
.nf-inner { max-width: 600px; position: relative; }
.nf-stamp {
  font-size: 56px; line-height: 1; margin-bottom: 4px;
  display: inline-block; animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0) rotate(-6deg); }
  50%     { transform: translateY(-12px) rotate(6deg); }
}
.nf-code {
  font-family: 'Space Grotesk', sans-serif; font-weight: 700;
  font-size: clamp(110px, 26vw, 220px); line-height: 0.86;
  letter-spacing: -0.04em; margin-bottom: 10px;
}
.nf h1 {
  font-size: clamp(26px, 4.5vw, 40px); color: var(--white); margin-bottom: 16px;
}
.nf p {
  font-size: 16.5px; color: rgba(255,255,255,0.82);
  line-height: 1.65; max-width: 460px; margin: 0 auto 34px;
}
.nf-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 15px;
  color: var(--white); background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 15px 28px; border-radius: 100px;
  transition: background 0.2s, transform 0.15s;
}
.btn-ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }

/* ============================================================
   CONFETTI  (celebration burst on successful sign-up)
   ============================================================ */
.confetti-piece {
  position: fixed; top: -16px; z-index: 400;
  width: 9px; height: 15px; border-radius: 2px;
  pointer-events: none; will-change: transform, opacity;
  animation: confetti-fall linear forwards;
}
@keyframes confetti-fall {
  0%   { transform: translateY(0) rotateZ(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotateZ(720deg); opacity: 0; }
}

/* Pop-in for the success panel */
.success-state.show-success { display: block; animation: pop-in 0.55s cubic-bezier(0.16,1,0.3,1) both; }
@keyframes pop-in {
  0%   { opacity: 0; transform: scale(0.92) translateY(10px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}
.success-icon { animation: badge-pop 0.7s cubic-bezier(0.34,1.56,0.64,1) 0.1s both; }
@keyframes badge-pop {
  0%   { transform: scale(0) rotate(-30deg); }
  100% { transform: scale(1) rotate(0deg); }
}
