/* ========================================
   DuckIn Landing Page
   Design tokens 1:1 from Flutter app
   ======================================== */

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input { font: inherit; }
a, button, [type="submit"] { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }

/* --- Design Tokens --- */
:root {
  /* Background & Surface */
  --bg: #F8F7F4;
  --surface: #FFFFFF;
  --surface-secondary: #F2F0ED;

  /* Text */
  --text-primary: #1A1A1A;
  --text-secondary: #8E8E93;
  --text-tertiary: #AEAEB2;

  /* Crowd — Calm (Emerald) */
  --calm: #22C55E;
  --calm-dark: #166534;
  --calm-start: #34D399;
  --calm-end: #10B981;
  --calm-shadow: rgba(34, 197, 94, 0.35);

  /* Crowd — Comfy (Amber) */
  --comfy: #F59E0B;
  --comfy-dark: #92400E;
  --comfy-start: #FBBF24;
  --comfy-end: #F59E0B;
  --comfy-shadow: rgba(245, 158, 11, 0.35);

  /* Crowd — Busy (Orange) */
  --busy: #F97316;
  --busy-dark: #9A3412;
  --busy-start: #FB923C;
  --busy-end: #F97316;
  --busy-shadow: rgba(249, 115, 22, 0.35);

  /* Crowd — Packed (Rose) */
  --packed: #EF4444;
  --packed-dark: #991B1B;
  --packed-start: #F43F5E;
  --packed-end: #E11D48;
  --packed-shadow: rgba(239, 68, 68, 0.35);

  /* Glass */
  --glass: rgba(255, 255, 255, 0.20);
  --glass-border: rgba(255, 255, 255, 0.15);
  --gloss: rgba(255, 255, 255, 0.25);

  /* Accents */
  --accent-blue: #60A5FA;
  --accent-pink: #F472B6;
  --accent-purple: #A855F7;

  /* Divider */
  --divider: #E5E5EA;

  /* Spacing (4px grid) */
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-xxl: 48px;
  --sp-3xl: 64px;
  --sp-4xl: 96px;

  /* Radius */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-full: 999px;

  /* Shadows */
  --shadow-subtle: 0 2px 12px rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 8px 24px rgba(0, 0, 0, 0.12);

  /* Fonts */
  --font-display: 'Rubik', sans-serif;
  --font-brand: 'Alfa Slab One', serif;
  --font-body: 'DM Sans', sans-serif;

  /* Durations */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Base --- */
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text-primary);
  background: var(--bg);
  overflow-x: hidden;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

/* --- Section Common --- */
.section-label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: var(--sp-md);
}

.section-label--light { color: rgba(255, 255, 255, 0.5); }

.section-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--text-primary);
  margin-bottom: var(--sp-md);
}

.section-title--light { color: #FFFFFF; }

.section-subtitle {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: var(--sp-xxl);
}

.section-subtitle--light { color: rgba(255, 255, 255, 0.6); }


/* ===========================
   NAV
   =========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--sp-md) var(--sp-lg);
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.nav--scrolled {
  background: rgba(248, 247, 244, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--divider);
  padding: var(--sp-sm) var(--sp-lg);
}

.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

.nav__logo { border-radius: 8px; }

.nav__name {
  font-family: var(--font-brand);
  font-size: 26px;
  color: var(--text-primary);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  margin-left: auto;
}

.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav__link:hover { color: var(--text-primary); }

.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--surface-secondary);
  border-radius: var(--r-full);
  padding: 2px;
  gap: 0;
}

.lang-toggle__btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--r-full);
  color: var(--text-tertiary);
  transition: all 0.2s var(--ease-spring);
  line-height: 1;
}

.lang-toggle__btn--active {
  background: var(--text-primary);
  color: white;
}

.lang-toggle__btn:hover:not(.lang-toggle__btn--active) {
  color: var(--text-primary);
}

.nav__cta {
  font-size: 14px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--calm-start), var(--calm-end));
  padding: 10px 22px;
  border-radius: var(--r-full);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
  box-shadow: 0 2px 8px var(--calm-shadow);
}

.nav__cta {
  animation: cta-glow 3s ease-in-out 1s infinite;
}

.nav__cta:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px var(--calm-shadow);
  animation: none;
}

.nav__menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.nav__menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav__menu-btn.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__menu-btn.active span:nth-child(2) { opacity: 0; }
.nav__menu-btn.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ===========================
   MOBILE MENU
   =========================== */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(248, 247, 244, 0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xl);
}

