@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f7f8fc;
  --bg-2: #eef1f8;
  --surface: #ffffff;
  --ink: #141a33;
  --ink-2: #4a5373;
  --ink-3: #7a829e;
  --line: #e2e6f0;
  --line-2: #d3d9e8;
  --accent: #2446a8;
  --accent-ink: #2446a8;
  --accent-soft: rgba(36, 70, 168, 0.08);
  --glow: rgba(79, 116, 224, 0.22);
  --btn-dark: #141a33;
  --btn-dark-ink: #ffffff;

  /* Features band: dark navy in both themes */
  --band: #121936;
  --band-2: #1a2246;
  --band-ink: #eef1fb;
  --band-ink-2: #a7b0d1;
  --band-line: rgba(255, 255, 255, 0.09);
  --band-accent: #8aa4ff;

  --ok: #1f9d55;
  --warn: #c98a12;
  --bad: #c43d3d;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(20, 26, 51, 0.04), 0 8px 24px rgba(20, 26, 51, 0.06);
  --shadow-lg: 0 2px 6px rgba(20, 26, 51, 0.05), 0 30px 80px -20px rgba(36, 70, 168, 0.28);

  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1020;
    --bg-2: #0f1528;
    --surface: #131a30;
    --ink: #eef1fb;
    --ink-2: #b3bbd6;
    --ink-3: #8189a6;
    --line: #1f2742;
    --line-2: #2a3352;
    --accent: #4f74e0;
    --accent-ink: #8aa4ff;
    --accent-soft: rgba(79, 116, 224, 0.12);
    --glow: rgba(79, 116, 224, 0.28);
    --btn-dark: #eef1fb;
    --btn-dark-ink: #0b1020;
    --band: #151d3d;
    --band-2: #1d2750;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 30px 80px -20px rgba(79, 116, 224, 0.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-2: #0f1528;
  --surface: #131a30;
  --ink: #eef1fb;
  --ink-2: #b3bbd6;
  --ink-3: #8189a6;
  --line: #1f2742;
  --line-2: #2a3352;
  --accent: #4f74e0;
  --accent-ink: #8aa4ff;
  --accent-soft: rgba(79, 116, 224, 0.12);
  --glow: rgba(79, 116, 224, 0.28);
  --btn-dark: #eef1fb;
  --btn-dark-ink: #0b1020;
  --band: #151d3d;
  --band-2: #1d2750;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.3), 0 30px 80px -20px rgba(79, 116, 224, 0.35);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.12; }
