  :root {
    --bg: #10161d;
    --surface: #1a2330;
    --surface-2: #212c3b;
    --border: #2a3646;
    --text: #e9edf3;
    --text-muted: #8b97ab;
    --nix-blue: #5fa8e0;
    --nix-blue-dim: #3d6f96;
    --warm: #e8a355;
    --warm-dim: #a97638;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
  }

  /* subtle background texture: faint declarative-syntax grid */
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
      radial-gradient(circle at 15% 20%, rgba(95,168,224,0.06), transparent 40%),
      radial-gradient(circle at 85% 75%, rgba(232,163,85,0.05), transparent 40%);
    pointer-events: none;
    z-index: 0;
  }

  .wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }

  .eyebrow {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--nix-blue);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .eyebrow::before { content: "❄"; }

  header {
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
  }
  header .wrap { display: flex; justify-content: space-between; align-items: center; }
  .brand { font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
  .brand span { color: var(--nix-blue); }

  main { padding: 72px 0 40px; }

  .hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
  }

  h1 {
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; font-weight: 700;
    font-weight: 700;
    font-size: clamp(32px, 4.2vw, 50px);
    line-height: 1.12;
    letter-spacing: -0.015em;
    margin: 18px 0 20px;
  }
  h1 .accent { color: var(--warm); }

  .sub {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 46ch;
    margin-bottom: 34px;
  }

  /* the signature element: a mock declarative "config" block that
     literally declares the page's value proposition, echoing the
     guide's core "recipe not diary" idea */
  .config-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  }
  .config-titlebar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--surface-2);
    border-bottom: 1px solid var(--border);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 12.5px;
    color: var(--text-muted);
  }
  .dot { width: 9px; height: 9px; border-radius: 50%; background: #3a4757; }
  .config-body {
    padding: 22px 20px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 13.5px;
    line-height: 1.85;
    white-space: pre;
    overflow-x: auto;
  }
  .tok-key { color: #7fb8e8; }
  .tok-str { color: var(--warm); }
  .tok-com { color: #59677a; }
  .tok-punc { color: #6b7a8d; }
  .cursor {
    display: inline-block;
    width: 7px; height: 15px;
    background: var(--warm);
    vertical-align: -2px;
    animation: blink 1s step-end infinite;
  }
  @keyframes blink { 50% { opacity: 0; } }

  form.signup {
    max-width: 460px;
    margin-top: 8px;
  }
  .signup-row {
    display: flex;
    gap: 10px;
  }
  input[type="email"] {
    flex: 1;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    color: var(--text);
    font-size: 15px;
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif;
  }
  input[type="email"]::placeholder { color: #5b6b7e; }
  input[type="email"]:focus {
    outline: 2px solid var(--nix-blue);
    outline-offset: 1px;
  }
  button.cta {
    background: var(--nix-blue);
    color: #0c141c;
    border: none;
    border-radius: 8px;
    padding: 14px 22px;
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; font-weight: 700;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    white-space: nowrap;
  }
  button.cta:hover { background: #79b7e6; }
  button.cta:active { transform: translateY(1px); }
  button.cta:focus-visible { outline: 2px solid var(--warm); outline-offset: 2px; }

  .form-note {
    font-size: 13px;
    color: #5b6b7e;
    margin-top: 12px;
  }

  .consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 14px;
    font-size: 13px;
    color: #8b97ab;
    line-height: 1.5;
    cursor: pointer;
  }
  .consent input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 15px;
    height: 15px;
    accent-color: var(--nix-blue);
  }
  .consent a { color: var(--nix-blue); }

  .direct-download {
    font-size: 13px;
    color: #5b6b7e;
    margin-top: 16px;
  }
  .direct-download a {
    color: var(--warm);
    text-decoration: underline;
  }

  .form-status {
    font-size: 14px;
    margin-top: 14px;
    display: none;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
  }
  .form-status.show { display: block; }
  .form-status.ok { color: #6fcf8f; }

  /* contents preview, styled like a package/module list — this IS
     a real ordered sequence (guide chapters), so numbering earns its place */
  .contents {
    margin-top: 96px;
    padding-top: 56px;
    border-top: 1px solid var(--border);
  }
  .contents h2 {
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; font-weight: 700;
    font-size: 26px;
    margin-bottom: 8px;
  }
  .contents .sub2 {
    color: var(--text-muted);
    margin-bottom: 36px;
  }
  .modules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
  }
  .module {
    background: var(--surface);
    padding: 22px 20px;
  }
  .module .n {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, 'Liberation Mono', monospace;
    font-size: 12px;
    color: var(--nix-blue);
    margin-bottom: 8px;
  }
  .module h3 {
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; font-weight: 700;
    font-size: 15.5px;
    font-weight: 500;
    margin-bottom: 6px;
  }
  .module p { font-size: 13.5px; color: var(--text-muted); }

  .who {
    margin-top: 96px;
    padding: 40px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 24px;
    align-items: center;
  }
  .who .mark {
    font-family: -apple-system, 'Segoe UI', Roboto, sans-serif; font-weight: 700;
    font-weight: 700;
    font-size: 40px;
    color: var(--warm);
  }
  .who p { color: var(--text-muted); font-size: 15.5px; max-width: 60ch; }
  .who strong { color: var(--text); font-weight: 600; }

  footer {
    margin-top: 90px;
    padding: 34px 0 50px;
    border-top: 1px solid var(--border);
    color: #5b6b7e;
    font-size: 13.5px;
    display: flex;
    justify-content: space-between;
  }

  @media (max-width: 820px) {
    .hero { grid-template-columns: 1fr; gap: 40px; }
    .signup-row { flex-direction: column; }
    .who { grid-template-columns: 1fr; text-align: left; }
    footer { flex-direction: column; gap: 8px; }
  }

  .visually-hidden {
    position: absolute;
    left: -9999px;
  }

  .footer-wrap {
    display: flex;
    justify-content: space-between;
    width: 100%;
  }

  @media (prefers-reduced-motion: reduce) {
    .cursor { animation: none; opacity: 1; }
  }
