/* ── Fonts ───────────────────────────────────────────────────── */
@font-face {
  font-family: "Orbitron";
  src: url("assets/fonts/Orbitron-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Exo 2";
  src: url("assets/fonts/Exo2-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Exo 2";
  src: url("assets/fonts/Exo2-Italic-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ── CSS Variables ───────────────────────────────────────────── */
:root {
  --color-bg:           #080C10;
  --color-surface:      #12100C;
  --color-border:       #261B0E;
  --color-accent:       #C37331;
  --color-accent-hover: #A85E20;
  --color-text:         #e0e0e0;
  --color-text-muted:   #888;
  --atari-sky:          #459FED;
  --atari-green:        #2C6956;
  --atari-red:          #FF4739;
  --radius:             4px;
  --max-width:          960px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Exo 2", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: var(--atari-sky);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 72px 0;
  border-bottom: 1px solid var(--color-border);
}
section:last-of-type {
  border-bottom: none;
}

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 12, 16, 0.92);
  backdrop-filter: blur(8px);
  padding: 0 24px;
}
.site-header::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    to right,
    #FF4739, #C37331, #E6DC3D, #2C6956, #459FED, #2457B6, #F971A1
  );
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}
.header-logo {
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  color: var(--color-accent);
  letter-spacing: 0.05em;
  text-decoration: none;
}
.header-logo:hover {
  text-decoration: none;
  color: var(--color-accent-hover);
}
.header-nav {
  display: flex;
  gap: 24px;
  list-style: none;
  font-size: 13px;
}
.header-nav a {
  color: var(--color-text-muted);
  transition: color 0.15s;
}
.header-nav a:hover {
  color: var(--color-text);
  text-decoration: none;
}
.header-nav a:focus-visible {
  outline: 1px solid var(--color-text);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── Hero ────────────────────────────────────────────────────── */
#hero {
  padding: 100px 0 80px;
  text-align: center;
  border-bottom: 1px solid var(--color-border);
}
.hero-title {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(28px, 5vw, 52px);
  color: var(--color-accent);
  letter-spacing: 0.04em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-tagline {
  font-size: clamp(15px, 2.5vw, 20px);
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto 40px;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent);
  color: #fff;
  font-family: "Orbitron", sans-serif;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  border-radius: var(--radius);
  min-height: 44px;
  transition: background 0.15s;
  text-decoration: none;
}
.btn-download:hover {
  background: var(--color-accent-hover);
  text-decoration: none;
  color: #fff;
}
.btn-download:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
.btn-download svg {
  flex-shrink: 0;
}
.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 14px;
  border: 1px solid var(--color-border);
  padding: 13px 20px;
  border-radius: var(--radius);
  min-height: 44px;
  transition: color 0.15s, border-color 0.15s;
  text-decoration: none;
}
.btn-github:hover {
  color: var(--color-text);
  border-color: #3a2a18;
  text-decoration: none;
}
.btn-github:focus-visible {
  outline: 2px solid var(--color-text-muted);
  outline-offset: 2px;
}
.version-badge {
  display: inline-block;
  margin-top: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  color: var(--color-text-muted);
}
#version-tag {
  color: var(--atari-sky);
}

/* ── Screenshots ─────────────────────────────────────────────── */
#screenshots {
  padding: 72px 0;
}
.section-title {
  font-family: "Orbitron", sans-serif;
  font-size: 18px;
  color: var(--color-accent);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.section-subtitle {
  color: var(--color-text-muted);
  margin-bottom: 40px;
  font-size: 15px;
}
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.screenshot-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.screenshot-item img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  display: block;
}
.screenshot-caption {
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}
.screenshot-step {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-family: "Orbitron", sans-serif;
  padding: 2px 8px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: middle;
}

/* ── About ───────────────────────────────────────────────────── */
#about {
  background: var(--color-surface);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.about-text p {
  color: var(--color-text);
  margin-bottom: 16px;
  font-size: 15px;
}
.about-text p:last-child {
  margin-bottom: 0;
}
.platform-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 16px;
}

/* Features list */
.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--color-text);
}
.feature-icon {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  margin-top: 2px;
}
.inline-code {
  font-size: 13px;
  background: #1a1a1a;
  padding: 1px 5px;
  border-radius: 3px;
}

/* ── How To Use ──────────────────────────────────────────────── */
#how-to-use {
  padding: 72px 0;
}
.steps-list {
  counter-reset: steps;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 680px;
}
.steps-list li {
  counter-increment: steps;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  color: var(--color-text);
}
.steps-list li:last-child {
  border-bottom: none;
}
.step-num {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  color: var(--color-accent);
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.step-body strong {
  display: block;
  color: var(--color-text);
  margin-bottom: 2px;
}
.step-body span {
  color: var(--color-text-muted);
  font-size: 13px;
}

/* ── Download Section ────────────────────────────────────────── */
#download {
  background: var(--color-surface);
  text-align: center;
}
.download-card {
  display: inline-block;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 40px 48px;
  max-width: 480px;
  width: 100%;
}
.download-card .btn-download {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 16px 28px;
  margin-bottom: 16px;
}
.system-req {
  font-size: 12px;
  color: var(--color-text-muted);
  line-height: 1.8;
}
.system-req a {
  color: var(--color-text-muted);
  text-decoration: underline;
}
.releases-link {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ── FAQ ─────────────────────────────────────────────────────── */
#faq {
  padding: 72px 0;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 720px;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 24px 0;
}
.faq-item:last-child {
  border-bottom: none;
}
.faq-q {
  font-family: "Orbitron", sans-serif;
  font-size: 13px;
  color: var(--color-text);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.faq-a {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.7;
}
.faq-a a {
  color: var(--atari-sky);
}

/* ── Disclaimer ──────────────────────────────────────────────── */
#disclaimer {
  background: var(--color-surface);
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}
#disclaimer .section-title {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}
.disclaimer-text {
  font-size: 13px;
  color: var(--color-text-muted);
  max-width: 720px;
  line-height: 1.8;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.footer-license a,
.footer-github a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  transition: color 0.15s;
}
.footer-license a:hover,
.footer-github a:hover {
  color: var(--color-text);
  text-decoration: none;
}
.footer-credit {
  font-style: italic;
  color: var(--color-text-muted);
}
.footer-copy {
  width: 100%;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid var(--color-border);
  margin-top: 8px;
  font-size: 12px;
  color: #555;
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 768px) {
  section { padding: 52px 0; }

  .header-nav { display: none; }

  #hero { padding: 64px 0 52px; }

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

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .download-card {
    padding: 28px 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ── Reduced motion ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
