@import url("/static/fonts/fonts.css");

/* ------------------------------------------------------------------ tokens (light, default) */
:root {
  --primary: #2f6ec0;
  --primary-dark: #156194;
  --primary-light: #818cf8;
  --secondary: #0f5966;
  --accent: #f59e0b;
  --sky: #64ceff;
  --plum: #865482;

  --bg: #ffffff;
  --bg-alt: #f6f9fd;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --heading: #0f172a;
  --on-primary: #ffffff;

  --grad: linear-gradient(135deg, var(--sky) 0%, var(--primary) 45%, var(--plum) 100%);
  --grad-text: linear-gradient(120deg, #2f6ec0 0%, #0f5966 55%, #865482 100%);
  --grad-soft: linear-gradient(135deg, rgba(100, 206, 255, 0.22), rgba(134, 84, 130, 0.16));
  --glow-1: rgba(100, 206, 255, 0.35);
  --glow-2: rgba(134, 84, 130, 0.22);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.10);
  --shadow-sm: 0 6px 20px rgba(15, 23, 42, 0.07);
  --btn-shadow: 0 10px 26px rgba(47, 110, 192, 0.28);

  /* navbar glass */
  --navbar-glass-bg: rgba(8, 12, 22, 0.1);
  --navbar-glass-blur: 18px;
  --navbar-glass-saturate: 120%;
  --navbar-border: rgba(255, 255, 255, 0.08);
  --navbar-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
  --nav-text: #0f172a;

  --radius: 18px;
  --radius-sm: 10px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Sora", var(--font-body);
  --container: 1180px;
  --gutter: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

/* ------------------------------------------------------------------ tokens (dark, opt-in) */
:root[data-theme="dark"] {
  --bg: #0b1220;
  --bg-alt: #0e1628;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #e8edf8;
  --text-2: #b6c0d9;
  --muted: #8d9ab8;
  --heading: #ffffff;
  --grad-text: linear-gradient(120deg, #64ceff 0%, #818cf8 55%, #d48fcf 100%);
  --grad-soft: linear-gradient(135deg, rgba(100, 206, 255, 0.18), rgba(134, 84, 130, 0.22));
  --glow-1: rgba(100, 206, 255, 0.22);
  --glow-2: rgba(134, 84, 130, 0.28);
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.35);
  --nav-text: #e8edf8;
  --navbar-glass-bg: rgba(8, 12, 22, 0.35);
  color-scheme: dark;
}

/* ------------------------------------------------------------------ reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background .3s, color .3s;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.6em; color: var(--heading); }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--primary); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.center { text-align: center; }
.cards + .center { margin-top: 36px; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ------------------------------------------------------------------ background */
.bg-grid {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 100%);
}
.bg-glow { position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(90px); }
.bg-glow-1 { width: 60vw; height: 60vw; max-width: 760px; max-height: 760px; top: -22vw; right: -14vw; background: radial-gradient(circle, var(--glow-1), transparent 65%); }
.bg-glow-2 { width: 50vw; height: 50vw; max-width: 640px; max-height: 640px; bottom: -22vw; left: -16vw; background: radial-gradient(circle, var(--glow-2), transparent 65%); }

/* ------------------------------------------------------------------ pill navbar */
.site-header { position: sticky; top: 12px; z-index: 50; padding: 0 var(--gutter); pointer-events: none; }
.header-inner {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 62px; padding: 6px 10px 6px 18px;
  border-radius: 999px;
  background: var(--navbar-glass-bg);
  -webkit-backdrop-filter: blur(var(--navbar-glass-blur)) saturate(var(--navbar-glass-saturate));
  backdrop-filter: blur(var(--navbar-glass-blur)) saturate(var(--navbar-glass-saturate));
  border: 1px solid var(--navbar-border);
  box-shadow: var(--navbar-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--nav-text); font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand-name span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-logo { flex: none; width: 40px; height: 40px; object-fit: contain; }
.nav { position: relative; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-list a { display: inline-block; padding: 8px 13px; border-radius: 999px; color: var(--nav-text); font-weight: 500; font-size: 0.93rem; opacity: 0.85; transition: opacity .2s, background .2s; }
.nav-list a:hover { opacity: 1; background: rgba(127, 127, 127, 0.14); text-decoration: none; }
.nav-list a[aria-current="page"] { opacity: 1; background: rgba(127, 127, 127, 0.16); }
.nav-lang a { font-weight: 600; letter-spacing: 0.06em; font-size: 0.78rem; border: 1px solid var(--border-strong); margin-left: 4px; }
.nav-list a.btn { padding: 9px 18px; color: var(--on-primary); background: var(--grad); opacity: 1; margin-left: 6px; }
.nav-list a.btn:hover { color: var(--on-primary); background: var(--grad); }
.theme-toggle { display: grid; place-items: center; width: 36px; height: 36px; margin-left: 4px; border-radius: 50%; border: 1px solid var(--border-strong); background: transparent; color: var(--nav-text); cursor: pointer; }
.theme-toggle:hover { background: rgba(127, 127, 127, 0.14); }
.theme-toggle .ic-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 50%; width: 42px; height: 42px; position: relative; cursor: pointer; }
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { position: absolute; left: 11px; width: 18px; height: 2px; background: var(--nav-text); border-radius: 2px; content: ""; transition: transform .25s, opacity .25s; }
.nav-toggle-bar { top: 19px; }
.nav-toggle-bar::before { top: -6px; left: 0; }
.nav-toggle-bar::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 1000px) {
  .nav-toggle { display: block; }
  .nav-list {
    position: absolute; right: 0; top: calc(100% + 12px); min-width: 250px;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s;
  }
  :root[data-theme="dark"] .nav-list { background: #131c31; }
  .nav-list.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-list a { display: block; padding: 10px 14px; }
  .nav-lang, .nav-theme { display: flex; justify-content: flex-start; padding: 4px 8px; }
  .nav-cta { margin: 6px 0 0; }
  .nav-list a.btn { display: block; text-align: center; margin: 0; }
}

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  background: var(--grad); color: var(--on-primary); font-weight: 600; font-size: 0.98rem;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s, filter .2s;
  box-shadow: var(--btn-shadow);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(47, 110, 192, 0.34); filter: saturate(1.08); color: var(--on-primary); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }
