:root {
  color-scheme: dark;
  --bg: #090b10;
  --panel: rgba(17, 24, 39, 0.86);
  --panel-solid: #111827;
  --muted: #94a3b8;
  --text: #f8fafc;
  --accent: #7c3aed;
  --accent-2: #22c55e;
  --border: rgba(148, 163, 184, 0.22);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 58, 237, 0.28), transparent 34rem),
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.16), transparent 28rem),
    var(--bg);
  color: var(--text);
}

a { color: inherit; }

.landing-shell {
  width: min(100%, 1120px);
  margin: 0 auto;
  padding: clamp(24px, 4vw, 56px) clamp(16px, 4vw, 32px);
}

.topnav,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--text);
  font-size: clamp(1.5rem, 2.4vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.nav-links,
.footer-links nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.nav-links a,
.footer-links a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.footer-links a:hover { color: var(--text); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(48px, 8vw, 92px) 0;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  padding: 6px 10px;
  border: 1px solid rgba(124, 58, 237, 0.55);
  border-radius: 999px;
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.14);
  font-size: 0.86rem;
  font-weight: 900;
}

h1,
h2,
h3 { letter-spacing: -0.04em; }

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 7vw, 5.4rem);
  line-height: 0.95;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.lead {
  margin: 22px 0 0;
  color: #cbd5e1;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.65;
}

.content-block p,
.faq p,
.demo-card p,
.footer-note {
  color: var(--muted);
  line-height: 1.75;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.cta-button,
.secondary-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.cta-button {
  padding: 0 22px;
  color: white;
  background: linear-gradient(135deg, var(--accent), #2563eb);
  box-shadow: 0 14px 44px rgba(124, 58, 237, 0.34);
}
.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 52px rgba(124, 58, 237, 0.5);
}
.secondary-link:hover {
  transform: translateY(-2px);
}

.secondary-link {
  padding: 0 18px;
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.78);
}

.demo-card,
.content-card,
.faq details {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.demo-card {
  padding: 18px;
  overflow: hidden;
}

.demo-window-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: -2px 0 16px;
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 900;
}

.demo-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #ef4444;
}

.demo-window-bar span:nth-child(2) { background: #f59e0b; }
.demo-window-bar span:nth-child(3) { background: #22c55e; }

.demo-window-bar strong { margin-left: auto; }

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.demo-tile {
  position: relative;
  display: flex;
  min-height: 128px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.18), transparent 1.8rem),
    linear-gradient(145deg, rgba(124, 58, 237, 0.36), rgba(37, 99, 235, 0.14)),
    #020617;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.demo-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
}

.demo-tile::before {
  content: "";
  position: absolute;
  inset: 12px 12px auto auto;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0)),
    rgba(15, 23, 42, 0.9);
}

.demo-tile-twitch { background-color: #170f3f; }
.demo-tile-youtube { background-color: #3b0a14; }
.demo-tile-kick { background-color: #082f1d; }
.demo-tile-event { background-color: #111827; }

.demo-live {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 7px;
  border-radius: 999px;
  color: white;
  background: rgba(239, 68, 68, 0.92);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  font-weight: 900;
}

.demo-tile > span:not(.demo-live) {
  display: block;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: white;
  background: rgba(15, 23, 42, 0.9);
  font-size: 0.82rem;
  font-weight: 900;
}

.demo-tile strong {
  position: relative;
  color: white;
  font-size: 1.06rem;
  line-height: 1.1;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55);
}

.demo-tile small {
  position: relative;
  margin-top: 5px;
  color: #cbd5e1;
  font-weight: 800;
}

.content-section,
.faq,
.related-pages { padding: 34px 0; }

.content-card { padding: clamp(22px, 4vw, 36px); }

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.feature {
  min-height: 138px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  transition: transform 220ms ease, border-color 220ms ease;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.35);
}

.feature p {
  margin: 0;
  line-height: 1.65;
}

.content-cta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.content-cta .cta-button,
.final-cta .cta-button {
  min-height: 58px;
  padding-inline: 34px;
  font-size: 1.05rem;
}

.final-cta .cta-row {
  justify-content: center;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-item {
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--panel);
  transition: border-color 200ms ease, background 200ms ease;
}
.faq {
  display: flex;
  flex-direction: column;
}
.faq-spacer {
  flex: 1 1 auto;
  min-height: 0;
}

.faq-item:hover {
  border-color: rgba(124, 58, 237, 0.4);
  background: rgba(17, 24, 39, 0.9);
}

/* ── FAQ accordion: grid template rows for no-layout-shift animation ── */

.faq-summary {
  padding: 18px 20px;
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
  user-select: none;
}

.faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 300ms ease;
}
.faq-content > div {
  overflow: hidden;
  padding: 0 20px;
}
.faq-item.active .faq-content {
  grid-template-rows: 1fr;
}
.faq-item.active .faq-content > div {
  padding-bottom: 18px;
}

@keyframes faq-inner {
  from { opacity: 0; transform: translateY(-6px); }
}
.faq-item.active .faq-content p {
  animation: faq-inner 250ms ease-out;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.related-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--text);
  background: rgba(15, 23, 42, 0.72);
  text-decoration: none;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}
.related-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, 0.35);
  background: rgba(17, 24, 39, 0.9);
}

.related-card strong { display: block; margin-bottom: 6px; }
.related-card span { color: var(--muted); line-height: 1.55; }

.footer-links {
  margin-top: 44px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

/* ── Entrance animations ── */

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
}

/* Hero column stagger — no HTML changes needed */
.hero { animation: fade-up 600ms ease-out both; }
.hero > div > * {
  animation: fade-up 500ms ease-out both;
}
.hero > div > *:nth-child(2) { animation-delay: 80ms; }
.hero > div > *:nth-child(3) { animation-delay: 160ms; }
.hero > div > *:nth-child(4) { animation-delay: 240ms; }
.hero > aside { animation: fade-up 500ms ease-out 360ms both; }

/* ── Scroll-reveal sections ── */

.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease-out, transform 500ms ease-out;
}
.section-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .hero,
  .hero > div > *,
  .hero > aside {
    animation: none;
  }
  .section-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .faq-item .faq-content {
    transition: none;
  }
  .faq-item.active .faq-content p {
    animation: none;
  }
}

@media (max-width: 820px) {
  .hero,
  .content-grid,
  .related-grid { grid-template-columns: 1fr; }
}
