/* =========================================================================
   ODIA — Design System
   Observabilité & Diagnostic de l'IA en entreprise
   Palette dark enterprise (locked from CDC §6) + composants + états
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg:            #0a0e1a;
  --surface:       #131826;
  --surface-2:     #1a2138;
  --surface-3:     #202a47;
  --border:        #2a3450;
  --border-strong: #3a4668;

  /* Accent (bleu high-signal — usage parcimonieux, max ~2/écran) */
  --accent:        #3b82f6;
  --accent-hover:  #2563eb;
  --accent-soft:   rgba(59, 130, 246, 0.12);
  --accent-line:   rgba(59, 130, 246, 0.45);

  /* Texte */
  --fg:        #e2e8f0;
  --fg-2:      #cbd5e1;
  --fg-sec:    #94a3b8;
  --muted:     #64748b;

  /* Sémantique — niveaux de risque */
  --green:     #22c55e;
  --green-soft:rgba(34, 197, 94, 0.13);
  --yellow:    #eab308;
  --yellow-soft:rgba(234, 179, 8, 0.14);
  --orange:    #f97316;
  --orange-soft:rgba(249, 115, 22, 0.14);
  --red:       #ef4444;
  --red-soft:  rgba(239, 68, 68, 0.14);

  /* Typo */
  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Code", Menlo, Consolas, monospace;

  /* Rayons */
  --r-card: 12px;
  --r-btn:  8px;
  --r-pill: 999px;

  /* Ombres (discrètes) */
  --sh-1: 0 1px 2px rgba(0,0,0,.25);
  --sh-2: 0 12px 32px rgba(0,0,0,.45);
  --sh-modal: 0 24px 64px rgba(0,0,0,.55);

  --maxw: 1160px;
  --gutter: 28px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; color: #fff; }
h1 { letter-spacing: -0.035em; }
h2 { letter-spacing: -0.028em; }
p { color: var(--fg-2); }

:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(59,130,246,.35); border-radius: 4px; }

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.sec   { color: var(--fg-sec); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: 88px; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: none; }
.section--alt { background: linear-gradient(180deg, var(--surface) 0%, var(--bg) 100%); }
.section--tight { padding-block: 56px; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.cluster { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.center { text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 6px 14px; border-radius: var(--r-pill);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.section-title { font-size: clamp(26px, 3.4vw, 34px); margin-top: 18px; }
.section-sub { color: var(--fg-sec); font-size: 18px; max-width: 62ch; margin-top: 14px; }
.section-head { max-width: 720px; margin-bottom: 44px; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 26, 0.82);
  backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; color: #fff; font-size: 19px; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 28px; height: 28px; flex: none; }
.brand small { font-weight: 500; color: var(--fg-sec); letter-spacing: 0; font-size: 13px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--fg-sec); font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--r-btn);
}
.nav-links a:hover { color: var(--fg); background: var(--surface-2); text-decoration: none; }
.nav-links a.active { color: #fff; background: var(--accent-soft); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  --bgc: var(--surface-2); --fgc: var(--fg); --bd: var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 15px; font-weight: 600; letter-spacing: -.002em;
  padding: 12px 22px; border-radius: var(--r-btn);
  background: var(--bgc); color: var(--fgc);
  border: 1px solid var(--bd);
  cursor: pointer; white-space: nowrap;
  transition: background .15s ease, transform .12s ease, border-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  --bgc: var(--accent); --fgc: #fff; --bd: var(--accent);
  box-shadow: 0 1px 2px rgba(37,99,235,.35);
}
.btn-primary:hover { --bgc: var(--accent-hover); --bd: var(--accent-hover); box-shadow: 0 6px 18px rgba(37,99,235,.4); }
.btn-secondary { --bgc: var(--surface-2); --fgc: var(--fg); --bd: var(--border); }
.btn-secondary:hover { --bgc: var(--surface-3); --bd: var(--border-strong); }
.btn-ghost { --bgc: transparent; --fgc: var(--fg-sec); --bd: transparent; }
.btn-ghost:hover { --bgc: var(--surface-2); --fgc: var(--fg); }
.btn-lg { padding: 15px 30px; font-size: 16px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-icon { padding: 10px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 28px;
  transition: border-color .15s ease, transform .15s ease, background .15s ease;
}
.card-hover:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.card h3 { font-size: 19px; letter-spacing: -.02em; }
.card p { color: var(--fg-sec); font-size: 15px; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
  padding: 5px 12px; border-radius: var(--r-pill);
  border: 1px solid transparent;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-faible   { color: var(--green);  background: var(--green-soft);  border-color: rgba(34,197,94,.3); }
.badge-modere   { color: var(--yellow); background: var(--yellow-soft); border-color: rgba(234,179,8,.32); }
.badge-eleve    { color: var(--orange); background: var(--orange-soft); border-color: rgba(249,115,22,.32); }
.badge-critique { color: var(--red);    background: var(--red-soft);    border-color: rgba(239,68,68,.34); }
.badge-neutral  { color: var(--fg-sec); background: var(--surface-2);   border-color: var(--border); }
.badge-accent   { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-line); }

.code-tag {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  color: var(--fg-2); background: var(--surface-2);
  border: 1px solid var(--border); border-radius: 6px;
  padding: 3px 9px; letter-spacing: .01em;
}

/* ---------- Hero ---------- */
.hero { padding-block: 92px 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 420px;
  background: radial-gradient(820px 360px at 50% -8%, rgba(59,130,246,.14), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 50px); }
.hero .lead { font-size: 19px; color: var(--fg-sec); margin-top: 22px; max-width: 60ch; }
.hero-cta { margin-top: 34px; }

/* ---------- Stats / preuves ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; }
.stat { background: var(--surface); padding: 26px 24px; }
.stat .n { font-size: 40px; font-weight: 800; letter-spacing: -.04em; color: #fff; line-height: 1; }
.stat .n em { font-style: normal; color: var(--accent); }
.stat .l { color: var(--fg-sec); font-size: 14px; margin-top: 10px; }

/* ---------- Phase cards (méthode) ---------- */
.phase-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: .04em; }
.phase-card .dur { font-size: 13px; color: var(--muted); margin-top: 14px; font-family: var(--font-mono); }

/* ---------- Pricing ---------- */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card.featured { border-color: var(--accent-line); background: linear-gradient(180deg, rgba(59,130,246,.06), var(--surface)); }
.price-card.featured::before {
  content: "Recommandé"; position: absolute; top: -12px; left: 28px;
  font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
  color: #fff; background: var(--accent); padding: 5px 12px; border-radius: var(--r-pill);
}
.price-tier { font-size: 13px; font-weight: 600; color: var(--fg-sec); text-transform: uppercase; letter-spacing: .05em; }
.price-name { font-size: 21px; font-weight: 700; color: #fff; margin-top: 6px; }
.price-amount { font-size: 30px; font-weight: 800; color: #fff; margin: 18px 0 4px; letter-spacing: -.03em; }
.price-amount small { font-size: 15px; font-weight: 500; color: var(--fg-sec); }
.price-feats { display: flex; flex-direction: column; gap: 10px; margin: 22px 0 26px; flex: 1; }
.price-feats li { display: flex; gap: 10px; font-size: 14.5px; color: var(--fg-2); }
.price-feats li::before { content: "—"; color: var(--accent); flex: none; }

/* ---------- Progress bar ---------- */
.progress { height: 6px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .45s cubic-bezier(.4,0,.2,1); }

/* ---------- Usage cards (inventaire) ---------- */
.usage-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: start; }
.usage-card .u-head h3 { font-size: 17px; }
.usage-card .u-meta { color: var(--fg-sec); font-size: 14px; margin-top: 4px; }
.usage-card .u-profile { font-family: var(--font-mono); font-size: 13.5px; color: var(--fg-2); margin-top: 12px; letter-spacing: .02em; }
.usage-card .u-actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 8, 16, 0.72); backdrop-filter: blur(6px);
  display: none; align-items: flex-start; justify-content: center;
  padding: 40px 20px; overflow-y: auto;
}
.modal-overlay.open { display: flex; animation: fade .2s ease; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); width: 100%; max-width: 720px;
  box-shadow: var(--sh-modal); padding: 32px;
  animation: rise .25s cubic-bezier(.2,.7,.3,1);
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.modal-head h2 { font-size: 22px; }
.modal-close { background: none; border: none; color: var(--fg-sec); cursor: pointer; padding: 6px; border-radius: 6px; line-height: 0; }
.modal-close:hover { background: var(--surface-2); color: var(--fg); }
.modal-foot { display: flex; justify-content: flex-end; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--border); }

/* ---------- Form fields ---------- */
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.field label { font-size: 14px; font-weight: 600; color: var(--fg-2); }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .select, .textarea {
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r-btn);
  padding: 12px 14px; font-size: 15px; color: var(--fg); width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,.22); background: var(--surface-3); }