.mobile-menu__link {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  transition: color 0.2s;
}

.mobile-menu__link:hover { color: var(--calm); }

.mobile-menu__cta {
  font-size: 18px;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--calm-start), var(--calm-end));
  padding: 16px 36px;
  border-radius: var(--r-full);
  margin-top: var(--sp-md);
  box-shadow: 0 4px 16px var(--calm-shadow);
}


/* ===========================
   HERO
   =========================== */
.hero {
  padding-top: 120px;
  padding-bottom: var(--sp-4xl);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3xl);
}

.hero__content {
  flex: 1;
  min-width: 0;
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(42px, 6vw, 72px);
  letter-spacing: -2px;
  line-height: 1.05;
  color: var(--text-primary);
  margin-bottom: var(--sp-lg);
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: var(--sp-xl);
}

.hero__cities {
  color: var(--packed);
  font-weight: 700;
}

.social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
  animation: reveal-up 0.5s var(--ease-out) both;
}

.social-proof__text {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--calm-dark);
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 13px;
  color: var(--text-tertiary);
  margin-top: var(--sp-md);
}

.hero__trust-sep { color: var(--divider); }

/* Hero Phones — angled duo */
.hero__phones {
  flex-shrink: 0;
  perspective: 1000px;
  display: flex;
  align-items: center;
  animation: float 5s ease-in-out infinite;
}

.hero__device {
  transform-style: preserve-3d;
}

.hero__device--back {
  transform: rotateY(14deg) rotateZ(-2deg);
  z-index: 1;
}

.hero__device--back .device__frame {
  filter: drop-shadow(16px 24px 40px rgba(0, 0, 0, 0.22));
}

.hero__device--front {
  transform: rotateY(-8deg) rotateZ(1.5deg);
  margin-left: -52px;
  z-index: 2;
}

.hero__device--front .device__frame {
  filter: drop-shadow(12px 28px 44px rgba(0, 0, 0, 0.2));
}


/* ===========================
   BADGE
   =========================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--surface);
  padding: 8px 16px;
  border-radius: var(--r-full);
  border: 1px solid var(--divider);
  margin-bottom: var(--sp-lg);
}

.badge__dot {
  width: 8px;
  height: 8px;
  background: var(--calm);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

.badge__egg {
  width: 14px;
  height: 18px;
  background: linear-gradient(180deg, #FEFCE8 0%, #FDE68A 60%, #FBBF24 100%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  box-shadow: 0 1px 4px rgba(251, 191, 36, 0.3);
  animation: wobble 2.5s ease-in-out infinite;
}

@keyframes wobble {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-4deg); }
  75% { transform: rotate(4deg); }
}


/* ===========================
   DEVICE — iPhone 15 Pro Frame
   =========================== */
/* Device = screenshot + frame PNG overlay */
.device {
  position: relative;
  width: 260px;
  aspect-ratio: 1406 / 2822;
}

/* Frame PNG sits on top */
.device__frame {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  z-index: 2;
  pointer-events: none;
}

/* Screenshot sits behind, positioned inside the screen area */
.device__img {
  position: absolute;
  top: 3.5%;
  left: 7%;
  width: 86%;
  height: 93%;
  object-fit: cover;
  object-position: top;
  border-radius: 5.2%;
  z-index: 1;
}


/* ===========================
   WHY DUCKIN SECTION
   =========================== */
.why-duckin {
  padding: var(--sp-4xl) 0;
  background: var(--bg);
}

.why-duckin .section-title em {
  font-style: normal;
  color: var(--calm);
}

