/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* PURPLE/GOLD BRAND PALETTE */
  --purple: #7C3AED;
  --purple-dark: #5B21B6;
  --purple-light: #EDE9FE;
  --purple-muted: #A78BFA;
  --gold: #F59E0B;
  --gold-dark: #D97706;
  --gold-light: #FEF3C7;

  --bg: #FAF9FB;
  --bg-purple: #F5F0FF;
  --fg: #1E1B4B;
  --surface: #fff;
  --surface-purple: #FAF5FF;
  --muted: #6B7280;
  --border: #E5E0F5;
  --tag-bg: #EDE9FE;
  --tag-fg: #5B21B6;
  --card-bg: #fff;
  --card-border: #EDE9FE;
  --card-radius: 16px;
  --shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
  --shadow-lg: 0 16px 48px rgba(124, 58, 237, 0.14);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

a { color: var(--purple); }
a:hover { color: var(--purple-dark); }

/* === HEADER === */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 249, 251, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--fg);
}

.logo-icon { font-size: 22px; line-height: 1; }

.logo-text {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 18px;
}

.header-nav {
  display: flex;
  gap: 32px;
}

.header-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.header-nav a:hover { color: var(--fg); }
.header-nav a.active { color: var(--purple); }

/* CTA button in nav */
.btn-cta {
  background: var(--purple);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-cta:hover { background: var(--purple-dark); transform: translateY(-1px); }

/* === HERO === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 40%, var(--purple-light) 0%, var(--bg) 70%);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 70% 20%, rgba(124,58,237,0.08) 0%, transparent 60%),
              radial-gradient(ellipse 40% 40% at 20% 80%, rgba(245,158,11,0.06) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-light);
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-badge span { font-size: 16px; }

.hero h1 {
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--fg);
}

.hero h1 em {
  font-style: normal;
  color: var(--purple);
}

.hero-subtitle {
  font-size: 18px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 460px;
}

.hero-mantra {
  font-size: 14px;
  color: var(--gold-dark);
  font-weight: 600;
  margin-top: -20px;
  margin-bottom: 24px;
  font-style: italic;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: #fff;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(124,58,237,.28);
}

.btn-primary:hover {
  background: var(--purple-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--fg);
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--border);
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-secondary:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.hero-visual {
  position: relative;
}

.hero-card-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  max-width: 420px;
  margin: 0 auto;
}

.hero-card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--card-radius);
  background: var(--surface);
  border: 1.5px solid var(--card-border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero-card:nth-child(1) {
  transform: rotate(-4deg) translateY(8px);
  z-index: 1;
}

.hero-card:nth-child(2) {
  transform: rotate(2deg) translateY(-4px) translateX(12px);
  z-index: 2;
}

.hero-card:nth-child(3) {
  transform: rotate(-1deg);
  z-index: 3;
}

.hero-card-img {
  width: 100%;
  height: 55%;
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple-muted) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

.hero-card-body {
  padding: 20px;
}

.hero-card-park {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
  margin-bottom: 6px;
}

.hero-card-title {
  font-size: 18px;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  margin-bottom: 6px;
}

.hero-card-price {
  font-size: 14px;
  color: var(--muted);
}

.hero-swipe-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--gold);
  color: #fff;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 16px rgba(245,158,11,.4);
  z-index: 4;
}

/* === STATS BAR === */
.stats-bar {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 24px;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 64px;
}

.stat-item { text-align: center; }

.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--purple);
  display: block;
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

/* === SECTION === */
.section {
  padding: 96px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 12px;
}

.section h2 {
  font-size: clamp(32px, 4vw, 48px);
  margin-bottom: 16px;
}

