/* ============================================================
   Ivory Quest — Landing Page Styles (Dark Mode Only)
   ============================================================ */

:root {
  --primary: #7c3aed;
  --primary-dark: #5b21b6;
  --primary-light: #a78bfa;
  --accent: #f59e0b;
  --bg: #0f0a1e;
  --bg-dark: #080514;
  --bg-card: #1a1033;
  --bg-play: #0d1a2e;
  --text: #f3f0ff;
  --text-muted: #a89cc8;
  --border: rgba(124, 58, 237, 0.25);
  --nav-bg: rgba(8, 5, 20, 0.88);
  --radius: 12px;
  --max-width: 1100px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

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

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-light);
  text-decoration: none;
}
.navbar-brand:hover { text-decoration: none; opacity: 0.85; }

.navbar-right { display: flex; align-items: center; gap: 0.75rem; }

/* ── Language Selector ──────────────────────────────────── */
.lang-select {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid var(--border);
  color: var(--primary-light);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23a78bfa' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  padding-right: 1.8rem;
}
.lang-select:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.lang-select option { background: #1a1033; color: var(--text); }

/* ── Typography ─────────────────────────────────────────── */
h1, h2, h3 { font-weight: 700; line-height: 1.2; }

h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-light);
}

h3 { font-size: 1.1rem; color: var(--accent); margin-bottom: 0.5rem; }
p { color: var(--text-muted); }
strong { color: var(--text); }
a { color: var(--primary-light); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ─────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-dark { background: var(--bg-dark); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

.hero-inner { display: flex; flex-direction: column; gap: 1.25rem; }

.hero-logo {
  width: min(280px, 80%);
  height: auto;
  filter: drop-shadow(0 0 20px rgba(167, 139, 250, 0.4));
}

.hero-tagline {
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.hero-description {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
}

.free-badge {
  font-size: 0.85rem;
  color: var(--primary-light);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-screenshot img {
  width: 100%;
  max-width: 340px;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(124, 58, 237, 0.25);
  border: 1px solid var(--border);
  display: block;
  margin: 0 auto;
}

/* ── Download Buttons ───────────────────────────────────── */
.download-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }

.product-hunt-badge { margin-top: 1.5rem; }
.product-hunt-badge img { display: block; opacity: 0.85; transition: opacity 0.2s; }
.product-hunt-badge:hover img { opacity: 1; }

.btn-app-store img, .btn-mac img {
  height: 44px; width: auto; display: block; border-radius: 8px;
}

.btn-steam {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #1b2838; color: #c6d4df;
  padding: 0.6rem 1.2rem; border-radius: 8px;
  font-weight: 600; font-size: 0.9rem;
  border: 1px solid #2a475e;
  transition: background 0.2s; height: 44px;
}
.btn-steam:hover { background: #2a475e; text-decoration: none; color: #fff; }
.btn-steam svg { width: 20px; height: 20px; fill: #c6d4df; }

.btn-windows {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #0078d4; color: #fff;
  padding: 0.6rem 1.2rem; border-radius: 8px;
  font-weight: 600; font-size: 0.9rem;
  border: 1px solid #006cbf;
  transition: background 0.2s; height: 44px;
  text-decoration: none;
}
.btn-windows:hover { background: #006cbf; text-decoration: none; color: #fff; }
.btn-windows svg { width: 18px; height: 18px; fill: #fff; }

/* ── Section Lead ───────────────────────────────────────── */
.section-lead {
  font-size: 1.1rem; max-width: 700px;
  margin: 0 auto 2rem; text-align: center;
  color: var(--text-muted);
}

/* ── Badges ─────────────────────────────────────────────── */
.badges { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }

.badge {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid var(--border);
  color: var(--primary-light);
  padding: 0.3rem 0.9rem; border-radius: 999px;
  font-size: 0.85rem; font-weight: 600;
}

.badge-android {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
}

/* ── Steps ──────────────────────────────────────────────── */
.steps { display: flex; flex-direction: column; gap: 1.5rem; max-width: 640px; margin: 0 auto; }

.step { display: flex; align-items: flex-start; gap: 1.25rem; }

.step-number {
  min-width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: #fff;
  font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.5);
}

.step-text h3 { color: var(--text); margin-bottom: 0.2rem; }
.step-text p { color: var(--text-muted); font-size: 0.95rem; }

/* ── Screenshots ────────────────────────────────────────── */
.screenshots { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; overflow: hidden; }

.screenshots-label {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
  margin-top: 1rem;
}

.screenshots-label:first-child {
  margin-top: 0;
}

.screenshots figure { display: flex; flex-direction: column; gap: 0.75rem; }

.screenshots img {
  width: 100%; max-width: 100%; height: auto;
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  border: 1px solid var(--border);
  display: block;
}

.screenshots figcaption {
  font-size: 0.88rem; color: var(--text-muted);
  text-align: center; font-style: italic;
}

/* ── Features Grid ──────────────────────────────────────── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.15);
}

.feature-card ul {
  list-style: none; padding: 0;
  display: flex; flex-direction: column; gap: 0.3rem;
}
.feature-card ul li {
  color: var(--text-muted); font-size: 0.9rem;
  padding-left: 1rem; position: relative;
}
.feature-card ul li::before {
  content: '·'; position: absolute; left: 0; color: var(--primary-light);
}

/* ── CTA Section ────────────────────────────────────────── */
.section-cta {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #1a0a3e 100%);
  text-align: center;
}
.section-cta h2 { color: var(--text); }
.section-cta p { margin-bottom: 2rem; font-size: 1.05rem; }
.section-cta .download-buttons { justify-content: center; }

.cta-note {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: rgba(243, 240, 255, 0.55);
  margin-bottom: 0 !important;
}

/* ── FAQ ────────────────────────────────────────────────── */
.faq { max-width: 700px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.75rem; }

details {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem; cursor: pointer;
}
details[open] { border-color: var(--primary); }

summary {
  font-weight: 600; color: var(--text); cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
}
summary::after { content: '+'; color: var(--primary-light); font-size: 1.25rem; }
details[open] summary::after { content: '−'; }
details p { margin-top: 0.75rem; font-size: 0.95rem; color: var(--text-muted); }

/* ── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark); border-top: 1px solid var(--border);
  padding: 3rem 0; text-align: center;
}
.footer-icon { width: 64px; height: 64px; border-radius: 14px; margin-bottom: 1rem; box-shadow: 0 4px 16px rgba(0,0,0,0.4); }
.footer p { font-size: 0.9rem; margin-bottom: 0.5rem; color: var(--text-muted); }
.footer a { color: var(--primary-light); }

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding: 3rem 1.5rem; }
  .hero-inner { align-items: center; }
  .hero-description { max-width: 100%; }
  .download-buttons { justify-content: center; }
  .screenshots { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
}
