
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root, html[data-theme="dark"] {
    --bg: #0a0a0c; --bg2: #0e0e12; --card: #121216; --card2: #18181e;
    --border: #26262e; --text: #f2f2f5; --muted: #8b8b9a; --soft: #e8e8ed;
    --nav-bg: rgba(10,10,12,0.72); --nav-border: rgba(255,255,255,0.08);
    --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;
    --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
    --radius: .75rem;
    --shadow: 0 4px 24px -4px rgba(0,0,0,.45);
  }
  html[data-theme="light"] {
    --bg: #f4f4f6; --bg2: #ebebef; --card: #ffffff; --card2: #f0f0f4;
    --border: #d8d8e0; --text: #121218; --muted: #5c5c6a; --soft: #14141a;
    --nav-bg: rgba(244,244,246,0.85); --nav-border: rgba(0,0,0,0.08);
    --shadow: 0 4px 20px -6px rgba(0,0,0,.12);
  }
  html { color-scheme: dark; scroll-behavior: smooth; }
  html[data-theme="light"] { color-scheme: light; }

  body {
    min-height: 100vh; background: var(--bg); color: var(--text);
    font-family: var(--sans); font-size: 15px; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }
  body::before {
    content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
    background: radial-gradient(ellipse 90% 50% at 50% -10%, rgba(255,255,255,.05), transparent 55%);
  }
  .app { position: relative; z-index: 1; }
  h1, h2, h3, .nav-logo { font-family: var(--display); letter-spacing: -.03em; font-weight: 600; }
  a { color: inherit; text-decoration: none; }
  code, .mono { font-family: var(--mono); }

  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 0 20px; min-height: 4rem; background: var(--nav-bg);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--nav-border);
  }
  .nav-logo { font-size: .95rem; white-space: nowrap; }
  .nav-logo span { color: var(--muted); font-weight: 400; }
  .nav-mid { display: none; gap: .35rem; align-items: center; }
  @media (min-width: 760px) { .nav-mid { display: flex; } }
  .nav-link {
    font-size: .8125rem; font-weight: 500; color: var(--muted);
    padding: .45rem .9rem; border-radius: 999px; border: 1px solid transparent;
  }
  .nav-link:hover { color: var(--text); background: rgba(127,127,127,.12); }
  .theme-toggle {
    display: inline-flex; align-items: center; height: 2.1rem; padding: 0 .75rem;
    border-radius: 999px; border: 1px solid var(--border); background: transparent;
    color: var(--text); cursor: pointer; font-size: .75rem; font-weight: 600; font-family: inherit;
  }
  .theme-toggle:hover { background: rgba(127,127,127,.12); }

  .wrap { width: min(52rem, calc(100% - 2rem)); margin-inline: auto; }
  main { padding: 6.5rem 0 3rem; }

  .kicker {
    font-family: var(--mono); font-size: .68rem; letter-spacing: .18em;
    text-transform: uppercase; color: var(--muted); margin-bottom: .8rem;
  }
  h1 {
    font-size: clamp(2.1rem, 6vw, 3.2rem); font-weight: 700;
    letter-spacing: -.04em; line-height: 1.05; margin-bottom: 1rem;
  }
  .lead { color: var(--muted); font-size: 1.08rem; line-height: 1.7; max-width: 42rem; }
  .lead strong { color: var(--text); font-weight: 600; }

  .badge-row { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.5rem 0 2.5rem; }
  .badge {
    font-family: var(--mono); font-size: .7rem; letter-spacing: .06em;
    padding: .4rem .8rem; border-radius: 999px;
    border: 1px solid var(--border); color: var(--muted); background: rgba(127,127,127,.05);
  }
  .badge strong { color: var(--text); font-weight: 500; }

  section { margin-bottom: 2.5rem; }
  section > h2 {
    font-family: var(--mono); font-size: .7rem; font-weight: 500;
    letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
    margin-bottom: 1rem;
  }
  .card {
    background: var(--card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow);
    margin-bottom: .75rem;
  }
  .card h3 { font-size: 1.02rem; margin-bottom: .5rem; }
  .card p { color: var(--muted); font-size: .93rem; }
  .card p + p { margin-top: .6rem; }
  .card strong { color: var(--text); font-weight: 600; }

  .grid { display: grid; gap: .75rem; }
  @media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

  .flow {
    font-family: var(--mono); font-size: .78rem; line-height: 2;
    color: var(--muted); white-space: pre; overflow-x: auto;
    background: var(--bg2); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.1rem 1.3rem;
  }

  table { width: 100%; border-collapse: collapse; font-size: .88rem; }
  th, td { text-align: left; padding: .7rem .6rem; border-bottom: 1px solid var(--border); }
  th {
    font-family: var(--mono); font-size: .64rem; letter-spacing: .14em;
    text-transform: uppercase; color: var(--muted); font-weight: 500;
  }
  td { color: var(--muted); vertical-align: top; }
  td strong { color: var(--text); font-weight: 600; }
  .files-wrap { overflow-x: auto; }
  .fname { font-family: var(--mono); font-size: .82rem; color: var(--text); white-space: nowrap; }
  .fsize { font-family: var(--mono); font-size: .78rem; white-space: nowrap; }
  .flink {
    font-family: var(--mono); font-size: .74rem; color: var(--muted);
    border: 1px solid var(--border); border-radius: 999px; padding: .25rem .65rem;
    display: inline-block; white-space: nowrap;
  }
  .flink:hover { color: var(--text); border-color: var(--muted); }

  .footer {
    margin-top: 3.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
    font-family: var(--mono); font-size: .74rem; color: var(--muted); line-height: 2.2;
  }
  .footer a { margin-right: 1rem; }
  .footer a:hover { color: var(--text); }

  .launchstag-badge { margin: 2.5rem 0 0; }
  .launchstag-badge img { display: block; width: 198px; height: auto; opacity: 0.92; transition: opacity 0.15s; }
  .launchstag-badge:hover img { opacity: 1; }
  .social-row {
    display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 2rem 0 0;
  }
  .social-pill {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.45rem 0.75rem; border-radius: 999px;
    font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
    text-decoration: none; border: 1px solid var(--border);
  }
  .social-pill--ph { background: #da552f; color: #fff; border-color: transparent; }
  .social-pill--at { background: #0f766e; color: #fff; border-color: transparent; }
  .social-pill--gh { background: var(--card); color: var(--text); }
  .social-pill:hover { opacity: 0.92; transform: translateY(-1px); }

  .install-card {
    margin: 1.75rem 0 2.5rem; padding: 1.25rem 1.35rem;
    border: 1px solid var(--border); border-radius: var(--radius);
    background: var(--card); box-shadow: var(--shadow);
  }
  .install-card h2 { font-size: 1.05rem; margin-bottom: 0.45rem; }
  .install-card p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.85rem; }
  pre.curl {
    font-family: var(--mono); font-size: 0.78rem; line-height: 1.5;
    padding: 0.85rem 1rem; border-radius: 0.55rem;
    background: var(--bg2); border: 1px solid var(--border);
    overflow-x: auto; cursor: pointer; user-select: all;
  }
  .install-btns { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 0.85rem; }
  .hero-actions { margin: 1.25rem 0 2rem; }
  .btn {
    display: inline-flex; align-items: center; padding: 0.55rem 1rem;
    border-radius: 999px; font-size: 0.875rem; font-weight: 600; border: 1px solid var(--border);
  }
  .btn-primary { background: var(--soft); color: var(--bg); border-color: transparent; }
  .btn-outline { background: transparent; color: var(--text); }

  .install-warn {
    margin: 0 0 0.7rem;
    padding: 0.65rem 0.8rem;
    border-radius: 0.55rem;
    border: 1px solid var(--border);
    background: var(--bg2);
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.5;
  }
  .install-warn strong { color: var(--text); }
  .prereq-callout {
    display: block;
    margin: 0 0 0.7rem;
    padding: 0.55rem 0.75rem;
    border-left: 3px solid var(--text);
    background: var(--bg2);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 600;
  }
  .prereq-callout span { color: var(--muted); font-weight: 500; }

  .spec-note { color: var(--muted); font-size: 0.88rem; margin: 0 0 0.85rem; }
  .try-cue {
    display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap;
    margin-top: 1rem;
  }
  .try-mock {
    position: relative;
    width: 11rem; height: 7.2rem;
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    background: var(--bg2);
  }
  .try-mock-btn {
    position: absolute; left: 0.7rem; bottom: 0.7rem;
    width: 2.6rem; height: 2.6rem; border-radius: 50%;
    border: 1px solid var(--border); background: var(--card);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.05rem; box-shadow: var(--shadow);
  }
  .try-arrow {
    font-family: var(--mono); font-size: 0.78rem; color: var(--text);
    max-width: 16rem; line-height: 1.45;
  }

  .changelog { list-style: none; }
  .changelog li {
    padding: 1rem 0; border-bottom: 1px solid var(--border);
  }
  .changelog li:last-child { border-bottom: none; }
  .changelog .ver {
    font-family: var(--mono); font-size: .72rem; letter-spacing: .08em;
    color: var(--text); margin-bottom: .25rem;
  }
  .changelog .ver span { color: var(--muted); font-weight: 400; margin-left: .5rem; }
  .changelog h3 { font-size: .98rem; margin-bottom: .45rem; }
  .changelog ul { padding-left: 1.15rem; color: var(--muted); font-size: .9rem; }
  .changelog ul li { border: none; padding: .2rem 0; list-style: disc; }
