/* Driftscape promo site — dark space theme matching the in-game UI palette */

:root {
  --bg-deep:    #050818;
  --bg-mid:     #0b1226;
  --bg-elev:    #131b36;
  --accent:     #8cd9ff;
  --accent-warm:#ffd86b;
  --text:       #e8eef7;
  --text-dim:   #8294b3;
  --border:     #1b2647;
}

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

html, body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-image:
    radial-gradient(ellipse at top, rgba(140, 217, 255, 0.06), transparent 60%),
    radial-gradient(ellipse at bottom right, rgba(255, 216, 107, 0.04), transparent 50%),
    linear-gradient(to bottom, var(--bg-deep) 0%, #02040d 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

#stars {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
}

main {
  position: relative;
  z-index: 1;
  max-width: 920px;
  margin: 0 auto;
  padding: 60px 28px 80px;
}

/* ── Hero ──────────────────────────────────────────────────────────────── */

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

.logo-wrap {
  max-width: 540px;
  margin: 0 auto 18px;
}

.logo {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 32px rgba(140, 217, 255, 0.30));
}

.tagline {
  font-size: 1.05rem;
  color: var(--text-dim);
  font-style: italic;
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.alpha-badge {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
  border: 1px solid rgba(255, 216, 107, 0.35);
  background: rgba(255, 216, 107, 0.06);
  padding: 7px 14px;
  border-radius: 4px;
  margin-bottom: 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Buttons ───────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  padding: 13px 26px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 4px;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background: #b5e8ff;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border-color: rgba(140, 217, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(140, 217, 255, 0.08);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn-large {
  padding: 16px 38px;
  font-size: 1.1rem;
}

/* ── Sections ──────────────────────────────────────────────────────────── */

section {
  margin: 90px 0;
}

h2 {
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text);
  max-width: 720px;
}

.about p {
  font-size: 1.15rem;
  line-height: 1.7;
}

/* ── Features grid ─────────────────────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 32px;
}

.feature {
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature:hover {
  border-color: rgba(140, 217, 255, 0.5);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 10px;
  line-height: 1;
}

.feature h3 {
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--accent-warm);
}

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

/* ── Open development section ──────────────────────────────────────────── */

.open p {
  margin-bottom: 14px;
  max-width: 720px;
}

.open a, .editor a, footer a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(140, 217, 255, 0.3);
  transition: border-color 0.12s ease, color 0.12s ease;
}

.open a:hover, .editor a:hover, footer a:hover {
  color: #b5e8ff;
  border-bottom-color: var(--accent);
}

.editor code {
  font-family: "SF Mono", Monaco, "Courier New", monospace;
  background: rgba(140, 217, 255, 0.08);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--accent);
}

/* ── CTA block ─────────────────────────────────────────────────────────── */

.cta-block {
  text-align: center;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 60px 30px;
}

.cta-block h2 {
  margin-bottom: 14px;
}

.cta-block .lead {
  margin: 0 auto 30px;
  max-width: 500px;
}

.muted {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 18px;
}

/* ── Footer ────────────────────────────────────────────────────────────── */

footer {
  text-align: center;
  padding-top: 60px;
  border-top: 1px solid var(--border);
  margin-top: 80px;
}

.quote {
  font-style: italic;
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.footer-links span {
  color: var(--text-dim);
  opacity: 0.5;
}

.copyright {
  font-size: 0.78rem;
  color: var(--text-dim);
  opacity: 0.65;
}

/* ── Mobile ────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  body { font-size: 16px; }
  main { padding: 40px 20px 60px; }
  .hero { padding: 40px 0 70px; }
  .logo-wrap { max-width: 100%; }
  section { margin: 60px 0; }
  h2 { font-size: 1.5rem; }
  .feature { padding: 20px; }
  .cta-block { padding: 40px 22px; }
  .hero-cta { flex-direction: column; align-items: center; }
  .btn { width: 100%; max-width: 280px; text-align: center; }
}
