/* ============================================
   Vowel Thief — Noir Arcade Design System
   ============================================ */

:root {
  --bg: #0C0A16;
  --surface: #14112A;
  --surface-light: #1C1838;
  --primary: #E8A832;
  --secondary: #D44A3A;
  --correct: #3DD68C;
  --text-primary: #E8E2D4;
  --text-muted: #6A6478;
  --slot-border: #36305A;
  --chip-bg: #221E40;
  --gradient-gold: #E8A832;
  --gradient-ember: #D44A3A;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Atmosphere --- */

.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 15% 10%, rgba(232, 168, 50, 0.06) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(212, 74, 58, 0.04) 0%, transparent 55%);
}

/* --- Layout --- */

.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 960px;
}

section {
  padding: 80px 0;
}

/* --- Typography --- */

.title-gradient {
  font-family: 'Dela Gothic One', sans-serif;
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  background: linear-gradient(135deg, var(--gradient-gold), var(--gradient-ember));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.15;
}

h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: 1.35rem; font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
h3 { font-size: 1.1rem; font-weight: 600; line-height: 1.4; margin-bottom: 8px; }

p + p { margin-top: 16px; }

.text-muted { color: var(--text-muted); }
.text-primary-color { color: var(--primary); }
.text-small { font-size: 0.85rem; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.8; }

.mono {
  font-family: 'DM Mono', monospace;
}

/* --- Hero --- */

.hero {
  padding: 120px 0 80px;
  text-align: center;
}

.hero__subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-top: 12px;
  font-weight: 300;
}

.hero__tagline {
  font-size: 1.2rem;
  color: var(--text-primary);
  margin-top: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

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

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: none;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 1;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gradient-gold), var(--gradient-ember));
  color: var(--bg);
}

.btn--primary:hover {
  box-shadow: 0 8px 24px rgba(232, 168, 50, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--slot-border);
}

.btn--outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- Cards --- */

.card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 32px;
}

/* --- Feature grid --- */

.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 40px;
}

.feature {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 28px 24px;
}

.feature__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(232, 168, 50, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
}

.feature h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.feature p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* --- How it works --- */

.steps {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step__number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(232, 168, 50, 0.1);
  border: 1px solid rgba(232, 168, 50, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Mono', monospace;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
}

.step__content h3 {
  margin-bottom: 4px;
}

.step__content p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* --- Difficulty table --- */

.difficulty-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}

.diff-card {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
}

.diff-card__emoji {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.diff-card__label {
  font-weight: 600;
  margin-bottom: 12px;
}

.diff-card__detail {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.diff-card--recommended {
  border-color: rgba(232, 168, 50, 0.25);
  box-shadow: 0 0 24px rgba(232, 168, 50, 0.06);
}

/* --- Screenshots --- */

.screenshots {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.screenshots img {
  width: 220px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

/* --- Nav --- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(12, 10, 22, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding: 14px 0;
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav__brand {
  font-family: 'Dela Gothic One', sans-serif;
  font-size: 1.1rem;
  background: linear-gradient(135deg, var(--gradient-gold), var(--gradient-ember));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.site-nav__links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.site-nav__links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 400;
}

.site-nav__links a:hover {
  color: var(--text-primary);
}

/* --- Footer --- */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding: 40px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.site-footer__links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  list-style: none;
}

.site-footer__links a {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.site-footer__links a:hover {
  color: var(--primary);
}

/* --- Legal pages --- */

.legal {
  padding: 80px 0 60px;
}

.legal h1 {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-size: 1.15rem;
  margin-top: 36px;
  margin-bottom: 10px;
}

.legal p {
  color: var(--text-muted);
  font-size: 0.94rem;
  max-width: 600px;
}

.legal ul {
  list-style: none;
  padding: 0;
  margin-top: 8px;
}

.legal ul li {
  color: var(--text-muted);
  font-size: 0.94rem;
  padding-left: 20px;
  position: relative;
  margin-bottom: 6px;
}

.legal ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--slot-border);
}

/* --- Responsive --- */

@media (max-width: 640px) {
  section { padding: 56px 0; }
  .hero { padding: 80px 0 56px; }
  .features { grid-template-columns: 1fr; }
  .difficulty-grid { grid-template-columns: 1fr; gap: 12px; }
  .screenshots img { width: 180px; }
  .site-nav__links { gap: 16px; }
  .card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
