/* ============================================================================
   Tour Tycoon — site styles (shared by index.html + privacy.html)
   Dark "terminal-green" theme matching the in-game palette.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap');

:root {
  --bg: #172217;
  --bg-alt: #1f2c1f;
  --surface: #243524;
  --green: #08b854;
  --glow: #3df59a;
  --text: #e8ffe8;
  --muted: #7ec495;
  --gold: #f79400;
  --danger: #e05c30;
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(120% 80% at 50% -10%, #21331f 0%, var(--bg) 60%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* subtle CRT scanlines */
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: 2;
  background: repeating-linear-gradient(rgba(0,0,0,0) 0 2px, rgba(0,0,0,0.08) 2px 3px);
  opacity: 0.5;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

a { color: var(--glow); }

/* ---- typography ---- */
.eyebrow {
  font-family: 'VT323', monospace;
  font-size: 1.4rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--glow); margin: 0 0 8px;
}
h1 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.6rem, 5vw, 3.2rem); line-height: 1.25;
  margin: 0 0 18px; color: var(--text); text-shadow: 0 0 14px rgba(61,245,154,0.45);
}
h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1rem, 3vw, 1.5rem); line-height: 1.4;
  color: var(--glow); margin: 0 0 18px;
}
.lede { font-size: 1.2rem; color: var(--text); max-width: 640px; }
.muted { color: var(--muted); }

/* ---- nav ---- */
.nav {
  position: sticky; top: 0; z-index: 5;
  background: rgba(23,34,23,0.85); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(8,184,84,0.25);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.nav-brand img { width: 34px; height: 34px; border-radius: 7px; }
.nav-brand span { font-family: 'Press Start 2P', monospace; font-size: 0.85rem; letter-spacing: 1px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-family: 'VT323', monospace; font-size: 1.3rem; letter-spacing: 1px; text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--glow); }

/* ---- buttons ---- */
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: 'VT323', monospace; font-size: 1.5rem; letter-spacing: 1px;
  padding: 12px 28px; border-radius: 8px;
  border: 2px solid var(--green); color: var(--glow);
  background: rgba(8,184,84,0.08); transition: all .15s ease;
}
.btn:hover { background: rgba(61,245,154,0.18); box-shadow: 0 0 18px rgba(61,245,154,0.4); color: #fff; }
.btn--primary { background: var(--green); color: #07140c; border-color: var(--glow); }
.btn--primary:hover { background: var(--glow); color: #07140c; }

/* ---- hero ---- */
.hero {
  text-align: center; padding: 104px 0 80px; position: relative; z-index: 1;
  background:
    linear-gradient(180deg, rgba(23,34,23,0.70) 0%, rgba(23,34,23,0.86) 58%, var(--bg) 100%),
    url('/assets/hero-bg.jpg') center 28% / cover no-repeat;
  border-bottom: 1px solid rgba(8,184,84,0.25);
}
.hero h1 { margin: 0 0 18px; }
.hero-logo { width: min(440px, 82%); height: auto; display: block; margin: 0 auto; filter: drop-shadow(0 6px 22px rgba(0,0,0,0.65)); }
.hero .lede { margin: 0 auto 32px; }
.hero .cta-row { justify-content: center; }
.trust { margin-top: 22px; font-family: 'VT323', monospace; font-size: 1.15rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.trust span { color: var(--glow); }

/* ---- sections ---- */
.section { padding: 56px 0; position: relative; z-index: 1; }
.section--alt { background: var(--bg-alt); }
.section--center { text-align: center; }
.section--center .lede, .section--center .cta-row { margin-left: auto; margin-right: auto; }
.section--center .cta-row { justify-content: center; }

/* ---- feature grid ---- */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 28px; }
.card { background: var(--surface); border: 1px solid rgba(8,184,84,0.35); border-radius: 10px; padding: 22px; box-shadow: 0 0 8px rgba(8,184,84,0.12); }
.card h3 { font-family: 'VT323', monospace; font-size: 1.6rem; letter-spacing: 1px; text-transform: uppercase; color: var(--glow); margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 1.02rem; }

.fork h2 .danger { color: var(--danger); }

/* ---- screenshots ---- */
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 28px; }
.shot { aspect-ratio: 9 / 19.5; border-radius: 18px; overflow: hidden; border: 2px solid rgba(8,184,84,0.4); background: #0e160e; display: flex; align-items: center; justify-content: center; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .placeholder { font-family: 'VT323', monospace; color: var(--muted); font-size: 1.1rem; padding: 12px; text-align: center; }

/* ---- promo gallery (square app art) ---- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 28px; }
.gallery-item { border: 1px solid rgba(8,184,84,0.35); border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: 0 0 8px rgba(8,184,84,0.12); }
.gallery-item img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.gallery-cap { font-family: 'VT323', monospace; font-size: 1.35rem; letter-spacing: 1px; text-transform: uppercase; color: var(--glow); padding: 10px 14px; }

/* ---- split (text + image) ---- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px; align-items: center; }
.split-media img { width: 100%; border-radius: 12px; border: 1px solid rgba(8,184,84,0.4); display: block; box-shadow: 0 0 16px rgba(8,184,84,0.15); }
.split .lede { max-width: none; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---- footer ---- */
.footer { padding: 40px 0; border-top: 1px solid rgba(8,184,84,0.25); text-align: center; position: relative; z-index: 1; }
.footer a { color: var(--glow); text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer p { margin: 6px 0; color: var(--muted); font-size: 0.95rem; }

/* ---- prose (privacy page) ---- */
.prose { padding: 48px 0 24px; position: relative; z-index: 1; }
.prose .lede-block { max-width: 760px; }
.prose h1 { font-size: clamp(1.5rem, 4vw, 2.4rem); }
.prose h2 { font-size: clamp(0.95rem, 2.4vw, 1.2rem); margin-top: 2.4rem; }
.prose p, .prose li { color: var(--text); font-size: 1.05rem; max-width: 760px; }
.prose .muted-date { color: var(--muted); font-family: 'VT323', monospace; font-size: 1.2rem; letter-spacing: 1px; }
.prose ul { padding-left: 1.25rem; max-width: 760px; }
.prose li { margin-bottom: 0.4rem; }
.prose a { word-break: break-word; }

@media (max-width: 600px) {
  .hero { padding: 60px 0 44px; }
  .btn { font-size: 1.3rem; padding: 11px 22px; }
  .nav-brand span { display: none; }
  .nav-links { gap: 16px; }
}
