/* ============================================
   Dandali — Design Tokens & Global Foundations
   ============================================ */

/* -------------------------------------------
   CSS Custom Properties
   ------------------------------------------- */
:root {
  /* Colors — Canvas */
  --color-bg-rgb: 10, 8, 24;
  --color-bg: #0A0818;
  --color-bg-deep: #07060F;
  --color-surface-rgb: 17, 15, 36;
  --color-surface: #110F24;
  --color-surface-2: #1A1740;

  /* Colors — Gold Scale (OKLCH: L 0.72–0.84, C 0.12–0.14, H ~95) */
  --color-gold-rgb: 212, 184, 92;
  --color-gold: #D4B85C;
  --color-gold-light: #E8C97A;
  --color-gold-decorative: #BFA34D;
  --color-gold-surface: rgba(var(--color-gold-rgb), 0.08);
  --color-gold-glow: rgba(var(--color-gold-rgb), 0.15);
  --color-gold-hover: rgba(var(--color-gold-rgb), 0.10);

  /* Colors — Text */
  --color-text: #F0E6D3;
  --color-text-muted: #8A7B6A;
  --color-headline: #F5F0E8;

  /* Colors — Glass & Borders */
  --color-glass: rgba(255, 255, 255, 0.04);
  --color-glass-border: rgba(var(--color-gold-rgb), 0.12);
  --color-border-subtle: rgba(255, 255, 255, 0.06);

  /* Colors — State */
  --color-error: #F27B71;
  --color-success: #6EE7A8;
  --color-warning: #FBBF24;
  --color-focus: var(--color-gold);

  /* Backward-compat aliases */
  --color-parchment: var(--color-text);
  --color-parchment-muted: var(--color-text-muted);
  --color-white: var(--color-headline);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Lora', Georgia, serif;
  --font-ui: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing (4px base) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;
  --z-dev: 9999;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
}

/* -------------------------------------------
   Reset & Base
   ------------------------------------------- */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

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

body {
  background: var(--color-bg);
  color: var(--color-parchment);
  overflow-x: hidden;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: env(safe-area-inset-bottom);
}

/* -------------------------------------------
   Ambient Effects
   ------------------------------------------- */

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

/* Radial ambient glow (hero area) */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--color-gold-glow) 0%, transparent 70%);
}

/* -------------------------------------------
   Utility Classes
   ------------------------------------------- */

/* Glass Card */
.glass-card {
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
}

/* Section Wrapper */
.section-wrapper {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 80px);
  position: relative;
  z-index: var(--z-base);
}

/* Eyebrow Label */
.eyebrow {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: 16px;
}

/* Section Headline */
.section-headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.3;
  padding-top: 0.05em;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* -------------------------------------------
   Buttons
   ------------------------------------------- */

/* Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-bg);
  background: var(--color-gold);
  border: none;
  border-radius: var(--radius-full);
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo),
              background 0.3s var(--ease-in-out);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--color-gold-glow);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px var(--color-gold-glow);
  background: var(--color-gold-decorative);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-gold-light);
  outline-offset: 2px;
}

/* Ghost Button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-gold);
  background: transparent;
  border: 1px solid var(--color-gold);
  border-radius: var(--radius-full);
  padding: 14px 32px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s var(--ease-in-out),
              transform 0.3s var(--ease-out-expo),
              box-shadow 0.3s var(--ease-out-expo);
}

.btn-ghost:hover {
  background: var(--color-gold-hover);
  transform: translateY(-2px);
}

.btn-ghost:active {
  transform: translateY(0);
  background: var(--color-gold-surface);
  border-color: var(--color-gold-light);
}

.btn-ghost:focus-visible {
  outline: 2px solid var(--color-gold-light);
  outline-offset: 2px;
}

/* -------------------------------------------
   Input Base
   ------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="url"],
textarea,
select {
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-parchment);
  outline: none;
  width: 100%;
  transition: border-color 0.25s var(--ease-in-out);
}

input::placeholder,
textarea::placeholder {
  color: var(--color-parchment-muted);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--color-gold);
}

/* -------------------------------------------
   Header & Navigation
   ------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: env(safe-area-inset-top) clamp(20px, 5vw, 80px) 0;
  transition: background 0.35s var(--ease-in-out),
              backdrop-filter 0.35s var(--ease-in-out),
              -webkit-backdrop-filter 0.35s var(--ease-in-out),
              border-color 0.35s var(--ease-in-out);
}

.site-header.scrolled {
  background: rgba(var(--color-surface-rgb), 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-glass-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin-inline: auto;
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  z-index: 1010;
}

.logo-icon {
  flex-shrink: 0;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.12em;
}

/* Desktop Nav */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.btn-nav {
  padding: 10px 24px;
  font-size: 12px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 11px 8px;
  z-index: 1010;
  width: 44px;
  height: 44px;
}

