  :root {
    --bg: #0E0B07;
    --bg-2: #15110A;
    --surface: #1F1812;
    --surface-2: #2A2218;
    --surface-3: #3A2E1E;
    --border: rgba(232,155,60,0.10);
    --border-strong: rgba(232,155,60,0.25);
    --primary: #E89B3C;
    --primary-2: #F5C76E;
    --primary-deep: #9B6520;
    --copper-1: #C97A2C;
    --copper-2: #7A4717;
    --success: #71C28A;
    --warning: #E0A23B;
    --error: #E55B5B;
    --info: #6FB8E2;
    --text: rgba(255,244,225,0.94);
    --text-2: rgba(255,244,225,0.66);
    --text-3: rgba(255,244,225,0.42);
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "URW Palladio L",
             "Book Antiqua", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Noto Sans SC",
            "Noto Sans KR", "Noto Sans JP", "Noto Sans TC", "PingFang SC", "Hiragino Sans",
            "Microsoft YaHei", system-ui, sans-serif;
    --r-sm: 6px;
    --r-md: 10px;
    --r-lg: 14px;
    --r-xl: 18px;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.4);
    --shadow: 0 8px 24px rgba(0,0,0,0.5);
    --shadow-lg: 0 24px 60px rgba(0,0,0,0.6);
    --grad-copper: linear-gradient(180deg, #F5C76E 0%, #E89B3C 50%, #9B6520 100%);
    --grad-pcb: linear-gradient(135deg, #2A2218 0%, #1F1812 100%);
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  /* Respect users who request reduced motion */
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .fade-in { opacity: 1; transform: none; transition: none; }
    @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 1; } }
  }
  body {
    font-family: var(--sans);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    overflow-x: hidden;
  }
  a { color: var(--primary-2); text-decoration: none; transition: color .15s ease; }
  /* Body-content links get a subtle dotted underline; nav/header/footer opt out via their own rules */
  main p a, main td a, main li a, .callout a { border-bottom: 1px dotted rgba(245,199,110,0.25); }
  main p a:hover, main td a:hover, main li a:hover, .callout a:hover { color: #fff0c8; border-bottom-color: rgba(245,199,110,0.55); }
  code, kbd { font-family: var(--mono); font-size: 0.91em; }
  ::selection { background: rgba(232,155,60,0.45); color: #fff; }

  /* ---------- PCB-trace background ---------- */
  .pcb {
    position: fixed; inset: 0; z-index: -1; overflow: hidden;
    pointer-events: none;
    background:
      radial-gradient(ellipse at top right, rgba(232,155,60,0.07) 0%, transparent 55%),
      radial-gradient(ellipse at bottom left, rgba(122,71,23,0.05) 0%, transparent 55%),
      var(--bg);
  }
  .pcb::before {
    content: ""; position: absolute; inset: 0;
    background-image:
      linear-gradient(rgba(232,155,60,0.04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(232,155,60,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  }
  .pcb::after {
    content: ""; position: absolute; inset: 0;
    background:
      url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='280' height='280' viewBox='0 0 280 280'><g fill='none' stroke='%23E89B3C' stroke-opacity='0.06' stroke-width='1'><path d='M0 40 H80 L100 60 H180 L200 40 H280'/><path d='M0 140 H60 L80 120 V60'/><path d='M280 200 H200 L180 220 H120'/><path d='M40 280 V220 L60 200 H140'/><circle cx='80' cy='80' r='2' fill='%23E89B3C' fill-opacity='0.15' stroke='none'/><circle cx='200' cy='40' r='2' fill='%23E89B3C' fill-opacity='0.15' stroke='none'/><circle cx='180' cy='220' r='2' fill='%23E89B3C' fill-opacity='0.15' stroke='none'/></g></svg>") repeat;
    opacity: 0.5;
  }

  /* ---------- Header ---------- */
  header.site {
    position: sticky; top: 0; z-index: 20;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: rgba(14,11,7,0.78);
    border-bottom: 1px solid var(--border);
  }
  .header-row {
    max-width: 1200px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; gap: 18px;
    flex-wrap: nowrap;
  }
  .brand {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 600; letter-spacing: 0.02em;
    font-size: 0.98rem;
    border-bottom: none;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .brand-mark {
    width: 28px; height: 28px; border-radius: 6px;
    background: var(--grad-copper);
    display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 10px rgba(232,155,60,0.4), inset 0 1px 0 rgba(255,255,255,0.15);
  }
  .brand-mark svg { width: 16px; height: 16px; }
  .brand-mark::after {
    content: ""; position: absolute;
  }
  .brand-tag {
    font-family: var(--mono);
    font-size: 0.7rem;
    padding: 2px 7px;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    color: var(--primary-2);
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }
  nav.primary {
    display: flex;
    gap: 14px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    font-size: 0.86rem;
    color: var(--text-2);
    scrollbar-width: none;
  }
  nav.primary::-webkit-scrollbar { display: none; }
  nav.primary a {
    color: var(--text-2);
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: color .15s ease, border-color .15s ease;
    white-space: nowrap;
    flex-shrink: 0;
  }
  nav.primary a:hover { color: var(--text); border-bottom-color: var(--primary); }
  nav.primary a.active { color: var(--primary-2); border-bottom-color: var(--primary); }
  .lang-switcher { flex-shrink: 0; }

  .lang-switcher { position: relative; }
  .lang-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 7px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.85rem;
    font-family: var(--mono);
    transition: border-color .15s ease, background .15s ease;
  }
  .lang-btn:hover { border-color: var(--border-strong); background: var(--surface-2); }
  .lang-menu {
    position: absolute; right: 0; top: calc(100% + 6px);
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    min-width: 200px;
    padding: 6px;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s;
  }
  .lang-menu.open { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
  .lang-item {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 5px;
    cursor: pointer; font-size: 0.88rem;
    color: var(--text);
  }
  .lang-item:hover { background: var(--surface-2); }
  .lang-item.active { background: rgba(232,155,60,0.10); color: var(--primary-2); }
  .lang-item .flag { width: 18px; text-align: center; }
  .lang-item .native { color: var(--text-3); margin-left: auto; font-size: 0.78rem; font-family: var(--mono); }

  /* ---------- Layout ---------- */
  main { max-width: 1200px; margin: 0 auto; padding: 0 24px 96px; }
  section { padding: 72px 0 16px; scroll-margin-top: 80px; }
  section h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(1.7rem, 2.7vw, 2.4rem);
    line-height: 1.18;
    margin: 8px 0 14px;
    letter-spacing: -0.01em;
  }
  section h3 {
    font-size: 1.08rem;
    margin: 22px 0 10px;
    font-weight: 600;
    color: var(--text);
  }
  section p { color: var(--text-2); margin: 8px 0; }
  .eyebrow {
    display: inline-block;
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--primary);
    padding: 4px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    background: rgba(232,155,60,0.04);
  }

  /* ---------- Hero ---------- */
  .hero {
    padding-top: 64px;
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
    align-items: center;
  }
  .hero h1 {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 4.4vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 16px 0 18px;
    font-weight: 600;
  }
  .hero h1 .accent {
    color: var(--primary);
    font-style: italic;
    font-weight: 500;
    display: inline-block;
  }
  .hero h1 .accent::after {
    content: ""; display: block; width: 64px; height: 3px;
    background: var(--grad-copper); border-radius: 2px; margin-top: 6px;
  }
  .lede { font-size: 1.06rem; color: var(--text-2); max-width: 56ch; }
  .hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
  .btn {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 18px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.94rem;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
    text-decoration: none;
    border-bottom: none;
  }
  .btn-primary {
    background: var(--grad-copper);
    color: #2a1c0a;
    box-shadow: 0 6px 18px rgba(232,155,60,0.32);
  }
  .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 9px 22px rgba(232,155,60,0.42); color: #2a1c0a; }
  .btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
  }
  .btn-ghost:hover { background: var(--surface-2); color: var(--primary-2); }
  .hero-stats { display: flex; gap: 32px; margin-top: 32px; flex-wrap: wrap; }
  .hero-stat .v {
    font-family: var(--serif); font-weight: 600; font-size: 1.6rem; color: var(--primary-2);
    letter-spacing: -0.01em;
  }
  .hero-stat .k {
    font-family: var(--mono); font-size: 0.72rem;
    color: var(--text-3); text-transform: uppercase; letter-spacing: 0.13em;
    margin-top: 4px;
  }

  /* ---------- Router rack visual ---------- */
  .router-rack {
    position: relative;
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: var(--grad-pcb);
    padding: 22px;
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,0.03);
    overflow: hidden;
  }
  .router-rack::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 28px;
    background:
      repeating-linear-gradient(90deg,
        rgba(232,155,60,0.06) 0 1px,
        transparent 1px 14px);
    border-bottom: 1px solid rgba(232,155,60,0.10);
  }
  .rack-led {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--success); box-shadow: 0 0 8px var(--success);
    animation: blink 2.2s ease-in-out infinite;
    margin-right: 6px; vertical-align: middle;
  }
  .rack-led.dim { background: var(--primary); box-shadow: 0 0 8px rgba(232,155,60,0.5); animation-delay: 0.4s; }
  .rack-led.cool { background: var(--info); box-shadow: 0 0 8px rgba(111,184,226,0.5); animation-delay: 0.8s; }
  @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
  .rack-head {
    position: relative; z-index: 1;
    display: flex; align-items: center; justify-content: space-between;
    font-family: var(--mono); font-size: 0.74rem;
    color: var(--text-3);
    margin-bottom: 18px;
    padding-top: 4px;
  }
  .rack-head .leds { display: inline-flex; gap: 4px; align-items: center; }
  .rack-host { color: var(--primary-2); }

  .topo-mini {
    position: relative; z-index: 1;
    display: grid; grid-template-rows: auto auto auto; gap: 14px;
  }
  .topo-row {
    display: flex; align-items: center; gap: 14px;
    background: rgba(15,11,6,0.6);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.86rem;
  }
  .topo-row .icon {
    width: 32px; height: 32px; border-radius: 6px;
    background: rgba(232,155,60,0.10);
    border: 1px solid var(--border-strong);
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--primary-2); flex-shrink: 0;
  }
  .topo-row .label-line .l1 { color: var(--text); font-weight: 500; }
  .topo-row .label-line .l2 { font-family: var(--mono); font-size: 0.75rem; color: var(--text-3); margin-top: 2px; }
  .topo-row .arrow {
    margin-left: auto;
    font-family: var(--mono); color: var(--primary); font-size: 0.85rem;
  }
  .topo-link {
    align-self: center; justify-self: center;
    width: 1px; height: 12px; background: linear-gradient(180deg, var(--primary), transparent);
    margin-left: 23px;
  }

  /* ---------- Cards grid ---------- */
  .grid-3 {
    display: grid; gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  }
  .card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 22px;
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
    position: relative;
  }
  .card:hover { border-color: var(--border-strong); transform: translateY(-2px); background: var(--surface-2); }
  .card .icon {
    width: 36px; height: 36px;
    background: rgba(232,155,60,0.10);
    border: 1px solid var(--border-strong);
    border-radius: 8px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--primary); margin-bottom: 12px;
  }
  .card .icon svg { width: 18px; height: 18px; }
  .card h3 { margin: 6px 0 6px; font-size: 1rem; }
  .card p { font-size: 0.91rem; color: var(--text-2); margin: 0; }

  /* ---------- Tabs ---------- */
  .tabs {
    display: flex; gap: 4px; margin: 26px 0 20px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
  }
  .tab {
    background: transparent; border: 0;
    color: var(--text-2);
    padding: 10px 16px;
    font-size: 0.91rem;
    font-family: var(--mono);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: color .15s ease, border-color .15s ease;
  }
  .tab:hover { color: var(--text); }
  .tab.active { color: var(--primary-2); border-bottom-color: var(--primary); }
  .tab-panel { display: none; padding-top: 12px; }
  .tab-panel.active { display: block; }

  /* ---------- AI prompt (spoken to an AI, not a shell) ---------- */
  .ai-prompts {
    display: flex; flex-direction: column; gap: 10px;
    margin: 14px 0 10px;
  }
  .ai-prompt {
    position: relative;
    background: rgba(232,155,60,0.06);
    border: 1px solid rgba(232,155,60,0.20);
    border-left: 3px solid var(--primary);
    border-radius: var(--r-md);
    padding: 12px 18px 12px 52px;
    font-size: 14.5px; line-height: 1.55;
    color: var(--text); font-style: italic;
  }
  .ai-prompt::before {
    content: "›";
    position: absolute; left: 18px; top: 10px;
    font-family: var(--mono); font-style: normal;
    font-size: 20px; line-height: 1; font-weight: 700;
    color: var(--primary-2);
  }
  .ai-prompt code {
    font-style: normal;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    padding: 1px 6px; border-radius: 5px;
    color: var(--primary-2); font-size: 0.88em;
  }
  .ai-use-outro {
    font-size: 14px; color: var(--text-2);
    max-width: 780px; margin-top: 12px;
  }

  /* ---------- Code block ---------- */
  .code {
    background: #0A0805;
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 16px 56px 16px 18px;
    font-family: var(--mono);
    font-size: 0.86rem;
    line-height: 1.65;
    color: #f5e6c8;
    overflow-x: auto;
    white-space: pre;
    margin: 12px 0;
    position: relative;
  }
  .code::-webkit-scrollbar { height: 6px; }
  .code::-webkit-scrollbar-thumb { background: var(--copper-2); border-radius: 3px; }
  .c-comment { color: #7a6a4a; font-style: italic; }
  .c-prompt { color: var(--primary); user-select: none; margin-right: 6px; }
  .c-key { color: var(--primary-2); }
  .c-val { color: var(--success); }
  .c-flag { color: var(--info); }
  .copy-btn {
    position: absolute; top: 8px; right: 8px;
    background: rgba(232,155,60,0.08);
    color: var(--text-2);
    border: 1px solid var(--border-strong);
    border-radius: 5px;
    padding: 4px 9px;
    font-family: var(--mono); font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    cursor: pointer;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    user-select: none;
  }
  .copy-btn:hover { background: rgba(232,155,60,0.18); color: var(--primary-2); border-color: var(--primary); }
  .copy-btn.ok { background: rgba(113,194,138,0.16); border-color: rgba(113,194,138,0.45); color: var(--success); }
  .copy-btn:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }

  /* ---------- CPU-architecture picker ---------- */
  .arch-pick { margin: 18px 0 4px; }
  .arch-pick-label {
    display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: .02em;
    text-transform: uppercase; color: var(--text-2); margin-bottom: 10px;
  }
  .arch-sel { display: flex; flex-wrap: wrap; gap: 10px; }
  .arch-btn {
    flex: 1 1 240px; display: flex; flex-direction: column; gap: 3px;
    text-align: left; font-family: var(--sans);
    background: var(--surface-2); border: 1px solid var(--border);
    padding: 12px 16px; border-radius: var(--r-md); cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  }
  .arch-btn strong { font-family: var(--mono); font-size: 0.92rem; color: var(--text); }
  .arch-btn span   { font-size: 0.82rem; color: var(--text-2); line-height: 1.4; }
  .arch-btn:hover { border-color: var(--border-strong); }
  .arch-btn.active {
    background: var(--grad-copper); border-color: var(--primary);
    box-shadow: 0 3px 12px rgba(232,155,60,0.32);
  }
  .arch-btn.active strong, .arch-btn.active span { color: #2a1c0a; }
  .arch-btn:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }
  .arch-help { font-size: 0.85rem; color: var(--text-2); margin: 10px 0 0; }
  @media (prefers-reduced-motion: reduce) {
    .arch-btn { transition: none; }
  }

  /* ---------- Download-mirror picker ---------- */
  .dl-mirror {
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
    margin: 14px 0 4px;
    padding: 12px 16px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
  }
  .dl-mirror .dl-mirror-toggle {
    display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
    font-size: 0.9rem; color: var(--text-2); user-select: none;
  }
  .dl-mirror input[type="checkbox"] {
    width: 16px; height: 16px; accent-color: var(--primary); cursor: pointer; flex-shrink: 0;
  }
  .dl-mirror select {
    font-family: var(--mono); font-size: 0.82rem; color: var(--text);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-sm); padding: 7px 12px; cursor: pointer; max-width: 100%;
    transition: border-color .15s ease;
  }
  .dl-mirror select:hover { border-color: var(--border-strong); }
  .dl-mirror select:focus-visible { outline: 2px solid var(--primary-2); outline-offset: 2px; }
  .dl-mirror select[hidden] { display: none; }

  /* ---------- Prominent download card ---------- */
  .dl-card {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 18px 24px;
    margin: 22px 0 4px;
    padding: 22px 24px;
    background: var(--surface-2);
    border: 1px solid var(--border-strong);
    border-left: 3px solid var(--primary);
    border-radius: var(--r-md);
  }
  .dl-card-info { flex: 1 1 320px; min-width: 0; }
  .dl-card-info h3 { margin: 0 0 6px; }
  .dl-card-info p { margin: 0 0 12px; color: var(--text-2); max-width: 640px; }
  .dl-meta {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
    font-size: 0.86rem;
  }
  .dl-meta code {
    font-family: var(--mono); font-size: 0.82rem; color: var(--text);
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--r-sm); padding: 3px 8px;
  }
  .dl-meta .dl-size { color: var(--text-2); font-family: var(--mono); }
  .dl-meta a { color: var(--primary-2); text-decoration: none; }
  .dl-meta a:hover { text-decoration: underline; }
  .dl-button { flex: 0 0 auto; white-space: nowrap; }

  /* ---------- Callout ---------- */
  .callout {
    margin: 16px 0;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(232,155,60,0.06) 0%, rgba(122,71,23,0.04) 100%);
    border: 1px solid var(--border-strong);
    border-left: 3px solid var(--primary);
    border-radius: 8px;
    font-size: 0.92rem;
    color: var(--text-2);
  }
  .callout strong { color: var(--primary-2); }
  .callout.warn { border-left-color: var(--warning); background: linear-gradient(135deg, rgba(224,162,59,0.06) 0%, rgba(122,71,23,0.04) 100%); }
  .callout.danger { border-left-color: var(--error); background: linear-gradient(135deg, rgba(229,91,91,0.06) 0%, rgba(122,40,40,0.04) 100%); }
  .callout.danger strong { color: var(--error); }

  /* ---------- Tables ---------- */
  table.kv {
    width: 100%; border-collapse: collapse;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    font-size: 0.89rem;
    margin: 14px 0;
  }
  table.kv th, table.kv td {
    text-align: left;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
  }
  table.kv th {
    background: var(--surface-2);
    font-weight: 500;
    color: var(--primary-2);
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  table.kv tr:last-child td { border-bottom: 0; }
  table.kv code { color: var(--primary-2); }
  table.kv td.default { font-family: var(--mono); color: var(--text-3); }

  /* ---------- Screenshot figures ---------- */
  .shots {
    display: grid;
    gap: 22px;
    margin-top: 24px;
    grid-template-columns: 1fr;
  }
  @media (min-width: 980px) {
    .shots.cols-2 { grid-template-columns: 1fr 1fr; }
  }
  figure.shot {
    margin: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
    transition: border-color .2s ease, transform .2s ease;
  }
  figure.shot:hover { border-color: var(--border-strong); transform: translateY(-2px); }
  figure.shot .shot-frame {
    position: relative;
    background: #0A0805;
    border-bottom: 1px solid var(--border);
    padding-top: 28px;
    overflow: hidden;
  }
  figure.shot .shot-frame::before {
    content: "router.asus.com  •  Software Center \2192  VilaNet";
    position: absolute; top: 0; left: 0; right: 0; height: 28px;
    background: linear-gradient(180deg, #1a1208 0%, #0d0905 100%);
    color: var(--text-3);
    font-family: var(--mono); font-size: 0.7rem;
    display: flex; align-items: center;
    padding: 0 14px;
    border-bottom: 1px solid var(--border);
  }
  figure.shot .shot-frame::after {
    content: "";
    position: absolute; top: 9px; left: 12px;
    width: 10px; height: 10px; border-radius: 50%;
    background: #FF5F56;
    box-shadow: 16px 0 0 #FFBD2E, 32px 0 0 #27C93F;
  }
  figure.shot img {
    display: block;
    width: 100%;
    height: auto;
  }
  figure.shot figcaption {
    padding: 14px 18px;
    font-size: 0.88rem;
    color: var(--text-2);
    border-top: 1px solid var(--border);
    background: var(--surface);
  }
  figure.shot figcaption .cap-head {
    font-family: var(--mono); font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--primary); display: block; margin-bottom: 4px;
  }
  figure.shot figcaption .cap-body code { color: var(--primary-2); }

  /* ---------- Step list ---------- */
  .steps { counter-reset: s; display: grid; gap: 18px; margin-top: 18px; }
  .step {
    counter-increment: s;
    padding: 18px 22px 18px 64px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    position: relative;
  }
  .step::before {
    content: counter(s);
    position: absolute; left: 18px; top: 18px;
    width: 30px; height: 30px; border-radius: 50%;
    background: var(--grad-copper);
    color: #2a1c0a;
    display: inline-flex; align-items: center; justify-content: center;
    font-family: var(--serif); font-weight: 700; font-size: 1rem;
    box-shadow: 0 2px 8px rgba(232,155,60,0.3);
  }
  .step h3 { margin-top: 0; margin-bottom: 8px; }

  /* ---------- Terminal ---------- */
  .terminal {
    border: 1px solid var(--border-strong);
    border-radius: 10px;
    background: #0A0805;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    font-family: var(--mono);
  }
  .terminal-head {
    background: linear-gradient(180deg, #1a1208 0%, #0d0905 100%);
    padding: 10px 14px;
    display: flex; align-items: center; gap: 6px;
    border-bottom: 1px solid var(--border);
  }
  .term-dot { width: 11px; height: 11px; border-radius: 50%; }
  .term-dot.r { background: #FF5F56; }
  .term-dot.y { background: #FFBD2E; }
  .term-dot.g { background: #27C93F; }
  .term-title {
    margin-left: auto; font-size: 0.78rem; color: var(--text-3);
    letter-spacing: 0.02em;
  }
  .terminal-body {
    padding: 16px 18px; font-size: 0.85rem;
    color: #f5e6c8; line-height: 1.65;
    max-height: 460px; overflow-y: auto;
    min-height: 220px;
  }
  .terminal-body::-webkit-scrollbar { width: 6px; }
  .terminal-body::-webkit-scrollbar-thumb { background: var(--copper-2); border-radius: 3px; }
  .term-line { display: block; white-space: pre-wrap; word-break: break-word; }
  .term-line .ok { color: var(--success); }
  .term-line .err { color: var(--error); }
  .term-line .info { color: var(--info); }
  .term-line .warn { color: var(--warning); }
  .term-line .dim { color: var(--text-3); }
  .term-prompt { color: var(--primary); }
  .term-input { color: #f5e6c8; }

  .sim-input-wrap {
    display: flex; align-items: center; gap: 0;
    padding: 12px 16px;
    background: #0A0805;
    border-top: 1px solid var(--border);
  }
  .sim-input-prompt { color: var(--primary); margin-right: 6px; user-select: none; }
  .sim-input {
    flex: 1; background: transparent; border: 0; outline: 0;
    color: #f5e6c8; font-family: var(--mono); font-size: 0.88rem;
    padding: 0;
  }
  .sim-chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 4px; }
  .sim-chip {
    font-family: var(--mono); font-size: 0.78rem;
    color: var(--primary-2);
    padding: 6px 10px;
    border: 1px solid var(--border-strong);
    border-radius: 4px;
    background: rgba(232,155,60,0.04);
    cursor: pointer;
    transition: background .15s ease, color .15s ease;
  }
  .sim-chip:hover { background: rgba(232,155,60,0.12); color: #fff0c8; }

  /* ---------- Footer ---------- */
  footer.site {
    margin-top: 72px; padding: 36px 0 28px;
    border-top: 1px solid var(--border);
    color: var(--text-3);
    font-size: 0.86rem;
  }
  .foot-inner {
    max-width: 1200px; margin: 0 auto; padding: 0 24px;
    display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start;
  }
  .foot-col { flex: 1; min-width: 200px; }
  .foot-col h4 {
    font-family: var(--mono); font-size: 0.72rem;
    text-transform: uppercase; letter-spacing: 0.13em;
    color: var(--primary); margin: 0 0 10px;
  }
  .foot-col a { display: block; color: var(--text-2); padding: 3px 0; border-bottom: none; }
  .foot-col a:hover { color: var(--primary-2); }
  .foot-brand { flex: 1.4; min-width: 240px; }
  .foot-brand .brand { margin-bottom: 14px; }
  .foot-brand h4 {
    font-family: var(--serif); font-size: 1rem; font-weight: 600;
    color: var(--text-2); margin: 0 0 12px;
  }
  .foot-support-cta {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 17px; border-radius: 999px;
    background: var(--grad-copper); color: #2a1c0a !important;
    font-weight: 700; font-size: 0.85rem;
    box-shadow: 0 8px 20px rgba(232,155,60,0.30);
    transition: transform .15s ease;
  }
  .foot-support-cta:hover { transform: translateY(-1px); color: #2a1c0a !important; }
  .foot-bottom {
    max-width: 1200px; margin: 28px auto 0; padding: 18px 24px 0;
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
    font-family: var(--mono); font-size: 0.78rem;
  }

  /* ---------- Reveal animation ---------- */
  .fade-in { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
  .fade-in.visible { opacity: 1; transform: translateY(0); }

  /* ---------- Responsive ---------- */
  /* Images always scale within their container */
  img { max-width: 100%; height: auto; }

  /* Clamp the single-column step grid track to the viewport so the wide,
     pre-formatted .code blocks inside scroll horizontally instead of forcing
     the whole page wider than the screen. (auto track inherited their
     max-content width -> page overflow on phones.) */
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step { min-width: 0; }

  @media (max-width: 880px) {
    .hero { grid-template-columns: 1fr; gap: 32px; }
    /* Mobile nav: brand + language picker stay on row 1; the anchor links drop
       to a full-width row 2 and scroll horizontally. The nav scrolls internally
       (min-width:0 + overflow-x:auto from its base rule) so the page never widens. */
    .header-row { flex-wrap: wrap; gap: 10px 12px; }
    .lang-switcher { margin-left: auto; }
    nav.primary {
      order: 3; flex: 0 0 100%; width: 100%; max-width: 100%; min-width: 0;
      flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch;
      padding-bottom: 2px;
    }
    main { padding: 0 18px 64px; }
    section { padding: 56px 0 12px; scroll-margin-top: 104px; }
  }

  /* ---------- Phones ---------- */
  @media (max-width: 640px) {
    main { padding: 0 16px 56px; }
    .header-row { padding: 12px 16px; gap: 10px; }
    section { padding: 48px 0 12px; scroll-margin-top: 100px; }
    .hero { padding-top: 40px; }
    .hero-stats { gap: 18px 26px; margin-top: 22px; }
    .hero-stat .v { font-size: 1.45rem; }
    .router-rack { padding: 16px; }
    .rack-head { flex-wrap: wrap; gap: 4px 10px; }

    /* Long unbreakable tokens (URLs, router config paths) in body copy wrap rather than overflow */
    main p code, main li code, .callout code, .lede code, .ai-prompt code,
    figure.shot figcaption code { overflow-wrap: anywhere; word-break: break-word; }

    /* Reference tables scroll horizontally so columns stay aligned and readable */
    table.kv {
      display: block; overflow-x: auto; -webkit-overflow-scrolling: touch;
      white-space: nowrap;
    }
    table.kv::-webkit-scrollbar { height: 6px; }
    table.kv::-webkit-scrollbar-thumb { background: var(--copper-2); border-radius: 3px; }

    /* Tighter mono type on small screens */
    .code { font-size: 0.8rem; padding: 14px 48px 14px 14px; }
    .terminal-body { font-size: 0.8rem; padding: 14px; }
    .sim-input-wrap { padding: 10px 14px; }
    .sim-input { font-size: 0.82rem; }
  }

  @media (max-width: 480px) {
    main { padding: 0 13px 48px; }
    .header-row { padding: 11px 13px; }
    .brand { font-size: 0.9rem; }
    .lang-btn { padding: 6px 9px; font-size: 0.8rem; }
    .step { padding: 16px 15px 16px 52px; }
    .step::before { left: 13px; top: 16px; width: 26px; height: 26px; font-size: 0.9rem; }
    .card { padding: 18px; }
    .foot-inner { gap: 18px; }
    .foot-inner, .foot-bottom { padding-left: 16px; padding-right: 16px; }
    .ai-prompt { padding: 12px 14px 12px 40px; }
    .ai-prompt::before { left: 14px; }
  }