.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-ghost { background: var(--surface); color: var(--heading); border-color: var(--border-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-2); box-shadow: none; color: var(--heading); }

/* ------------------------------------------------------------------ typography helpers */
.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); margin-bottom: 14px; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 62ch; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.note { font-size: 0.92rem; color: var(--muted); }
.section-title { max-width: 26ch; }
.section-head { max-width: 760px; margin-bottom: 8px; }
.conclusion { margin-top: 28px; padding: 22px 26px; border-left: 3px solid var(--primary); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; max-width: none; font-size: 1.08rem; color: var(--text-2); }

/* ------------------------------------------------------------------ sections */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-alt) 15%, var(--bg-alt) 85%, transparent); }
:root[data-theme="dark"] .section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.025) 15%, rgba(255,255,255,0.025) 85%, transparent); }

/* hero */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 5vw, 64px); position: relative; overflow: hidden; }
.hero-net { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.6; mask-image: linear-gradient(180deg, #000 70%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); }
.hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; gap: 48px; } }
.display { font-size: clamp(2.5rem, 6.2vw, 4.6rem); line-height: 1.02; }
.display span { display: block; }
.hero-copy .lead { margin-top: 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 8px; }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 12%; background: var(--grad-soft); filter: blur(60px); border-radius: 50%; z-index: -1; }
.hero-art img { width: 100%; height: auto; max-height: 72vh; object-fit: contain; margin: 0 auto; }
.hero-art-sm img { max-height: 52vh; }
.hero-sub h1 { font-size: clamp(1.9rem, 4vw, 3rem); }
.hero-compact { padding-bottom: 16px; }
.hero-compact .lead { margin-top: 10px; }

/* breadcrumb */
.breadcrumb { margin-bottom: 18px; font-size: 0.85rem; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

/* cards */
.cards { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 640px) { .cards-3, .cards-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } .cards-4 { grid-template-columns: repeat(4, 1fr); } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad); opacity: 0; transition: opacity .3s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card:hover::before { opacity: 0.9; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--text-2); font-size: 0.98rem; flex: 1; }
.card-link { color: inherit; }
.card-link:hover { text-decoration: none; }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--grad-soft); color: var(--primary); margin-bottom: 4px; }
.card-cta { margin-top: 8px; font-weight: 600; color: var(--primary); font-size: 0.95rem; }
.card-num { font-family: var(--font-head); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; color: var(--plum); }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.76rem; font-weight: 500; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.tag-accent { color: var(--primary); border-color: rgba(47,110,192,0.35); background: rgba(100,206,255,0.12); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin-top: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 8px; }
.chips li { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); font-weight: 500; color: var(--text-2); font-size: 0.95rem; }