.hamburger:focus-visible {
  outline: 2px solid var(--color-gold-light);
  outline-offset: 2px;
  border-radius: 4px;
}

.hamburger:active .hamburger-line {
  opacity: 0.7;
}

.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-gold);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out-expo),
              opacity 0.2s var(--ease-in-out);
  transform-origin: center;
}

/* Hamburger -> X animation */
.hamburger.active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Overlay */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 990;
  background: rgba(var(--color-bg-rgb), 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out-expo);
  pointer-events: none;
}

.mobile-overlay.open {
  transform: translateX(0);
  pointer-events: auto;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-10);
}

.mobile-nav-link {
  font-family: var(--font-display);
  font-size: clamp(28px, 6vw, 42px);
  color: var(--color-parchment);
  text-decoration: none;
  position: relative;
  transition: color 0.3s var(--ease-in-out);
}

.mobile-nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-gold);
  transition: width 0.3s var(--ease-out-expo);
}

.mobile-nav-link:hover,
.mobile-nav-link:focus-visible {
  color: var(--color-gold);
}

.mobile-nav-link:hover::after,
.mobile-nav-link:focus-visible::after {
  width: 100%;
}

/* -------------------------------------------
   Responsive — Mobile Nav
   ------------------------------------------- */

@media (max-width: 767px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: flex;
  }
}

/* -------------------------------------------
   Hero Section
   ------------------------------------------- */

#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  z-index: var(--z-base);
}

/* Hero background layers */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Radial glow overlay */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 20%, var(--color-gold-glow) 0%, transparent 70%);
}

/* Interlocking Arewa star pattern */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23D4B85C' stroke-width='0.8'%3E%3Cpolygon points='40,8 48,28 70,28 52,42 58,64 40,50 22,64 28,42 10,28 32,28'/%3E%3Cpolygon points='40,20 44,32 58,32 46,40 50,52 40,44 30,52 34,40 22,32 36,32'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 80px 80px;
}

.hero-content {
  position: relative;
  z-index: var(--z-base);
  max-width: 800px;
  padding-inline: clamp(20px, 5vw, 80px);
  padding-block: 120px 80px;
}

/* Pulse dot */
.pulse-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--color-gold);
  margin-right: 10px;
  vertical-align: middle;
  position: relative;
  top: -1px;
  animation: pulse-dot 2s ease-in-out infinite;
}

/* Eyebrow */
.hero-eyebrow {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-6);
}

/* Headline */
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(38px, 9vw, 96px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--color-white);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-6);
  min-width: 0;
}

.hero-line {
  display: block;
}

/* Gold shimmer text */
.gold-shimmer {
  background: linear-gradient(
    90deg,
    var(--color-gold) 0%,
    var(--color-gold-light) 25%,
    var(--color-gold) 50%,
    var(--color-gold-light) 75%,
    var(--color-gold) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gold-shimmer 3s ease-in-out infinite;
}

/* Sub-headline */
.hero-sub {
  font-family: var(--font-body);
  font-size: 20px;
  color: var(--color-parchment-muted);
  max-width: 520px;
  margin: 0 auto var(--space-8);
  line-height: 1.6;
}

/* CTAs */
.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  flex-wrap: wrap;
}

