:root {
  --bg: #FEFAF5;
  --bg-alt: #F5EFE6;
  --fg: #1C1917;
  --fg-muted: #78716C;
  --accent: #F5B800;
  --accent-dark: #E0A800;
  --accent-text: #7A4F00;
  --teal: #0D9488;
  --teal-dark: #0F766E;
  --surface: #FFFFFF;
  --border: #E7E0D8;
  --font-display: 'Fredoka', sans-serif;
  --font-body: 'Nunito', sans-serif;
}

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

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* NAV */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254, 250, 245, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.nav-tagline {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* HERO */
.hero {
  padding: 80px 24px 100px;
  overflow: hidden;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--fg);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-highlight {
  color: var(--accent);
  -webkit-text-stroke: 2px var(--accent-dark);
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  max-width: 440px;
  line-height: 1.7;
}
.hero-coins {
  margin-top: 36px;
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 60px;
}
.coin-1 { animation: float 3s ease-in-out infinite; }
.coin-2 { animation: float 3s ease-in-out 0.5s infinite; }
.coin-3 { animation: float 3s ease-in-out 1s infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* PHONE MOCKUP */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}
.phone-mockup {
  width: 220px;
  height: 420px;
  background: #1A1A1A;
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.1);
  position: relative;
}
.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #1C2A3A 0%, #0F1C28 100%);
  border-radius: 28px;
  overflow: hidden;
}
.screen-game {
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.screen-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.screen-coins {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}
.screen-level {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
}
.screen-tap-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.tap-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, var(--accent-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-text);
  box-shadow: 0 0 30px rgba(245, 184, 0, 0.5);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(245, 184, 0, 0.4); }
  50% { transform: scale(1.06); box-shadow: 0 0 40px rgba(245, 184, 0, 0.7); }
}
.tap-particle {
  position: absolute;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent);
  animation: pop 1.5s ease-out infinite;
}
.tp-1 { top: 20%; left: 25%; animation-delay: 0s; }
.tp-2 { top: 15%; right: 25%; animation-delay: 0.4s; }
.tp-3 { bottom: 30%; left: 20%; animation-delay: 0.8s; }
@keyframes pop {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-30px); }
}
.screen-credits {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.credit-pack {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.credit-pack span { color: var(--accent); font-weight: 700; }
.cp-1 { border-left: 3px solid rgba(245,184,0,0.4); }
.cp-2 { border-left: 3px solid rgba(245,184,0,0.7); }
.cp-3 { border-left: 3px solid var(--accent); }

/* SECTION COMMON */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* GAMEPLAY / LOOP */
.gameplay {
  background: var(--bg-alt);
  padding: 80px 24px;
}
.gameplay-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.gameplay-header {
  text-align: center;
  margin-bottom: 60px;
}
.gameplay-header .section-sub { margin: 0 auto; }
.loop-steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: start;
}
.loop-step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 12px;
}
.step-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--fg);
}
.step-body p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}
.loop-arrow {
  display: flex;
  align-items: center;
  padding-top: 60px;
}

/* CREDITS SECTION */
.credits-section {
  padding: 100px 24px;
  background: var(--fg);
  color: #fff;
}
.credits-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.credits-visual {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 300px;
}
.stacked-coins {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}
.s-coin {
  width: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F5B800 0%, #E0A800 100%);
  box-shadow: 0 4px 20px rgba(245, 184, 0, 0.4);
}
.sc-1 { height: 60px; }
.sc-2 { height: 100px; }
.sc-3 { height: 140px; }
.sc-4 { height: 100px; }
.sc-5 { height: 60px; }
.credits-content .section-title { color: #fff; }
.credits-content .section-sub { color: rgba(255,255,255,0.6); }
.credit-tiers {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 32px 0;
}
.tier {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  padding: 16px 20px;
  transition: background 0.2s;
}
.tier:hover { background: rgba(255,255,255,0.1); }
.tier-featured {
  background: rgba(245, 184, 0, 0.12);
  border-color: rgba(245, 184, 0, 0.3);
}
.tier-icon { flex-shrink: 0; }
.tier-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.tier-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}
.tier-credits { font-size: 0.8rem; color: rgba(255,255,255,0.5); }
.tier-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
}
.credits-note {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px;
}

/* FEATURES */
.features { padding: 100px 24px; }
.features-inner { max-width: 1100px; margin: 0 auto; }
.features-header { text-align: center; margin-bottom: 60px; }
.features-header .section-sub { margin: 0 auto; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  margin-bottom: 20px;
}
.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--fg);
}
.feature-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* CLOSING */
.closing {
  padding: 100px 24px 120px;
  background: linear-gradient(160deg, #0F1C28 0%, #1C2A3A 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.closing-inner {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.closing-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(245,184,0,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.closing-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.closing-sub {
  font-size: 1rem;
  color: rgba(255,255,255,0.55);
  margin-bottom: 56px;
  line-height: 1.7;
}
.closing-stat-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent);
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-align: center;
  max-width: 120px;
  line-height: 1.4;
}
.stat-divider {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.12);
}

/* FOOTER */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 32px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--fg);
}
.footer-note { font-size: 0.8rem; color: var(--fg-muted); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; }
  .phone-mockup { width: 180px; height: 340px; }
  .tap-circle { width: 64px; height: 64px; font-size: 1rem; }
  .loop-steps { grid-template-columns: 1fr; gap: 16px; }
  .loop-arrow { display: none; }
  .credits-inner { grid-template-columns: 1fr; }
  .credits-visual { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .closing-stat-row { flex-direction: column; gap: 24px; }
  .stat-divider { width: 60px; height: 1px; }
}
@media (max-width: 480px) {
  .hero { padding: 60px 20px 80px; }
  .gameplay, .features { padding: 60px 20px; }
  .credits-section { padding: 60px 20px; }
  .closing { padding: 60px 20px 80px; }
}