.diff-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-md);
  margin-top: var(--sp-xxl);
}

.diff-card {
  padding: var(--sp-lg);
  background: var(--surface);
  border-radius: var(--r-lg);
  border: 1px solid var(--divider);
  text-align: center;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

.diff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.diff-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  margin: 0 auto var(--sp-md);
}

.diff-card__icon--live {
  background: linear-gradient(135deg, var(--calm-start), var(--calm-end));
}

.diff-card__icon--signals {
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
}

.diff-card__icon--arrival {
  background: linear-gradient(135deg, var(--comfy-start), var(--comfy-end));
}

.diff-card__icon--transparent {
  background: linear-gradient(135deg, var(--accent-pink), var(--packed-start));
}

.diff-card__title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: var(--sp-sm);
}

.diff-card__desc {
  font-family: var(--font-body);
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.diff-card__desc strong {
  color: var(--text-primary);
}

.diff-card__desc em {
  font-style: normal;
  color: var(--calm);
  font-weight: 600;
}

/* ===========================
   DISCOVERY SECTION
   =========================== */
.discovery {
  padding: var(--sp-4xl) 0;
  background-color: var(--bg);
  position: relative;
  overflow: hidden;
}

/* BG image as pseudo-element for opacity control */
.discovery::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/discovery-bg.png') center / contain no-repeat;
  opacity: 0.45;
  z-index: 0;
  pointer-events: none;
}

.discovery > .container {
  position: relative;
  z-index: 1;
}

/* Floating 3D icons scattered around discovery */
.discovery__float {
  position: absolute;
  pointer-events: none;
  opacity: 0.35;
  z-index: 0;
}

/* 9 icons — large, soft, pulled inward */
.discovery__float--1 {
  width: 240px; height: 240px;
  top: 2%; left: 4%;
  transform: rotate(-8deg);
  animation: float 7s ease-in-out infinite;
}

.discovery__float--2 {
  width: 220px; height: 220px;
  bottom: 2%; left: 8%;
  transform: rotate(10deg);
  animation: float 8s ease-in-out 1.5s infinite;
}

.discovery__float--3 {
  width: 230px; height: 230px;
  top: 1%; left: 36%;
  transform: rotate(6deg);
  animation: float 6.5s ease-in-out 3s infinite;
}

/* park → left */
.discovery__float--4 {
  width: 225px; height: 225px;
  bottom: 3%; left: 6%;
  transform: rotate(-12deg);
  animation: float 7.5s ease-in-out 0.8s infinite;
}

/* burger → bottom-left */
.discovery__float--5 {
  width: 210px; height: 210px;
  bottom: 5%; left: 30%;
  transform: rotate(14deg);
  animation: float 6s ease-in-out 2.2s infinite;
}

/* gym → left */
.discovery__float--6 {
  width: 235px; height: 235px;
  top: 2%; left: 22%;
  transform: rotate(-5deg);
  animation: float 8.5s ease-in-out 4s infinite;
}

/* fastfood → right */
.discovery__float--7 {
  width: 200px; height: 200px;
  top: 36%; right: 6%;
  transform: rotate(-10deg);
  animation: float 7.2s ease-in-out 1s infinite;
}

.discovery__float--8 {
  width: 220px; height: 220px;
  top: 40%; right: 6%;
  transform: rotate(8deg);
  animation: float 6.8s ease-in-out 3.5s infinite;
}

.discovery__float--9 {
  width: 205px; height: 205px;
  bottom: 2%; left: 34%;
  transform: rotate(-6deg);
  animation: float 7.8s ease-in-out 2s infinite;
}

.discovery__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-3xl);
}

.discovery__text {
  flex: 1;
}

.discovery__phone {
  flex-shrink: 0;
  perspective: 1000px;
  position: relative;
  z-index: 5;
}

.discovery__phone .device {
  transform: rotateY(-10deg) rotateZ(2deg);
}


/* OLD MOCK CSS REMOVED — using real screenshots */
/* ============================================= */




/* ===========================
   WAITLIST FORM
   =========================== */