/* Social proof */
.hero-proof {
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-parchment-muted);
  margin-bottom: var(--space-10);
}

/* Scroll indicator */
.scroll-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  margin-top: var(--space-4);
}

.scroll-line {
  display: block;
  width: 1px;
  height: 40px;
  background: var(--color-gold);
  opacity: 0.35;
}

.scroll-dot {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-gold);
  animation: scroll-dot-drift 2.2s var(--ease-in-out) infinite;
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}

/* -------------------------------------------
   Hero Responsive — Tablet
   ------------------------------------------- */

@media (max-width: 768px) {
  .hero-content {
    padding-block: 100px 60px;
  }

  .hero-sub {
    font-size: 17px;
  }
}

/* -------------------------------------------
   Why Dandali Section
   ------------------------------------------- */

#why-dandali {
  padding-block: clamp(80px, 12vw, 140px);
  position: relative;
  z-index: var(--z-base);
  transform: none !important;
  left: auto !important;
  margin-left: 0 !important;
}

.why-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  gap: var(--space-16);
  align-items: center;
}

/* Left Column */
.why-left {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transform: none !important;
  left: auto !important;
  margin-left: 0 !important;
}

.why-left .section-headline {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  word-break: break-word;
  overflow-wrap: break-word;
  text-align: left;
}

.why-body {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.9;
  color: var(--color-parchment);
  margin-bottom: var(--space-6);
}

.why-rule {
  width: 60px;
  height: 2px;
  background: var(--color-gold);
  border: none;
  margin-bottom: var(--space-6);
  opacity: 0.6;
}

/* Right Column — Cards */
.why-right {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.why-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-left: 4px solid var(--color-gold);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  transition: transform 0.35s var(--ease-out-expo),
              box-shadow 0.35s var(--ease-out-expo);
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--color-gold-glow);
}

.why-card:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 4px 16px var(--color-gold-glow);
  transition: transform 0.1s var(--ease-out-expo),
              box-shadow 0.1s var(--ease-out-expo);
}

.why-card:focus-within {
  outline: 2px solid var(--color-gold-light);
  outline-offset: 2px;
}

.why-card-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-card-icon svg {
  display: block;
}

.why-card-text {
  flex: 1;
  min-width: 0;
}

.why-card-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-1);
}

.why-card-desc {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-parchment-muted);
  line-height: 1.6;
}

@media (max-width: 767px) {
  .why-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .why-body {
    font-size: 17px;
  }
}

/* -------------------------------------------
   Features Section — Stacked Flashcard Deck
   ------------------------------------------- */

#features {
  padding-block: clamp(80px, 12vw, 140px);
  position: relative;
  z-index: var(--z-base);
  transform: none !important;
  left: auto !important;
  margin-left: 0 !important;
}

.features-eyebrow {
  text-align: center;
}

.features-headline {
  text-align: center;
  margin-bottom: var(--space-3);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

.features-sub {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--color-parchment-muted);
  text-align: center;
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: var(--space-12);
}

/* Deck Container */
.features-deck {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 520px;
  margin-inline: auto;
}

/* Arrow Buttons */
.deck-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-gold);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease-in-out),
              box-shadow 0.3s var(--ease-out-expo),
              transform 0.3s var(--ease-out-expo);
  z-index: 20;
}

.deck-arrow:hover {
  background: var(--color-gold-hover);
  box-shadow: 0 4px 20px var(--color-gold-glow);
}

.deck-arrow:focus-visible {
  outline: 2px solid var(--color-gold-light);
  outline-offset: 2px;
}

.deck-arrow:active {
  transform: translateY(-50%) scale(0.95);
}

.deck-arrow-left {
  left: -64px;
}

.deck-arrow-right {
  right: -64px;
}

