/* === Base === */
:root {
  --accent: #030FED;
  --accent-dim: rgba(3,15,237,0.08);
  --accent-border: rgba(3,15,237,0.2);
  --bg: #ffffff;
  --surface: #f7f7f8;
  --surface-2: #eeeeef;
  --border: #e4e4e8;
  --text: #1a1a1a;
  --text-muted: #707078;
  --font: 'DM Sans', sans-serif;
  --font-display: 'Syne', sans-serif;
  --max-w: 1200px;
  --radius: 8px;
  --radius-lg: 12px;
}

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

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body { min-height: 100vh; }

/* === Nav === */
nav {
  position: relative;
  z-index: 10;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.nav-inner {
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff !important;
  background: var(--accent);
  padding: 8px 18px;
  border-radius: 6px;
  transition: opacity 0.2s, transform 0.15s;
}

.nav-cta:hover {
  opacity: 0.88;
  transform: scale(1.03);
}

/* === Hero === */
.hero {
  position: relative;
  z-index: 10;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px 48px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content { padding-bottom: 80px; }

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: 0.25em;
  color: var(--text);
  margin-bottom: 28px;
  text-transform: uppercase;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 460px;
  margin-bottom: 36px;
}

.cta-group {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-block;
  padding: 13px 28px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(3,15,237,0.2);
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(3,15,237,0.28);
}

.btn-secondary {
  display: inline-block;
  padding: 13px 24px;
  background: transparent;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-image-wrap {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.hero-image-wrap img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

.hero-smiski {
  position: absolute;
  bottom: -20px;
  left: -40px;
  width: 140px;
}

/* === Demo Section === */
.demo-section {
  position: relative;
  z-index: 10;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 48px 80px;
}

.demo-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 32px rgba(0,0,0,0.06);
}

.demo-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.demo-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0,0,0,0.12);
}
.demo-dot:first-child { background: #ff5f57; }
.demo-dot:nth-child(2) { background: #febc2e; }
.demo-dot:nth-child(3) { background: #28c840; }

.demo-label {
  margin-left: 8px;
  font-family: var(--font);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.demo-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  padding: 28px 32px;
  align-items: center;
}

.demo-col { display: flex; flex-direction: column; gap: 10px; }

.demo-col-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.demo-code {
  font-family: var(--font);
  font-size: 0.82rem;
  line-height: 1.7;
  padding: 16px 20px;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
}

.demo-code--raw {
  background: var(--bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.demo-code--clean {
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
}

.cm-line { display: block; }
.cm-keyword { color: #7c5cfc; }
.cm-fn { color: var(--accent); }
.cm-var { color: var(--text); }
.cm-dot { color: var(--accent); }

.demo-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* === Features === */
.features {
  position: relative;
  z-index: 10;
  padding: 80px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features-inner { max-width: var(--max-w); margin: 0 auto; }

.features-header {
  margin-bottom: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--text);
  text-transform: uppercase;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  padding: 32px 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  display: flex;
  gap: 20px;
  align-items: flex-start;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border-color: var(--accent-border);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  color: var(--accent);
  flex-shrink: 0;
}

.feature-text h3 {
  font-family: var(--font-display);
  font-size: 1.0rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 8px;
  color: var(--text);
}

.feature-text p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.features-mascot {
  display: flex;
  align-items: center;
  justify-content: center;
}

.features-mascot img {
  width: 120px;
  height: auto;
}

/* === Pricing === */
.pricing {
  position: relative;
  z-index: 10;
  padding: 100px 48px;
}

.pricing-inner { max-width: var(--max-w); margin: 0 auto; }

.pricing-header {
  text-align: center;
  margin-bottom: 60px;
}

.pricing-header .section-headline {
  display: block;
}

.pricing-header p {
  margin-top: 16px;
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.price-card {
  padding: 40px 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  position: relative;
}

.price-card--featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 4px 32px rgba(3,15,237,0.12);
}

.price-card--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 20px;
}

.price-tier {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 6px;
}

.price-amount span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.price-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.price-features li {
  font-size: 0.88rem;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.price-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.price-cta {
  display: block;
  width: 100%;
  padding: 13px;
  text-align: center;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 6px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.price-cta:hover {
  background: var(--accent);
  color: #fff;
}

.price-card--featured .price-cta {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.price-card--featured .price-cta:hover {
  opacity: 0.88;
}

.pricing-mascot {
  position: absolute;
  top: -30px;
  right: 40px;
  width: 100px;
}

/* === How It Works === */
.howitworks {
  position: relative;
  z-index: 10;
  padding: 80px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.hiw-inner { max-width: var(--max-w); margin: 0 auto; }

.hiw-header { margin-bottom: 60px; }

.hiw-steps {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 48px 1fr;
  gap: 0;
  align-items: start;
}

.hiw-step {
  padding: 0 20px 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hiw-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.05em;
  line-height: 1;
}

.hiw-content h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.hiw-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.hiw-divider {
  width: 1px;
  height: 100%;
  background: var(--border);
  margin: 0;
  align-self: stretch;
}

.hiw-mascot {
  width: 80px;
  height: auto;
}

/* === Manifesto === */
.manifesto {
  position: relative;
  z-index: 10;
  padding: 100px 48px;
  text-align: center;
}

.manifesto-inner { max-width: 700px; margin: 0 auto; }

.manifesto blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
  margin-bottom: 36px;
}

.manifesto p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

/* === Footer === */
footer {
  position: relative;
  z-index: 10;
  padding: 60px 48px;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  display: block;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 40px;
}

.footer-link-group h5 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-link-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-link-group a {
  font-size: 0.85rem;
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link-group a:hover { color: var(--accent); }

.footer-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  max-width: var(--max-w);
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* === Waitlist form === */
.waitlist-form { display: flex; gap: 8px; max-width: 460px; }
.waitlist-input {
  flex: 1; padding: 12px 16px; border-radius: 6px;
  border: 1px solid var(--border); background: var(--bg);
  color: var(--text); font-family: var(--font); font-size: 0.95rem;
  outline: none; transition: border-color 0.2s;
}
.waitlist-input:focus { border-color: var(--accent); }
.waitlist-btn {
  padding: 12px 22px; border-radius: 6px; border: none;
  background: var(--accent); color: #fff; font-family: var(--font);
  font-weight: 600; font-size: 0.9rem; cursor: pointer; white-space: nowrap;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 2px 8px rgba(3,15,237,0.2);
}
.waitlist-btn:hover { opacity: 0.88; transform: translateY(-1px); }

/* === Responsive === */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 60px 32px 0; gap: 40px; }
  .hero-image-wrap { justify-content: center; }
  .hero-image-wrap img { max-width: 400px; }
  .hero-content { padding-bottom: 60px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .hiw-steps { grid-template-columns: 1fr; gap: 0; }
  .hiw-divider { display: none; }
  .hiw-step { padding: 0 0 40px; }
  .demo-body { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 600px) {
  nav { padding: 16px 20px; }
  .hero { padding: 48px 20px 0; }
  .features { padding: 60px 20px; }
  .pricing { padding: 60px 20px; }
  .howitworks { padding: 60px 20px; }
  .manifesto { padding: 60px 20px; }
  footer { padding: 40px 20px; }
  .hero-headline { letter-spacing: 0.12em; }
  .section-headline { letter-spacing: 0.1em; }
  .footer-inner { flex-direction: column; gap: 24px; }
  .footer-links { flex-direction: column; gap: 24px; }
  .footer-meta { text-align: left; }
  .demo-section { padding: 0 20px 60px; }
  .waitlist-form { flex-direction: column; }
  .cta-group { flex-direction: column; align-items: flex-start; }
  .btn-primary, .btn-secondary { display: block; text-align: center; }
}

/* ============================================
   PART 2: ANIMATIONS, 3D EFFECTS & INTERACTIONS
   ============================================ */

/* === Scroll Progress Bar === */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 1000;
  transition: width 0.1s linear;
}

/* === Page-Load Block Curtain === */
.block-curtain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  display: flex;
  overflow: hidden;
}

.block {
  position: absolute;
  top: 0;
  height: 100%;
  width: 2%;
  background: var(--accent);
  transform: translateX(-100%);
}

.block-curtain--animate .block {
  animation: block-slide-in 0.18s ease-out forwards;
}

.block-curtain--hold .block {
  animation: none;
  transform: translateX(0);
}

.block-curtain--exit .block {
  animation: block-slide-out 0.2s ease-in forwards;
}

/* Stagger each block by its column index */
.block:nth-child(1)  { animation-delay: 0ms;    --col: 1; }
.block:nth-child(2)  { animation-delay: 12ms;  --col: 2; }
.block:nth-child(3)  { animation-delay: 24ms;  --col: 3; }
.block:nth-child(4)  { animation-delay: 36ms;  --col: 4; }
.block:nth-child(5)  { animation-delay: 48ms;  --col: 5; }
.block:nth-child(6)  { animation-delay: 60ms;  --col: 6; }
.block:nth-child(7)  { animation-delay: 72ms;  --col: 7; }
.block:nth-child(8)  { animation-delay: 84ms;  --col: 8; }
.block:nth-child(9)  { animation-delay: 96ms;  --col: 9; }
.block:nth-child(10) { animation-delay: 108ms; --col: 10; }
.block:nth-child(11) { animation-delay: 120ms; --col: 11; }
.block:nth-child(12) { animation-delay: 132ms; --col: 12; }
.block:nth-child(13) { animation-delay: 144ms; --col: 13; }
.block:nth-child(14) { animation-delay: 156ms; --col: 14; }
.block:nth-child(15) { animation-delay: 168ms; --col: 15; }
.block:nth-child(16) { animation-delay: 180ms; --col: 16; }
.block:nth-child(17) { animation-delay: 192ms; --col: 17; }
.block:nth-child(18) { animation-delay: 204ms; --col: 18; }
.block:nth-child(19) { animation-delay: 216ms; --col: 19; }
.block:nth-child(20) { animation-delay: 228ms; --col: 20; }
.block:nth-child(21) { animation-delay: 240ms; --col: 21; }
.block:nth-child(22) { animation-delay: 252ms; --col: 22; }
.block:nth-child(23) { animation-delay: 264ms; --col: 23; }
.block:nth-child(24) { animation-delay: 276ms; --col: 24; }
.block:nth-child(25) { animation-delay: 288ms; --col: 25; }
.block:nth-child(26) { animation-delay: 300ms; --col: 26; }
.block:nth-child(27) { animation-delay: 312ms; --col: 27; }
.block:nth-child(28) { animation-delay: 324ms; --col: 28; }
.block:nth-child(29) { animation-delay: 336ms; --col: 29; }
.block:nth-child(30) { animation-delay: 348ms; --col: 30; }
.block:nth-child(31) { animation-delay: 360ms; --col: 31; }
.block:nth-child(32) { animation-delay: 372ms; --col: 32; }
.block:nth-child(33) { animation-delay: 384ms; --col: 33; }
.block:nth-child(34) { animation-delay: 396ms; --col: 34; }
.block:nth-child(35) { animation-delay: 408ms; --col: 35; }
.block:nth-child(36) { animation-delay: 420ms; --col: 36; }
.block:nth-child(37) { animation-delay: 432ms; --col: 37; }
.block:nth-child(38) { animation-delay: 444ms; --col: 38; }
.block:nth-child(39) { animation-delay: 456ms; --col: 39; }
.block:nth-child(40) { animation-delay: 468ms; --col: 40; }
.block:nth-child(41) { animation-delay: 480ms; --col: 41; }
.block:nth-child(42) { animation-delay: 492ms; --col: 42; }
.block:nth-child(43) { animation-delay: 504ms; --col: 43; }
.block:nth-child(44) { animation-delay: 516ms; --col: 44; }
.block:nth-child(45) { animation-delay: 528ms; --col: 45; }
.block:nth-child(46) { animation-delay: 540ms; --col: 46; }
.block:nth-child(47) { animation-delay: 552ms; --col: 47; }
.block:nth-child(48) { animation-delay: 564ms; --col: 48; }
.block:nth-child(49) { animation-delay: 576ms; --col: 49; }
.block:nth-child(50) { animation-delay: 588ms; --col: 50; }

.block-curtain--exit .block:nth-child(1)  { animation-delay: 0ms; }
.block-curtain--exit .block:nth-child(2)  { animation-delay: 12ms; }
.block-curtain--exit .block:nth-child(3)  { animation-delay: 24ms; }
.block-curtain--exit .block:nth-child(4)  { animation-delay: 36ms; }
.block-curtain--exit .block:nth-child(5)  { animation-delay: 48ms; }
.block-curtain--exit .block:nth-child(6)  { animation-delay: 60ms; }
.block-curtain--exit .block:nth-child(7)  { animation-delay: 72ms; }
.block-curtain--exit .block:nth-child(8)  { animation-delay: 84ms; }
.block-curtain--exit .block:nth-child(9)  { animation-delay: 96ms; }
.block-curtain--exit .block:nth-child(10) { animation-delay: 108ms; }
.block-curtain--exit .block:nth-child(11) { animation-delay: 120ms; }
.block-curtain--exit .block:nth-child(12) { animation-delay: 132ms; }
.block-curtain--exit .block:nth-child(13) { animation-delay: 144ms; }
.block-curtain--exit .block:nth-child(14) { animation-delay: 156ms; }
.block-curtain--exit .block:nth-child(15) { animation-delay: 168ms; }
.block-curtain--exit .block:nth-child(16) { animation-delay: 180ms; }
.block-curtain--exit .block:nth-child(17) { animation-delay: 192ms; }
.block-curtain--exit .block:nth-child(18) { animation-delay: 204ms; }
.block-curtain--exit .block:nth-child(19) { animation-delay: 216ms; }
.block-curtain--exit .block:nth-child(20) { animation-delay: 228ms; }
.block-curtain--exit .block:nth-child(21) { animation-delay: 240ms; }
.block-curtain--exit .block:nth-child(22) { animation-delay: 252ms; }
.block-curtain--exit .block:nth-child(23) { animation-delay: 264ms; }
.block-curtain--exit .block:nth-child(24) { animation-delay: 276ms; }
.block-curtain--exit .block:nth-child(25) { animation-delay: 288ms; }
.block-curtain--exit .block:nth-child(26) { animation-delay: 300ms; }
.block-curtain--exit .block:nth-child(27) { animation-delay: 312ms; }
.block-curtain--exit .block:nth-child(28) { animation-delay: 324ms; }
.block-curtain--exit .block:nth-child(29) { animation-delay: 336ms; }
.block-curtain--exit .block:nth-child(30) { animation-delay: 348ms; }
.block-curtain--exit .block:nth-child(31) { animation-delay: 360ms; }
.block-curtain--exit .block:nth-child(32) { animation-delay: 372ms; }
.block-curtain--exit .block:nth-child(33) { animation-delay: 384ms; }
.block-curtain--exit .block:nth-child(34) { animation-delay: 396ms; }
.block-curtain--exit .block:nth-child(35) { animation-delay: 408ms; }
.block-curtain--exit .block:nth-child(36) { animation-delay: 420ms; }
.block-curtain--exit .block:nth-child(37) { animation-delay: 432ms; }
.block-curtain--exit .block:nth-child(38) { animation-delay: 444ms; }
.block-curtain--exit .block:nth-child(39) { animation-delay: 456ms; }
.block-curtain--exit .block:nth-child(40) { animation-delay: 468ms; }
.block-curtain--exit .block:nth-child(41) { animation-delay: 480ms; }
.block-curtain--exit .block:nth-child(42) { animation-delay: 492ms; }
.block-curtain--exit .block:nth-child(43) { animation-delay: 504ms; }
.block-curtain--exit .block:nth-child(44) { animation-delay: 516ms; }
.block-curtain--exit .block:nth-child(45) { animation-delay: 528ms; }
.block-curtain--exit .block:nth-child(46) { animation-delay: 540ms; }
.block-curtain--exit .block:nth-child(47) { animation-delay: 552ms; }
.block-curtain--exit .block:nth-child(48) { animation-delay: 564ms; }
.block-curtain--exit .block:nth-child(49) { animation-delay: 576ms; }
.block-curtain--exit .block:nth-child(50) { animation-delay: 588ms; }

@keyframes block-slide-in {
  from { transform: translateX(-100%); }
  to   { transform: translateX(0); }
}

@keyframes block-slide-out {
  from { transform: translateX(0); }
  to   { transform: translateX(200%); }
}

/* === Hero Entrance === */
.hero-image-wrap {
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.hero-image-wrap.hero-ready {
  opacity: 1;
  transform: scale(1);
}

/* === Scroll Reveal === */
.scroll-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease-out, transform 0.55s ease-out;
  will-change: opacity, transform;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.scroll-reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  will-change: opacity, transform;
}

.scroll-reveal-stagger.revealed > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
.scroll-reveal-stagger.revealed > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 100ms; }
.scroll-reveal-stagger.revealed > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 200ms; }
.scroll-reveal-stagger.revealed > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 300ms; }
.scroll-reveal-stagger.revealed > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 400ms; }

/* SMISKI character fade-in on scroll */
.smiski-char {
  opacity: 0;
  transition: opacity 0.7s ease-out;
  will-change: opacity;
}

.smiski-char.revealed {
  opacity: 1;
}

/* === 3D Card Effects === */
.feature-card {
  will-change: transform;
  transition: box-shadow 0.3s ease, border-color 0.3s ease,
              transform 0.3s ease, perspective 0.3s ease;
  transform-style: preserve-3d;
  perspective: 1000px;
}

.feature-card:hover {
  box-shadow: 0 8px 32px rgba(3,15,237,0.14), 0 2px 8px rgba(0,0,0,0.06);
  border-color: var(--accent);
  transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateZ(8px);
}

.price-card {
  will-change: transform;
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.price-card:hover {
  box-shadow: 0 8px 28px rgba(3,15,237,0.12), 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-5px);
}

.price-card--featured:hover {
  box-shadow: 0 12px 40px rgba(3,15,237,0.18), 0 2px 8px rgba(0,0,0,0.06);
  transform: translateY(-6px);
}

/* Character display cards — blue glow on hover */
.smiski-card {
  will-change: transform, box-shadow;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.smiski-card:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 20px rgba(3,15,237,0.25), 0 0 0 2px rgba(3,15,237,0.15);
}

.features-mascot img,
.hiw-mascot,
.hero-smiski {
  will-change: transform;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.features-mascot img:hover,
.hiw-mascot:hover,
.hero-smiski:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 16px rgba(3,15,237,0.2);
}

/* === SMISKI Character CSS Animations === */
/* Magnifying Glass — gentle side-to-side sway */
.smiski-magnifying {
  animation: smiski-sway 4s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes smiski-sway {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-3deg); }
  50%  { transform: rotate(0deg); }
  75%  { transform: rotate(3deg); }
  100% { transform: rotate(0deg); }
}

/* Waving Character — subtle waving arm */
.smiski-waving {
  animation: smiski-wobble 3.5s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes smiski-wobble {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(-2deg) translateY(-2px); }
  40%  { transform: rotate(2deg); }
  60%  { transform: rotate(-1deg); }
  80%  { transform: rotate(1deg) translateY(-1px); }
  100% { transform: rotate(0deg); }
}

/* Charting Character — tiny pulse/bounce */
.smiski-charting {
  animation: smiski-bounce 2.8s ease-in-out infinite;
  transform-origin: bottom center;
}

@keyframes smiski-bounce {
  0%   { transform: translateY(0); }
  30%  { transform: translateY(-3px); }
  60%  { transform: translateY(0); }
  80%  { transform: translateY(-1px); }
  100% { transform: translateY(0); }
}

/* Targeting Character — slow pulsing reticle */
.smiski-targeting {
  animation: smiski-pulse 3s ease-in-out infinite;
  transform-origin: center center;
}

@keyframes smiski-pulse {
  0%   { transform: scale(1); opacity: 1; }
  50%  { transform: scale(1.04); opacity: 0.85; }
  100% { transform: scale(1); opacity: 1; }
}

/* === Micro-interactions === */

/* Link hover — underline slides in from left */
.nav-links a,
.footer-link-group a,
a:not(.btn-primary):not(.btn-secondary):not(.price-cta):not(.nav-cta) {
  position: relative;
  text-decoration: none;
}

.nav-links a::after,
.footer-link-group a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.footer-link-group a:hover::after {
  width: 100%;
}

/* Button press feedback */
.btn-primary:active,
.btn-secondary:active,
.price-cta:active,
.nav-cta:active,
.waitlist-btn:active {
  transform: scale(0.97) !important;
  transition: transform 0.08s ease !important;
}

/* Form inputs — focus glow */
.waitlist-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(3,15,237,0.12);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist-input {
  transition: border-color 0.2s, box-shadow 0.2s;
}

/* === Nav Sticky Scroll Behavior === */
nav {
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}

nav.nav--scrolled {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
}

/* === prefers-reduced-motion === */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-reveal,
  .scroll-reveal-stagger > *,
  .smiski-char {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-image-wrap {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .feature-card:hover,
  .price-card:hover,
  .smiski-card:hover,
  .features-mascot img:hover,
  .hiw-mascot:hover,
  .hero-smiski:hover {
    transform: none !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04) !important;
    border-color: var(--border) !important;
  }

  .block-curtain {
    display: none !important;
  }

  nav.nav--scrolled {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
  }
}