.waitlist-form {
  display: flex;
  max-width: 460px;
  border-radius: var(--r-full);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  border: 2px solid var(--divider);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.waitlist-form:focus-within {
  border-color: var(--calm);
  box-shadow: 0 4px 20px var(--calm-shadow);
}

.waitlist-form--center {
  margin: 0 auto;
}

.waitlist-form__input {
  flex: 1;
  border: none;
  padding: 16px 24px;
  font-size: 16px;
  background: var(--surface);
  outline: none;
  min-width: 0;
  color: var(--text-primary);
}

.waitlist-form__input::placeholder {
  color: var(--text-tertiary);
}

.waitlist-form__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: 16px 28px;
  background: linear-gradient(135deg, var(--calm-start), var(--calm-end));
  color: white;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity 0.2s, transform 0.2s var(--ease-spring);
  animation: cta-glow 3s ease-in-out infinite;
}

.waitlist-form__btn:hover {
  opacity: 0.92;
  transform: scale(1.02);
  animation: none;
}

/* Heart icon — inline with title, cardiac lub-dub */
.heart-icon {
  display: inline-block;
  vertical-align: middle;
  margin-left: 12px;
  margin-bottom: 4px;
  animation: heartbeat 1.3s ease-in-out infinite;
  will-change: transform;
}

@keyframes heartbeat {
  0%, 40%, 100% { transform: scale(1); }
  8% { transform: scale(1.25); }
  16% { transform: scale(1); }
  24% { transform: scale(1.15); }
  32% { transform: scale(1); }
}

@keyframes cta-glow {
  0%, 100% { box-shadow: 0 2px 12px rgba(34, 197, 94, 0.2); }
  50% { box-shadow: 0 4px 24px rgba(34, 197, 94, 0.45); }
}

.waitlist-form__btn:active {
  transform: scale(0.97);
}

.waitlist-form__spinner {
  display: none;
  animation: spin 0.8s linear infinite;
}

.waitlist-form.loading .waitlist-form__btn-text { display: none; }
.waitlist-form.loading .waitlist-form__spinner { display: block; }

/* Success State */
.waitlist-success {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--calm-dark);
  background: rgba(34, 197, 94, 0.1);
  padding: 14px 20px;
  border-radius: var(--r-full);
  max-width: 460px;
  animation: reveal-up 0.5s var(--ease-out);
}

.waitlist-success[hidden] { display: none; }


/* ===========================
   STATS
   =========================== */
.stats {
  padding: var(--sp-3xl) 0;
  background: #1A1A1A;
}

.stats__inner {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: var(--sp-xl);
}

.stat {
  text-align: center;
  opacity: 0;
  transform: scale(0.5) translateY(30px);
}

.stat--visible {
  animation: stat-pop 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes stat-pop {
  0% { opacity: 0; transform: scale(0.7) translateY(24px); }
  60% { opacity: 1; transform: scale(1.04) translateY(-2px); }
  80% { transform: scale(0.98) translateY(1px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 64px;
  letter-spacing: -2px;
  color: #FFFFFF;
  line-height: 1;
}

.stat__plus {
  font-size: 42px;
  color: var(--calm);
}

.stat__unit {
  font-size: 28px;
  font-weight: 800;
  color: rgba(255,255,255,0.5);
  margin-left: 2px;
}

.stat__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  margin-top: var(--sp-sm);
  text-transform: uppercase;
  letter-spacing: 2px;
}


/* ===========================
   CROWD LEVELS
   =========================== */
.crowd-levels {
  padding: var(--sp-4xl) 0;
  background: var(--surface);
}

.crowd-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-lg);
}