@media (max-width: 768px) {
  .deck-arrow-left {
    left: -12px;
  }
  .deck-arrow-right {
    right: -12px;
  }

  .deck-arrow {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 480px) {
  .deck-arrow-left {
    left: 0px;
  }
  .deck-arrow-right {
    right: 0px;
  }

  .deck-arrow {
    width: 36px;
    height: 36px;
  }

  .deck-arrow svg {
    width: 20px;
    height: 20px;
  }
}

/* Swipe Hint Animation for Mobile */
@keyframes swipe-hint {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(0, -2px, 0) rotate(1.5deg);
  }
  75% {
    transform: translate3d(0, -2px, 0) rotate(-1.5deg);
  }
}

@media (pointer: coarse) {
  .deck-card.active {
    animation: deck-float 4s cubic-bezier(0.4, 0, 0.2, 1) infinite,
               swipe-hint 3s ease-in-out infinite;
  }
}

@media (pointer: fine) {
  .deck-card.active {
    animation: deck-float 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  }
}

/* Card Stack */
.deck-stack {
  position: relative;
  width: 100%;
  min-height: 340px;
}

/* Individual Deck Card */
.deck-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: var(--space-8);
  opacity: 0;
  transform: translate3d(0, 40px, 0) scale(0.92);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
  backface-visibility: hidden;
}

.deck-card.active {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  pointer-events: auto;
  z-index: 10;
  animation: deck-float 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Cards behind the active one — stacked peek effect */
.deck-card[data-behind="1"] {
  opacity: 0.35;
  transform: translate3d(0, 12px, 0) scale(0.95);
  z-index: 8;
  pointer-events: none;
  filter: blur(2px);
}

.deck-card[data-behind="2"] {
  opacity: 0.15;
  transform: translate3d(0, 24px, 0) scale(0.90);
  z-index: 6;
  pointer-events: none;
  filter: blur(4px);
}

.deck-card[data-behind="3"] {
  opacity: 0.06;
  transform: translate3d(0, 36px, 0) scale(0.86);
  z-index: 4;
  pointer-events: none;
  filter: blur(6px);
}

/* Frosted glass background */
.deck-card.glass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(var(--color-gold-rgb), 0.15);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--radius-lg);
}

.deck-card.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: radial-gradient(ellipse at 50% 0%, var(--color-gold-surface), transparent 70%);
  pointer-events: none;
}

/* Floating keyframe */
@keyframes deck-float {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -8px, 0) scale(1.01);
  }
}

/* Slide-away exit */
.deck-card.slide-away {
  opacity: 0;
  transform: translate3d(-60px, 20px, 0) scale(0.85);
  transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Card counter indicator */
.deck-counter {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-parchment-muted);
  margin-top: var(--space-6);
  text-align: center;
}

/* Keep existing feature-card internals */
.feature-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
}

.feature-card-icon svg {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.45s var(--ease-out-expo);
}

.feature-card-icon svg path,
.feature-card-icon svg line,
.feature-card-icon svg circle,
.feature-card-icon svg rect,
.feature-card-icon svg text {
  stroke: var(--color-gold);
}

.feature-card-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.feature-card-rule {
  width: 32px;
  height: 1px;
  background: var(--color-gold);
  border: none;
  opacity: 0.3;
  margin-bottom: var(--space-4);
}

.feature-card-desc {
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.92);
}

/* Responsive — Deck */
@media (max-width: 480px) {
  .deck-stack {
    min-height: 380px;
  }

  .deck-card {
    padding: var(--space-6);
  }
}

/* -------------------------------------------
   How It Works Section
   ------------------------------------------- */

#how-it-works {
  padding-block: clamp(80px, 12vw, 140px);
  position: relative;
  z-index: var(--z-base);
}

.how-it-works-eyebrow {
  text-align: center;
}

.how-it-works-headline {
  text-align: center;
  margin-bottom: var(--space-10);
}

/* Pill Toggle */
.how-it-works-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-12);
}

.how-it-works-tabs {
  display: flex;
  position: relative;
  background: var(--color-surface);
  border-radius: var(--radius-full);
  padding: 4px;
  width: 280px;
  isolation: isolate;
}