/* split */
.split { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 0.9fr; gap: 56px; } }
.split-art img { width: 100%; max-height: 520px; object-fit: contain; }
.checklist { list-style: none; display: grid; gap: 14px; margin: 22px 0 26px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; color: var(--text-2); }
.checklist li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; margin-top: 3px; border: 1px solid rgba(47,110,192,0.5); background-color: rgba(100,206,255,0.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%232f6ec0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 10.5l3 3 6-7'/%3E%3C/svg%3E"); background-size: 100%; background-repeat: no-repeat; background-position: center; }
.checklist strong { display: block; color: var(--heading); margin-bottom: 2px; }
.checklist li > span { grid-column: 2; }
.checklist li:has(strong) { grid-template-rows: auto auto; }
.checklist li strong { grid-column: 2; grid-row: 1; }
.checklist li:has(strong)::before { grid-row: 1 / span 2; }

/* timeline (home story) */
.timeline { list-style: none; counter-reset: tl; display: grid; gap: 14px; margin: 24px 0; position: relative; }
.timeline li { counter-increment: tl; display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; color: var(--text-2); position: relative; }
.timeline li::before { content: counter(tl); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 0.85rem; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 32px; bottom: -14px; width: 1px; background: var(--border-strong); }
.timeline span { padding-top: 3px; }

/* flow (workflow featured case) */
.flow { list-style: none; display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 12px; }
@media (min-width: 700px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .flow { grid-template-columns: repeat(3, 1fr); } }
.flow li { position: relative; padding: 24px 24px 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); overflow: hidden; }
.flow li::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--grad); }
.flow-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--grad-soft); color: var(--primary); font-family: var(--font-head); font-weight: 700; margin-bottom: 12px; }
.flow h3 { font-size: 1.08rem; }
.flow p { margin: 0; color: var(--text-2); font-size: 0.96rem; }

