:root {
  --bg: #07070b;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.085);
  --border: rgba(255, 255, 255, 0.12);
  --text: rgba(255, 255, 255, 0.92);
  --muted: rgba(255, 255, 255, 0.7);
  --muted-2: rgba(255, 255, 255, 0.55);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --radius-lg: 26px;

  --accent: #a855f7;
  --accent-2: #22d3ee;
  --accent-3: #f59e0b;

  --font-display: "Oxanium", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

p {
  line-height: 1.7;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.muted {
  color: var(--muted);
}

/* Background layers */
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.bg__glow {
  position: absolute;
  inset: -30vh -20vw;
  background:
    radial-gradient(40vw 40vw at 15% 25%, rgba(168, 85, 247, 0.22), transparent 60%),
    radial-gradient(35vw 35vw at 85% 35%, rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(30vw 30vw at 55% 85%, rgba(245, 158, 11, 0.12), transparent 55%);
  filter: blur(10px);
  opacity: 0.95;
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 70px 70px;
  mask-image: radial-gradient(circle at 50% 30%, rgba(0, 0, 0, 0.9), transparent 65%);
  opacity: 0.35;
}

.bg__noise {
  position: absolute;
  inset: 0;
  opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.bg__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.02) 1px,
    transparent 1px,
    transparent 5px
  );
  opacity: 0.25;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 7, 11, 0.62);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  letter-spacing: 0.5px;
}

.brand__mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.95), rgba(34, 211, 238, 0.85));
  color: rgba(0, 0, 0, 0.9);
  font-weight: 900;
  box-shadow: 0 14px 40px rgba(168, 85, 247, 0.18);
}

.brand__name {
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 99px;
}

.nav-toggle span + span {
  margin-top: 7px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.25);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  border: 1px solid rgba(168, 85, 247, 0.65);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.95), rgba(34, 211, 238, 0.85));
  color: rgba(0, 0, 0, 0.9);
  box-shadow: 0 18px 50px rgba(168, 85, 247, 0.2);
}

.btn--primary:hover {
  box-shadow: 0 22px 70px rgba(34, 211, 238, 0.18);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.03);
}

/* Sections */
.hero {
  padding: 58px 0 18px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
  font-size: 13px;
}

.pill__dot {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.95), rgba(34, 211, 238, 0.75));
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.1);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.08;
  margin: 14px 0 12px;
  letter-spacing: -0.3px;
}

.accent {
  background: linear-gradient(90deg, rgba(168, 85, 247, 0.95), rgba(34, 211, 238, 0.85));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 56ch;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

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

.stat {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 14px;
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
}

.stat__label {
  color: var(--muted-2);
  font-size: 12px;
  margin-top: 2px;
}

/* Device mockups */
.device-stack {
  position: relative;
  width: min(520px, 100%);
  margin-left: auto;
}

.device {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.device__screen {
  background: #0a0a10;
}

.device--tv {
  padding: 14px;
}

.device--tv .device__screen {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.device--tv img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1.02);
}

.device__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  gap: 8px;
}

.badge {
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: rgba(255, 255, 255, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.badge--muted {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.85);
}

.device--phone {
  position: absolute;
  right: -10px;
  bottom: -20px;
  width: 38%;
  transform: rotate(6deg);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.device--phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 45px;
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
}

.device--phone .device__screen {
  padding: 18px 14px;
  min-height: 220px;
}

.controller-ui {
  height: 100%;
  display: grid;
  gap: 14px;
}

.controller-ui__row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.chip {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  color: rgba(0, 0, 0, 0.85);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.95), rgba(34, 211, 238, 0.85));
  box-shadow: 0 12px 30px rgba(34, 211, 238, 0.14);
}

.controller-ui__dpad {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}

.controller-ui__dpad::before,
.controller-ui__dpad::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.controller-ui__hint {
  margin-top: auto;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  text-align: center;
}