.how-it-works-tabs::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--color-gold);
  border-radius: var(--radius-full);
  z-index: 0;
  transition: transform 0.35s var(--ease-out-expo);
}

.how-it-works-tabs.writers-active::after {
  transform: translateX(100%);
}

.how-it-works-tab {
  flex: 1;
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px 0;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-parchment-muted);
  transition: color 0.35s var(--ease-out-expo);
  border-radius: var(--radius-full);
}

.how-it-works-tab.active {
  color: var(--color-bg);
}

.how-it-works-tab:not(.active):hover {
  color: var(--color-gold-light);
}

.how-it-works-tab:focus-visible {
  outline: 2px solid var(--color-gold-light);
  outline-offset: -2px;
}

/* Panels Wrapper */
.how-it-works-panels {
  position: relative;
  display: grid;
}

.how-it-works-panel {
  grid-area: 1 / 1;
  transition: opacity 0.35s var(--ease-out-expo);
}

.how-it-works-panel.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Steps Grid */
.how-it-works-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

@media (max-width: 767px) {
  .how-it-works-steps {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
}

/* Step */
.how-it-works-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.how-it-works-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 78px;
  left: 50%;
  width: calc(100% + var(--space-8));
  border-top: 1px dashed var(--color-gold);
  opacity: 0.35;
  pointer-events: none;
}

@media (max-width: 767px) {
  .how-it-works-step:not(:last-child)::after {
    display: none;
  }
}

/* Step Number */
.how-it-works-step-num {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: 64px;
  color: var(--color-gold);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 22px;
  z-index: 2;
  position: relative;
}

.how-it-works-step-num::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid var(--color-gold);
  opacity: 0.55;
  margin: 6px auto 0;
}

/* Step Title */
.how-it-works-step-title {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-3);
  position: relative;
  z-index: 1;
}

/* Step Description */
.how-it-works-step-desc {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-parchment-muted);
  max-width: 320px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* -------------------------------------------
   Waitlist Section
   ------------------------------------------- */

#waitlist {
  padding-block: clamp(100px, 15vw, 160px);
  position: relative;
  background: var(--color-surface);
  overflow: hidden;
}

#waitlist::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse at center, var(--color-gold-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

#waitlist .section-wrapper {
  z-index: var(--z-base);
}

.waitlist-eyebrow {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

.waitlist-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 700;
  color: var(--color-white);
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: var(--space-4);
  line-height: 1.15;
}

.waitlist-sub {
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.75;
  color: var(--color-parchment-muted);
  text-align: center;
  max-width: 440px;
  margin-inline: auto;
  margin-bottom: var(--space-10);
}

/* Role Toggle */
.waitlist-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-10);
}

.waitlist-tabs {
  display: flex;
  position: relative;
  background: var(--color-surface-2);
  border-radius: var(--radius-full);
  padding: 4px;
  width: 300px;
  isolation: isolate;
}

.waitlist-tabs::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  background: var(--color-gold);
  border-radius: var(--radius-full);
  z-index: 0;
  transition: transform 0.3s var(--ease-out-expo);
}

.waitlist-tabs.writer-active::after {
  transform: translateX(100%);
}

.waitlist-tab {
  flex: 1;
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px 0;
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-parchment-muted);
  transition: color 0.3s var(--ease-out-expo);
  border-radius: var(--radius-full);
}

.waitlist-tab.active {
  color: var(--color-bg);
}

.waitlist-tab:not(.active):hover {
  color: var(--color-gold-light);
}

.waitlist-tab:focus-visible {
  outline: 2px solid var(--color-gold-light);
  outline-offset: -2px;
}

/* Panels */
.waitlist-panels {
  position: relative;
  display: grid;
  max-width: 600px;
  margin-inline: auto;
}

.waitlist-panel {
  grid-area: 1 / 1;
  transition: opacity 0.3s var(--ease-out-expo);
}

