/* Ascendara – Landing Page Styles */
/* Dunkel, atmosphärisch, minimalistisch */

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

:root {
  --bg:        #06060a;
  --bg2:       #0d0d14;
  --bg3:       #12121c;
  --accent:    #8ba8c8;
  --accent2:   #c8a87a;
  --text:      #e8e4dc;
  --text-dim:  #7a7870;
  --border:    rgba(255,255,255,0.08);
  --radius:    6px;
  --max-w:     1100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

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

.logo {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text);
}

.nav-links { display: flex; gap: 2rem; }
.nav-links a { color: var(--text-dim); font-size: 0.9rem; letter-spacing: 0.05em; }
.nav-links a:hover { color: var(--text); }

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #a0bcd6;
  color: var(--bg);
}

.btn-secondary {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
}
.btn-secondary:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

.btn-large { padding: 0.9rem 2.4rem; font-size: 1.1rem; }

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 6rem 2rem 4rem;
  background:
    radial-gradient(ellipse at 20% 60%, rgba(60,80,120,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 30%, rgba(40,60,90,0.1) 0%, transparent 60%);
}

.hero-content { max-width: 600px; }

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-dim);
  margin-bottom: 2rem;
  line-height: 1.8;
}

.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.hero-hint { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.5rem; }

/* --- Features --- */
.features {
  padding: 5rem 2rem;
  background: var(--bg2);
}

.feature-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.feature {
  padding: 1.8rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}
.feature:hover { border-color: rgba(255,255,255,0.15); }
.feature-icon { font-size: 1.8rem; margin-bottom: 0.8rem; }
.feature h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.feature p { color: var(--text-dim); font-size: 0.9rem; }

/* --- Game Section --- */
.game-section {
  padding: 5rem 2rem;
  text-align: center;
}

.game-section h2, .leaderboard-section h2, .premium-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.section-sub { color: var(--text-dim); margin-bottom: 2rem; }

.game-container {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
}

#canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.game-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(to bottom, rgba(6,6,10,0.3), rgba(6,6,10,0.7)),
    url('/game-preview.jpg') center/cover;
}

.play-prompt {
  text-align: center;
  padding: 3rem;
  background: rgba(6,6,10,0.85);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(8px);
}

.play-prompt h3 { font-size: 2rem; margin-bottom: 0.25rem; }
.play-prompt p  { color: var(--text-dim); margin-bottom: 1.5rem; }
.play-hint { font-size: 0.8rem; color: var(--text-dim); margin-top: 1rem; margin-bottom: 0; }

/* --- Leaderboard --- */
.leaderboard-section {
  padding: 5rem 2rem;
  background: var(--bg2);
  text-align: center;
}

.lb-table {
  max-width: 480px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.lb-row {
  display: flex;
  align-items: center;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
}
.lb-row:last-child { border-bottom: none; }
.lb-row:nth-child(1) .lb-rank { color: #ffd700; }
.lb-row:nth-child(2) .lb-rank { color: #c0c0c0; }
.lb-row:nth-child(3) .lb-rank { color: #cd7f32; }

.lb-rank  { width: 40px; font-size: 0.85rem; color: var(--text-dim); }
.lb-name  { flex: 1; font-size: 0.95rem; text-align: left; }
.lb-time  { font-size: 0.9rem; font-variant-numeric: tabular-nums;
            color: var(--accent); }
.lb-loading { padding: 2rem; color: var(--text-dim); }

/* --- Premium --- */
.premium-section {
  padding: 5rem 2rem;
  text-align: center;
}

.premium-card {
  max-width: 420px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.premium-price {
  font-size: 3rem;
  font-weight: 800;
  margin: 1rem 0;
  color: var(--accent2);
}

.premium-list {
  list-style: none;
  text-align: left;
  margin: 1.5rem 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.premium-list li { color: var(--text-dim); font-size: 0.95rem; }
.premium-list li::first-letter { color: #6aaa6a; }
.premium-hint { font-size: 0.8rem; color: var(--text-dim); margin-top: 0.75rem; }

/* --- Footer --- */
footer {
  padding: 2rem;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* --- Responsive --- */
@media (max-width: 600px) {
  nav { padding: 1rem; }
  .nav-links { gap: 1rem; }
  .hero { padding: 5rem 1.25rem 3rem; }
  .hero-buttons { flex-direction: column; }
  .features, .game-section, .leaderboard-section, .premium-section {
    padding: 3rem 1.25rem;
  }
}