p { margin: 0; }
code { font-family: var(--mono); font-size: 0.86em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow .num { font-family: var(--mono); letter-spacing: 0.04em; color: var(--ink-3); margin-right: 0.5em; }
.sub { color: var(--ink-2); font-size: 1.075rem; max-width: 40rem; }
.muted { color: var(--ink-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-weight: 650; font-size: 0.95rem; line-height: 1;
  border-radius: 999px; padding: 0.8em 1.25em;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { font-size: 0.875rem; padding: 0.7em 1.1em; }
.btn--lg { font-size: 1rem; padding: 1em 1.5em; border-radius: 14px; }
.btn--dark { background: var(--btn-dark); color: var(--btn-dark-ink); box-shadow: 0 6px 18px -6px rgba(20, 26, 51, 0.45); }
.btn--ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-3); }
.btn--light { background: #fff; color: #141a33; }
.btn .gh { width: 1.15em; height: 1.15em; fill: currentColor; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: 40px; height: 40px; border-radius: 999px;
  background: transparent; border: 1px solid transparent; color: var(--ink-2);
  cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--accent-soft); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn .i-moon { display: none; }
:root[data-theme-resolved="dark"] .icon-btn .i-sun { display: none; }
:root[data-theme-resolved="dark"] .icon-btn .i-moon { display: block; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav__inner { height: var(--nav-h); display: flex; align-items: center; gap: 2.5rem; }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; font-weight: 750; font-size: 1.15rem; letter-spacing: -0.02em; }
.brand__mark { width: 30px; height: 30px; background: url("/assets/img/logo/mark.svg") center / contain no-repeat; flex: none; }
:root[data-theme-resolved="dark"] .brand__mark { background-image: url("/assets/img/logo/mark-dark.svg"); }
.nav__links { display: flex; gap: 1.75rem; font-size: 0.94rem; font-weight: 550; color: var(--ink-2); }
.nav__links a:hover { color: var(--ink); }
.nav__actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(48px, 8vw, 96px) clamp(64px, 9vw, 120px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 70vw; max-width: 1100px; max-height: 1100px;
  background: radial-gradient(closest-side, var(--glow), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: -15vw; top: 10%; width: 45vw; height: 45vw;
  background: radial-gradient(closest-side, var(--accent-soft), transparent 70%);
  pointer-events: none;
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-size: 0.82rem; font-weight: 650; color: var(--ink-2);
  border: 1px solid var(--line-2); background: var(--surface);
  border-radius: 999px; padding: 0.45em 0.95em; margin-bottom: 1.6rem;
}
a.pill { transition: border-color 0.15s, color 0.15s; }
a.pill:hover { border-color: var(--ink-3); color: var(--ink); }
.pill code { font-size: 0.8rem; font-weight: 600; color: var(--ink); background: var(--accent-soft); padding: 0.15em 0.5em; border-radius: 6px; }
.pill__arrow { color: var(--accent-ink); transition: transform 0.15s; }
a.pill:hover .pill__arrow { transform: translateX(2px); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 20%, transparent); }
.hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.7rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.04; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.lead { margin-top: 1.5rem; font-size: clamp(1.05rem, 1.4vw, 1.18rem); color: var(--ink-2); max-width: 34rem; }
.cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.checks { list-style: none; padding: 0; margin: 1.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-size: 0.88rem; color: var(--ink-3); font-weight: 550; }
.checks li::before { content: "✓"; color: var(--ok); font-weight: 800; margin-right: 0.45em; }

.hero__shot { position: relative; }
.frame--hero { width: 128%; max-width: none; }
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; }
  .frame--hero { width: 100%; }
}

/* ---------- Window frame around screenshots ---------- */
.frame {
  margin: 0;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.frame__bar {
  display: flex; align-items: center; gap: 6px;
  height: 34px; padding: 0 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 0.75rem; font-weight: 600; color: var(--ink-3);
}
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.frame__bar span { margin-left: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame picture, .frame img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: left top; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.head { margin-bottom: clamp(32px, 4vw, 56px); display: grid; gap: 0.9rem; }
.head h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -0.035em; max-width: 22ch; }
.head--center { text-align: center; justify-items: center; }
.head--center h2 { max-width: none; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 2.4vw, 32px);
  box-shadow: var(--shadow);
}
.card h3 { font-size: 1.2rem; font-weight: 750; margin-bottom: 0.6rem; }
.card p { color: var(--ink-2); }
.card--lg h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); font-weight: 800; margin: 0.7rem 0 1rem; letter-spacing: -0.03em; }
.card--muted { background: var(--bg-2); box-shadow: none; }

/* Sound familiar */
.familiar { padding-top: clamp(24px, 4vw, 48px); }
.familiar .head { margin-bottom: 1.5rem; }
.questions { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.questions li {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 26px 28px; font-size: 1.12rem; font-weight: 600; line-height: 1.45; letter-spacing: -0.01em;
  box-shadow: var(--shadow);
}
.q {
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px;
  border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-weight: 800;
}
.familiar__then { margin-top: 2rem; font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; }
@media (max-width: 860px) { .questions { grid-template-columns: 1fr; } }

/* What it is */
.what { padding-top: 0; }
.what__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; border-top: 1px solid var(--line); padding-top: clamp(48px, 6vw, 80px); }
.what h2 { margin-top: 0.9rem; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; letter-spacing: -0.035em; }
.prose { display: grid; gap: 1.1em; color: var(--ink-2); font-size: 1.075rem; }
@media (max-width: 860px) { .what__grid { grid-template-columns: 1fr; } }

/* ---------- Features band ---------- */
.band {
  background: var(--band);
  color: var(--band-ink);
  padding-block: clamp(72px, 9vw, 120px);
  position: relative;
  overflow: hidden;
}
.band::before {
  content: ""; position: absolute; left: 50%; top: -30%; width: 90vw; height: 60vw; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(79, 116, 224, 0.22), transparent 70%);
  pointer-events: none;
}
.band .wrap { position: relative; }
:root[data-theme-resolved="dark"] .band { border-block: 1px solid var(--band-line); }
.band .eyebrow { color: var(--band-accent); }
.band .sub { color: var(--band-ink-2); }