.crowd-card {
  position: relative;
  border-radius: var(--r-lg);
  padding: var(--sp-xl) var(--sp-lg) var(--sp-lg);
  color: white;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.crowd-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.crowd-card--calm {
  background: linear-gradient(150deg, var(--calm-start), var(--calm-end));
  box-shadow: 0 8px 24px var(--calm-shadow);
}
.crowd-card--calm:hover { box-shadow: 0 16px 40px var(--calm-shadow); }

.crowd-card--comfy {
  background: linear-gradient(150deg, var(--comfy-start), var(--comfy-end));
  box-shadow: 0 8px 24px var(--comfy-shadow);
}
.crowd-card--comfy:hover { box-shadow: 0 16px 40px var(--comfy-shadow); }

.crowd-card--busy {
  background: linear-gradient(150deg, var(--busy-start), var(--busy-end));
  box-shadow: 0 8px 24px var(--busy-shadow);
}
.crowd-card--busy:hover { box-shadow: 0 16px 40px var(--busy-shadow); }

.crowd-card--packed {
  background: linear-gradient(150deg, var(--packed-start), var(--packed-end));
  box-shadow: 0 8px 24px var(--packed-shadow);
}
.crowd-card--packed:hover { box-shadow: 0 16px 40px var(--packed-shadow); }

/* Glossy overlay */
.crowd-card__gloss {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0.06) 40%,
    transparent 60%
  );
  pointer-events: none;
}

/* 3D venue icon — inside card, bottom-right, fully visible */
.crowd-card__icon {
  position: absolute;
  right: 10px;
  bottom: 48px;
  width: 72px;
  height: 72px;
  object-fit: contain;
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}

.crowd-card__label {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -1px;
  line-height: 1;
  position: relative;
  z-index: 1;
}

.crowd-card__desc {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  opacity: 0.8;
  margin-top: var(--sp-sm);
  position: relative;
  z-index: 1;
}

/* Mini Timeline */
.mini-timeline {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 44px;
  margin-top: var(--sp-md);
  position: relative;
  z-index: 1;
}

.tl-block {
  flex: 1;
  height: 0;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 4px;
  transition: height 0.7s var(--ease-out);
}

.tl-animated .tl-block { height: var(--h); }
.tl-animated .tl-block:nth-child(1) { transition-delay: 0s; }
.tl-animated .tl-block:nth-child(2) { transition-delay: 0.05s; }
.tl-animated .tl-block:nth-child(3) { transition-delay: 0.10s; }
.tl-animated .tl-block:nth-child(4) { transition-delay: 0.15s; }
.tl-animated .tl-block:nth-child(5) { transition-delay: 0.20s; }
.tl-animated .tl-block:nth-child(6) { transition-delay: 0.25s; }
.tl-animated .tl-block:nth-child(7) { transition-delay: 0.30s; }
.tl-animated .tl-block:nth-child(8) { transition-delay: 0.35s; }

.tl-block--now {
  background: rgba(255, 255, 255, 0.85);
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 1px;
  animation: pulse-now 2s ease-in-out infinite;
}


/* ===========================
   HOW IT WORKS
   =========================== */
.how-it-works {
  padding: var(--sp-4xl) 0;
  background: var(--bg);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-top: var(--sp-xl);
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 0 var(--sp-lg);
}

.step__connector {
  display: flex;
  align-items: center;
  padding-top: 28px;
  flex-shrink: 0;
}

.step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 22px;
  color: white;
  margin: 0 auto var(--sp-md);
  box-shadow: var(--shadow-card);
}

.step__number--calm { background: linear-gradient(135deg, var(--calm-start), var(--calm-end)); box-shadow: 0 4px 16px var(--calm-shadow); }
.step__number--comfy { background: linear-gradient(135deg, var(--comfy-start), var(--comfy-end)); box-shadow: 0 4px 16px var(--comfy-shadow); }
.step__number--packed { background: linear-gradient(135deg, var(--packed-start), var(--packed-end)); box-shadow: 0 4px 16px var(--packed-shadow); }

.step__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text-primary);
  margin-bottom: var(--sp-sm);
}

.step__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}


/* ===========================
   FEATURES
   =========================== */
.features {
  padding: var(--sp-4xl) 0;
  background: var(--surface);
}

/* 18 Signals Grid */
.signals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-sm);
}

.signal-card {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
  padding: var(--sp-sm) var(--sp-md);
  background: var(--bg);
  border-radius: var(--r-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.signal-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.signal-card__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}

.signal-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.signal-card__desc {
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-secondary);
}