/* Section head + cards */
.section-head {
  display: grid;
  gap: 6px;
  margin: 34px 0 16px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 34px);
  margin: 0;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.28);
}

.steps {
  padding: 18px 0 10px;
}

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

.step {
  padding: 18px;
}

.step__icon {
  width: 42px;
  height: 42px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 10px;
}

.step h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
}

.step p {
  margin: 0;
  color: var(--muted);
}

.features {
  padding: 18px 0 10px;
}

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

.feature {
  padding: 18px;
}

.feature__top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.feature h3 {
  margin: 0;
  font-family: var(--font-display);
}

.feature p {
  margin: 10px 0 0;
  color: var(--muted);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.icon svg {
  width: 22px;
  height: 22px;
  opacity: 0.9;
}

/* Guide + prose */
.guide {
  padding: 18px 0 6px;
}

.guide__layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 86px;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.toc__title {
  font-family: var(--font-display);
  font-weight: 800;
  margin-bottom: 10px;
}

.toc a {
  display: block;
  color: var(--muted);
  padding: 10px 10px;
  border-radius: 14px;
  transition: background 180ms ease, color 180ms ease;
}

.toc a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.prose {
  padding: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
}

.prose h2,
.prose h3 {
  font-family: var(--font-display);
}

.prose h2 {
  font-size: 26px;
  margin: 0 0 10px;
}

.prose p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.86);
}

.prose__media {
  margin: 14px 0 18px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.prose blockquote {
  margin: 18px 0;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(168, 85, 247, 0.08);
  color: rgba(255, 255, 255, 0.86);
}

.callout {
  border-left: 3px solid rgba(34, 211, 238, 0.8);
  padding-left: 12px;
  color: var(--muted);
}

.table-responsive {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.22);
  margin: 18px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

th {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.2px;
  color: rgba(255, 255, 255, 0.86);
}

td {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.prose__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

/* FAQ */
.faq {
  padding: 18px 0 60px;
}

.accordion {
  display: grid;
  gap: 12px;
}

details {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

summary {
  cursor: pointer;
  padding: 16px 18px;
  list-style: none;
  font-family: var(--font-display);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
}

details[open] summary::after {
  content: "–";
}

/* Long-form (extended article) */
.longform {
  margin-top: 16px;
}

.longform summary {
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(34, 211, 238, 0.12)),
    rgba(255, 255, 255, 0.03);
}

.longform__inner {
  padding: 0 18px 18px;
  color: rgba(255, 255, 255, 0.82);
}

.longform__inner h3 {
  margin-top: 18px;
  margin-bottom: 8px;
  font-family: var(--font-display);
}

.longform__inner ul,
.longform__inner ol {
  padding-left: 18px;
}

.accordion__content {
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.7;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 7, 11, 0.55);
  backdrop-filter: blur(16px);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 34px 0;
}

.brand--footer {
  margin-bottom: 10px;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.footer__title {
  font-family: var(--font-display);
  font-weight: 900;
  margin-bottom: 10px;
}

.footer__col a {
  display: block;
  color: var(--muted);
  padding: 8px 0;
}

.footer__col a:hover {
  color: var(--text);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.75);
}

/* Back to top */
.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.to-top:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
}

.to-top svg {
  width: 20px;
  height: 20px;
}

/* Responsive */
@media (max-width: 980px) {
  .hero__grid {
    grid-template-columns: 1fr;
  }

  .device-stack {
    margin: 10px auto 0;
  }

  .steps__grid,
  .features__grid {
    grid-template-columns: 1fr;
  }

  .guide__layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: relative;
    top: 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: fixed;
    top: 70px;
    right: 20px;
    left: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(7, 7, 11, 0.8);
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow);
    transform-origin: top right;
    transform: scale(0.98);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav.is-open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .nav a {
    background: rgba(255, 255, 255, 0.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn,
  .nav a,
  .to-top {
    transition: none;
  }
}
