    :root {
      --bg: 8 12 20;
      --surface: 14 20 32;
      --surface-2: 19 27 43;
      --border: 30 45 69;
      --text: 241 245 249;
      --muted: 148 163 184;
      --faint: 100 116 139;
      --accent: 13 148 136;
      --accent-bright: 45 212 191;
      --danger: 248 113 113;
      --warning: 251 191 36;
      --success: 52 211 153;

      --bg-c: rgb(var(--bg));
      --surface-c: rgb(var(--surface));
      --surface2-c: rgb(var(--surface-2));
      --border-c: rgb(var(--border));
      --text-c: rgb(var(--text));
      --muted-c: rgb(var(--muted));
      --faint-c: rgb(var(--faint));
      --accent-c: rgb(var(--accent));
      --accent-b: rgb(var(--accent-bright));

      --font-sans: "Inter", system-ui, -apple-system, sans-serif;
      --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

      --maxw: 1180px;
      --radius: 14px;
      --radius-sm: 10px;
    }

    :root[data-theme="light"] {
      --bg: 248 250 252;
      --surface: 255 255 255;
      --surface-2: 241 245 249;
      --border: 226 232 240;
      --text: 15 23 42;
      --muted: 71 85 105;
      --faint: 148 163 184;
      --accent: 13 148 136;
      --accent-bright: 13 148 136;
    }

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

    html { scroll-behavior: smooth; scroll-padding-top: 90px; }
    @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

    body {
      background: var(--bg-c);
      color: var(--text-c);
      font-family: var(--font-sans);
      font-size: 16px;
      line-height: 1.6;
      -webkit-font-smoothing: antialiased;
      text-rendering: optimizeLegibility;
      overflow-x: hidden;
    }

    a { color: inherit; text-decoration: none; }
    ::selection { background: rgb(var(--accent) / 0.32); color: var(--text-c); }

    .container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

    /* ---------- Announcement bar ---------- */
    .announce {
      position: relative; z-index: 60;
      background: rgb(var(--danger) / 0.08);
      border-bottom: 1px solid rgb(var(--danger) / 0.18);
      font-size: 13px; color: var(--muted-c);
    }
    .announce .container {
      display: flex; align-items: center; justify-content: center; gap: 10px;
      min-height: 38px; padding-top: 7px; padding-bottom: 7px; text-align: center;
      flex-wrap: wrap;
    }
    .announce .hash { color: var(--danger); font-family: var(--font-mono); font-weight: 500; }
    .announce .words { color: var(--accent-b); font-family: var(--font-mono); font-weight: 500; }
    .announce a { color: var(--text-c); font-weight: 600; white-space: nowrap; }
    .announce a:hover { color: var(--accent-b); }

    /* ---------- Header ---------- */
    header {
      position: sticky; top: 0; z-index: 50;
      transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
      background: transparent; border-bottom: 1px solid transparent;
    }
    header.scrolled {
      background: rgb(var(--bg) / 0.82);
      backdrop-filter: saturate(140%) blur(14px);
      -webkit-backdrop-filter: saturate(140%) blur(14px);
      border-bottom: 1px solid var(--border-c);
    }
    .nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
    .brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -0.02em; font-size: 18px; }
    .brand .mark {
      width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto;
      display: grid; place-items: center;
      background: rgb(var(--accent) / 0.12); border: 1px solid rgb(var(--accent) / 0.3);
    }
    .brand .mark svg { width: 20px; height: 20px; }
    .brand b { color: var(--accent-b); }

    .nav-links { display: flex; align-items: center; gap: 4px; }
    .nav-links a {
      padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--muted-c);
      border-radius: var(--radius-sm); transition: color .18s ease, background .18s ease;
    }
    .nav-links a:hover { color: var(--text-c); background: var(--surface-c); }

    .nav-right { display: flex; align-items: center; gap: 12px; }
    .byline { font-size: 13px; color: var(--faint-c); }
    .byline b { color: var(--muted-c); font-weight: 600; transition: color .18s ease; }
    a.byline:hover b { color: var(--accent-b); }

    .theme-toggle {
      width: 36px; height: 36px; border-radius: var(--radius-sm); flex: 0 0 auto;
      display: grid; place-items: center; cursor: pointer;
      background: transparent; border: 1px solid var(--border-c); color: var(--muted-c);
      transition: color .18s, border-color .18s, background .18s;
    }
    .theme-toggle:hover { color: var(--text-c); border-color: rgb(var(--accent) / 0.5); }
    .theme-toggle svg { width: 17px; height: 17px; }
    .theme-toggle .sun { display: none; }
    :root[data-theme="light"] .theme-toggle .sun { display: block; }
    :root[data-theme="light"] .theme-toggle .moon { display: none; }

    /* ---------- Buttons ---------- */
    .btn {
      display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
      font-family: var(--font-sans); font-size: 15px; font-weight: 600;
      padding: 12px 20px; border-radius: var(--radius-sm); border: 1px solid transparent;
      transition: transform .16s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
      white-space: nowrap;
    }
    .btn svg { width: 17px; height: 17px; }
    .btn-primary {
      background: var(--accent-c); color: #041413; font-weight: 700;
      box-shadow: 0 1px 0 rgb(255 255 255 / 0.12) inset, 0 8px 26px -8px rgb(var(--accent) / 0.55);
    }
    .btn-primary:hover { background: rgb(var(--accent) / 0.88); transform: translateY(-1px); box-shadow: 0 12px 34px -8px rgb(var(--accent) / 0.7); }
    .btn-ghost { background: transparent; color: var(--text-c); border-color: var(--border-c); }
    .btn-ghost:hover { border-color: rgb(var(--accent) / 0.55); background: var(--surface-c); transform: translateY(-1px); }
    .btn-sm { padding: 9px 16px; font-size: 14px; }
    @media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

    /* ---------- Eyebrow / pill ---------- */
    .pill {
      display: inline-flex; align-items: center; gap: 8px;
      font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.12em;
      text-transform: uppercase; color: var(--accent-b);
      padding: 6px 13px; border-radius: 999px;
      background: rgb(var(--accent) / 0.09); border: 1px solid rgb(var(--accent) / 0.28);
    }
    .pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-b); box-shadow: 0 0 0 0 rgb(var(--accent) / 0.6); animation: pulse 2.4s ease-out infinite; }
    @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(var(--accent) / 0.55); } 70% { box-shadow: 0 0 0 7px rgb(var(--accent) / 0); } 100% { box-shadow: 0 0 0 0 rgb(var(--accent) / 0); } }
    @media (prefers-reduced-motion: reduce) { .pill .dot { animation: none; } }

    .eyebrow {
      font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0.16em;
      text-transform: uppercase; color: var(--accent-c);
    }

    /* ---------- Hero ---------- */
    .hero { position: relative; padding: 84px 0 40px; text-align: center; overflow: hidden; }
    .hero-glow {
      position: absolute; top: -140px; left: 50%; transform: translateX(-50%);
      width: 900px; height: 620px; pointer-events: none; z-index: 0;
      background: radial-gradient(ellipse 50% 50% at 50% 40%, rgb(var(--accent) / 0.20), transparent 70%);
      filter: blur(8px);
    }
    .grid-bg {
      position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
      background-image:
        linear-gradient(rgb(var(--border) / 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgb(var(--border) / 0.5) 1px, transparent 1px);
      background-size: 58px 58px;
      -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
      mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
    }
    .hero .container { position: relative; z-index: 1; }
    .hero h1 {
      font-size: clamp(2.9rem, 8.2vw, 6.2rem); font-weight: 900; letter-spacing: -0.035em;
      line-height: 0.94; margin: 26px auto 0; max-width: 15ch;
    }
    .hero h1 .teal { color: var(--accent-b); }
    .hero .sub {
      max-width: 620px; margin: 26px auto 0; font-size: clamp(1.05rem, 2.4vw, 1.28rem);
      color: var(--muted-c); line-height: 1.55;
    }
    .hero .actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

    /* ---------- Terminal ---------- */
    .terminal {
      max-width: 720px; margin: 56px auto 0; text-align: left; position: relative; z-index: 1;
      background: linear-gradient(180deg, rgb(var(--surface) / 0.92), rgb(var(--bg) / 0.9));
      border: 1px solid var(--border-c); border-radius: var(--radius);
      box-shadow: 0 40px 90px -40px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(255 255 255 / 0.02) inset;
      overflow: hidden;
    }
    .term-bar {
      display: flex; align-items: center; gap: 8px; padding: 12px 16px;
      border-bottom: 1px solid var(--border-c); background: rgb(var(--surface-2) / 0.5);
    }
    .term-bar .dots { display: flex; gap: 7px; }
    .term-bar .dots span { width: 11px; height: 11px; border-radius: 50%; }
    .term-bar .dots span:nth-child(1) { background: #ff5f57; }
    .term-bar .dots span:nth-child(2) { background: #febc2e; }
    .term-bar .dots span:nth-child(3) { background: #28c840; }
    .term-bar .title { font-family: var(--font-mono); font-size: 12.5px; color: var(--faint-c); margin-left: 8px; }
    .term-body { padding: 22px 22px 26px; font-family: var(--font-mono); font-size: 14px; line-height: 1.95; }
    .term-body .line { white-space: pre-wrap; word-break: break-word; }
    .term-body .prompt { color: var(--accent-b); }
    .term-body .cmd { color: var(--text-c); }
    .term-body .flag { color: var(--warning); }
    .term-body .comment { color: var(--faint-c); }
    .term-body .hash { color: var(--danger); }
    .term-body .arrow { color: var(--faint-c); }
    .term-body .words { color: var(--accent-b); }
    .term-body .spacer { height: 12px; }
    .cursor { display: inline-block; width: 8px; height: 1.05em; background: var(--accent-b); vertical-align: text-bottom; animation: blink 1.1s step-end infinite; }
    @keyframes blink { 50% { opacity: 0; } }
    @media (prefers-reduced-motion: reduce) { .cursor { animation: none; } }

    /* ---------- Section scaffolding ---------- */
    section { position: relative; }
    .section-pad { padding: 96px 0; }
    .section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
    .section-head.left { text-align: left; margin-left: 0; }
    .section-head h2 {
      font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; letter-spacing: -0.03em;
      line-height: 1.05; margin-top: 16px;
    }
    .section-head p { margin-top: 18px; font-size: 1.12rem; color: var(--muted-c); line-height: 1.6; }
    .divider { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--border-c), transparent); }

    /* ---------- Problem ---------- */
    .problem { background: var(--surface-c); border-top: 1px solid var(--border-c); border-bottom: 1px solid var(--border-c); }
    .compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: stretch; max-width: 880px; margin: 0 auto; border: 1px solid var(--border-c); border-radius: var(--radius); overflow: hidden; }
    .compare .col { padding: 34px 30px; }
    .compare .col.bad { background: rgb(var(--danger) / 0.05); }
    .compare .col.good { background: rgb(var(--accent) / 0.05); }
    .compare .col h3 { font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 18px; }
    .compare .col.bad h3 { color: var(--danger); }
    .compare .col.good h3 { color: var(--accent-b); }
    .compare .mono-big { font-family: var(--font-mono); font-size: clamp(1.05rem, 2.4vw, 1.5rem); font-weight: 500; letter-spacing: -0.01em; word-break: break-all; }
    .compare .bad .mono-big { color: var(--text-c); }
    .compare .good .mono-big { color: var(--accent-b); }
    .compare .say { margin-top: 16px; font-size: 0.95rem; color: var(--muted-c); font-style: italic; }
    .compare .mid { display: grid; place-items: center; background: var(--surface2-c); border-left: 1px solid var(--border-c); border-right: 1px solid var(--border-c); padding: 0 20px; color: var(--accent-b); }
    .compare .mid svg { width: 26px; height: 26px; }
    @media (max-width: 720px) {
      .compare { grid-template-columns: 1fr; }
      .compare .mid { padding: 14px; border: 0; border-top: 1px solid var(--border-c); border-bottom: 1px solid var(--border-c); }
      .compare .mid svg { transform: rotate(90deg); }
    }

    /* ---------- Steps ---------- */
    .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
    .step {
      position: relative; padding: 30px 26px 28px; border-radius: var(--radius);
      background: var(--surface-c); border: 1px solid var(--border-c);
      transition: border-color .2s ease, transform .2s ease;
    }
    .step:hover { border-color: rgb(var(--accent) / 0.4); transform: translateY(-3px); }
    .step .num { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent-b); letter-spacing: 0.1em; }
    .step h3 { margin: 14px 0 10px; font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; }
    .step p { color: var(--muted-c); font-size: 0.98rem; line-height: 1.6; }
    .step code { font-family: var(--font-mono); font-size: 0.86em; color: var(--accent-b); background: rgb(var(--accent) / 0.09); padding: 1px 6px; border-radius: 5px; }
    @media (prefers-reduced-motion: reduce) { .step:hover { transform: none; } }

    /* ---------- Stats ---------- */
    .stats { background: var(--surface-c); border-top: 1px solid var(--border-c); border-bottom: 1px solid var(--border-c); }
    .stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border-c); border: 1px solid var(--border-c); border-radius: var(--radius); overflow: hidden; }
    .stat { background: var(--bg-c); padding: 34px 26px; text-align: center; }
    .stat .num { font-family: var(--font-mono); font-weight: 700; font-size: clamp(1.7rem, 3.6vw, 2.5rem); letter-spacing: -0.02em; color: var(--text-c); }
    .stat .num sup { font-size: 0.55em; }
    .stat .num .u { color: var(--accent-b); }
    .stat .label { margin-top: 10px; font-size: 0.88rem; color: var(--muted-c); }
    @media (max-width: 760px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

    /* ---------- Math ---------- */
    .math-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
    .math-card { padding: 30px 30px 34px; border-radius: var(--radius); background: var(--surface-c); border: 1px solid var(--border-c); }
    .math-card.wide { grid-column: 1 / -1; }
    .math-card .tag { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-b); }
    .math-card h3 { margin: 12px 0 8px; font-size: 1.3rem; font-weight: 700; letter-spacing: -0.01em; }
    .math-card > p { color: var(--muted-c); font-size: 0.98rem; line-height: 1.6; }
    .math-card .result { margin-top: 20px; padding-top: 18px; border-top: 1px dashed var(--border-c); color: var(--muted-c); font-size: 0.98rem; }
    .math-card .result b { color: var(--accent-b); font-weight: 600; }

    .eq {
      margin: 20px 0 4px; padding: 18px 20px; border-radius: var(--radius-sm);
      background: var(--bg-c); border: 1px solid var(--border-c);
      font-family: "JetBrains Mono", var(--font-mono); font-size: 1.02rem; color: var(--text-c);
      overflow-x: auto; line-height: 2;
    }
    .eq .m { font-family: Georgia, "Times New Roman", serif; font-style: italic; }
    .eq .op { color: var(--faint-c); padding: 0 2px; }
    .eq .res { color: var(--accent-b); }
    .eq .em { color: var(--warning); }
    sup { font-size: 0.68em; vertical-align: super; line-height: 0; }
    .frac { display: inline-flex; flex-direction: column; text-align: center; vertical-align: middle; margin: 0 4px; }
    .frac > span:first-child { border-bottom: 1px solid currentColor; padding: 0 6px 2px; }
    .frac > span:last-child { padding: 2px 6px 0; }
    .cbrt { position: relative; padding-left: 4px; }
    .cbrt::before { content: "∛"; font-size: 1.15em; margin-right: 1px; }
    .eq .grp { border-top: 1px solid currentColor; padding-top: 1px; }
    @media (max-width: 720px) { .math-grid { grid-template-columns: 1fr; } }

    /* ---------- Features ---------- */
    .feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .feat {
      padding: 28px 26px; border-radius: var(--radius); background: var(--surface-c);
      border: 1px solid var(--border-c); transition: border-color .2s ease, background .2s ease;
    }
    .feat:hover { border-color: rgb(var(--accent) / 0.4); }
    .feat .ico { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: rgb(var(--accent) / 0.1); border: 1px solid rgb(var(--accent) / 0.25); color: var(--accent-b); margin-bottom: 18px; }
    .feat .ico svg { width: 21px; height: 21px; }
    .feat h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 9px; }
    .feat p { color: var(--muted-c); font-size: 0.96rem; line-height: 1.58; }
    @media (max-width: 900px) { .feat-grid, .steps { grid-template-columns: 1fr 1fr; } }
    @media (max-width: 620px) { .feat-grid, .steps { grid-template-columns: 1fr; } }

    /* ---------- Install ---------- */
    .install-wrap { max-width: 780px; margin: 0 auto; }
    .code-block {
      background: linear-gradient(180deg, rgb(var(--surface) / 0.92), rgb(var(--bg) / 0.92));
      border: 1px solid var(--border-c); border-radius: var(--radius); overflow: hidden; margin-bottom: 20px;
    }
    .code-head { display: flex; align-items: center; justify-content: space-between; padding: 11px 16px; border-bottom: 1px solid var(--border-c); background: rgb(var(--surface-2) / 0.5); }
    .code-head .label { font-family: var(--font-mono); font-size: 12.5px; color: var(--faint-c); letter-spacing: 0.04em; }
    .copy-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 12.5px; font-family: var(--font-sans); font-weight: 600; color: var(--muted-c); background: transparent; border: 1px solid var(--border-c); border-radius: 7px; padding: 5px 10px; transition: color .16s, border-color .16s; }
    .copy-btn:hover { color: var(--accent-b); border-color: rgb(var(--accent) / 0.5); }
    .copy-btn svg { width: 13px; height: 13px; }
    .code-body { padding: 18px 20px; font-family: var(--font-mono); font-size: 14px; line-height: 1.9; overflow-x: auto; }
    .code-body .p { color: var(--faint-c); user-select: none; }
    .code-body .k { color: var(--accent-b); }
    .code-body .a { color: var(--warning); }
    .code-body .c { color: var(--faint-c); }

    /* ---------- Final CTA ---------- */
    .final { text-align: center; position: relative; overflow: hidden; }
    .final .glow { position: absolute; inset: 0; z-index: 0; background: radial-gradient(ellipse 60% 80% at 50% 100%, rgb(var(--accent) / 0.16), transparent 70%); pointer-events: none; }
    .final .container { position: relative; z-index: 1; }
    .final h2 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); font-weight: 900; letter-spacing: -0.035em; line-height: 1.02; max-width: 16ch; margin: 0 auto; }
    .final h2 .teal { color: var(--accent-b); }
    .final p { margin: 22px auto 0; max-width: 520px; color: var(--muted-c); font-size: 1.12rem; }
    .final .actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

    /* ---------- Footer ---------- */
    footer { border-top: 1px solid var(--border-c); background: var(--surface-c); padding: 64px 0 40px; }
    .foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
    .foot-about .brand { margin-bottom: 16px; }
    .foot-about p { color: var(--muted-c); font-size: 0.95rem; line-height: 1.6; max-width: 32ch; }
    .foot-about .prod { margin-top: 14px; font-size: 0.9rem; color: var(--faint-c); }
    .foot-about .prod b { color: var(--muted-c); font-weight: 600; transition: color .18s ease; }
    .foot-about .prod a { color: inherit; }
    .foot-about .prod a:hover b { color: var(--accent-b); }
    .foot-col h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint-c); margin-bottom: 16px; }
    .foot-col a { display: block; color: var(--muted-c); font-size: 0.94rem; padding: 5px 0; transition: color .16s; }
    .foot-col a:hover { color: var(--accent-b); }
    .foot-eco { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--border-c); }
    .foot-eco .lab { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint-c); margin-bottom: 16px; }
    .foot-eco .badges { display: flex; flex-wrap: wrap; gap: 10px; }
    .foot-eco .badge { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted-c); background: var(--bg-c); border: 1px solid var(--border-c); border-radius: 7px; padding: 6px 12px; }
    .foot-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border-c); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.88rem; color: var(--faint-c); }
    .foot-bottom a { color: var(--muted-c); }
    .foot-bottom a:hover { color: var(--accent-b); }
    @media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

    /* ---------- Reveal on scroll ---------- */
    .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
    .reveal.in { opacity: 1; transform: none; }
    @media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

    /* ---------- Responsive nav ---------- */
    @media (max-width: 940px) { .nav-links { display: none; } .byline { display: none; } }
    @media (max-width: 480px) {
      .container { padding: 0 18px; }
      .announce .container { font-size: 12px; }
      .section-pad { padding: 72px 0; }
    }
  
