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

:root {
  --bg: #0f0f13;
  --surface: #1a1a24;
  --surface-2: #12122a;
  --border: #2e2e40;
  --text: #e2e2e8;
  --muted: #c4c4d0;
  --faint: #8a8a9c;
  --accent: #a78bfa;
  --accent-strong: #7c3aed;
  --link: #818cf8;
  --hero-from: #3730a3;
  --hero-to: #6d28d9;
  --hero-sub: #ddd6fe;
}

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

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

/* ---------- Top navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(15, 15, 19, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  font-weight: 700;
  color: #fff;
  font-size: 1.1rem;
  letter-spacing: -0.3px;
}
.brand:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.nav-links a:hover { background: var(--surface); text-decoration: none; }
.nav-links a[aria-current="page"] { background: var(--accent-strong); color: #fff; }

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 100%);
  padding: 3rem 1rem 2.75rem;
  text-align: center;
}

.hero .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--hero-sub);
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.2;
  font-weight: 750;
  color: #fff;
  letter-spacing: -0.5px;
  margin: 0.4rem auto 0.8rem;
  max-width: 720px;
}

.hero p.lede {
  color: var(--hero-sub);
  font-size: 1.08rem;
  max-width: 620px;
  margin: 0 auto;
}

.play-badge {
  display: inline-block;
  margin-top: 1.5rem;
  line-height: 0;
}
.play-badge img { height: 64px; width: auto; }

/* ---------- Content ---------- */

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 2.5rem 1rem 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

h2::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 1.1em;
  background: var(--accent-strong);
  border-radius: 2px;
  flex-shrink: 0;
}

h3 { font-size: 1rem; color: var(--text); margin: 1rem 0 0.35rem; }

p { margin-bottom: 0.75rem; color: var(--muted); }
p:last-child { margin-bottom: 0; }
strong { color: var(--text); }

ul { list-style: none; padding: 0; margin-bottom: 0.75rem; }
ul:last-child { margin-bottom: 0; }

ul li {
  padding: 0.35rem 0 0.35rem 1.4rem;
  position: relative;
  color: var(--muted);
}

ul li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent-strong);
  font-weight: 700;
}

.highlight {
  background: var(--surface-2);
  border-left: 3px solid var(--accent-strong);
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1.1rem;
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Feature grid */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.grid .card { margin-bottom: 0; padding: 1.35rem; }
.grid .card h3 { margin-top: 0; color: var(--accent); }
.grid .card p { font-size: 0.95rem; }

/* Example queries */

.examples { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0.25rem; }
.chip {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.9rem;
  color: var(--text);
}

/* Comparison table */

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--text); font-weight: 600; }
td { color: var(--muted); }
tr:last-child td { border-bottom: none; }

/* FAQ */

details {
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
}
details:last-child { border-bottom: none; padding-bottom: 0; }
details:first-of-type { padding-top: 0; }

summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 700; flex-shrink: 0; }
details[open] summary::after { content: "–"; }
details p { margin-top: 0.6rem; }
details ul { margin-top: 0.4rem; }

/* Closing call to action */

.cta {
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem 1rem;
  margin: 2rem 0 1rem;
}
.cta h2 { justify-content: center; }
.cta h2::before { display: none; }
.cta .play-badge { margin-top: 0.75rem; }

.meta { color: var(--faint); font-size: 0.9rem; }

footer {
  text-align: center;
  padding: 2rem 1rem 3rem;
  color: var(--faint);
  font-size: 0.85rem;
}
footer a { color: var(--faint); text-decoration: underline; }

@media (max-width: 520px) {
  .card { padding: 1.25rem; }
  .nav-inner { gap: 0.4rem; }
  .nav-links { margin-left: 0; }
  .nav-links a { padding: 0.25rem 0.55rem; font-size: 0.85rem; }
}
