/* =====================================================================
   WealthWave Idle Tycoon — Official Website Stylesheet
   Design language: dark luxury fintech. Navy ledger background, gold
   ink accents, serif display type for figures, quiet grid body copy.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------------------- */
:root {
  /* Color */
  --bg-primary: #0F172A;
  --bg-panel: #141F38;
  --bg-panel-alt: #101B31;
  --bg-elevated: #1A2544;
  --line: #22304D;
  --line-soft: #1B2740;

  --gold: #FFD700;
  --gold-dim: #C9A227;
  --gold-soft: rgba(255, 215, 0, 0.12);

  --white: #F8FAFC;
  --light-gray: #94A3B8;
  --gray-dim: #64748B;
  --emerald: #10B981;
  --emerald-soft: rgba(16, 185, 129, 0.14);

  /* Type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", "Courier New", monospace;

  /* Layout */
  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;

  --shadow-card: 0 20px 50px -20px rgba(0, 0, 0, 0.55);
  --shadow-gold: 0 12px 30px -10px rgba(255, 215, 0, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------------------------------------------------------------------
   2. Reset & base
   --------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

section { position: relative; }

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--bg-primary);
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  z-index: 999;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

/* Eyebrow / label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: var(--space-2);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--gold-dim);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-5);
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  color: var(--white);
}
.section-title em {
  font-style: normal;
  color: var(--gold);
}

.section-lede {
  margin-top: var(--space-2);
  color: var(--light-gray);
  font-size: 17px;
  line-height: 1.7;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, #FFE58A, var(--gold) 45%, var(--gold-dim));
  color: #14100A;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(255, 215, 0, 0.4); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--gold-dim); color: var(--gold); }

/* Google Play badge (placeholder, built in CSS/SVG — no external asset needed) */
.play-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 16px;
  background: #000;
  border: 1px solid #2b2b2b;
  border-radius: 12px;
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease);
}
.play-badge:hover { transform: translateY(-2px); border-color: var(--gold-dim); }
.play-badge svg { width: 26px; height: 26px; flex-shrink: 0; }
.play-badge .badge-copy { line-height: 1.2; }
.play-badge .badge-copy small { display: block; font-size: 10px; color: #aaa; letter-spacing: 0.04em; }
.play-badge .badge-copy strong { display: block; font-size: 16px; font-family: var(--font-display); color: #fff; }

/* ---------------------------------------------------------------------
   3. Header / Nav
   --------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--space-3);
  max-width: var(--container);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--white);
}
.brand img { width: 34px; height: 34px; }
.brand .brand-sub { display: block; font-family: var(--font-mono); font-size: 10px; color: var(--gold-dim); letter-spacing: 0.14em; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}
.nav-links a {
  font-size: 14px;
  color: var(--light-gray);
  transition: color 0.25s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--white); }
.nav-links a.current { color: var(--gold); }

.nav-cta { display: flex; align-items: center; gap: var(--space-2); }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  color: var(--white);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------------------------------------------------------------------
   4. Hero
   --------------------------------------------------------------------- */
.hero {
  padding: var(--space-6) 0 var(--space-5);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-5);
  align-items: center;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero-copy h1 .accent { color: var(--gold); }

.hero-sub {
  margin-top: var(--space-3);
  font-size: 18px;
  color: var(--light-gray);
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: var(--space-4);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

/* Signature element: live idle-earnings ticker */
.hero-ticker {
  margin-top: var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-alt));
}
.hero-ticker .ticker-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16,185,129,0.55);
  animation: pulseDot 2s infinite;
  flex-shrink: 0;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(16,185,129,0.5); }
  70% { box-shadow: 0 0 0 9px rgba(16,185,129,0); }
  100% { box-shadow: 0 0 0 0 rgba(16,185,129,0); }
}
.hero-ticker .ticker-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--light-gray);
  text-transform: uppercase;
}
.hero-ticker .ticker-value {
  font-family: var(--font-mono);
  font-size: 24px;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.hero-ticker .ticker-sub {
  font-size: 11px;
  color: var(--gray-dim);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -10% -10% -10% 10%;
  background: radial-gradient(closest-side, rgba(255,215,0,0.16), transparent 70%);
  filter: blur(10px);
  z-index: 0;
}

.phone-frame {
  position: relative;
  z-index: 1;
  width: min(300px, 78vw);
  border-radius: 42px;
  padding: 10px;
  background: linear-gradient(160deg, #222c46, #0b1220);
  box-shadow: var(--shadow-card), 0 0 0 1px var(--line-soft);
  animation: floatY 6s ease-in-out infinite;
}
.phone-frame img { border-radius: 34px; }

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ambient growth-chart line behind hero */
.hero-chart-line {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 100%;
  height: auto;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

/* ---------------------------------------------------------------------
   5. About
   --------------------------------------------------------------------- */
.about {
  padding: var(--space-6) 0;
  border-top: 1px solid var(--line-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-5);
  align-items: start;
}

.about-copy p {
  color: var(--light-gray);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: var(--space-3);
}
.about-copy p:last-child { margin-bottom: 0; }

.mechanics-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
}
.mechanics-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14.5px;
  color: var(--white);
}
.mechanics-list li .mech-index {
  font-family: var(--font-mono);
  color: var(--gold-dim);
  font-size: 12px;
}

/* ---------------------------------------------------------------------
   6. Feature cards
   --------------------------------------------------------------------- */
.features { padding: var(--space-6) 0; border-top: 1px solid var(--line-soft); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-3);
}