/* ============================================================
   Sub-pages (contact / legal)
   ============================================================ */
header.static-solid {
  background: rgb(var(--bg) / 0.9);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border-c);
}
.subpage { padding: 116px 0 88px; position: relative; }
.subpage .page-glow {
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 760px; height: 420px; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse 50% 50% at 50% 40%, rgb(var(--accent) / 0.14), transparent 70%);
}
.subpage .container { position: relative; z-index: 1; }
.page-title { text-align: center; max-width: 680px; margin: 0 auto; }
.page-title h1 {
  font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 900; letter-spacing: -0.035em;
  line-height: 1.0; margin-top: 16px;
}
.page-title p { color: var(--muted-c); margin: 20px auto 0; font-size: 1.12rem; line-height: 1.6; }

/* ---- Contact ---- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start;
  max-width: 1000px; margin: 56px auto 0;
}
.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  display: flex; gap: 15px; padding: 20px 22px; border-radius: var(--radius);
  background: var(--surface-c); border: 1px solid var(--border-c);
  transition: border-color .2s ease, transform .2s ease;
}
.contact-card:hover { border-color: rgb(var(--accent) / 0.4); transform: translateY(-2px); }
.contact-card .ic {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: rgb(var(--accent) / 0.1); border: 1px solid rgb(var(--accent) / 0.25); font-size: 19px;
}
.contact-card h3 { font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 4px; }
.contact-card p { font-size: 0.9rem; color: var(--muted-c); line-height: 1.5; }
@media (prefers-reduced-motion: reduce) { .contact-card:hover { transform: none; } }

.contact-form {
  padding: 30px; border-radius: var(--radius);
  background: var(--surface-c); border: 1px solid var(--border-c);
}
.contact-form h2 { font-size: 1.32rem; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 22px; }
.field { margin-bottom: 17px; }
.field label { display: block; font-size: 0.82rem; color: var(--muted-c); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg-c); border: 1px solid var(--border-c); border-radius: var(--radius-sm);
  color: var(--text-c); font-family: var(--font-sans); font-size: 0.95rem; padding: 11px 13px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--faint-c); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: rgb(var(--accent) / 0.6); box-shadow: 0 0 0 3px rgb(var(--accent) / 0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form .btn-primary { width: 100%; justify-content: center; margin-top: 4px; }
.form-note { margin-top: 15px; font-size: 0.82rem; color: var(--faint-c); text-align: center; line-height: 1.5; }
.form-note a { color: var(--muted-c); }
.form-note a:hover { color: var(--accent-b); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } .field-row { grid-template-columns: 1fr; } }

/* ---- Legal / prose ---- */
.legal { max-width: 740px; margin: 0 auto; }
.legal-head { text-align: center; margin-bottom: 44px; }
.legal-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 900; letter-spacing: -0.03em; margin-top: 14px;
}
.legal-head .meta { color: var(--faint-c); font-size: 0.92rem; margin-top: 14px; }
.legal h2 {
  font-size: 1.22rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text-c);
  margin: 40px 0 13px; padding-top: 22px; border-top: 1px solid var(--border-c);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal p { color: var(--muted-c); line-height: 1.72; margin-bottom: 15px; }
.legal ul { margin: 0 0 16px; padding: 0; list-style: none; }
.legal li { color: var(--muted-c); line-height: 1.72; padding-left: 22px; position: relative; margin-bottom: 9px; }
.legal li::before {
  content: ""; position: absolute; left: 3px; top: 11px; width: 6px; height: 6px;
  border-radius: 50%; background: rgb(var(--accent) / 0.7);
}
.legal a { color: var(--accent-b); word-break: break-word; }
.legal a:hover { text-decoration: underline; }

/* ---- GitHub link (header icon + footer) ---- */
.gh-link {
  width: 36px; height: 36px; border-radius: var(--radius-sm); flex: 0 0 auto;
  display: grid; place-items: center; color: var(--muted-c);
  border: 1px solid var(--border-c); background: transparent;
  transition: color .18s, border-color .18s, background .18s;
}
.gh-link:hover { color: var(--text-c); border-color: rgb(var(--accent) / 0.5); background: var(--surface-c); }
.gh-link svg { width: 18px; height: 18px; }
.foot-col a.gh { display: inline-flex; align-items: center; gap: 8px; }
.foot-col a.gh svg { width: 15px; height: 15px; flex: 0 0 auto; }