/* ===========================
   EVENTS SECTION
   =========================== */
.events {
  padding: var(--sp-4xl) 0;
  background: var(--surface);
}

.event-feed {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin-top: var(--sp-xxl);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.event-card {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  padding: var(--sp-md) var(--sp-lg);
  background: var(--bg);
  border-radius: var(--r-md);
  border: 1px solid var(--divider);
  transition: transform 0.2s var(--ease-spring), box-shadow 0.2s;
}

.event-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
}

.event-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}

.event-card__day {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.05em;
}

.event-card__num {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 900;
  color: var(--text-primary);
  line-height: 1;
}

.event-card__info {
  flex: 1;
  min-width: 0;
}

.event-card__tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: var(--r-full);
  margin-bottom: 4px;
}

.event-card__tag--sport { background: var(--calm); color: white; }
.event-card__tag--concert { background: var(--accent-pink); color: white; }
.event-card__tag--theater { background: var(--accent-purple); color: white; }
.event-card__tag--festival { background: var(--comfy); color: white; }

.event-card__title {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card__meta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.event-card__impact {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: var(--r-full);
  white-space: nowrap;
  flex-shrink: 0;
}

.event-card__impact--packed { background: var(--packed); color: white; }
.event-card__impact--busy { background: var(--busy); color: white; }
.event-card__impact--comfy { background: var(--comfy); color: white; }
.event-card__impact--calm { background: var(--calm); color: white; }

.events__note {
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: var(--sp-lg);
}

/* ===========================
   CITY PULSE (Dark Section)
   =========================== */
.city-pulse {
  padding: var(--sp-4xl) 0;
  background: #1A1A1A;
  position: relative;
  overflow: hidden;
}

/* Subtle gradient glow in background */
.city-pulse::before {
  content: '';
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(239, 68, 68, 0.12), transparent 70%);
  pointer-events: none;
}

/* Rhythm Bars */
.rhythm {
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-xxl);
}

.rhythm__labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: var(--sp-sm);
  padding: 0 2px;
}

.rhythm__bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 160px;
}

.rhythm__bar {
  flex: 1;
  height: 0;
  background: var(--c);
  border-radius: 6px 6px 4px 4px;
  opacity: 0.85;
  transition: height 0.8s var(--ease-out);
}

.rhythm.revealed .rhythm__bar {
  height: var(--h);
}

.rhythm__bar--now {
  opacity: 1;
  outline: 2px solid rgba(255, 255, 255, 0.3);
  outline-offset: 2px;
  animation: pulse-now 2s ease-in-out infinite;
}

/* Signal Pills */
.signals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  justify-content: center;
}

.signal {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: background 0.2s, border-color 0.2s;
}

.signal:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.15);
}

