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

/* ===== TOKENS (from game repo) ===== */
:root {
  --chrome: #1b1f2a;
  --chrome-deep: #12151d;
  --chrome-hover: #252a38;
  --chrome-border: #2e3446;
  --chrome-text: #8892a6;
  --chrome-text-bright: #cdd3e0;

  --bg: #f2f3f6;
  --surface: #ffffff;
  --border: #dfe2e8;

  --text: #1a1d26;
  --text-sec: #555d6f;
  --text-dim: #8f96a3;

  --red: #dc2626;
  --amber: #d97706;
  --green: #16a34a;
  --blue: #2563eb;

  --accent: #d97706;
  --accent-light: #f59e0b;

  --font-body: 'Inter', -apple-system, system-ui, sans-serif;
  --font-head: 'Oswald', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --max-w: 1200px;
  --radius: 8px;
}

html { background: var(--chrome-deep); }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

.wrap {
  width: min(var(--max-w), calc(100% - 2.5rem));
  margin: 0 auto;
}

/* ===== SECTION LABEL ===== */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ===== HERO (dark, split) ===== */
.hero {
  position: relative;
  background: var(--chrome);
  overflow: hidden;
  padding: clamp(4rem, 8vw, 6rem) 1.25rem clamp(4rem, 8vw, 6rem);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 50% 55%, rgba(217, 119, 6, 0.06), transparent 70%),
    radial-gradient(ellipse 800px 300px at 30% 20%, rgba(37, 99, 235, 0.04), transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255,255,255,0.03);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.hero-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  height: clamp(120px, 16vw, 200px);
}

.hero-content {
  border-left: 1px solid var(--chrome-border);
  padding-left: clamp(2rem, 4vw, 4rem);
  text-align: center;
}

.hero h1 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.2vw, 3.8rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}

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

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 1rem 2.25rem;
  background: rgba(88, 101, 242, 0.15);
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: 6px;
  color: #cbd2ff;
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  margin-top: 0.25rem;
}

.hero-cta svg {
  flex-shrink: 0;
}

.hero-cta:hover {
  transform: translateY(-1px);
  background: rgba(88, 101, 242, 0.25);
  border-color: rgba(88, 101, 242, 0.5);
}

/* ===== INTRO SECTION (light) ===== */
.intro {
  background: var(--bg);
  padding: clamp(4rem, 8vw, 7rem) 1.25rem;
}

.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: var(--max-w);
  margin: 0 auto;
}

.intro-text h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.intro-text p {
  color: var(--text-sec);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1rem;
  max-width: 500px;
}

.intro-text p:last-of-type {
  margin-bottom: 0;
}

/* Screenshot frame */
.screenshot-frame {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.06);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.screenshot-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 90px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.08);
}

.screenshot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== SCREENSHOT GALLERY (dark) ===== */
.gallery {
  background: var(--chrome);
  padding: clamp(4rem, 8vw, 7rem) 1.25rem;
}

.gallery .wrap {
  max-width: var(--max-w);
}

.gallery-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.gallery-item--wide {
  grid-column: 1 / -1;
}

.gallery-frame {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.06);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.gallery-frame:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 56px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1);
}

.gallery-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.gallery-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--chrome-text);
  letter-spacing: 0.04em;
  margin-top: 0.75rem;
}

/* ===== FEATURES SECTION (light) ===== */
.matchday {
  background: var(--bg);
  padding: clamp(4rem, 8vw, 7rem) 1.25rem;
}

.matchday .wrap {
  max-width: var(--max-w);
}

.matchday h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.matchday > .wrap > p {
  color: var(--text-sec);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 3rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.feature-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.feature-card-icon.amber { background: rgba(217, 119, 6, 0.1); color: var(--amber); }
.feature-card-icon.blue { background: rgba(37, 99, 235, 0.1); color: var(--blue); }
.feature-card-icon.green { background: rgba(22, 163, 74, 0.1); color: var(--green); }
.feature-card-icon.red { background: rgba(220, 38, 38, 0.1); color: var(--red); }

.feature-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-sec);
  line-height: 1.6;
}

/* ===== PILLARS (dark) ===== */
.pillars {
  background: var(--chrome);
  padding: clamp(4rem, 8vw, 7rem) 1.25rem;
}

.pillars .wrap {
  max-width: var(--max-w);
}

.pillars h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 3rem;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--chrome-border);
  border: 1px solid var(--chrome-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.pillar {
  background: var(--chrome);
  padding: 2rem 1.75rem;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 0.75rem;
}

.pillar h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--chrome-text-bright);
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.pillar p {
  font-size: 0.92rem;
  color: var(--chrome-text);
  line-height: 1.6;
}

/* ===== QUOTE STRIP (accent) ===== */
.quote-strip {
  background: var(--chrome-deep);
  border-top: 3px solid var(--accent);
  padding: 3.5rem 1.25rem;
  text-align: center;
}

.quote-strip blockquote {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--chrome-text-bright);
  text-transform: uppercase;
  line-height: 1.25;
  max-width: 700px;
  margin: 0 auto 0.75rem;
}

.quote-strip cite {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.75rem;
  color: var(--chrome-text);
  letter-spacing: 0.08em;
}

/* ===== FAQ SECTION (light) ===== */
.faq-section {
  background: var(--bg);
  padding: clamp(4rem, 8vw, 7rem) 1.25rem;
}

.faq-section .wrap {
  max-width: var(--max-w);
}

.faq-section h2 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.1;
  color: var(--text);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.faq-section .section-desc {
  color: var(--text-sec);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: 2.5rem;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
  max-width: 740px;
}

.faq-list details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  background: var(--surface);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.faq-list details[open] {
  border-color: var(--accent);
  background: linear-gradient(150deg, rgba(217, 119, 6, 0.04), transparent 40%), var(--surface);
}

.faq-list summary {
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--text);
  text-transform: uppercase;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.faq-list summary::before {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-list details[open] summary::before {
  content: "\2212";
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list details p {
  margin: 0.6rem 0 0;
  color: var(--text-sec);
  font-size: 0.94rem;
  line-height: 1.6;
  max-width: 60ch;
}

/* ===== CTA SECTION (dark) ===== */
.cta-section {
  background: var(--chrome);
  padding: clamp(5rem, 10vw, 8rem) 1.25rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 600px 300px at 50% 80%, rgba(217, 119, 6, 0.08), transparent);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  color: #ffffff;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.cta-section p {
  font-size: 1.05rem;
  color: var(--chrome-text);
  margin-bottom: 2rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

.cta-btn-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  color: #1a1a1a;
  border: none;
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(217, 119, 6, 0.35);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  background: transparent;
  color: var(--chrome-text-bright);
  border: 1px solid var(--chrome-border);
  border-radius: 6px;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}

.btn-ghost:hover {
  border-color: rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.04);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--chrome-deep);
  border-top: 1px solid var(--chrome-border);
  padding: 2.5rem 1.25rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  height: 28px;
  opacity: 0.6;
}

.footer-text {
  font-size: 0.8rem;
  color: var(--chrome-text);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chrome-text);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--chrome-text-bright);
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
  cursor: zoom-out;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 6px;
  box-shadow: 0 32px 100px rgba(0,0,0,0.5);
  transform: scale(0.92);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.lightbox.is-open img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.04em;
  text-align: center;
  white-space: nowrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-content {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--chrome-border);
    padding-top: 2rem;
  }

  .hero-logo {
    height: 100px;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cta-btn-group {
    flex-direction: column;
  }
}