.waitlist-panel.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Form Inputs */
.waitlist-form input[type="text"],
.waitlist-form input[type="email"],
.waitlist-form select {
  background: var(--color-glass);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-parchment);
  outline: none;
  width: 100%;
  transition: border-color 0.2s var(--ease-in-out);
}

.waitlist-form input::placeholder {
  color: var(--color-parchment-muted);
}

.waitlist-form input:focus,
.waitlist-form select:focus {
  border-color: var(--color-gold);
}

/* Custom Select Arrow */
.waitlist-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23D4B85C' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 40px;
  cursor: pointer;
}

.waitlist-form select option {
  background: var(--color-surface);
  color: var(--color-parchment);
}

/* Field Styling */
.waitlist-field {
  margin-bottom: var(--space-4);
}

.waitlist-label {
  display: block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-2);
}

/* Genre Pills */
.waitlist-genres {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.waitlist-genre-check {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--color-parchment-muted);
  border: 1px solid var(--color-glass-border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: border-color 0.2s var(--ease-in-out),
              color 0.2s var(--ease-in-out),
              background 0.2s var(--ease-in-out);
}

.waitlist-genre-check input[type="checkbox"] {
  display: none;
}

.waitlist-genre-check:has(input:checked) {
  border-color: var(--color-gold);
  background: var(--color-gold);
  color: var(--color-bg);
}

.waitlist-genre-check:not(:has(input:checked)):hover {
  border-color: var(--color-gold-light);
  color: var(--color-text);
}

.waitlist-genre-check:focus-visible {
  outline: 2px solid var(--color-gold-light);
  outline-offset: 2px;
}

/* Submit Button */
.waitlist-submit {
  width: 100%;
  margin-top: var(--space-2);
}

.waitlist-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Success State */
.waitlist-success {
  text-align: center;
  padding: var(--space-10) 0;
}

.waitlist-checkmark {
  display: block;
  margin-inline: auto;
}

.waitlist-checkmark .checkmark-path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: checkmark-draw 0.6s var(--ease-out-expo) 0.1s forwards;
}

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

.waitlist-success-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 32px);
  color: var(--color-gold);
  margin-top: var(--space-6);
  opacity: 0;
  transform: translateY(16px);
  animation: success-title-in 0.5s var(--ease-out-expo) 0.25s forwards;
}

@keyframes success-title-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.waitlist-success-sub {
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--color-parchment-muted);
  margin-top: var(--space-3);
  opacity: 0;
  animation: success-sub-in 0.4s var(--ease-out-expo) 0.40s forwards;
}

@keyframes success-sub-in {
  to {
    opacity: 1;
  }
}

/* Toast Error */
.waitlist-toast {
  font-family: var(--font-ui);
  font-size: 13px;
  color: var(--color-error);
  text-align: center;
  padding: var(--space-3);
  margin-top: var(--space-3);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s var(--ease-out-expo),
              transform 0.3s var(--ease-out-expo);
}

.waitlist-toast.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -------------------------------------------
   Footer
   ------------------------------------------- */

.site-footer {
  background: var(--color-bg-deep);
  position: relative;
  padding: var(--space-12) var(--space-5);
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    rgba(var(--color-gold-rgb), 0.3) 50%,
    transparent 100%
  );
}

.footer-inner {
  max-width: 600px;
  margin-inline: auto;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}

.footer-logo {
  display: block;
  flex-shrink: 0;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--color-gold);
  letter-spacing: 0.06em;
}

.footer-dot {
  color: var(--color-parchment-muted);
  font-size: 16px;
}

.footer-tagline {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-parchment-muted);
}

.footer-legal {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--color-parchment-muted);
  letter-spacing: 0.03em;
}

/* -------------------------------------------
   Back to Top
   ------------------------------------------- */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-gold);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--color-gold-glow);
  opacity: 0;
  transform: scale(0.8);
  pointer-events: none;
  transition: opacity 0.3s var(--ease-out-expo),
              transform 0.3s var(--ease-out-expo);
  z-index: var(--z-sticky);
}

.back-to-top.visible {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  transform: scale(1.1);
  box-shadow: 0 0 32px var(--color-gold-glow);
}