.signal__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.signal__dot--blue { background: var(--accent-blue); }
.signal__dot--orange { background: var(--busy); }
.signal__dot--amber { background: var(--comfy); }
.signal__dot--pink { background: var(--accent-pink); }
.signal__dot--green { background: var(--calm); }
.signal__dot--purple { background: var(--accent-purple); }
.signal__dot--cyan { background: #06B6D4; }
.signal__dot--indigo { background: #6366F1; }
.signal__dot--rose { background: var(--packed); }


/* ===========================
   FINAL CTA
   =========================== */
.final-cta {
  padding: var(--sp-4xl) 0;
  background: var(--bg);
  text-align: center;
}

.final-cta__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.final-cta .section-subtitle {
  text-align: center;
}

.final-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-top: var(--sp-xl);
}

.final-cta__badge svg {
  color: var(--text-tertiary);
}


/* ===========================
   FOOTER
   =========================== */
.footer {
  padding: var(--sp-3xl) 0;
  background: #1A1A1A;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-sm);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.footer__name {
  font-family: var(--font-brand);
  font-size: 22px;
  color: #F5F5F5;
}

.footer__tagline {
  font-size: 14px;
  font-style: italic;
  color: rgba(255,255,255,0.4);
}

.footer__dev {
  font-size: 13px;
  color: rgba(255,255,255,0.35);
  margin-top: var(--sp-md);
}

.footer__dev strong {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
}

.footer__dev-dot {
  margin: 0 3px;
  color: rgba(255,255,255,0.2);
}

.footer__bugs {
  color: var(--calm);
  font-weight: 500;
}

.footer__copy {
  font-size: 12px;
  color: rgba(255,255,255,0.2);
  margin-top: var(--sp-sm);
}


/* ===========================
   ANIMATIONS
   =========================== */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

@keyframes pulse-now {
  0%, 100% { outline-color: rgba(255, 255, 255, 0.6); }
  50% { outline-color: rgba(255, 255, 255, 0.15); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* (Mock animations removed — using real screenshots) */


/* ===========================
   SCROLL REVEAL
   =========================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

/* Staggered reveals */
.crowd-grid .crowd-card:nth-child(1) { transition-delay: 0s; }
.crowd-grid .crowd-card:nth-child(2) { transition-delay: 0.08s; }
.crowd-grid .crowd-card:nth-child(3) { transition-delay: 0.16s; }
.crowd-grid .crowd-card:nth-child(4) { transition-delay: 0.24s; }

.signals-grid .signal-card:nth-child(3n+1) { transition-delay: 0s; }
.signals-grid .signal-card:nth-child(3n+2) { transition-delay: 0.06s; }
.signals-grid .signal-card:nth-child(3n+3) { transition-delay: 0.12s; }

.steps .step:nth-child(1) { transition-delay: 0s; }
.steps .step__connector:nth-of-type(1) { transition-delay: 0.1s; }
.steps .step:nth-child(3) { transition-delay: 0.15s; }
.steps .step__connector:nth-of-type(2) { transition-delay: 0.25s; }
.steps .step:nth-child(5) { transition-delay: 0.3s; }

/* Stats entrance handled by JS (stat-pop + counter) */


/* ===========================
   RESPONSIVE
   =========================== */

/* Tablet */
@media (max-width: 1024px) {
  .hero__inner { gap: var(--sp-xl); }

  .device { width: 220px; }
  .hero__device--front { margin-left: -42px; }

  .discovery__inner { gap: var(--sp-xl); }

  .crowd-grid { grid-template-columns: repeat(2, 1fr); }
  .signals-grid { grid-template-columns: repeat(2, 1fr); }
  .diff-cards { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 767px) {
  .container { padding: 0 var(--sp-md); }

  /* Nav — brand left, lang toggle + hamburger right */
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .lang-toggle {
    margin-left: auto;
  }
  .lang-toggle__btn { padding: 4px 10px; font-size: 11px; }
  .nav__menu-btn {
    display: flex;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
  }

  .mobile-menu__inner { padding: 0 var(--sp-lg); }

  /* Hero */
  .hero {
    padding-top: 100px;
    padding-bottom: var(--sp-xxl);
    min-height: auto;
  }

  .hero__inner {
    flex-direction: column;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
  }

  .hero__trust { justify-content: center; flex-wrap: wrap; }

  .hero__phones {
    order: -1;
    margin-bottom: var(--sp-lg);
  }

  .device { width: 165px; }

  .hero__device--back { transform: rotateY(8deg) rotateZ(-1deg); }
  .hero__device--front { transform: rotateY(-4deg) rotateZ(0.5deg); margin-left: -20px; }

  /* Section common — tighter spacing on mobile */
  .section-subtitle { max-width: 100%; margin-bottom: var(--sp-xl); }

  /* Discovery — mobile */
  .discovery__float { display: none; }
  .discovery::after { display: none; }
  .discovery__inner {
    flex-direction: column-reverse;
    text-align: center;
  }

  .discovery__text .section-subtitle { margin-left: auto; margin-right: auto; }
  .discovery__phone .device { width: 220px; }

  /* Waitlist Form */
  .waitlist-form {
    flex-direction: column;
    border-radius: var(--r-lg);
    max-width: 100%;
  }

  .waitlist-form--center { width: 100%; }

  .waitlist-form__input {
    border-bottom: 1px solid var(--divider);
    text-align: center;
    padding: 14px 20px;
  }

  .waitlist-form__btn {
    padding: 14px 24px;
    min-height: 48px;
  }

  .waitlist-success {
    max-width: 100%;
    justify-content: center;
  }

  /* Stats */
  .stats__inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--sp-lg);
  }

  .stat__number { font-size: 48px; }
  .stat__plus { font-size: 32px; }
  .stat__unit { font-size: 20px; }
  .stat__label { font-size: 10px; }

  /* Crowd Levels */
  .crowd-levels { padding: var(--sp-3xl) 0; }

  .crowd-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: var(--sp-md);
    padding-bottom: var(--sp-md);
    margin: 0 calc(-1 * var(--sp-md));
    padding-left: var(--sp-md);
    padding-right: var(--sp-md);
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .crowd-grid::-webkit-scrollbar { display: none; }

  .crowd-card {
    flex: 0 0 260px;
    scroll-snap-align: center;
  }

  .crowd-card:active {
    transform: scale(0.97);
  }

  /* Events */
  .events { padding: var(--sp-3xl) 0; }
  .event-card { padding: var(--sp-sm) var(--sp-md); }
  .event-card__num { font-size: 20px; }
  .event-card__title { font-size: 0.85rem; }
  .event-card__impact { font-size: 10px; padding: 4px 10px; }

  /* Why DuckIn */
  .why-duckin { padding: var(--sp-3xl) 0; }
  .diff-cards { grid-template-columns: 1fr 1fr; gap: var(--sp-sm); }
  .diff-card { padding: var(--sp-md); }
  .diff-card__icon { width: 40px; height: 40px; }
  .diff-card__title { font-size: 0.9rem; }
  .diff-card__desc { font-size: 0.8rem; }

  /* How It Works */
  .how-it-works { padding: var(--sp-3xl) 0; }

  .steps {
    flex-direction: column;
    align-items: center;
    gap: var(--sp-lg);
  }

  .step { max-width: 100%; }
  .step__connector { display: none; }

  /* Features */
  .features { padding: var(--sp-3xl) 0; }

  .signals-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-sm);
  }

  /* City Pulse */
  .city-pulse { padding: var(--sp-3xl) 0; }

  .rhythm__bars { height: 120px; gap: 4px; }
  .rhythm__labels { font-size: 10px; }
  .heart-icon { width: 28px; height: 28px; margin-left: 8px; }

  .signals { gap: 6px; }
  .signal { padding: 10px 16px; font-size: 13px; }

  /* Final CTA */
  .final-cta { padding: var(--sp-3xl) 0; }

  /* Footer */
  .footer__name { font-size: 18px; }
  .footer__dev { text-align: center; }
}

/* Small mobile */
@media (max-width: 380px) {
  .hero__title { font-size: 36px; }
  .hero__subtitle { font-size: 15px; }
  .section-title { font-size: 28px; }
  .stat__number { font-size: 40px; }
  .stat__plus { font-size: 26px; }
  .stat__unit { font-size: 16px; }
  .crowd-card { flex: 0 0 230px; }
  .crowd-card__label { font-size: 28px; }

  .device { width: 140px; }
  .discovery__phone .device { width: 175px; }
  .hero__device--front { margin-left: -16px; }

  .signal { padding: 8px 14px; }
  .event-card__date { min-width: 36px; }
  .event-card__num { font-size: 18px; }
  .event-card__tag { font-size: 9px; }
  .diff-cards { grid-template-columns: 1fr; }
  .lang-toggle__btn { padding: 3px 8px; font-size: 10px; }
}

/* Reduced motion — disable decorative animations, keep functional ones */
@media (prefers-reduced-motion: reduce) {
  .hero__phones { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .stat { opacity: 1; transform: none; }
  .tl-block { height: var(--h); transition: none; }
  .badge__egg { animation: none; }
  .discovery__float { animation: none; }
}
