  /* ─── Design Tokens ─── */
  :root {
    --bg:       #0a0c10;
    --bg2:      #111318;
    --bg3:      #181c24;
    --border:   #1e2330;
    --accent:   #3b82f6;
    --accent2:  #60a5fa;
    --green:    #22c55e;
    --red:      #ef4444;
    --text:     #e2e8f0;
    --muted:    #64748b;
    --mono:     'Courier New', Courier, monospace;
    --sans:     system-ui, -apple-system, 'Segoe UI', sans-serif;
    --radius:   6px;
    --max:      1100px;
  }

  /* ─── Reset ─── */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
  }
  a { color: var(--accent2); text-decoration: none; }
  a:hover { text-decoration: underline; }
  img { max-width: 100%; height: auto; display: block; }

  /* ─── Layout ─── */
  .wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

  /* ─── Nav ─── */
  #nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,12,16,.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
  }
  #nav .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
  }
  .logo {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -.02em;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
  }
  .logo span { color: var(--accent); }
  .nav-links { display: flex; gap: 20px; list-style: none; }
  .nav-links a { font-size: .875rem; color: var(--muted); }
  .nav-links a:hover { color: var(--text); text-decoration: none; }
  .hamburger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
  .hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--text); margin: 5px 0; transition: .2s;
  }

  /* ─── Hero ─── */
  #hero {
    padding: 72px 0 56px;
    text-align: left;
    position: relative;
    overflow: hidden;
  }
  #hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(59,130,246,.12) 0%, transparent 70%);
    pointer-events: none;
  }
  .eyebrow {
    display: inline-block;
    align-self: flex-start;
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(59,130,246,.1);
    border: 1px solid rgba(59,130,246,.25);
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
  }
  h1 {
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.02em;
    max-width: 100%;
    margin: 0 0 16px;
  }
  h1 .hl { color: var(--accent); }
  .hero-sub {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 100%;
    margin: 0 0 28px;
  }
  
  .hero-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
  }
  .hero-left-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }
  .hero-left-col .btn-row {
    justify-content: flex-start;
  }
  .hero-right-col .app-card {
    margin: 0;
    max-width: 100%;
  }

  .btn-row { display: flex; gap: 12px; justify-content: flex-start; flex-wrap: wrap; }
  .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 24px;
    border-radius: var(--radius);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity .15s, transform .15s;
    border: none;
    text-decoration: none;
  }
  .btn:hover { opacity: .88; transform: translateY(-1px); text-decoration: none; }
  .btn-primary { background: var(--accent); color: #fff; }
  .btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
  }
  .btn-secondary:hover { border-color: var(--accent2); }

  /* ─── Info table card ─── */
  .app-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 480px;
    margin: 40px auto 0;
  }
  .app-card table { width: 100%; border-collapse: collapse; }
  .app-card tr:not(:last-child) td { border-bottom: 1px solid var(--border); }
  .app-card td {
    padding: 10px 16px;
    font-size: .875rem;
  }
  .app-card td:first-child { color: var(--muted); width: 44%; }
  .app-card td:last-child { font-weight: 500; }
  .badge-green {
    display: inline-block;
    background: rgba(34,197,94,.12);
    color: var(--green);
    border: 1px solid rgba(34,197,94,.25);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: .75rem;
    font-weight: 600;
  }
  .stars { color: #f59e0b; letter-spacing: 1px; }

  /* ─── Sections ─── */
  section { padding: 64px 20px; }
  section:nth-child(even) .wrap { /* no alternating bg needed */ }
  .section-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0;
  }

  /* ─── Section headings ─── */
  h2 {
    font-size: clamp(1.25rem, 3vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -.02em;
    margin-bottom: 8px;
    line-height: 1.25;
  }
  h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.35;
  }
  .section-label {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
  }
  .section-sub {
    color: var(--muted);
    margin-bottom: 32px;
    font-size: .95rem;
    max-width: 560px;
  }

  /* ─── Prose ─── */
  p { color: #c0cad8; margin-bottom: 14px; font-size: .95rem; }
  p:last-child { margin-bottom: 0; }

  /* ─── Feature grid ─── */
  .grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 36px;
  }
  .feature-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: border-color .2s;
  }
  .feature-card:hover { border-color: rgba(59,130,246,.4); }
  .feature-icon {
    width: 36px; height: 36px;
    background: rgba(59,130,246,.1);
    border: 1px solid rgba(59,130,246,.2);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 12px;
    font-size: 1rem;
    color: var(--text);
  }
  .feature-icon svg { width: 20px; height: 20px; }
  .feature-card h3 { font-size: .9rem; margin-bottom: 6px; }
  .feature-card p { font-size: .83rem; color: var(--muted); margin: 0; line-height: 1.6; }

  /* ─── Platform tabs ─── */
  .tab-bar {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
    gap: 0;
    overflow-x: auto;
  }
  .tab-btn {
    padding: 10px 20px;
    font-size: .875rem;
    font-weight: 600;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--muted);
    cursor: pointer;
    white-space: nowrap;
    transition: color .15s, border-color .15s;
    margin-bottom: -1px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .tab-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2px; }
  .tab-btn.active { color: var(--accent2); border-bottom-color: var(--accent); }
  .tab-btn:hover { color: var(--text); }
  .tab-pane { display: none; }
  .tab-pane.active { display: block; }

  /* ─── Steps ─── */
  .steps { list-style: none; margin-top: 16px; }
  .steps li {
    position: relative;
    padding-left: 40px;
    margin-bottom: 14px;
    font-size: .9rem;
    color: #c0cad8;
    line-height: 1.6;
  }
  .step-num {
    position: absolute;
    left: 0;
    top: 1px;
    width: 26px; height: 26px;
    background: rgba(59,130,246,.15);
    border: 1px solid rgba(59,130,246,.3);
    border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .75rem;
    font-weight: 700;
    color: var(--accent2);
  }

  /* ─── Code block ─── */
  .code-block {
    background: #0d1117;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-family: var(--mono);
    font-size: .82rem;
    color: #a3e635;
    overflow-x: auto;
    margin: 12px 0;
    line-height: 1.6;
  }

  /* ─── Spec table ─── */
  .spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .875rem;
    margin-top: 16px;
  }
  .spec-table thead tr { background: var(--bg3); }
  .spec-table th {
    text-align: left;
    padding: 10px 14px;
    color: var(--muted);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    border-bottom: 1px solid var(--border);
  }
  .spec-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    color: #c0cad8;
    vertical-align: top;
  }
  .spec-table tr:last-child td { border-bottom: none; }
  .spec-table .label { color: var(--muted); font-weight: 500; }

  /* ─── Comparison table ─── */
  .compare-table { width: 100%; border-collapse: collapse; font-size: .85rem; margin-top: 20px; }
  .compare-table th, .compare-table td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: center;
  }
  .compare-table th { background: var(--bg3); font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
  .compare-table td:first-child { text-align: left; font-weight: 600; color: var(--text); }
  .compare-table .row-delta { background: rgba(59,130,246,.05); }
  .tick { color: var(--green); }
  .cross { color: var(--red); }
  .tick svg, .cross svg { width: 18px; height: 18px; display: inline-block; vertical-align: -4px; fill: none; stroke: currentColor; stroke-width: 2px; }
  .partial { color: #f59e0b; }

  /* ─── Warning box ─── */
  .notice {
    background: rgba(59,130,246,.06);
    border: 1px solid rgba(59,130,246,.2);
    border-radius: var(--radius);
    padding: 14px 16px;
    font-size: .875rem;
    color: #93c5fd;
    margin: 16px 0;
  }
  .notice.warn {
    background: rgba(245,158,11,.06);
    border-color: rgba(245,158,11,.25);
    color: #fbbf24;
  }
  .notice.danger {
    background: rgba(239,68,68,.06);
    border-color: rgba(239,68,68,.25);
    color: #fca5a5;
  }

  /* ─── FAQ ─── */
  .faq-item {
    border-bottom: 1px solid var(--border);
  }
  .faq-q {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text);
    font-size: .9rem;
    font-weight: 600;
    padding: 16px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    line-height: 1.4;
  }
  .faq-q .chevron { flex-shrink: 0; transition: transform .2s; display:flex; align-items:center; }
  .faq-q .chevron svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2px; }
  .faq-item.open .chevron { transform: rotate(180deg); }
  .faq-a {
    display: none;
    padding: 0 0 16px;
    font-size: .875rem;
    color: #94a3b8;
    line-height: 1.7;
  }
  .faq-item.open .faq-a { display: block; }

  /* ─── Script hub ─── */
  .script-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin-top: 24px;
  }
  .script-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 16px;
  }
  .script-card .game-tag {
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 6px;
  }
  .script-card h3 { font-size: .85rem; margin-bottom: 4px; }
  .script-card p { font-size: .78rem; color: var(--muted); margin: 0; }

  /* ─── Update log ─── */
  .changelog { margin-top: 20px; }
  .cl-item {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    font-size: .875rem;
  }
  .cl-item:last-child { border-bottom: none; }
  .cl-dot {
    flex-shrink: 0;
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 7px;
  }
  .cl-item .cl-text { color: #c0cad8; }

  /* ─── Key system visual ─── */
  .key-steps {
    display: flex;
    gap: 0;
    margin-top: 24px;
    overflow-x: auto;
  }
  .key-step {
    flex: 1;
    min-width: 120px;
    text-align: center;
    padding: 16px 8px;
    position: relative;
  }
  .key-step:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: .8rem;
  }
  .key-step .ks-icon {
    width: 40px; height: 40px;
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 8px;
    color: var(--text);
  }
  .key-step .ks-icon svg { width: 20px; height: 20px; }
  .key-step .ks-label { font-size: .75rem; color: var(--muted); font-weight: 500; line-height: 1.4; }

  /* ─── Footer ─── */
  footer {
    border-top: 1px solid var(--border);
    padding: 32px 20px;
    text-align: center;
    font-size: .8rem;
    color: var(--muted);
  }
  footer .footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
  footer .footer-links a { color: var(--muted); }
  footer .footer-links a:hover { color: var(--text); }
  .disclaimer {
    max-width: 620px;
    margin: 0 auto;
    color: #3f4f63;
    font-size: .75rem;
    line-height: 1.6;
  }

  /* ─── Accessibility enhancements ─── */
  :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
  }

  /* ─── Button Icons ─── */
  .btn svg { width: 18px; height: 18px; fill: currentColor; }

  /* ─── Responsive ─── */
  @media (max-width: 768px) {
    #hero { text-align: left; }
    .hero-bottom-grid { grid-template-columns: 1fr; gap: 32px; }
    .hero-left-col { align-items: stretch; }
    .hero-left-col .btn-row { justify-content: center; }
    h1 { font-size: 2rem; }
    .nav-links { display: none; flex-direction: column; position: absolute; top: 56px; left: 0; right: 0; background: var(--bg2); border-bottom: 1px solid var(--border); padding: 16px 20px; gap: 16px; box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5); }
    .nav-links.open { display: flex; }
    .nav-links a { font-size: 1rem; padding: 8px 0; display: block; }
    .hamburger { display: block; }
    section { padding: 48px 0; }
    .grid-2 { grid-template-columns: 1fr; gap: 16px; }
    .script-grid { grid-template-columns: 1fr; gap: 12px; }
    .key-steps { flex-direction: column; align-items: center; gap: 24px; margin-top: 16px; }
    .key-step { min-width: 100%; padding: 12px 0; }
    .key-step:not(:last-child)::after { content: '↓'; right: auto; top: auto; bottom: -20px; left: 50%; transform: translateX(-50%); font-size: 1.2rem; }
    .steps li { padding: 16px 16px 16px 52px; background: var(--bg2); border-radius: var(--radius); border: 1px solid var(--border); }
    .step-num { left: 14px; top: 14px; }
    .btn-row { flex-direction: column; width: 100%; max-width: 100%; margin: 0 auto; gap: 12px; }
    .btn { justify-content: center; width: 100%; padding: 14px 24px; font-size: 1rem; }
    .app-card { max-width: 100%; margin-top: 32px; }
    .tab-bar { flex-wrap: nowrap; padding-bottom: 4px; }
    .tab-btn { padding: 12px 16px; font-size: .95rem; }
  }

  @media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
  }