.back-to-top:active {
  transform: scale(0.95);
}

.back-to-top:focus-visible {
  outline: 2px solid var(--color-gold-light);
  outline-offset: 3px;
}

/* -------------------------------------------
   Mobile Sticky CTA
   ------------------------------------------- */

.mobile-sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-surface);
  border-top: 1px solid var(--color-glass-border);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-sticky);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s var(--ease-out-expo),
              transform 0.35s var(--ease-out-expo);
}

.mobile-sticky-cta.hidden {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

.mobile-sticky-btn {
  width: 100%;
  text-align: center;
}

@media (min-width: 768px) {
  .mobile-sticky-cta {
    display: none;
  }
}

/* -------------------------------------------
   Page Intro Loader
   ------------------------------------------- */

.page-loader {
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  z-index: var(--z-dev);
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-loader-content {
  text-align: center;
}

.page-loader-text {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--color-gold);
  letter-spacing: 0.15em;
  display: block;
  margin-bottom: var(--space-4);
}

.page-loader-underline line {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
}

/* -------------------------------------------
   Custom Cursor
   ------------------------------------------- */

.custom-cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-gold);
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: var(--z-dev);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s var(--ease-out-expo),
              width 0.25s var(--ease-out-expo),
              height 0.25s var(--ease-out-expo);
}

.custom-cursor.visible {
  opacity: 1;
}

.custom-cursor.hovering {
  width: 25px;
  height: 25px;
}

@media (pointer: coarse) {
  .custom-cursor {
    display: none;
  }
}

/* -------------------------------------------
   Word Reveal
   ------------------------------------------- */

.word-reveal {
  display: inline-block;
  overflow: visible;
  vertical-align: bottom;
}

.word-reveal-inner {
  display: inline-block;
  transform: translateY(0);
  word-break: break-word;
  overflow-wrap: break-word;
  will-change: transform;
}

/* -------------------------------------------
   Stat Number
   ------------------------------------------- */

.stat-number {
  display: inline;
}

/* -------------------------------------------
   Skip Link
   ------------------------------------------- */

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--color-gold);
  color: var(--color-bg);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 600;
  padding: var(--space-3) var(--space-5);
  z-index: var(--z-dev);
  text-decoration: none;
  transition: top 0.2s var(--ease-out-expo);
}

.skip-link:focus {
  top: 0;
}

/* -------------------------------------------
   Global Focus Styles
   ------------------------------------------- */

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* ============================================
   RESPONSIVE — Ultrawide (≥1600px)
   ============================================ */

@media (min-width: 1600px) {
  .section-wrapper {
    max-width: 1440px;
  }

  .section-headline {
    font-size: 72px;
  }

  .hero-headline {
    font-size: 120px;
  }
}

/* ============================================
   RESPONSIVE — Tablet (≤768px)
   ============================================ */

