:root {
  --ink: #13151a;
  --paper: #f2f0e9;
  --lime: #c8ff3d;
  --violet: #7047eb;
  --blue: #42a5ff;
  --muted: #777b83;
  --line: rgba(19, 21, 26, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
button, textarea, select, input { font: inherit; }
.hero { min-height: 790px; padding: 30px max(5vw, 28px); color: #f8f8f4; background: var(--ink); position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; width: 540px; height: 540px; right: -120px; top: 60px; border-radius: 50%; border: 120px solid var(--violet); opacity: .78; box-shadow: 0 0 100px rgba(112,71,235,.4); }
nav { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 2; }
.brand { font-size: 23px; font-weight: 800; letter-spacing: -.7px; }.brand span { color: var(--lime); }
.badge { border: 1px solid rgba(255,255,255,.25); padding: 8px 14px; border-radius: 99px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.badge.ok::before { content: ""; display: inline-block; width: 7px; height: 7px; background: var(--lime); border-radius: 50%; margin-right: 8px; }
.hero-copy { max-width: 810px; position: relative; z-index: 2; margin-top: 105px; }
.eyebrow, .step { color: var(--violet); letter-spacing: .17em; font-size: 12px; font-weight: 800; }
.hero .eyebrow { color: var(--lime); }
h1 { font-size: clamp(56px, 8vw, 112px); line-height: .88; letter-spacing: -.065em; margin: 18px 0 32px; }
.lead { max-width: 620px; font-size: 20px; line-height: 1.55; color: #bdc0c7; }
.primary, .action { display: inline-flex; gap: 30px; align-items: center; background: var(--lime); color: var(--ink); border: 0; text-decoration: none; font-weight: 800; padding: 16px 22px; cursor: pointer; transition: transform .15s, filter .15s; }
.primary:hover, .action:hover { transform: translateY(-2px); filter: brightness(.96); }
.runtime { position: relative; z-index: 2; margin-top: 68px; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid rgba(255,255,255,.18); padding-top: 22px; }
.runtime div { display: flex; flex-direction: column; gap: 6px; }.runtime span { color: #8d9199; font-size: 12px; text-transform: uppercase; }.runtime strong { font-size: 18px; }
main { max-width: 1180px; margin: 0 auto; padding: 110px 28px; }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: end; margin-bottom: 70px; }.intro .eyebrow { grid-column: 1 / -1; margin: 0; }.intro h2 { font-size: clamp(48px, 7vw, 86px); letter-spacing: -.055em; line-height: .95; margin: 0; }.intro > p:last-child { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 480px; margin: 0; }
.tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; }.tab { border: 0; background: transparent; padding: 17px 25px; font-weight: 750; color: var(--muted); cursor: pointer; white-space: nowrap; border-bottom: 3px solid transparent; }.tab.active { color: var(--ink); border-color: var(--violet); }
.panel { display: none; grid-template-columns: minmax(300px, .85fr) minmax(390px, 1.15fr); gap: 65px; padding: 60px 0; }.panel.active { display: grid; }
.panel h3 { font-size: 39px; letter-spacing: -.035em; margin: 8px 0 15px; }.panel-copy > p:not(.step):not(.hint) { color: var(--muted); line-height: 1.6; }
label { display: block; font-size: 13px; font-weight: 750; margin: 20px 0 8px; }
textarea, select { width: 100%; border: 1px solid var(--line); background: rgba(255,255,255,.62); padding: 13px; border-radius: 0; margin-top: 7px; }
textarea { resize: vertical; font-family: ui-monospace, SFMono-Regular, monospace; line-height: 1.55; }
input[type="range"] { width: 100%; accent-color: var(--violet); margin-top: 14px; }
.action { margin-top: 22px; background: var(--ink); color: white; min-width: 205px; justify-content: center; }.action:disabled { opacity: .5; cursor: wait; transform: none; }
.output { min-height: 360px; background: #fff; border: 1px solid var(--line); padding: 32px; box-shadow: 14px 14px 0 var(--lime); }
.output-label { color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 11px; font-weight: 800; }
pre { font-size: clamp(22px, 3vw, 38px); white-space: pre-wrap; margin: 60px 0 30px; font-family: ui-monospace, SFMono-Regular, monospace; }.output > p { color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: 20px; }.metric-grid div { border-left: 4px solid var(--lime); padding-left: 22px; }.metric-grid span { display: block; color: var(--muted); }.metric-grid strong { display: block; font-size: 68px; letter-spacing: -.05em; margin-top: 8px; }.metric-grid p { grid-column: 1/-1; }
.controls { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }.controls label:last-child { grid-column: 1/-1; }.hint { color: var(--muted); font-size: 13px; }
.chart-wrap { padding: 16px; box-shadow: 14px 14px 0 var(--violet); }canvas { width: 100%; height: auto; background: #f6f6f2; }.chart-stats { display: flex; justify-content: space-between; padding: 12px 6px 0; }.chart-stats span { color: var(--muted); }.chart-stats strong { color: var(--ink); }
.examples { border-top: 1px solid var(--line); padding-top: 70px; margin-top: 40px; }.examples-head { display: flex; justify-content: space-between; gap: 30px; align-items: end; margin-bottom: 35px; }.examples h2 { font-size: clamp(38px, 5vw, 64px); letter-spacing: -.05em; line-height: .95; margin: 0; }.examples-head p { color: var(--muted); line-height: 1.6; max-width: 420px; margin: 0; }.example-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }.example-card { background: #fff; border: 1px solid var(--line); padding: 23px 20px 20px; min-height: 250px; display: flex; flex-direction: column; }.example-card .number { color: var(--violet); font: 800 12px ui-monospace, monospace; letter-spacing: .08em; }.example-card h4 { font-size: 20px; margin: 30px 0 9px; }.example-card p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0 0 18px; }.example-card pre { font-size: 11px; line-height: 1.45; margin: auto 0 0; background: var(--ink); color: var(--lime); padding: 12px; overflow: auto; }
footer { background: var(--ink); color: #92959d; padding: 28px max(5vw, 28px); display: flex; justify-content: space-between; font-size: 12px; }
code { background: rgba(112,71,235,.1); padding: 2px 5px; }

@media (max-width: 760px) {
  .hero { min-height: 760px; }.hero::after { width: 220px; height: 220px; right: -150px; top: 58px; border-width: 55px; opacity: .55; }
  .runtime { grid-template-columns: 1fr; gap: 12px; margin-top: 48px; }.runtime div { flex-direction: row; justify-content: space-between; }
  .intro, .panel { grid-template-columns: 1fr; }.panel { gap: 25px; }.intro .eyebrow { grid-column: auto; }.output { min-height: 290px; }
  .examples-head { display: block; }.examples-head p { margin-top: 20px; }.example-grid { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; gap: 8px; }
}

@media (max-width: 460px) { .example-grid { grid-template-columns: 1fr; } }
