:root {
  color-scheme: dark;
  --bg: #080907;
  --surface: #11140f;
  --surface-2: #171d15;
  --surface-3: #1d251b;
  --text: #f4f7df;
  --text-soft: #b7c2a2;
  --muted: #7f8d74;
  --border: rgba(216, 255, 214, 0.14);
  --border-strong: rgba(184, 255, 106, 0.34);
  --cyan: #7cf7ff;
  --coral: #ff6f61;
  --lime: #b8ff6a;
  --amber: #ffd166;
  --violet: #c89cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 14% 8%, rgba(184, 255, 106, 0.08), transparent 24rem),
    radial-gradient(circle at 88% 20%, rgba(124, 247, 255, 0.08), transparent 25rem),
    linear-gradient(180deg, #080907 0%, #0b0d09 44%, #080907 100%);
  color: var(--text);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(244, 247, 223, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 247, 223, 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 70%);
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(8, 9, 7, 0.82);
  backdrop-filter: blur(20px);
}

.brand,
.site-header nav,
.site-footer nav,
.hero-actions,
.command-row,
.preset-row,
.related-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 760;
}

.brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #fff, transparent 19%),
    radial-gradient(circle at 72% 32%, var(--cyan), transparent 20%),
    radial-gradient(circle at 48% 76%, var(--lime), transparent 24%),
    var(--surface-2);
  box-shadow: 0 0 24px rgba(124, 247, 255, 0.55);
}

.site-header nav {
  gap: 16px;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.site-header nav a,
.site-footer nav a {
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover {
  color: var(--lime);
}

.section-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(540px, 1.2fr);
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding-top: 48px;
}

.eyebrow,
.panel-kicker {
  margin: 0 0 10px;
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.hero-text,
.section-heading p,
.split-copy p,
.guide p,
.site-footer p {
  color: var(--text-soft);
  font-size: 1.04rem;
  line-height: 1.65;
}

.hero-text {
  max-width: 58ch;
  margin: 22px 0 0;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 42px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 15px;
  color: var(--text);
  background: rgba(244, 247, 223, 0.04);
  text-decoration: none;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.button.primary {
  border-color: rgba(184, 255, 106, 0.55);
  color: #071006;
  background: linear-gradient(135deg, var(--lime), var(--cyan));
  font-weight: 760;
}

.button.secondary {
  color: var(--text-soft);
}

.proof-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 34px 0 0;
}

.proof-list div,
.sample-grid article,
.note-grid article,
.steps li,
.faq-grid details,
.simulator-card,
.legal-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(23, 29, 21, 0.82), rgba(13, 15, 11, 0.88));
}

.proof-list div {
  padding: 12px;
}

.proof-list dt {
  font-size: 0.82rem;
  font-weight: 760;
}

.proof-list dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.simulator-card {
  overflow: hidden;
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.simulator-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.simulator-topline h2 {
  font-size: 1.25rem;
}

.status-pill {
  align-self: start;
  margin: 0;
  border: 1px solid rgba(124, 247, 255, 0.22);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.78rem;
  white-space: nowrap;
  background: rgba(124, 247, 255, 0.06);
}

.canvas-wrap {
  position: relative;
  min-height: 420px;
  margin: 0 18px;
  overflow: hidden;
  border: 1px solid rgba(184, 255, 106, 0.18);
  border-radius: 8px;
  background: #030403;
  box-shadow:
    inset 0 0 70px rgba(124, 247, 255, 0.08),
    inset 0 0 150px rgba(184, 255, 106, 0.05);
}

.canvas-wrap::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background: radial-gradient(circle at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.38));
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  cursor: crosshair;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.control-block {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.control-block.full {
  grid-column: 1 / -1;
}

.control-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.86rem;
}

output {
  color: var(--lime);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--lime);
}

.preset-row,
.command-row {
  flex-wrap: wrap;
  gap: 8px;
}

.preset-button {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  color: var(--text-soft);
  background: rgba(244, 247, 223, 0.04);
  cursor: pointer;
}

.preset-button[aria-pressed="true"] {
  border-color: rgba(184, 255, 106, 0.5);
  color: var(--text);
  background: rgba(184, 255, 106, 0.12);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.sample-grid,
.note-grid,
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sample-grid article,
.note-grid article,
.steps li,
.faq-grid details,
.legal-card {
  padding: 18px;
}

.sample-grid p,
.note-grid p,
.steps p,
.faq-grid p,
.legal-card p,
.legal-card li {
  color: var(--text-soft);
  line-height: 1.6;
}

.sample-swatch {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 50%;
  box-shadow: 0 0 34px currentColor;
}

.sample-swatch.bloom {
  color: var(--lime);
  background: radial-gradient(circle, var(--cyan), var(--lime), transparent 72%);
}

.sample-swatch.orbit {
  color: var(--amber);
  background: conic-gradient(from 90deg, var(--cyan), var(--amber), var(--coral), var(--cyan));
}

.sample-swatch.cells {
  color: var(--violet);
  background: radial-gradient(circle at 30% 40%, var(--violet), transparent 28%),
    radial-gradient(circle at 70% 68%, var(--lime), transparent 26%), var(--surface-2);
}

.sample-swatch.swarm {
  color: var(--coral);
  background: radial-gradient(circle, var(--coral), var(--amber), transparent 66%);
}

.split-copy {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 24px;
}

.note-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
}

.steps li::before {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: #071006;
  background: var(--lime);
  content: counter(step);
  font-weight: 800;
}

.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

summary {
  cursor: pointer;
  font-weight: 760;
}

.related h2 {
  margin-bottom: 18px;
  font-size: 1.6rem;
}

.related-links {
  flex-wrap: wrap;
  gap: 10px;
}

.related-links a {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--text-soft);
  text-decoration: none;
  background: rgba(244, 247, 223, 0.04);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
  border-top: 1px solid var(--border);
}

.site-footer p {
  max-width: 520px;
  margin: 0;
}

.site-footer nav {
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text-soft);
}

.legal-page {
  min-height: 100vh;
}

.legal-card {
  max-width: 820px;
  margin: 64px auto;
}

.legal-card h1 {
  max-width: 100%;
  margin-bottom: 18px;
  font-size: clamp(2.3rem, 6vw, 4.8rem);
}

.legal-card h2 {
  margin-top: 32px;
  font-size: 1.4rem;
}

@media (max-width: 980px) {
  .hero,
  .split-copy {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 12ch;
  }

  .sample-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    flex-wrap: wrap;
  }

  .section-shell {
    width: min(100% - 24px, 1180px);
    padding: 56px 0;
  }

  .proof-list,
  .control-grid,
  .sample-grid,
  .note-grid,
  .steps,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .canvas-wrap,
  canvas {
    min-height: 330px;
  }

  .simulator-topline,
  .site-footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