.tour { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.tour__list { display: flex; flex-direction: column; gap: 2px; position: sticky; top: calc(var(--nav-h) + 24px); }
.tour__list button {
  display: flex; align-items: center; gap: 0.85rem; text-align: left;
  font: inherit; font-size: 0.95rem; font-weight: 550; color: var(--band-ink-2);
  background: transparent; border: 0; border-radius: 12px; padding: 0.7rem 0.9rem;
  cursor: pointer; transition: background-color 0.15s, color 0.15s;
}
.tour__list button .n { font-family: var(--mono); font-size: 0.75rem; color: rgba(167, 176, 209, 0.55); transition: color 0.15s; }
.tour__list button:hover { color: var(--band-ink); background: rgba(255, 255, 255, 0.04); }
.tour__list button[aria-selected="true"] { color: #fff; background: var(--band-2); box-shadow: inset 0 0 0 1px var(--band-line); font-weight: 700; }
.tour__list button[aria-selected="true"] .n { color: var(--band-accent); }

.tour__panels { min-width: 0; }
.tour__panels article { min-height: 7.6rem; margin-bottom: 1.6rem; animation: fade 0.3s ease; }
.tour__panels h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 0.7rem; }
.tour__panels p { color: var(--band-ink-2); font-size: 1.05rem; max-width: 44rem; }
.frame--tour { border-color: var(--band-line); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.6); background: var(--band-2); }
.frame--tour .frame__bar { background: rgba(255, 255, 255, 0.04); border-bottom-color: var(--band-line); color: var(--band-ink-2); }
.frame--tour .frame__bar i { background: rgba(255, 255, 255, 0.14); }
.frame__zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.frame__zoom img { transition: opacity 0.2s ease; }
.frame__zoom img.is-loading { opacity: 0.35; }

.tour__step { display: none; }

@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .tour { grid-template-columns: 1fr; }
  .tour__list {
    position: static; flex-direction: row; overflow-x: auto; gap: 6px;
    margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 12px;
    scrollbar-width: none; scroll-snap-type: x proximity;
  }
  .tour__list::-webkit-scrollbar { display: none; }
  .tour__list button { flex: none; white-space: nowrap; scroll-snap-align: start; box-shadow: inset 0 0 0 1px var(--band-line); border-radius: 999px; padding: 0.55rem 0.95rem; }
  .tour__list button .n { display: none; }
  .tour__panels article { min-height: 0; }
  .tour__step { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; color: var(--band-ink-2); font-size: 0.9rem; font-family: var(--mono); }
  .tour__step button { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--band-line); background: var(--band-2); color: var(--band-ink); font-size: 1.1rem; cursor: pointer; }
}

/* ---------- Roles ---------- */
.roles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.role-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 1.2rem; }
.role-ic svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1000px) { .roles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .roles { grid-template-columns: 1fr; } }

/* ---------- How it fits in ---------- */
.fit { background: var(--bg-2); border-block: 1px solid var(--line); }
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; counter-reset: flow; }
.flow__step {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.flow__step + .flow__step::before {
  content: "→"; position: absolute; left: -32px; top: 50%; transform: translateY(-50%);
  width: 24px; text-align: center; color: var(--ink-3); font-weight: 700; font-size: 1.2rem;
}
.flow__step--core { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.flow__tag { margin-bottom: 1.1rem; }
.flow__tag code { display: inline-block; padding: 0.3em 0.65em; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); font-size: 0.82rem; }
.flow__step--core .flow__tag code { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.flow h3 { font-size: 1.2rem; font-weight: 750; margin-bottom: 0.7rem; }
.flow p:not(.flow__tag) { color: var(--ink-2); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; gap: 36px; }
  .flow__step + .flow__step::before { content: "↓"; left: 50%; top: -30px; transform: translateX(-50%); }
}

/* ---------- Principles ---------- */
.principles .wrap { display: grid; }
.principle {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 6vw, 96px);
  padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line);
}
.principle:first-child { border-top: 0; padding-top: 0; }
.principle:last-child { padding-bottom: 0; }
.principle h2 { margin-top: 0.9rem; font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 800; letter-spacing: -0.035em; }
@media (min-width: 861px) { .principle header { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; } }
@media (max-width: 860px) { .principle { grid-template-columns: 1fr; } }