/* Layout shifts */
@media (max-width: 768px) {
  .hero-content {
    padding-block: 100px 60px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .why-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .why-body {
    font-size: 17px;
  }

  .section-headline,
  .features-headline,
  .waitlist-headline {
    font-size: clamp(26px, 7vw, 40px);
    line-height: 1.3;
  }

  .section-wrapper {
    padding-inline: 20px;
  }

  .why-body,
  .features-sub,
  .how-it-works-step-desc,
  .waitlist-sub {
    font-size: 16px;
    line-height: 1.7;
  }

  .how-it-works-tabs {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
  }

  .how-it-works-tab {
    font-size: 11px;
    padding: 12px 0;
  }

  .deck-arrow-left {
    left: -12px;
  }
  .deck-arrow-right {
    right: -12px;
  }
  .deck-arrow {
    width: 40px;
    height: 40px;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

/* -------------------------------------------
   Mobile: hamburger nav + hero parallax disable
   ------------------------------------------- */
@media (max-width: 767px) {
  .mobile-nav-link {
    font-size: 32px;
  }

  .hero-bg {
    transform: none !important;
  }
}

/* -------------------------------------------
   Reduced Motion
   ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-headline,
  .hero-sub,
  .hero-ctas,
  .hero-proof,
  .scroll-indicator,
  .waitlist-success-title,
  .waitlist-success-sub {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .gold-shimmer {
    animation: none;
  }

  .word-reveal-inner {
    transform: translateY(0);
  }

  .back-to-top,
  .mobile-sticky-cta {
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   RESPONSIVE — 480px (Mobile)
   ============================================ */

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas .btn-primary,
  .hero-ctas .btn-ghost {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }

  .why-grid {
    gap: var(--space-4);
  }

  .how-it-works-steps {
    grid-template-columns: 1fr;
    gap: var(--space-10);
    position: relative;
  }

  .how-it-works-steps::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    border-left: 1px dashed var(--color-gold);
    opacity: 0.25;
    pointer-events: none;
  }

  .how-it-works-step {
    align-items: flex-start;
    padding-left: var(--space-6);
    border-left: 2px solid var(--color-gold);
    margin-left: 0;
  }

  .how-it-works-step:not(:last-child)::after {
    display: none;
  }

  .how-it-works-step-num {
    font-size: 48px;
    margin-bottom: 12px;
  }

  .waitlist-form input[type="text"],
  .waitlist-form input[type="email"],
  .waitlist-form select {
    min-height: 52px;
    font-size: 16px;
    width: 100%;
  }

  .waitlist-tabs {
    width: 100%;
    max-width: 320px;
  }

  .waitlist-tab {
    font-size: 12px;
    padding: 14px 0;
  }

  .waitlist-headline {
    font-size: clamp(28px, 7vw, 40px);
  }

  .waitlist-sub {
    font-size: 16px;
    max-width: 100%;
  }

  .deck-arrow-left {
    left: 0px;
  }
  .deck-arrow-right {
    right: 0px;
  }
  .deck-arrow {
    width: 36px;
    height: 36px;
  }
  .deck-arrow svg {
    width: 20px;
    height: 20px;
  }

  .back-to-top {
    bottom: 90px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  .back-to-top svg {
    width: 16px;
    height: 16px;
  }

  .page-loader-text {
    font-size: 24px;
    letter-spacing: 0.2em;
  }

  .page-loader-underline {
    width: 150px;
  }

  #why-dandali,
  #features,
  #how-it-works {
    padding-block: var(--space-12);
  }

  #waitlist {
    padding-block: var(--space-12);
  }
}

/* ============================================
   RESPONSIVE — 320px (iPhone SE)
   ============================================ */

@media (max-width: 374px) {
  .hero-headline {
    font-size: 32px;
  }

  .hero-content {
    padding-block: 80px 40px;
  }

  .section-headline {
    font-size: 26px;
  }

  .section-wrapper {
    padding-inline: 16px;
  }

  .why-card {
    padding: var(--space-4);
  }

  .deck-stack {
    min-height: 420px;
  }

  .deck-card {
    padding: var(--space-4);
  }

  .how-it-works-step-num {
    font-size: 36px;
    margin-bottom: 6px;
  }

  .how-it-works-tabs {
    width: 100%;
    max-width: 300px;
  }

  .how-it-works-tab {
    font-size: 10px;
    padding: 12px 0;
    letter-spacing: 0.12em;
  }

  .waitlist-form input[type="text"],
  .waitlist-form input[type="email"],
  .waitlist-form select {
    min-height: 52px;
    font-size: 16px;
  }

  .waitlist-tabs {
    width: 100%;
    max-width: 300px;
  }

  .waitlist-tab {
    font-size: 11px;
    padding: 14px 0;
    letter-spacing: 0.08em;
  }

  .footer-brand {
    font-size: 14px;
  }

  .back-to-top {
    bottom: 100px;
    right: 16px;
    width: 40px;
    height: 40px;
  }

  #why-dandali,
  #features,
  #how-it-works {
    padding-block: var(--space-8);
  }

  #waitlist {
    padding-block: var(--space-8);
  }
}
