/* ===== Reset & base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0d1117;
  --surface: #151b23;
  --surface-2: #1b232e;
  --border: #2a323d;
  --text: #e6edf3;
  --muted: #8b98a5;
  --faint: #5b6675;
  --accent: #58a6ff;
  --accent-dim: rgba(88, 166, 255, .14);
  --green: #3fb950;
  --green-dim: rgba(63, 185, 80, .14);
  --amber: #d29922;
  --red: #f85149;
  --red-dim: rgba(248, 81, 73, .14);
  --purple: #d2a8ff;
  --radius: 12px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 650; margin-bottom: .5rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin-bottom: .35rem; }

p { margin-bottom: .9rem; }
ul, ol { margin: 0 0 1rem 1.2rem; }
li { margin-bottom: .35rem; }
strong { color: var(--text); }
code {
  font-family: var(--mono);
  font-size: .9em;
  background: var(--surface-2);
  padding: .1em .4em;
  border-radius: 6px;
  color: #a5d6ff;
}

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-lead { color: var(--muted); font-size: 1.05rem; max-width: 780px; }

/* ===== Header / nav ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 17, 23, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.brand { font-weight: 700; font-size: 1.1rem; color: var(--text); display: flex; align-items: baseline; gap: 2px; }
.brand .plus { color: var(--accent); }
.brand .amp { color: var(--faint); font-weight: 400; font-size: .9rem; }
.main-nav { display: flex; gap: 4px; }
.main-nav a {
  color: var(--muted); padding: 8px 14px; border-radius: 8px; font-size: .95rem; font-weight: 500;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.main-nav a.active { color: var(--accent); background: var(--accent-dim); }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); font-size: 1.2rem; width: 40px; height: 40px; border-radius: 8px; cursor: pointer; }

/* ===== Hero ===== */
.hero { padding: 88px 0 64px; text-align: center; }
.hero .eyebrow {
  display: inline-block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid var(--border); background: var(--surface);
  padding: 5px 14px; border-radius: 999px; margin-bottom: 20px; font-weight: 600;
}
.hero h1 { max-width: 820px; margin: 0 auto 20px; }
.hero h1 .hl-blue { color: var(--accent); }
.hero h1 .hl-green { color: var(--green); }
.hero .sub { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 1.12rem; }
.hero .meta { margin-top: 18px; color: var(--faint); font-size: .9rem; font-family: var(--mono); }

/* ===== Cards ===== */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.card h3 { display: flex; align-items: center; gap: 10px; }
.card .tag {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 9px; border-radius: 6px; font-weight: 600;
}
.tag-blue { color: var(--accent); background: var(--accent-dim); }
.tag-green { color: var(--green); background: var(--green-dim); }
.tag-red { color: var(--red); background: var(--red-dim); }
.tag-amber { color: var(--amber); background: rgba(210, 153, 34, .14); }
.card p { color: var(--muted); margin-bottom: 0; }
.card p:last-child { margin-bottom: 0; }

/* ===== Flow / stepper ===== */
.flow { display: flex; align-items: stretch; gap: 12px; flex-wrap: wrap; }
.flow .step {
  flex: 1 1 180px; min-width: 160px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 18px 16px; position: relative; text-align: center;
}
.flow .step .num { font-family: var(--mono); color: var(--faint); font-size: .78rem; margin-bottom: 6px; }
.flow .step .t { font-weight: 600; margin-bottom: 4px; }
.flow .step .d { font-size: .85rem; color: var(--muted); }
.flow .arr {
  align-self: center; font-size: 1.5rem; color: var(--faint); flex: 0 0 auto; padding: 0 2px;
}
.flow .step.ok { border-color: var(--green); }
.flow .step.bad { border-color: var(--red); }
@media (max-width: 760px) {
  .flow .arr { transform: rotate(90deg); align-self: center; }
  .flow { flex-direction: column; }
}

/* ===== Code blocks ===== */
pre {
  background: #0a0e14; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: .88rem;
  line-height: 1.55; margin: 18px 0; color: #e6edf3;
}
pre .cm { color: #6e7681; }
pre .kw { color: #ff7b72; }
pre .mod { color: #d2a8ff; }
pre .def { color: #a5d6ff; font-weight: 600; }
pre .op { color: #79c0ff; }
pre .num { color: #79c0ff; }
pre .id { color: #e6edf3; }
pre .pr { color: #ffa657; }  /* property / comments */

.code-caption { font-size: .8rem; color: var(--faint); font-family: var(--mono); margin: -8px 0 4px; }

/* ===== Tables ===== */
table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: .95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
td:first-child { font-family: var(--mono); color: #a5d6ff; white-space: nowrap; }
tr:hover td { background: rgba(255,255,255,.02); }

/* ===== Diagrams ===== */
.diagram {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; margin: 22px 0;
}
.diagram svg { display: block; margin: 0 auto; max-width: 100%; height: auto; }
.diagram .caption { text-align: center; color: var(--faint); font-size: .82rem; margin-top: 10px; font-family: var(--mono); }
.diagram .controls { display: flex; justify-content: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }

.btn {
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  padding: 8px 18px; border-radius: 8px; cursor: pointer; font-size: .9rem; font-weight: 500;
  font-family: var(--sans); transition: background .15s, border-color .15s;
}
.btn:hover { background: #232c38; }
.btn.primary { background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.btn.primary:hover { background: rgba(88,166,255,.24); }

/* ===== Behavior trace (states) ===== */
.trace { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 8px 0 4px; }
.state-card {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 16px; text-align: center; min-width: 76px; transition: all .2s;
}
.state-card .label { font-family: var(--mono); font-size: .72rem; color: var(--faint); }
.state-card .val { font-family: var(--mono); font-size: 1.05rem; color: #a5d6ff; }
.state-card.stutter { border-style: dashed; }
.state-card.stutter .val { color: var(--amber); }
.state-card.active { border-color: var(--accent); background: var(--accent-dim); box-shadow: 0 0 0 3px rgba(88,166,255,.12); }
.state-card.active .val { color: var(--accent); }
.trace-arrow { color: var(--faint); font-size: 1.2rem; }
.trace-caption { text-align: center; font-family: var(--mono); font-size: .82rem; color: var(--muted); margin-top: 8px; min-height: 1.3em; }

/* ===== Error trace panel ===== */
.errpanel {
  background: #150b0b; border: 1px solid var(--red); border-radius: var(--radius);
  padding: 18px 20px; margin: 18px 0; font-family: var(--mono); font-size: .85rem;
  display: none; white-space: pre-wrap; line-height: 1.5;
}
.errpanel.show { display: block; }
.errpanel .head { color: var(--red); font-weight: 700; margin-bottom: 8px; }
.errpanel .st { color: var(--faint); }

/* ===== Callout ===== */
.callout {
  border-left: 3px solid var(--accent); background: var(--surface);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 18px 0;
}
.callout.warn { border-left-color: var(--amber); }
.callout p:last-child { margin-bottom: 0; }
.callout .t { font-weight: 600; margin-bottom: 4px; }

/* ===== Logo list ===== */
.adopters { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.adopters span {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 6px 14px; font-size: .9rem; color: var(--muted);
}

/* ===== Footer ===== */
.site-footer {
  border-top: 1px solid var(--border); padding: 36px 0; color: var(--faint); font-size: .85rem;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

.breadcrumb { color: var(--faint); font-size: .85rem; margin-bottom: 6px; }
.breadcrumb a { color: var(--muted); }

/* ===== Responsive nav ===== */
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 10px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; }
}
</｜｜DSML｜｜parameter>