/* ---------- Modules ---------- */
.modules { padding-top: 0; }
.mods { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.mod { grid-column: span 2; position: relative; }
.mod:nth-child(4), .mod:nth-child(5) { grid-column: span 3; }
.mod::before { content: ""; display: block; width: 28px; height: 4px; border-radius: 4px; background: var(--accent); margin-bottom: 1.3rem; }
@media (max-width: 900px) { .mods { grid-template-columns: 1fr 1fr; } .mod, .mod:nth-child(4), .mod:nth-child(5) { grid-column: span 1; } }
@media (max-width: 560px) { .mods { grid-template-columns: 1fr; } }

/* ---------- Publishing / scope ---------- */
.scope { padding-top: 0; }
.scope__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.diff { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.diff li { font-family: var(--mono); font-size: 0.82rem; padding: 0.35em 0.75em; border-radius: 8px; border: 1px solid var(--line); color: var(--ink-2); }
.diff b { margin-right: 0.3em; }
.diff--add b { color: var(--ok); }
.diff--chg b { color: var(--warn); }
.diff--del b { color: var(--bad); }
@media (max-width: 860px) { .scope__grid { grid-template-columns: 1fr; } }

/* ---------- Open source ---------- */
.oss { padding-top: 0; }
.oss__card {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 56px); align-items: center;
  background: var(--band); color: var(--band-ink);
  border-radius: 28px; padding: clamp(28px, 5vw, 64px);
  position: relative; overflow: hidden;
}
.oss__card::before {
  content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 160%;
  background: radial-gradient(closest-side, rgba(79, 116, 224, 0.3), transparent 70%);
  pointer-events: none;
}
.oss__copy { position: relative; display: grid; gap: 1rem; }
.oss__copy .eyebrow { color: var(--band-accent); }
.oss__copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); font-weight: 800; letter-spacing: -0.035em; }
.oss__copy p { color: var(--band-ink-2); font-size: 1.05rem; }
.oss__copy .muted { color: rgba(167, 176, 209, 0.75); font-size: 0.97rem; }
.oss__copy .cta { margin-top: 0.75rem; }
.oss__copy p a { color: var(--band-ink); text-decoration: underline; text-decoration-color: rgba(138, 164, 255, 0.5); text-underline-offset: 3px; }
.oss__copy p a:hover { text-decoration-color: var(--band-accent); }
.oss__term {
  position: relative; margin: 0; padding: 24px 26px; border-radius: 16px;
  background: rgba(0, 0, 0, 0.28); border: 1px solid var(--band-line);
  font: 0.92rem/1.75 var(--mono); color: var(--band-ink); overflow-x: auto;
}
.oss__term .c { color: rgba(167, 176, 209, 0.6); }
.oss__term .k { color: var(--band-accent); }
@media (max-width: 900px) { .oss__card { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer__inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 32px; }
.footer__line { color: var(--ink-3); font-size: 0.92rem; }
.footer__links { display: flex; gap: 1.4rem; font-size: 0.92rem; color: var(--ink-2); font-weight: 550; }
.footer__links a:hover { color: var(--ink); }
.footer__legal { grid-column: 1 / -1; color: var(--ink-3); font-size: 0.84rem; }
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr; } }

/* ---------- Lightbox ---------- */
.lightbox {
  width: min(96vw, 1600px); max-width: none; max-height: 94vh; padding: 0; border: 0; background: transparent;
  overflow: visible;
}
.lightbox::backdrop { background: rgba(8, 11, 24, 0.82); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; height: auto; max-height: 94vh; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5); }
.lightbox form { position: absolute; top: -14px; right: -14px; z-index: 1; }
.lightbox__close {
  width: 40px; height: 40px; border-radius: 999px; border: 0; cursor: pointer;
  background: #fff; color: #141a33; font-size: 1.5rem; line-height: 1; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
@media (max-width: 600px) { .lightbox form { top: 8px; right: 8px; } }