.textarea { min-height: 120px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.radio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.radio-card { position: relative; }
.radio-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-card .rc-body { display: block; border: 1px solid var(--border); border-radius: var(--r-btn); padding: 16px; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.radio-card .rc-body b { display: block; color: #fff; font-size: 15px; }
.radio-card .rc-body span { font-size: 13px; color: var(--fg-sec); }
.radio-card input:checked + .rc-body { border-color: var(--accent); background: var(--accent-soft); }
.radio-card input:focus-visible + .rc-body { box-shadow: 0 0 0 3px rgba(59,130,246,.3); }

/* ---------- Taxonomie option cards ---------- */
.taxo-group { margin-bottom: 26px; }
.taxo-group > .tg-label { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.taxo-group .tg-key { font-family: var(--font-mono); font-weight: 700; color: var(--accent); font-size: 14px; }
.taxo-group .tg-name { font-size: 14px; font-weight: 600; color: var(--fg-2); }
.taxo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.opt {
  position: relative; cursor: pointer; user-select: none;
  border: 1px solid var(--border); background: var(--surface-2);
  border-radius: var(--r-btn); padding: 13px 14px;
  transition: border-color .14s ease, background .14s ease, transform .1s ease;
}
.opt .opt-code { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--fg); letter-spacing: .02em; }
.opt .opt-lbl { font-size: 13px; color: var(--fg-sec); margin-top: 3px; line-height: 1.35; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt:hover { border-color: var(--border-strong); }
.opt input:checked ~ .opt-code { color: #fff; }
.opt input:checked ~ .opt-lbl { color: var(--fg-2); }
.opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); transform: translateY(-1px); }
.opt:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(59,130,246,.3); }

/* profil preview temps réel */
.profile-preview {
  position: sticky; bottom: 16px;
  background: var(--surface-3); border: 1px solid var(--accent-line); border-radius: var(--r-card);
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.profile-preview .pp-code { font-family: var(--font-mono); font-size: 18px; font-weight: 700; color: #fff; letter-spacing: .03em; }
.profile-preview .pp-code .dim-missing { color: var(--muted); }

/* ---------- Radar ---------- */
.radar-wrap { display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 44px; align-items: center; }
.radar-svg { width: 100%; height: auto; overflow: visible; }
.radar-svg .grid-ring { fill: none; stroke: var(--border); stroke-width: 1; }
.radar-svg .grid-spoke { stroke: var(--border); stroke-width: 1; }
.radar-svg .axis-label { fill: var(--fg-sec); font-size: 12.5px; font-weight: 600; }
.radar-svg .data-poly { fill: rgba(59,130,246,.20); stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; transform-origin: center; }
.radar-svg .data-dot { fill: var(--accent); }
.radar-score { text-align: center; }
.radar-score .big { font-size: 56px; font-weight: 800; color: #fff; letter-spacing: -.04em; line-height: 1; }
.radar-score .big em { font-style: normal; color: var(--accent); }
.radar-score .unit { color: var(--muted); font-size: 15px; }
.radar-score .level { color: var(--fg-2); font-size: 15px; margin-top: 10px; max-width: 26ch; }

.dim-bar { display: grid; grid-template-columns: 132px 1fr 44px; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.dim-bar:last-child { border-bottom: none; }
.dim-bar .dn { font-size: 14px; color: var(--fg-2); }
.dim-bar .dn b { color: #fff; font-weight: 600; }
.dim-bar .dr { height: 8px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.dim-bar .dr > i { display: block; height: 100%; background: var(--accent); border-radius: inherit; width: 0; transition: width 1s cubic-bezier(.2,.7,.3,1); }
.dim-bar .dv { font-family: var(--font-mono); font-size: 14px; color: var(--fg-sec); text-align: right; }

/* ---------- Risk cards ---------- */
.risk-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: start; }
.risk-card .r-code { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 6px; padding: 5px 9px; height: fit-content; }
.risk-card h4 { font-size: 16px; color: #fff; }
.risk-card .r-def { font-size: 14px; color: var(--fg-sec); margin-top: 4px; }
.risk-card .r-frame { font-size: 12px; color: var(--muted); margin-top: 8px; font-family: var(--font-mono); }

/* ---------- AI Act ---------- */
.acta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.acta { border: 1px solid var(--border); border-radius: var(--r-card); padding: 22px; background: var(--surface); position: relative; overflow: hidden; }
.acta .lvl-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.acta .a-count { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.acta .a-name { font-size: 14px; font-weight: 600; margin-top: 8px; }
.acta .a-desc { font-size: 12.5px; color: var(--fg-sec); margin-top: 4px; }
.acta-min .lvl-bar { background: var(--green); }  .acta-min .a-count { color: var(--green); }
.acta-lim .lvl-bar { background: var(--yellow); } .acta-lim .a-count { color: var(--yellow); }
.acta-haut .lvl-bar { background: var(--orange); } .acta-haut .a-count { color: var(--orange); }
.acta-int .lvl-bar { background: var(--red); }    .acta-int .a-count { color: var(--red); }

/* ---------- Accordion ---------- */
.acc { border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.acc + .acc { margin-top: 10px; }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-item:last-child { border-bottom: none; }
.acc-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: none; border: none; cursor: pointer; text-align: left; padding: 20px 24px; color: #fff; font-size: 16px; font-weight: 600; }
.acc-head:hover { background: var(--surface-2); }
.acc-head .chev { flex: none; transition: transform .2s ease; color: var(--fg-sec); }
.acc-item.open .chev { transform: rotate(180deg); }
.acc-body { display: none; padding: 0 24px 22px; }
.acc-item.open .acc-body { display: block; animation: fade .2s ease; }

/* ---------- Table (taxo ref / maturité) ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-card); }
table.ref { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
table.ref th, table.ref td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.ref thead th { background: var(--surface-2); color: var(--fg-sec); font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
table.ref tbody tr:hover { background: var(--surface-2); }
table.ref td .rc { font-family: var(--font-mono); color: var(--accent); font-weight: 700; }
table.ref td b { color: #fff; }

/* ---------- Empty state ---------- */
.empty { text-align: center; padding: 64px 24px; border: 1px dashed var(--border); border-radius: var(--r-card); background: var(--surface); }
.empty h3 { font-size: 19px; }
.empty p { color: var(--fg-sec); margin-top: 8px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 56px 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-grid h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-sec); font-weight: 600; margin-bottom: 14px; }
.footer-grid a { color: var(--fg-2); font-size: 14px; display: inline-block; padding: 4px 0; }
.footer-grid a:hover { color: var(--fg); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }

/* ---------- Launcher (index) ---------- */
.launch { padding-block: 64px; }
.launch-hero { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.launch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.thumb { display: flex; flex-direction: column; gap: 14px; }
.thumb .frame { aspect-ratio: 16/10; border: 1px solid var(--border); border-radius: var(--r-card); overflow: hidden; background: var(--surface); transition: border-color .15s, transform .15s; }
.thumb:hover .frame { border-color: var(--accent-line); transform: translateY(-2px); }
.thumb .frame img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.thumb .t-num { font-family: var(--font-mono); font-size: 12px; color: var(--accent); font-weight: 600; }
.thumb .t-title { font-size: 17px; font-weight: 700; color: #fff; }
.thumb .t-desc { font-size: 13.5px; color: var(--fg-sec); }

/* ---------- Utilities ---------- */
.hide { display: none !important; }
.mt-0 { margin-top: 0; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-24 { gap: 24px; }
.text-sm { font-size: 14px; } .text-xs { font-size: 12.5px; }
.fw-700 { font-weight: 700; }
.divider { height: 1px; background: var(--border); border: none; margin-block: 32px; }
.callout { border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--r-btn) var(--r-btn) 0; padding: 18px 22px; }
.callout p { color: var(--fg-2); }
.scroll-top-elt { scroll-margin-top: 80px; }

/* ---------- Animations ---------- */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slidein { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }
.usage-card.new { animation: slidein .35s ease; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .acta-grid { grid-template-columns: repeat(2, 1fr); }
  .radar-wrap { grid-template-columns: 1fr; gap: 28px; }
  .launch-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --gutter: 18px; }
  .section { padding-block: 56px; }
  .hero { padding-block: 64px 48px; }
  .nav-links { display: none; }
  .grid-2, .grid-3, .grid-4, .stats, .acta-grid, .launch-grid, .field-row, .radio-cards { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .modal-overlay { padding: 0; align-items: stretch; }
  .modal { border-radius: 0; min-height: 100vh; max-width: none; padding: 24px 20px; }
  .dim-bar { grid-template-columns: 1fr auto; }
  .dim-bar .dn { grid-column: 1; }
  .dim-bar .dv { grid-column: 2; }
  .dim-bar .dr { grid-column: 1 / -1; }
  .usage-card { grid-template-columns: 1fr; }
  .usage-card .u-actions { flex-direction: row; align-items: flex-start; }
  .taxo-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
