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

:root {
  --bg:        #080b10;
  --bg-card:   #0d1018;
  --bg-dark:   #050709;
  --border:    #1a2030;
  --gold:      #c9a84c;
  --gold-dim:  #7a6030;
  --text:      #d8dde8;
  --text-sub:  #7a8090;
  --text-mute: #3a4050;
  --accent:    #3a6aaa;
  --radius:    12px;
  --font-head: 'Cinzel', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }

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

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

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
  height: 60px;
  background: rgba(8, 11, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.05em;
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex; gap: 2rem;
}

.nav-links a {
  color: var(--text-sub);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--gold);
  color: #0a0800;
}
.btn-primary:hover { background: #debb6a; text-decoration: none; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--gold-dim); color: var(--gold); text-decoration: none; }

.btn-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 80px 2rem 4rem;
  position: relative;
  overflow: hidden;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-bg {
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 50% at 70% 40%, rgba(201,168,76,0.06) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 60%, rgba(58,106,170,0.07) 0%, transparent 70%),
    var(--bg);
}

.hero-content { flex: 1; max-width: 540px; }

.hero-eyebrow {
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-title .gold { color: var(--gold); }

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 460px;
}

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── Device mockup ────────────────────────────────────────── */
.hero-device {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
}

.device-frame {
  width: 280px; height: 210px;
  background: #0a0d14;
  border: 2px solid #1e2530;
  border-radius: 16px;
  padding: 8px;
  box-shadow:
    0 0 0 1px #0d1018,
    0 40px 80px rgba(0,0,0,0.6),
    0 0 60px rgba(201,168,76,0.05);
}

.device-screen {
  width: 100%; height: 100%;
  background: #050709;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  display: flex; align-items: center; justify-content: center;
}

.screen-grid {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}

.screen-cell {
  background: var(--c, #0d1018);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 4px;
}

.cell-life {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
}

.cell-name {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.05em;
}

.screen-pip {
  position: absolute;
  font-size: 1.4rem;
  color: var(--gold);
  opacity: 0.9;
  text-shadow: 0 0 12px rgba(201,168,76,0.6);
  pointer-events: none;
}

/* ── Games row ────────────────────────────────────────────── */
.section--games {
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.games-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.75rem;
  text-align: center;
}

.games-row {
  display: flex; gap: 0.75rem;
  flex-wrap: wrap; justify-content: center;
}

.game-pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  color: var(--text-sub);
  letter-spacing: 0.02em;
}

/* ── Section ──────────────────────────────────────────────── */
.section { padding: 6rem 2rem; }
.section--dark { background: var(--bg-dark); }

.container { max-width: 1100px; margin: 0 auto; }
.container--narrow { max-width: 780px; margin: 0 auto; }

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section-sub {
  color: var(--text-sub);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* ── Feature grid ─────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s;
}
.feature-card:hover { border-color: #2a3545; }

.feature-card--locked {
  border-color: rgba(201,168,76,0.15);
  background: linear-gradient(135deg, #0d1018, #0d1008);
}
.feature-card--locked:hover { border-color: rgba(201,168,76,0.3); }

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
  display: flex; align-items: center; gap: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.65;
}

.badge {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(201,168,76,0.15);
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 4px;
  padding: 0.15rem 0.4rem;
  vertical-align: middle;
}

/* ── Unlock cards ─────────────────────────────────────────── */
.unlock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.unlock-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1rem;
  position: relative;
}

.unlock-card--featured {
  border-color: rgba(201,168,76,0.35);
  background: linear-gradient(145deg, #0d1018, #0e100a);
}

.unlock-badge {
  position: absolute; top: -1px; right: 1.5rem;
  background: var(--gold);
  color: #0a0800;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 0 0 6px 6px;
}

.unlock-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: #fff;
}

.unlock-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
}

.unlock-features {
  list-style: none;
  display: flex; flex-direction: column; gap: 0.5rem;
  flex: 1;
}

.unlock-features li {
  font-size: 0.875rem;
  color: var(--text-sub);
  padding-left: 1.25rem;
  position: relative;
}
.unlock-features li::before {
  content: '✓';
  position: absolute; left: 0;
  color: var(--gold);
  font-size: 0.75rem;
}

.unlock-note {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-mute);
}
.unlock-note a { color: var(--text-sub); text-decoration: underline; }

/* ── Register form ────────────────────────────────────────── */
.register-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.register-form {
  display: flex; flex-direction: column; gap: 1.5rem;
}

.form-row {
  display: flex; flex-direction: column; gap: 0.4rem;
}

.form-row label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-sub);
  letter-spacing: 0.02em;
}

.form-row input {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.form-row input:focus { border-color: var(--gold-dim); }
.form-row input::placeholder { color: var(--text-mute); }

.form-hint {
  font-size: 0.78rem;
  color: var(--text-mute);
}

.register-success {
  text-align: center;
  padding: 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}

.success-icon {
  width: 3rem; height: 3rem;
  background: rgba(80,200,100,0.15);
  border: 1px solid rgba(80,200,100,0.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  color: #5cc878;
  margin-bottom: 0.5rem;
}

.register-success h3 { font-size: 1.2rem; color: #fff; }
.register-success p { font-size: 0.9rem; color: var(--text-sub); max-width: 400px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 2rem;
}

.footer-grid {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 0.75rem;
}

.footer-brand p { font-size: 0.875rem; color: var(--text-mute); line-height: 1.7; }

.footer-links h4 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 1rem;
}

.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1100px; margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-mute);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    padding-top: 100px;
    text-align: center;
    gap: 3rem;
  }
  .hero-sub { margin: 0 auto 2.5rem; }
  .hero-cta { justify-content: center; }
  .hero-content { max-width: 100%; }

  .nav-links { display: none; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }

  .section { padding: 4rem 1.25rem; }
}
