:root {
  color-scheme: dark;
  --background: #151224;
  --surface: #211b37;
  --foreground: #f6f3ff;
  --muted: #b8b1ca;
  --border: rgba(255, 255, 255, 0.13);
  --accent: #b59cff;
  --accent-bright: #d9ceff;
  --shadow: 0 30px 80px rgba(5, 2, 15, 0.28);
  --radius: 18px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--foreground);
  background:
    radial-gradient(circle at 86% 4%, rgba(124, 90, 201, 0.28), transparent 30rem),
    linear-gradient(155deg, #171326 0%, #12101d 70%);
  font-size: 16px;
  line-height: 1.65;
}

a {
  color: var(--accent-bright);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: #ffffff;
}

.site-header {
  display: flex;
  width: min(1180px, calc(100% - 40px));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
  border-bottom: 1px solid var(--border);
}

.brand {
  color: var(--foreground);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  gap: 24px;
}

.site-header nav a {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
}

main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
  align-items: end;
  gap: clamp(32px, 7vw, 90px);
  padding: clamp(64px, 9vw, 112px) 0 clamp(52px, 7vw, 88px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.6rem, 6vw, 5.35rem);
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.lede {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

.site-facts {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  box-shadow: var(--shadow);
}

.site-facts div {
  display: grid;
  gap: 2px;
  padding: 17px 20px;
  background: rgba(33, 27, 55, 0.96);
}

.site-facts span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-facts strong {
  font-size: 0.98rem;
}

.simulator-panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 8px);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  padding: 24px clamp(22px, 4vw, 44px);
  border-bottom: 1px solid var(--border);
}

.panel-heading h2,
.panel-heading p {
  margin-bottom: 0;
}

.panel-heading a {
  flex: 0 0 auto;
  font-size: 0.88rem;
  font-weight: 700;
}

.simulator-frame {
  display: block;
  width: 100%;
  height: 760px;
  border: 0;
  background: #171326;
}

.embed-callout,
.notes {
  display: grid;
  grid-template-columns: minmax(210px, 0.6fr) minmax(0, 1.4fr);
  gap: clamp(32px, 7vw, 90px);
  padding: clamp(70px, 9vw, 112px) 0;
}

.embed-callout {
  border-bottom: 1px solid var(--border);
}

.embed-callout p {
  color: var(--muted);
}

.embed-callout code {
  display: block;
  padding: 14px 16px;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--accent-bright);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.88rem;
  white-space: nowrap;
}

.note-grid {
  display: grid;
}

.note-grid article {
  display: grid;
  grid-template-columns: minmax(160px, 0.42fr) minmax(0, 1fr);
  gap: 28px;
  padding: 23px 0;
  border-top: 1px solid var(--border);
}

.note-grid article:last-child {
  border-bottom: 1px solid var(--border);
}

.note-grid h3,
.note-grid p {
  margin: 0;
}

.note-grid p {
  color: var(--muted);
  font-size: 0.94rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 0 42px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.84rem;
}

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

  .site-facts {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    padding-top: 52px;
  }

  .site-facts {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    display: grid;
    gap: 8px;
  }

  .note-grid article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 420px) {
  .site-header nav {
    gap: 14px;
  }

  .site-header nav a {
    font-size: 0.76rem;
  }

  footer {
    flex-direction: column;
  }
}

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