.section-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* === HOW IT WORKS === */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.how-card {
  background: var(--surface);
  border: 1.5px solid var(--card-border);
  border-radius: var(--card-radius);
  padding: 32px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.how-card:hover {
  border-color: var(--purple);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.how-icon {
  width: 56px;
  height: 56px;
  background: var(--purple-light);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.how-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.how-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* === DISHES SHOWCASE === */
.dishes-bg { background: var(--bg-purple); }

.dishes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.dish-card {
  background: var(--card-bg);
  border: 1.5px solid var(--card-border);
  border-radius: var(--card-radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.dish-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--purple-light) 0%, var(--purple-muted) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

.dish-body { padding: 16px; }

.dish-park {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--purple);
  margin-bottom: 4px;
}

.dish-name {
  font-family: 'Playfair Display', serif;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.dish-price {
  font-size: 14px;
  color: var(--muted);
}

/* === CTA SECTION === */
.cta-section {
  background: var(--purple-dark);
  color: #fff;
  padding: 96px 24px;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(36px, 4vw, 52px);
  color: #fff;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.7);
  max-width: 480px;
  margin: 0 auto 40px;
}

.cta-section .btn-primary {
  background: var(--gold);
  color: var(--fg);
  box-shadow: 0 4px 24px rgba(245,158,11,.4);
}

.cta-section .btn-primary:hover {
  background: var(--gold-dark);
  box-shadow: 0 8px 32px rgba(245,158,11,.5);
}

/* === FOOTER === */
footer {
  background: var(--fg);
  color: rgba(255,255,255,0.5);
  padding: 32px 24px;
  text-align: center;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* === GAME PAGE === */
.game-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 40px;
  background: var(--bg-purple);
}

.game-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245, 240, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--purple);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.game-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--purple);
  letter-spacing: 0.02em;
}

.game-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.progress-track {
  width: 120px;
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  border-radius: 4px;
  transition: width 0.4s ease;
}

.game-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

/* Card Stack */
.card-stack {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
}

.game-card {
  position: absolute;
  inset: 0;
  background: var(--surface);
  border: 2px solid var(--card-border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: grab;
  user-select: none;
  transition: transform 0.1s;
}

.game-card:active { cursor: grabbing; }

.card-img {
  width: 100%;
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}

.card-body {
  flex: 1;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.card-park {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple);
  margin-bottom: 8px;
}

.card-name {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.tag {
  background: var(--tag-bg);
  color: var(--tag-fg);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
}

.card-price {
  font-size: 18px;
  font-weight: 700;
  color: var(--gold-dark);
  margin-top: 12px;
}

/* Swipe overlays */
.swipe-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  border-radius: 20px;
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
  z-index: 10;
}

.swipe-savor {
  background: rgba(124,58,237,0.18);
  color: var(--purple);
  border: 3px solid var(--purple);
}

.swipe-skip {
  background: rgba(245,158,11,0.12);
  color: var(--gold-dark);
  border: 3px solid var(--gold);
}

/* Action Buttons */
.game-actions {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-top: 32px;
}

.action-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: var(--shadow);
}

.action-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-lg);
}

.action-btn:active {
  transform: scale(0.95);
}

.skip-btn {
  background: var(--surface);
  color: var(--gold-dark);
  border: 2px solid var(--gold);
}

.savor-btn {
  background: var(--purple);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,.3);
}

/* Profile Summary — SAVOR RANK */
.profile-summary {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.profile-title {
  font-size: 36px;
  margin-bottom: 8px;
}

.profile-sub {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 40px;
}

.profile-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.profile-card {
  background: var(--surface);
  border: 1.5px solid var(--card-border);
  border-radius: 14px;
  padding: 20px 16px;
}

.profile-card-icon { font-size: 28px; margin-bottom: 8px; }
.profile-card-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--purple); margin-bottom: 4px; }
.profile-card-value { font-size: 15px; font-weight: 600; }

.profile-taste-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 32px;
}

.profile-restart {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--purple);
  color: #fff;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.profile-restart:hover { background: var(--purple-dark); }

/* Empty state */
.game-empty {
  text-align: center;
  padding: 60px 24px;
}

.game-empty h2 { font-size: 32px; margin-bottom: 12px; }
.game-empty p { color: var(--muted); font-size: 16px; }

/* Swipe feedback animation */
@keyframes swipeRight {
  to { transform: translateX(150%) rotate(20deg); opacity: 0; }
}
@keyframes swipeLeft {
  to { transform: translateX(-150%) rotate(-20deg); opacity: 0; }
}
.card-exit-right { animation: swipeRight 0.35s forwards; }
.card-exit-left { animation: swipeLeft 0.35s forwards; }

/* Responsive */
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .stats-inner { gap: 32px; }
  .how-grid { grid-template-columns: 1fr; }
  .dishes-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-cards { grid-template-columns: 1fr; }
  .game-actions { gap: 24px; }
  .action-btn { width: 64px; height: 64px; font-size: 24px; }
}