.feature-card {
  background: linear-gradient(180deg, var(--bg-panel), var(--bg-panel-alt));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gold-soft);
  color: var(--gold);
  margin-bottom: var(--space-2);
}
.feature-icon svg { width: 22px; height: 22px; }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 14px;
  color: var(--light-gray);
  line-height: 1.65;
}

/* ---------------------------------------------------------------------
   7. Why play
   --------------------------------------------------------------------- */
.why { padding: var(--space-6) 0; border-top: 1px solid var(--line-soft); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.why-item {
  padding: var(--space-3) 0;
  border-top: 1px solid var(--line);
}
.why-item .why-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gold-dim);
  letter-spacing: 0.1em;
}
.why-item h3 {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--white);
}
.why-item p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--light-gray);
  line-height: 1.7;
}

/* ---------------------------------------------------------------------
   8. Screenshots
   --------------------------------------------------------------------- */
.gallery { padding: var(--space-6) 0; border-top: 1px solid var(--line-soft); }

.gallery-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
}

.gallery-frame {
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #222c46, #0b1220);
  box-shadow: var(--shadow-card);
  transition: transform 0.4s var(--ease);
}
.gallery-frame:hover { transform: translateY(-8px); }
.gallery-frame img { border-radius: 26px; }
.gallery-caption {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  color: var(--light-gray);
}

/* ---------------------------------------------------------------------
   9. Download CTA
   --------------------------------------------------------------------- */
.download-cta {
  margin: var(--space-6) 0;
}
.download-panel {
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  background:
    radial-gradient(circle at 15% 20%, rgba(255,215,0,0.14), transparent 45%),
    linear-gradient(150deg, var(--bg-elevated), var(--bg-panel-alt));
  border: 1px solid var(--line);
  text-align: center;
}
.download-panel h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3.6vw, 38px);
  color: var(--white);
}
.download-panel p {
  margin-top: 14px;
  color: var(--light-gray);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.download-actions {
  margin-top: var(--space-3);
  display: flex;
  justify-content: center;
}

/* ---------------------------------------------------------------------
   10. Contact
   --------------------------------------------------------------------- */
.contact { padding: var(--space-6) 0; border-top: 1px solid var(--line-soft); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.contact-card {
  padding: var(--space-3);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--bg-panel);
}
.contact-card .contact-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
  text-transform: uppercase;
}
.contact-card .contact-value {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--white);
}
.contact-card a.contact-value:hover { color: var(--gold); }
.contact-note {
  margin-top: var(--space-3);
  color: var(--light-gray);
  font-size: 15px;
  line-height: 1.7;
  max-width: 640px;
}

/* ---------------------------------------------------------------------
   11. Footer
   --------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: var(--space-4) 0 var(--space-3);
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { color: var(--gray-dim); font-size: 13.5px; line-height: 1.6; }

.footer-nav { display: flex; gap: var(--space-5); flex-wrap: wrap; }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--light-gray); font-size: 14px; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--gray-dim);
}

/* ---------------------------------------------------------------------
   12. Legal pages (privacy / terms)
   --------------------------------------------------------------------- */
.legal-hero {
  padding: var(--space-6) 0 var(--space-4);
  border-bottom: 1px solid var(--line-soft);
}
.legal-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.4vw, 46px);
}
.legal-hero .legal-meta {
  margin-top: 12px;
  color: var(--light-gray);
  font-size: 14px;
}

.legal-body {
  padding: var(--space-5) 0 var(--space-6);
}
.legal-body .container {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--space-5);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 100px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  background: var(--bg-panel);
}
.legal-toc h2 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 14px;
}
.legal-toc li { margin-bottom: 10px; }
.legal-toc a { font-size: 13.5px; color: var(--light-gray); }
.legal-toc a:hover { color: var(--gold); }

.legal-content section {
  padding-bottom: var(--space-4);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--line-soft);
}
.legal-content section:last-child { border-bottom: none; margin-bottom: 0; }
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--white);
  margin-bottom: 14px;
  scroll-margin-top: 100px;
}
.legal-content h3 {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--gold);
  margin: 18px 0 8px;
}
.legal-content p {
  color: var(--light-gray);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 12px;
}
.legal-content ul {
  margin: 0 0 12px;
  padding-left: 20px;
  list-style: disc;
}
.legal-content li {
  color: var(--light-gray);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 6px;
}
.legal-content a { color: var(--gold); }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong { color: var(--white); }

/* ---------------------------------------------------------------------
   13. Responsive
   --------------------------------------------------------------------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .about-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .gallery-track { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .legal-body .container { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--line-soft);
    padding: var(--space-3);
    gap: var(--space-2);
  }
  .why-grid { grid-template-columns: 1fr; }
  .gallery-track { grid-template-columns: 1fr; }
  .mechanics-list { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; }
  .footer-nav { gap: var(--space-4); }
}

@media (max-width: 480px) {
  .hero-ticker { flex-wrap: wrap; }
  .download-panel { padding: var(--space-4) var(--space-2); }
}
