/* ============================================================================
   Grand Theft Auto V — Web Port  ·  landing page styles
   Authentic GTA V UI font (Chalet), dark cinematic theme, GTA-green accent.
   ========================================================================== */

@font-face {
  font-family: 'Chalet';
  src: url('/assets/chalet.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg:        #070707;
  --panel:     rgba(14, 14, 14, 0.72);
  --line:      rgba(255, 255, 255, 0.10);
  --line-soft: rgba(255, 255, 255, 0.06);
  --text:      #f4f4f2;
  --muted:     #9c9c98;
  --muted-dim: #6f6f6b;
  --green:     #8dc63f;
  --green-dk:  #6ea62b;
  --green-glow:rgba(141, 198, 63, 0.35);
  --font: 'Chalet', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ------------------------------------------------------------------ backdrop */

.bg-photo {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-color: #070707;
  background-image: url('/assets/hero-city.webp');
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  /* No CSS filter here: a full-viewport filter forces the compositor to
     re-render the whole layer on every repaint (and again when the tab is
     restored), which is what made refresh / tab-out / tab-back feel laggy.
     The darkening is baked into the overlay below instead. */
  transform: translateZ(0);
  backface-visibility: hidden;
  opacity: 0.94;
}

.bg-overlay {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 95% at 50% 38%, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.54) 62%, rgba(0,0,0,0.92) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.86) 0%, rgba(0,0,0,0.48) 26%, rgba(0,0,0,0.56) 60%, rgba(0,0,0,0.96) 100%);
}

/* The old .grain layer used mix-blend-mode: overlay on a fixed, full-viewport
   element. A blend mode on a full-screen layer makes the browser re-composite
   the entire page on every paint (and on every tab restore), so it was removed
   for a smoother refresh / tab-out / tab-back. */

/* ------------------------------------------------------------------ top bar */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 46px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
}
.brand .mark {
  width: 9px; height: 9px;
  background: var(--green);
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--green-glow);
}

/* --------------------------------------------------------------------- hero */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px clamp(18px, 5vw, 40px) 80px;
}

.hero .logo {
  width: min(560px, 78vw);
  height: auto;
  filter: drop-shadow(0 18px 42px rgba(0,0,0,0.85));
}

.tagline {
  max-width: 620px;
  margin: 26px auto 0;
  font-size: clamp(14px, 1.7vw, 17px);
  line-height: 1.65;
  color: #dcdcd7;
  letter-spacing: 0.4px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.9), 0 1px 3px rgba(0,0,0,0.95);
}

/* ------------------------------------------------------------------ actions */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
}

.btn {
  --pad-y: 15px;
  --pad-x: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font);
  font-size: 15px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .14s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
  user-select: none;
}
.btn:active { transform: translateY(1px); }

.btn-play {
  background: var(--green);
  color: #0b1402;
  font-weight: 700;
  box-shadow: 0 0 0 1px rgba(141,198,63,0.5), 0 14px 34px rgba(141,198,63,0.22);
}
.btn-play:hover {
  background: #9bd84a;
  box-shadow: 0 0 0 1px rgba(141,198,63,0.7), 0 18px 44px rgba(141,198,63,0.34);
  transform: translateY(-2px);
}

.btn-download {
  background: rgba(255,255,255,0.03);
  color: var(--text);
  border-color: var(--line);
  font-weight: 600;
}
.btn-download:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.28);
  transform: translateY(-2px);
}

.meta {
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #b7b7b2;
  text-shadow: 0 1px 10px rgba(0,0,0,0.95), 0 1px 2px rgba(0,0,0,0.95);
}
.meta .dot { color: var(--green); margin: 0 8px; }

/* --------------------------------------------------------------- info cards */

.info {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px clamp(18px, 5vw, 40px) 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  /* Solid-ish panel instead of backdrop-filter: blur(). A backdrop blur makes
     the browser re-blur everything behind the element on every repaint, which
     is costly across many cards and shows up as stutter on tab restore. */
  background: rgba(14, 14, 14, 0.88);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 26px 24px;
}
.card h3 {
  margin: 0 0 12px;
  font-size: 13px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}