/* steps */
.steps { list-style: none; display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.step-n { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 1.1rem; }
.steps p { color: var(--text-2); font-size: 0.96rem; margin: 0; }

/* features */
.grid-2 { display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.features { gap: 18px 32px; }
.feature { padding: 20px 0; border-top: 1px solid var(--border); }
.feature h3 { font-size: 1.08rem; }
.feature p { color: var(--text-2); margin: 0; font-size: 0.97rem; }

/* tables */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
thead th { font-family: var(--font-head); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { color: var(--heading); font-weight: 600; }
.compare td { color: var(--text-2); }
.td-accent { color: var(--heading) !important; background: rgba(100,206,255,0.10); }

/* checks (audit) */
.checks { list-style: none; display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 760px) { .checks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .checks { grid-template-columns: repeat(3, 1fr); } }
.checks li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.check-n { font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; padding-top: 2px; }
.checks h3 { font-size: 1.02rem; margin-bottom: 4px; }
.checks p { margin: 0; color: var(--text-2); font-size: 0.94rem; }
.disclaimer { padding: 26px 28px; border-radius: var(--radius); background: rgba(245,158,11,0.08); border: 1px solid rgba(245,158,11,0.35); }
.disclaimer h2 { font-size: 1.2rem; }
.disclaimer p { margin: 0; color: var(--text-2); }

/* CTA band */
.cta-band { padding: clamp(40px, 6vw, 72px) 0; }
.cta-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: clamp(28px, 4vw, 48px); border-radius: 24px; background: linear-gradient(135deg, #0d4752 0%, #2f6ec0 55%, #865482 100%); color: #fff; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.cta-inner::after { content: ""; position: absolute; right: -10%; top: -60%; width: 50%; aspect-ratio: 1; background: radial-gradient(circle, rgba(255,255,255,0.22), transparent 60%); pointer-events: none; }
.cta-inner h2 { margin-bottom: 8px; color: #fff; }
.cta-inner p { margin: 0; color: rgba(255,255,255,0.85); max-width: 60ch; }
.cta-inner > div { flex: 1 1 420px; }
.cta-inner .btn { background: #fff; color: var(--primary-dark); box-shadow: 0 10px 26px rgba(0,0,0,0.2); }
.cta-inner .btn:hover { color: var(--primary-dark); }

/* prose */
.prose-wrap { max-width: 780px; }
.prose { font-size: 1.05rem; color: var(--text-2); }
.prose h2 { margin-top: 2.2em; font-size: 1.6rem; }
.prose h3 { margin-top: 1.6em; font-size: 1.2rem; }
.prose p, .prose li { line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 3px solid var(--primary); background: var(--surface-2); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.98rem; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; color: var(--heading); }
.prose pre { background: var(--surface-2); border: 1px solid var(--border); padding: 16px 18px; border-radius: var(--radius-sm); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { font-size: 0.92rem; margin: 1.2em 0; }
.prose strong { color: var(--heading); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 2em 0; }

/* blog */
.post-featured { display: block; padding: clamp(24px, 4vw, 40px); border-radius: 24px; background: var(--grad-soft); border: 1px solid var(--border); color: inherit; margin-bottom: 48px; transition: transform .3s var(--ease); box-shadow: var(--shadow-sm); }
.post-featured:hover { text-decoration: none; transform: translateY(-3px); }
.post-featured h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.post-featured p { color: var(--text-2); max-width: 70ch; }
.post-meta { font-size: 0.85rem; color: var(--muted); }
.post-list { display: grid; gap: 4px; }
.post-item { display: block; padding: 22px 0; border-top: 1px solid var(--border); color: inherit; }
.post-item:hover { text-decoration: none; }
.post-item:hover h3 { color: var(--primary); }
.post-item h3 { margin: 6px 0 6px; transition: color .2s; }
.post-item p { margin: 0; color: var(--text-2); font-size: 0.97rem; max-width: 75ch; }
.post-header h1 { max-width: 22ch; font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.post-layout { display: grid; grid-template-columns: 1fr; gap: 40px; padding-top: 24px; padding-bottom: 40px; }
@media (min-width: 1000px) { .post-layout { grid-template-columns: 240px minmax(0, 720px); gap: 64px; } .toc { position: sticky; top: 92px; align-self: start; } }
.toc { font-size: 0.9rem; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.toc-title { font-family: var(--font-head); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ul { list-style: none; }
.toc ul ul { padding-left: 14px; }
.toc li { margin: 6px 0; }
.toc a { color: var(--text-2); }
.toc a:hover { color: var(--primary); }
.post-disclaimer { margin-top: 3em; padding-top: 1.5em; border-top: 1px solid var(--border); }
.post-nav { display: grid; gap: 12px; grid-template-columns: 1fr; padding-bottom: 40px; }
@media (min-width: 720px) { .post-nav { grid-template-columns: 1fr 1fr; } }
.post-nav-link { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: inherit; }
.post-nav-link:hover { text-decoration: none; border-color: var(--border-strong); }
.post-nav-link span { font-size: 0.8rem; color: var(--muted); }
.post-nav-link.right { text-align: right; }

/* contact composer */
.email-big { margin-top: 26px; display: flex; flex-direction: column; gap: 4px; }
.email-big .eyebrow { margin-bottom: 0; }
.email-big { align-items: flex-start; }
.email-big .copy-email { margin-top: 6px; }
.email-big a { font-family: var(--font-head); font-size: clamp(1.2rem, 2.6vw, 1.7rem); font-weight: 600; color: var(--heading); word-break: break-all; }
.contact-grid { align-items: start; }
.contact-simple { grid-template-columns: minmax(0, 640px); }
.composer { gap: 16px; }
.composer:hover { transform: none; }
.composer h2 { font-size: 1.35rem; margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.92rem; color: var(--heading); }
.field small { color: var(--muted); font-size: 0.82rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--bg); color: var(--text); font: inherit; font-size: 0.98rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
.field textarea { resize: vertical; min-height: 140px; }
.composer-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.contact-side h2 { font-size: 1.35rem; }
.contact-facts { display: grid; gap: 14px; margin: 24px 0; }
.contact-facts div { display: grid; gap: 2px; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.contact-facts dt { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.contact-facts dd { margin: 0; color: var(--heading); }

/* GPU tool */
.gpu-controls { gap: 20px; margin-bottom: 20px; }
.gpu-controls:hover { transform: none; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); }
.seg-btn { padding: 8px 16px; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.seg-btn.active { background: var(--grad); color: #fff; }
.gpu-table td.empty { text-align: center; color: var(--muted); padding: 40px; }
.gpu-table .n { font-family: var(--font-head); font-weight: 600; color: var(--heading); }
.gpu-table .n-ok { color: #15803d; }
:root[data-theme="dark"] .gpu-table .n-ok { color: #4ade80; }
.gpu-table .n-no { color: var(--muted); }
.gpu-table .vendor { font-size: 0.8rem; color: var(--muted); display: block; }
.gpu-table a { font-weight: 600; }

/* footer */
.site-footer { margin-top: 40px; border-top: 1px solid var(--border); background: var(--bg-alt); }
:root[data-theme="dark"] .site-footer { background: rgba(0,0,0,0.25); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 32px; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand p { color: var(--muted); font-size: 0.95rem; max-width: 40ch; margin-top: 14px; }
.footer-notrack { color: var(--primary) !important; font-size: 0.85rem !important; }
.footer-h { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer ul a { color: var(--text-2); font-size: 0.95rem; }
.site-footer ul a:hover { color: var(--primary); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px 0 32px; border-top: 1px solid var(--border); font-size: 0.85rem; color: var(--muted); }
.footer-bottom a { color: var(--muted); }

/* reveal animation (only when JS present) */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
html.js .reveal.in { opacity: 1; transform: none; }

/* illustrations */
.illu img { filter: drop-shadow(0 20px 40px rgba(15, 23, 42, 0.18)); }
:root[data-theme="dark"] .illu img { filter: drop-shadow(0 20px 40px rgba(0,0,0,0.4)); }
