:root {
  --stage-text: #fff;
  --hero-text: #111827;
  --glass: rgb(255 255 255 / 0.12);
  --glass-edge: rgb(255 255 255 / 0.28);
  --accent: #2f6bff;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #0a1226;
  color: #fff;
}

canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 40px rgb(0 0 0 / 0.25);
}

.top {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}

.pill {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  align-items: center;
  padding: 9px 20px;
  border-radius: 999px;
  background: rgb(10 18 38 / 0.55);
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 0.92rem;
}

.pill a { color: #fff; text-decoration: none; opacity: 0.85; }
.pill a:hover, .pill a:focus-visible { opacity: 1; text-decoration: underline; }

.stage, .hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.intro {
  position: absolute;
  left: clamp(20px, 5vw, 64px);
  bottom: clamp(24px, 8vh, 80px);
  max-width: 32rem;
  color: var(--stage-text);
  pointer-events: none;
}

.intro h1 { margin: 0 0 8px; font-size: clamp(2rem, 6vw, 3.6rem); line-height: 1.05; letter-spacing: -0.02em; }
.intro p { margin: 0; font-size: 1.05rem; opacity: 0.85; }

.panel {
  position: absolute;
  right: clamp(12px, 3vw, 40px);
  top: 76px;
  width: min(300px, calc(100vw - 24px));
  padding: 16px 18px;
  border-radius: 20px;
  display: grid;
  gap: 10px;
  color: #fff;
}

.panel h2 { margin: 0; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; opacity: 0.8; }
.panel label { display: grid; grid-template-columns: 6.5rem 1fr; align-items: center; gap: 8px; font-size: 0.9rem; }
.panel label.check { grid-template-columns: auto 1fr; }
.panel select { font: inherit; padding: 5px 8px; border-radius: 10px; background: rgb(10 18 38 / 0.6); color: #fff; border: 1px solid var(--glass-edge); }
.panel input[type="range"] { width: 100%; accent-color: var(--accent); }
.more summary { cursor: pointer; font-size: 0.85rem; opacity: 0.85; margin-bottom: 8px; }
.more label { margin-bottom: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

.chip {
  font: inherit;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  background: rgb(255 255 255 / 0.1);
  color: #fff;
  cursor: pointer;
}

.chip[aria-pressed="true"] { background: #fff; color: #0a1226; }
.chip:focus-visible, .cta:focus-visible, .ghost:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.status { font-size: 0.78rem; opacity: 0.75; }

.hero { background: #f4efe6; color: var(--hero-text); display: grid; place-items: center; }
.hero-copy { position: relative; max-width: 40rem; padding: 96px 24px 64px; pointer-events: none; }
.hero-copy a { pointer-events: auto; }
.hero h2 { font-size: clamp(2.3rem, 7vw, 4.4rem); line-height: 1.04; letter-spacing: -0.025em; margin: 0 0 16px; }
.hero .lead { font-size: 1.2rem; margin: 0 0 24px; }
.tag { display: inline-block; margin: 0 0 18px; padding: 4px 12px; border-radius: 999px; background: rgb(255 255 255 / 0.7); font-size: 0.8rem; color: #111827; }

.cta, .ghost { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; margin: 0 8px 8px 0; }
.cta { background: #111827; color: #fff; }
.ghost { background: rgb(255 255 255 / 0.75); color: #111827; }

.use { padding: 80px 16px; display: grid; grid-template-columns: minmax(0, 46rem); justify-content: center; background: #0a1226; }
.card { max-width: 46rem; width: 100%; padding: 24px 28px; border-radius: 24px; }
.card h2 { margin-top: 0; }
pre { overflow-x: auto; padding: 14px; border-radius: 12px; background: rgb(0 0 0 / 0.35); font-size: 0.85rem; }
a { color: #8fb3ff; }
.hero a { color: inherit; }
.hero .cta { color: #fff; }
.foot { padding: 20px; text-align: center; font-size: 0.85rem; opacity: 0.7; background: #0a1226; }

@media (max-width: 640px) {
  .pill { gap: 4px 12px; padding: 8px 14px; font-size: 0.82rem; }
  .pill a:not(:last-of-type) { display: none; }
  .panel { top: auto; bottom: 12px; padding: 12px 14px; gap: 6px; }
  .intro { bottom: auto; top: 90px; }
}