.card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #c3c3be;
}
.card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.95;
  color: #c3c3be;
}
.card li { display: flex; justify-content: space-between; gap: 14px; }
.card li span:first-child { color: var(--muted-dim); }
.card li span:last-child { color: var(--text); }

/* ------------------------------------------------------------- detail blocks */

.details {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 60px clamp(18px, 5vw, 40px) 20px;
}

.section-title {
  margin: 0 0 26px;
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text);
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}

.detail {
  background: rgba(14, 14, 14, 0.88);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 26px 24px;
}
.detail h3 {
  margin: 0 0 14px;
  font-size: 13px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--green);
  font-weight: 600;
}
.detail p,
.detail li,
.detail dd {
  font-size: 14px;
  line-height: 1.75;
  color: #c3c3be;
}
.detail ol {
  margin: 0;
  padding-left: 20px;
}
.detail ol li { margin-bottom: 8px; }
.detail ul {
  margin: 0;
  padding-left: 18px;
}
.detail ul li { margin-bottom: 8px; }
.detail code {
  font-family: Consolas, 'Courier New', monospace;
  font-size: 12.5px;
  color: var(--green);
  background: rgba(141,198,63,0.10);
  border: 1px solid rgba(141,198,63,0.22);
  border-radius: 3px;
  padding: 1px 5px;
}

.kv {
  list-style: none;
  padding-left: 0 !important;
}
.kv li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 0;
  border-bottom: 1px solid var(--line-soft);
}
.kv li span:first-child { color: var(--muted-dim); }
.kv li span:last-child { color: var(--text); }

.faq { margin: 0; }
.faq dt {
  color: var(--text);
  font-weight: 600;
  margin-top: 14px;
}
.faq dt:first-child { margin-top: 0; }
.faq dd {
  margin: 4px 0 0;
  color: #b9b9b4;
}

/* ------------------------------------------------------------------ credits */

.credits {
  position: relative;
  max-width: 1080px;
  margin: 50px auto 40px;
  padding: 30px clamp(20px, 3vw, 34px) 34px;
  background: rgba(12, 12, 12, 0.92);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
}
.credits p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.8;
  color: #c3c3be;
}
.credits a {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(141,198,63,0.4);
}
.credits a:hover { border-color: var(--green); }

/* ------------------------------------------------------------------ footer */

.footer {
  position: relative;
  border-top: 1px solid var(--line-soft);
  padding: 26px clamp(18px, 5vw, 40px) 40px;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: 1.2px;
  color: var(--muted-dim);
  line-height: 1.9;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}
.footer a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer a:hover { color: var(--green); border-color: var(--green); }

/* --------------------------------------------------------- one-time popup */

.popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
}
.popup-backdrop[hidden] { display: none; }

.popup {
  width: min(460px, 100%);
  background: #101010;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 28px 26px 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}
.popup-kicker {
  margin: 0 0 8px;
  font-size: 11px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--muted-dim);
}
.popup h2 {
  margin: 0 0 14px;
  font-size: 20px;
  letter-spacing: 0.6px;
  color: var(--text);
  font-weight: 600;
}
.popup p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.7;
  color: #c3c3be;
}
.popup-link {
  color: var(--green);
  text-decoration: none;
  border-bottom: 1px solid rgba(141,198,63,0.5);
  word-break: break-all;
}
.popup-link:hover { border-color: var(--green); }

.popup-close {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 13px 20px;
  font-family: var(--font);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #0b1402;
  background: var(--green);
  border: 1px solid transparent;
  border-radius: 3px;
  cursor: pointer;
  transition: background .18s ease, opacity .18s ease;
}
.popup-close:hover:not(:disabled) { background: #9bd84a; }
.popup-close:disabled {
  background: rgba(255,255,255,0.06);
  color: var(--muted-dim);
  cursor: default;
}

/* -------------------------------------------------------------- responsive */

@media (max-width: 560px) {
  .hero { padding-top: 96px; }
  .btn { --pad-x: 22px; font-size: 14px; letter-spacing: 1.5px; }
  .section-title { font-size: 13px; letter-spacing: 2.2px; }
}
