/* =====================================================================
   Veye design system
   Light: pure white. Dark: matte near-black. Haiti blue structure,
   Haiti red calls to action, a touch of yellow, green on hover.
   ===================================================================== */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f7fa;
  --surface-3: #eef0f5;
  --line: #e6e8ee;
  --line-2: #d7dbe4;
  --ink: #0a1022;
  --ink-2: #303a52;
  --muted: #687089;
  --brand: #00209F;
  --brand-2: #0a2fd1;
  --brand-soft: #eef1fe;
  --brand-ink: #00209F;
  --cta: #D21034;
  --cta-2: #b00d2b;
  --cta-soft: #fdecef;
  --gold: #F5C518;
  --gold-soft: #fff6d1;
  --ok: #0c9466;
  --ok-soft: #e4f6ee;
  --warn: #b86e00;
  --warn-soft: #fff2d9;
  --hover: #0c9466;
  --hover-soft: #e4f6ee;
  --glass: rgba(255, 255, 255, .78);
  --shadow-sm: 0 1px 2px rgba(10, 16, 34, .06);
  --shadow: 0 1px 2px rgba(10, 16, 34, .05), 0 8px 28px -6px rgba(10, 16, 34, .10);
  --shadow-lg: 0 2px 6px rgba(10, 16, 34, .05), 0 28px 60px -18px rgba(10, 16, 34, .22);
  --ring: 0 0 0 4px rgba(0, 32, 159, .14);
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --grid-line: rgba(10, 16, 34, .045);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111112; --surface: #18181a; --surface-2: #1e1e21; --surface-3: #26262a;
    --line: #2a2a2f; --line-2: #36363c; --ink: #f4f5f7; --ink-2: #c9ccd4; --muted: #8f939e;
    --brand: #F5C518; --brand-2: #ffd84a; --brand-soft: #2a2614; --brand-ink: #F5C518;
    --cta-soft: #33151b; --gold-soft: #2a2614; --ok: #3ccf91; --ok-soft: #13271e; --warn: #f0b44c; --warn-soft: #2b2312;
    --hover: #3ccf91; --hover-soft: #13271e; --glass: rgba(24, 24, 26, .78);
    --shadow-sm: none; --shadow: 0 0 0 1px rgba(255,255,255,.02); --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.6);
    --ring: 0 0 0 4px rgba(245, 197, 24, .18); --grid-line: rgba(255, 255, 255, .035);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111112; --surface: #18181a; --surface-2: #1e1e21; --surface-3: #26262a;
  --line: #2a2a2f; --line-2: #36363c; --ink: #f4f5f7; --ink-2: #c9ccd4; --muted: #8f939e;
  --brand: #F5C518; --brand-2: #ffd84a; --brand-soft: #2a2614; --brand-ink: #F5C518;
  --cta-soft: #33151b; --gold-soft: #2a2614; --ok: #3ccf91; --ok-soft: #13271e; --warn: #f0b44c; --warn-soft: #2b2312;
  --hover: #3ccf91; --hover-soft: #13271e; --glass: rgba(24, 24, 26, .78);
  --shadow-sm: none; --shadow: 0 0 0 1px rgba(255,255,255,.02); --shadow-lg: 0 30px 60px -20px rgba(0,0,0,.6);
  --ring: 0 0 0 4px rgba(245, 197, 24, .18); --grid-line: rgba(255, 255, 255, .035);
  color-scheme: dark;
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--font); letter-spacing: -.005em;
  min-height: 100vh; display: flex; flex-direction: column;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
main { flex: 1; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--hover); }
img, svg { display: block; }
code, .mono { font-family: var(--mono); font-size: .86em; }
code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 7px; padding: 1px 6px; word-break: break-all; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.025em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.08rem; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.inline { display: inline; margin: 0; }
.mt { margin-top: 12px; }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 15px; height: 15px; }
.ico-lg { width: 22px; height: 22px; }
::selection { background: var(--gold); color: #111; }

/* ------------------------------------------------------------ header */
.site-head { position: sticky; top: 0; z-index: 50; padding: 12px 0; transition: padding .2s; }
.site-head .bar {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 8px 10px 8px 16px;
  background: var(--glass); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.18rem; color: var(--ink); text-decoration: none; letter-spacing: -.03em; }
.brand:hover { color: var(--ink); }
.brand small { font-weight: 600; font-size: .7rem; color: var(--muted); letter-spacing: .02em; display: block; margin-top: -3px; }
.brand-txt { display: flex; flex-direction: column; line-height: 1.1; }
.logo { width: 34px; height: 34px; }
.logo-sm { width: 20px; height: 20px; }
.logo-xl { width: 64px; height: 64px; }
.nav { display: flex; gap: 2px; margin: 0 auto; }
.nav-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 11px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .93rem; }
.nav-link .ico { width: 16px; height: 16px; opacity: .7; }
.nav-link:hover { color: var(--hover); background: var(--hover-soft); }
.nav-link.is-on { color: var(--brand-ink); background: var(--brand-soft); }
.head-actions { display: flex; align-items: center; gap: 8px; }
.nano-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); font-size: .8rem; font-weight: 700; color: var(--ink-2); white-space: nowrap;
}
.nano-chip .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); position: relative; }
.nano-chip.is-ready .pulse { background: var(--ok); }
.nano-chip.is-ready .pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: ping 2s ease-out infinite; }
.nano-chip.is-dl .pulse { background: var(--gold); }
.nano-chip.is-cloud .pulse { background: var(--brand); }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { color: var(--hover); border-color: var(--hover); }
.icon-btn .ico-sun { display: none; }
:root[data-theme="dark"] .icon-btn .ico-sun { display: block; }
:root[data-theme="dark"] .icon-btn .ico-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-btn .ico-sun { display: block; }
  :root:not([data-theme="light"]) .icon-btn .ico-moon { display: none; }
}
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: #fff; background: linear-gradient(135deg, #00209F, #D21034); }
.user-pill { display: inline-flex; align-items: center; gap: 8px; padding: 3px 4px 3px 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); }
.user-pill .who { font-weight: 700; font-size: .86rem; padding-right: 4px; }
.menu-btn { display: none; }

@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2); opacity: 0; } }

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px;
  border-radius: 13px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .95rem; letter-spacing: -.01em;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, box-shadow .18s, transform .08s;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; }
.btn .ico { width: 17px; height: 17px; }
.btn-sm { padding: 8px 13px; font-size: .86rem; border-radius: 11px; }
.btn-lg { padding: 15px 24px; font-size: 1.02rem; border-radius: 15px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--cta); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.2) inset, 0 8px 20px -8px rgba(210, 16, 52, .55); }
.btn-primary:hover { background: var(--hover); color: #fff; box-shadow: 0 8px 20px -8px rgba(12, 148, 102, .55); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--hover); color: #fff; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { color: var(--hover); border-color: var(--hover); background: var(--hover-soft); }
.btn-go {
  position: relative; overflow: hidden; color: #fff; font-size: 1.05rem; padding: 16px 22px; border-radius: 15px;
  background: linear-gradient(135deg, #D21034 0%, #e8402a 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 14px 28px -12px rgba(210, 16, 52, .7);
}
.btn-go::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%); transform: translateX(-100%); transition: transform .7s; }
.btn-go:hover:not(:disabled)::after { transform: translateX(100%); }
.btn-go:hover:not(:disabled) { color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 18px 34px -12px rgba(210, 16, 52, .8); }
.btn-go.is-busy { pointer-events: none; }
.btn-go .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; display: none; }
.btn-go.is-busy .spin { display: inline-block; }
.link-btn { background: none; border: 0; color: var(--cta); font: inherit; font-weight: 700; cursor: pointer; padding: 4px; }
.link-btn:hover { color: var(--hover); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------------ chips, tags */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .82rem; font-weight: 700; color: var(--ink-2); box-shadow: var(--shadow-sm); }
.eyebrow b { background: var(--ink); color: var(--bg); border-radius: 999px; padding: 2px 9px; font-size: .74rem; letter-spacing: .02em; }
.kicker { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--cta); margin-bottom: 12px; display: inline-flex; gap: 8px; align-items: center; }
.kicker::before { content: ""; width: 18px; height: 2px; background: var(--gold); border-radius: 2px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.tag-domain { font-family: var(--mono); color: var(--cta); }
.tag-pending { color: var(--warn); background: var(--warn-soft); border-color: transparent; }
.tag-approved { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.tag-hidden { color: var(--muted); }
.pill-mono { font-family: var(--mono); font-size: .72rem; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }

.verdict-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-weight: 800; font-size: .92rem; }
.verdict-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.v-scam { background: var(--cta-soft); color: var(--cta); }
.v-suspicious { background: var(--warn-soft); color: var(--warn); }
.v-safe { background: var(--ok-soft); color: var(--ok); }
.ran-on { display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 700; padding: 6px 11px; border-radius: 10px; }
.ran-on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ran-device { background: var(--ok-soft); color: var(--ok); }
.ran-cloud { background: var(--brand-soft); color: var(--brand-ink); }
.ran-rules { background: var(--surface-2); color: var(--muted); }
.inline-badge { padding: 2px 9px; vertical-align: 1px; }

/* ------------------------------------------------------------ cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.card-head h1, .card-head h2 { margin: 0; font-size: 1.25rem; }

/* ------------------------------------------------------------ forms */
.field { display: flex; flex-direction: column; gap: 7px; margin: 12px 0; font-weight: 700; font-size: .86rem; color: var(--ink-2); }
.field-inline { flex-direction: row; align-items: center; gap: 10px; }
input, textarea, select {
  font: inherit; font-weight: 500; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 13px; padding: 12px 14px; width: 100%; transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
.field-inline select { width: auto; }
textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.check { display: flex; gap: 10px; align-items: center; margin: 10px 0 16px; font-weight: 600; }
.check input { width: auto; }
.counter { text-align: right; font-size: .76rem; color: var(--muted); margin-top: -6px; font-family: var(--mono); }
.flash { border-radius: 13px; padding: 11px 14px; margin: 10px 0; font-weight: 600; font-size: .93rem; }
.flash-error { background: var(--cta-soft); color: var(--cta); }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-info { background: var(--brand-soft); color: var(--brand-ink); }

/* ================================================================ LANDING */
.hero { position: relative; padding: 56px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40px 0 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none; width: 720px; height: 720px; left: -260px; top: -320px;
  background: radial-gradient(circle, rgba(0, 32, 159, .13), transparent 62%);
}
.hero-glow-gold { position: absolute; z-index: -1; pointer-events: none; width: 620px; height: 620px; right: -200px; top: 40px; background: radial-gradient(circle, rgba(245, 197, 24, .16), transparent 62%); }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { margin: 22px 0 18px; font-size: clamp(2.4rem, 5.6vw, 4.3rem); line-height: 1.02; letter-spacing: -.045em; }
.hero h1 .serif { color: var(--brand-ink); position: relative; white-space: nowrap; font-size: 1.08em; }
.hero h1 .serif::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: .04em; height: .12em; background: var(--gold); border-radius: 4px; z-index: -1; opacity: .85; }
.lead { font-size: 1.16rem; color: var(--ink-2); max-width: 36em; line-height: 1.6; }
.lead strong { color: var(--ink); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero-proof { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; font-weight: 600; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof .ico { color: var(--ok); width: 16px; height: 16px; }

/* hero demo device */
.demo-stage { position: relative; }
.device {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow-lg); overflow: hidden;
}
.device-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.device-bar i:nth-child(1) { background: #ff6159; } .device-bar i:nth-child(2) { background: #ffbd2e; } .device-bar i:nth-child(3) { background: #28c941; }
.device-url { margin-left: 10px; flex: 1; font-family: var(--mono); font-size: .74rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; display: flex; gap: 6px; align-items: center; }
.device-url .ico { width: 12px; height: 12px; color: var(--ok); }
.device-body { padding: 20px; display: grid; gap: 14px; }
.sms { position: relative; background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 14px 16px; overflow: hidden; }
.sms p { margin: 6px 0 0; font-size: .95rem; line-height: 1.5; }
.sms-from { font-size: .78rem; color: var(--muted); font-weight: 700; display: flex; justify-content: space-between; }
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(12, 148, 102, .16), transparent); border-bottom: 2px solid rgba(12, 148, 102, .55); animation: scan 2.6s ease-in-out 3 forwards; opacity: 0; }
@keyframes scan { 0% { transform: translateY(-110%); opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(260%); opacity: 0; } }
.mark { border-radius: 4px; padding: 0 2px; animation: markIn .4s ease forwards; animation-delay: var(--d, 1.2s); background: transparent; }
@keyframes markIn { to { background: rgba(210, 16, 52, .14); box-shadow: inset 0 -2px 0 rgba(210, 16, 52, .55); } }
.verdict-panel { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 16px; border: 1px solid var(--line); border-radius: 18px; opacity: 0; transform: translateY(10px); animation: rise .6s ease forwards; animation-delay: 2.6s; }
.verdict-panel ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 5px; }
.verdict-panel li { display: flex; gap: 8px; align-items: center; font-size: .86rem; font-weight: 600; color: var(--ink-2); opacity: 0; animation: rise .4s ease forwards; }
.verdict-panel li .ico { width: 14px; height: 14px; color: var(--cta); }
.verdict-panel li:nth-child(1) { animation-delay: 3.0s; } .verdict-panel li:nth-child(2) { animation-delay: 3.2s; } .verdict-panel li:nth-child(3) { animation-delay: 3.4s; }
.demo-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; opacity: 0; animation: rise .5s ease forwards; animation-delay: 3.7s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.float-chip { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .8rem; font-weight: 700; animation: bob 6s ease-in-out infinite; z-index: 2; }
.float-chip .ico { width: 16px; height: 16px; }
.float-1 { left: 22px; top: -18px; color: var(--ok); }
.float-2 { right: -26px; top: 46%; color: var(--brand-ink); animation-delay: -2s; }
.float-3 { left: 18%; bottom: -20px; color: var(--ink-2); animation-delay: -4s; }
.float-3 code { border: 0; padding: 0; background: none; color: var(--cta); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* risk ring */
.ring { --risk: 0; --tone: var(--cta); width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none;
  background: conic-gradient(var(--tone) calc(var(--risk) * 1%), var(--surface-3) 0); transition: --risk 1s; }
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--surface); }
.ring b { position: relative; font-size: 1.3rem; font-weight: 800; letter-spacing: -.04em; }
.ring b small { font-size: .6em; color: var(--muted); }
.ring-lg { width: 132px; height: 132px; }
.ring-lg::before { inset: 11px; }
.ring-lg b { font-size: 2.2rem; }
.ring.t-safe { --tone: var(--ok); } .ring.t-suspicious { --tone: var(--warn); } .ring.t-scam { --tone: var(--cta); }
.ring-demo { --risk: 94; }

/* logo strip */
.strip { padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface-2); }
.strip-in { display: flex; align-items: center; justify-content: center; gap: 12px 28px; flex-wrap: wrap; color: var(--muted); font-weight: 700; font-size: .9rem; }
.strip-in > span:first-child { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.strip-in .tech { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.strip-in .tech .ico { color: var(--brand-ink); }

/* sections */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-lead { color: var(--ink-2); font-size: 1.08rem; margin: 0 auto; max-width: 42em; }
.section-head h2 .serif { color: var(--brand-ink); }

/* router diagram */
.router { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.router::before { content: ""; position: absolute; left: 8%; right: 8%; top: 46px; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); z-index: 0; }
.router-flow { position: absolute; left: 8%; top: 42px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(245,197,24,.25); animation: flow 5s linear infinite; z-index: 1; }
@keyframes flow { 0% { left: 8%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 92%; opacity: 0; } }
.node { position: relative; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow); transition: border-color .2s, transform .2s; }
.node:hover { border-color: var(--hover); transform: translateY(-3px); }
.node-ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 18px; }
.node-ico .ico { width: 22px; height: 22px; }
.n-rules .node-ico { background: var(--gold-soft); color: #9a7500; }
.n-device .node-ico { background: var(--ok-soft); color: var(--ok); }
.n-cloud .node-ico { background: var(--brand-soft); color: var(--brand-ink); }
:root[data-theme="dark"] .n-rules .node-ico { color: var(--gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .n-rules .node-ico { color: var(--gold); } }
.node h3 { font-size: 1.15rem; margin-bottom: 6px; }
.node p { color: var(--muted); font-size: .94rem; margin-bottom: 14px; }
.node-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.node-step { position: absolute; top: 22px; right: 22px; font-family: var(--mono); font-size: .74rem; color: var(--muted); font-weight: 600; }
.routes { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.route { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 14px 16px; font-size: .88rem; background: var(--surface); }
.route b { display: block; margin-bottom: 4px; font-size: .9rem; }
.route span { color: var(--muted); }
.route .pill-mono { margin-top: 8px; display: inline-block; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); overflow: hidden; position: relative; transition: border-color .2s, transform .2s; display: flex; flex-direction: column; }
.tile:hover { border-color: var(--hover); transform: translateY(-3px); }
.tile.w3 { grid-column: span 3; } .tile.w4 { grid-column: span 4; }
.tile h3 { font-size: 1.15rem; margin-bottom: 6px; }
.tile > p { color: var(--muted); font-size: .94rem; }
.tile-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; margin-bottom: 16px; }
.tile-visual { margin-top: auto; padding-top: 14px; }
.modes-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.modes-mini div { border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: .78rem; font-weight: 700; display: grid; gap: 4px; }
.modes-mini div .ico { width: 16px; height: 16px; }
.modes-mini div:nth-child(2) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.modes-mini small { font-weight: 600; color: var(--muted); font-family: var(--mono); font-size: .66rem; }
.redact-demo { font-family: var(--mono); font-size: .8rem; line-height: 1.8; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--ink-2); }
.redact-demo .r { background: var(--ink); color: var(--bg); border-radius: 5px; padding: 1px 6px; font-weight: 700; }
.redact-demo .k { color: var(--muted); }
.kreyol-bubble { background: var(--ok-soft); color: var(--ink); border-radius: 16px 16px 16px 6px; padding: 12px 14px; font-size: .9rem; font-weight: 600; }
.kreyol-bubble small { display: block; color: var(--ok); font-weight: 800; font-size: .72rem; margin-bottom: 4px; letter-spacing: .04em; text-transform: uppercase; }
.mini-browser { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.mini-browser .mb-bar { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--surface); }
.mini-browser .mb-url { flex: 1; font-family: var(--mono); font-size: .7rem; color: var(--cta); background: var(--surface-2); border-radius: 6px; padding: 3px 8px; }
.mini-browser .mb-badge { width: 22px; height: 22px; border-radius: 6px; position: relative; }
.mini-browser .mb-badge::after { content: "!"; position: absolute; right: -6px; bottom: -5px; background: var(--cta); color: #fff; font-size: .62rem; font-weight: 800; border-radius: 5px; padding: 0 4px; }
.mini-browser .mb-body { padding: 12px; display: grid; gap: 7px; }
.mini-browser .mb-line { height: 8px; border-radius: 4px; background: var(--line); }
.mini-browser .mb-warn { font-size: .76rem; font-weight: 700; color: var(--cta); background: var(--cta-soft); border-radius: 8px; padding: 6px 9px; }
.big-zero { font-size: 5rem; font-weight: 800; letter-spacing: -.06em; line-height: 1; color: var(--brand-ink); }
.big-zero small { font-size: 1rem; letter-spacing: 0; color: var(--muted); font-weight: 700; display: block; margin-top: 6px; }
.bars-mini { display: grid; gap: 9px; }
.bars-mini div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; align-items: center; font-size: .78rem; font-weight: 700; color: var(--ink-2); }
.bars-mini i { height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--cta), #f06a4a); }

/* personas */
.personas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.persona { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; transition: border-color .2s, transform .2s; }
.persona:hover { border-color: var(--hover); transform: translateY(-3px); }
.persona .quote { font-family: var(--serif); font-style: italic; font-size: 1.15rem; line-height: 1.35; color: var(--ink); margin-bottom: 14px; }
.persona h3 { font-size: .98rem; margin-bottom: 4px; }
.persona p { color: var(--muted); font-size: .88rem; margin: 0; }

/* stats band */
.stats-band { background: #0b0d14; color: #f4f5f7; padding: 80px 0; position: relative; overflow: hidden; }
.stats-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 15% 0%, rgba(0, 32, 159, .45), transparent 70%), radial-gradient(500px 300px at 90% 100%, rgba(245, 197, 24, .16), transparent 70%); }
.stats-band .wrap { position: relative; }
.stats-band h2 { color: #fff; }
.stats-band .section-lead { color: #b9bdc9; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 40px; }
.stat-big { border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-lg); padding: 24px; background: rgba(255,255,255,.03); }
.stat-big b { display: block; font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: #fff; }
.stat-big b em { font-style: normal; color: var(--gold); }
.stat-big span { color: #b9bdc9; font-size: .9rem; font-weight: 600; display: block; margin-top: 10px; }

/* quick start */
.quick { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 38px 1fr; gap: 14px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.steps li::before { content: counter(s); width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 800; font-size: .9rem; }
.steps li b { display: block; margin-bottom: 2px; }
.steps li span { color: var(--muted); font-size: .92rem; }
.cred-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cred-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, #00209F 0 50%, #D21034 50% 100%); }
.cred-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 13px; padding: 10px 10px 10px 14px; margin: 10px 0; background: var(--surface-2); }
.cred-row span { font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cred-row code { font-size: 1rem; background: none; border: 0; padding: 0; color: var(--ink); font-weight: 700; }
.copy-btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); border-radius: 9px; padding: 6px 10px; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.copy-btn:hover { color: var(--hover); border-color: var(--hover); }
.copy-btn.is-done { color: var(--ok); border-color: var(--ok); }

/* final CTA */
.cta-final { padding: 40px 0 100px; }
.cta-box { position: relative; overflow: hidden; border-radius: 32px; padding: 64px 48px; background: #0b0d14; color: #fff; text-align: center; }
.cta-box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 260px at 50% -10%, rgba(0, 32, 159, .55), transparent 70%), radial-gradient(400px 240px at 50% 120%, rgba(210, 16, 52, .28), transparent 70%); }
.cta-box > * { position: relative; }
.cta-box h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 3rem); }
.cta-box h2 .serif { color: var(--gold); }
.cta-box p { color: #b9bdc9; max-width: 34em; margin: 0 auto 26px; }
.cta-box .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.25); }
.cta-box .btn-ghost:hover { border-color: var(--hover); color: #fff; background: rgba(12,148,102,.2); }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 44px 0 30px; font-size: .9rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.foot h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 12px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--hover); }
.foot-brand p { color: var(--muted); margin-top: 12px; max-width: 28em; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; color: var(--muted); font-size: .84rem; }
.flag-bar { display: inline-flex; width: 26px; height: 16px; border-radius: 3px; overflow: hidden; vertical-align: -3px; margin-right: 6px; }
.flag-bar i { flex: 1; } .flag-bar i:first-child { background: #00209F; } .flag-bar i:last-child { background: #D21034; }

/* ================================================================ DASHBOARD */
.dash-head { padding: 26px 0 8px; display: flex; justify-content: space-between; align-items: end; gap: 18px; flex-wrap: wrap; }
.dash-head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 6px 0 4px; }
.dash-head p { color: var(--muted); margin: 0; }
.crumbs { font-size: .82rem; color: var(--muted); font-weight: 600; display: flex; gap: 8px; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0 22px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: center; box-shadow: var(--shadow-sm); }
.kpi-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.kpi.k-ok .kpi-ico { background: var(--ok-soft); color: var(--ok); }
.kpi.k-brand .kpi-ico { background: var(--brand-soft); color: var(--brand-ink); }
.kpi.k-gold .kpi-ico { background: var(--gold-soft); color: #9a7500; }
.kpi.k-red .kpi-ico { background: var(--cta-soft); color: var(--cta); }
.kpi span { display: block; font-size: .76rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpi b { display: block; font-size: 1.12rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.kpi small { color: var(--muted); font-weight: 600; font-size: .8rem; }
.kpi-bar { height: 5px; border-radius: 5px; background: var(--surface-3); margin-top: 6px; overflow: hidden; }
.kpi-bar i { display: block; height: 100%; background: var(--ok); border-radius: 5px; }

.app-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 22px; padding-bottom: 56px; align-items: start; }
.result-card { position: sticky; top: 100px; }
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; font-weight: 800; margin: 0; }
.panel-title .ico { color: var(--brand-ink); }

.device-line { display: flex; gap: 10px; align-items: center; margin: 16px 0 4px; font-size: .88rem; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; padding: 11px 14px; }
.dot { flex: none; width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.dot-wait { background: var(--gold); box-shadow: 0 0 0 4px var(--gold-soft); }
.dot-cloud { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.dot-off { background: var(--muted); }
.step { margin: 24px 0; }
.step-h { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.step-h h2 { margin: 0; font-size: 1.02rem; letter-spacing: -.01em; }
.step-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; background: var(--ink); color: var(--bg); font-weight: 800; font-size: .82rem; }
.seg { display: inline-flex; padding: 4px; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 13px; margin-left: auto; }
.seg button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 9px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.seg button .ico { width: 15px; height: 15px; }
.seg button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg button:hover:not(.is-on) { color: var(--hover); }
.samples { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip-btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 6px 12px 6px 7px; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; transition: all .15s; }
.chip-btn em { font-style: normal; font-family: var(--mono); font-size: .66rem; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 1px 5px; }
.chip-btn:hover { border-color: var(--hover); color: var(--hover); background: var(--hover-soft); }
.compose { position: relative; }
.compose textarea { min-height: 170px; padding-bottom: 36px; }
.compose-foot { position: absolute; left: 12px; right: 12px; bottom: 9px; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.compose-foot > * { pointer-events: auto; }
.compose-foot .counter { margin: 0; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 170px; border: 2px dashed var(--line-2); border-radius: 16px; padding: 20px; cursor: pointer; text-align: center; color: var(--muted); background: var(--surface-2); transition: all .15s; }
.drop .ico { width: 28px; height: 28px; color: var(--brand-ink); }
.drop strong { color: var(--ink); }
.drop:hover, .drop.is-over { border-color: var(--hover); color: var(--hover); background: var(--hover-soft); }
.drop img { max-width: 100%; max-height: 240px; border-radius: 12px; box-shadow: var(--shadow); }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice-b { display: flex; flex-direction: column; gap: 5px; height: 100%; border: 1.5px solid var(--line); border-radius: 16px; padding: 14px; background: var(--surface); transition: all .15s; }
.choice-b .ico { width: 20px; height: 20px; color: var(--muted); margin-bottom: 4px; }
.choice-b strong { font-size: .95rem; }
.choice-b small { color: var(--muted); font-size: .8rem; line-height: 1.4; }
.choice-b code { margin-top: auto; padding-top: 6px; border: 0; background: none; padding-left: 0; font-size: .64rem; color: var(--muted); }
.choice:hover .choice-b { border-color: var(--hover); }
.choice input:checked + .choice-b { border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--ring); }
.choice input:checked + .choice-b .ico { color: var(--brand-ink); }
.choice input:focus-visible + .choice-b { outline: 2px solid var(--brand); outline-offset: 2px; }
.go-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin-top: 8px; }
.lang-select { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 15px; padding: 0 6px 0 12px; background: var(--surface); height: 100%; }
.lang-select .ico { color: var(--muted); }
.lang-select select { border: 0; box-shadow: none; padding: 14px 6px; background: transparent; font-weight: 700; width: auto; }
.privacy-line { display: flex; gap: 7px; justify-content: center; align-items: center; font-size: .82rem; color: var(--muted); margin: 14px 0 0; font-weight: 600; }
.privacy-line .ico { width: 14px; height: 14px; color: var(--ok); }

/* result */
.empty { text-align: center; color: var(--muted); padding: 36px 16px 20px; }
.empty-art { position: relative; width: 150px; height: 150px; margin: 0 auto 18px; display: grid; place-items: center; }
.empty-art::before, .empty-art::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px dashed var(--line-2); animation: spin 30s linear infinite; }
.empty-art::after { inset: 22px; border-style: solid; border-color: var(--line); animation: none; }
.empty h3 { color: var(--ink); margin-bottom: 6px; }
.empty-legend { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.res-hero { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.res-hero .res-type { font-weight: 700; color: var(--ink-2); margin: 8px 0 0; font-size: .95rem; }
.res-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: space-between; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.metric { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 11px 13px; }
.metric span { display: block; font-size: .7rem; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.metric b { font-size: 1.05rem; font-weight: 800; letter-spacing: -.02em; }
.metric.m-good b { color: var(--ok); }
.meter { width: 100%; height: 8px; margin: 12px 0 4px; appearance: none; border: 0; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter::-webkit-progress-bar { background: var(--surface-3); border-radius: 999px; }
.meter::-webkit-progress-value { border-radius: 999px; background: var(--muted); }
.meter.m-scam::-webkit-progress-value { background: var(--cta); }
.meter.m-suspicious::-webkit-progress-value { background: var(--warn); }
.meter.m-safe::-webkit-progress-value { background: var(--ok); }
.meter.m-scam::-moz-progress-bar { background: var(--cta); }
.meter.m-suspicious::-moz-progress-bar { background: var(--warn); }
.meter.m-safe::-moz-progress-bar { background: var(--ok); }
.res-sum { font-size: 1.04rem; line-height: 1.6; color: var(--ink); margin: 16px 0; }
.res-h { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 18px 0 10px; }
.flags, .todo { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.flags li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; font-weight: 600; font-size: .94rem; background: var(--cta-soft); color: var(--ink); border-radius: 12px; padding: 9px 12px; }
.flags li::before { content: "!"; width: 20px; height: 20px; border-radius: 6px; background: var(--cta); color: #fff; font-size: .74rem; font-weight: 800; display: grid; place-items: center; margin-top: 1px; }
.flags li.from-rules { background: var(--surface-2); }
.flags li.from-rules::before { background: var(--gold); color: #111; }
.flags li.from-rules::after { content: "rule"; grid-column: 2; font-size: .68rem; color: var(--muted); font-family: var(--mono); margin-top: -4px; }
.flags li.none { background: var(--ok-soft); }
.flags li.none::before { content: "✓"; background: var(--ok); }
.flags-sm li { font-size: .86rem; padding: 7px 10px; }
.todo { counter-reset: t; }
.todo li { counter-increment: t; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; font-size: .94rem; font-weight: 600; }
.todo li::before { content: counter(t); width: 24px; height: 24px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: .78rem; font-weight: 800; display: grid; place-items: center; }
.trace { margin-top: 20px; border: 1px solid var(--line); border-radius: 16px; padding: 4px 16px; background: var(--surface-2); }
.trace summary { cursor: pointer; font-weight: 800; font-size: .9rem; color: var(--ink); padding: 12px 0; display: flex; align-items: center; gap: 8px; list-style: none; }
.trace summary::-webkit-details-marker { display: none; }
.trace summary .ico { color: var(--brand-ink); }
.trace summary::after { content: "+"; margin-left: auto; font-size: 1.2rem; color: var(--muted); font-weight: 600; }
.trace[open] summary::after { content: "–"; }
.trace ol { list-style: none; padding: 0 0 14px; margin: 0; position: relative; }
.trace ol::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 22px; width: 2px; background: var(--line-2); }
.trace li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 6px 0; font-size: .86rem; color: var(--ink-2); line-height: 1.5; }
.trace li i { width: 28px; height: 28px; border-radius: 9px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; position: relative; z-index: 1; color: var(--muted); }
.trace li i .ico { width: 14px; height: 14px; }
.trace li.t-rules i { color: #9a7500; background: var(--gold-soft); border-color: transparent; }
.trace li.t-device i { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.trace li.t-cloud i { color: var(--brand-ink); background: var(--brand-soft); border-color: transparent; }
.trace li.t-lock i { color: var(--ink); }
.trace li.t-warn i { color: var(--cta); background: var(--cta-soft); border-color: transparent; }
.res-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.res-actions .btn { flex: 1; }
.history { margin-top: 22px; }
.history ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.history li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; background: var(--surface); font-size: .86rem; }
.history li .h-txt { color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.history li .h-src { font-size: .74rem; font-weight: 700; color: var(--muted); font-family: var(--mono); }
.history .verdict-chip { padding: 3px 9px; font-size: .74rem; }
.history-empty { color: var(--muted); font-size: .86rem; }

/* ================================================================ AUTH */
.auth-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: calc(100vh - 100px); padding: 10px 0 40px; }
.auth-art { position: relative; overflow: hidden; border-radius: 28px; background: #0b0d14; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-art::before { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 300px at 0% 0%, rgba(0, 32, 159, .55), transparent 70%), radial-gradient(420px 300px at 100% 100%, rgba(245, 197, 24, .18), transparent 70%); }
.auth-art > * { position: relative; }
.auth-art h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.auth-art h2 .serif { color: var(--gold); }
.auth-art p { color: #b9bdc9; }
.auth-art .ticks li { color: #d8dbe3; }
.auth-form { display: grid; place-items: center; padding: 30px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 2rem; margin-bottom: 6px; }
.auth-card > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 7px; background: var(--ok-soft); }
.ticks li::after { content: ""; position: absolute; left: 6px; top: 8px; width: 8px; height: 5px; border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg); }
.demo-card { margin-top: 20px; border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: var(--surface-2); }
.demo-card strong { display: flex; align-items: center; gap: 8px; font-size: .9rem; margin-bottom: 4px; }
.demo-card .cred-row { background: var(--surface); margin: 8px 0 0; }
.demo-card .btn { margin-top: 10px; }

/* ================================================================ PAGES */
.page-hero { padding: 40px 0 24px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 10px 0 10px; }
.page-hero h1 .serif { color: var(--brand-ink); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.grid-top { align-items: start; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.bars li { display: grid; grid-template-columns: 1.2fr 1.4fr auto; gap: 12px; align-items: center; font-size: .9rem; font-weight: 600; }
.bar { width: 100%; height: 10px; appearance: none; border: 0; border-radius: 999px; overflow: hidden; background: var(--surface-3); }
.bar::-webkit-progress-bar { background: var(--surface-3); }
.bar::-webkit-progress-value { background: linear-gradient(90deg, var(--cta), #f06a4a); border-radius: 999px; }
.bar::-moz-progress-bar { background: var(--cta); }
.bar-n { font-weight: 800; font-family: var(--mono); font-size: .86rem; }
.reports { margin: 30px 0 56px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.reports > h2, .reports > p { grid-column: 1 / -1; }
.report { padding: 20px; }
.report-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.report .verdict-chip { padding: 4px 10px; font-size: .8rem; }
.report time { margin-left: auto; font-size: .8rem; }
.snippet { font-family: var(--serif); font-style: italic; font-size: 1.12rem; line-height: 1.45; margin: 14px 0; color: var(--ink); }
.ext-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px 0 30px; }
.ext-shot { border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; background: var(--surface); display: grid; grid-template-columns: 1.4fr 1fr; min-height: 340px; }
.ext-page { padding: 18px; background: var(--surface-2); display: grid; gap: 10px; align-content: start; }
.ext-page .mb-line { height: 9px; border-radius: 5px; background: var(--line); }
.ext-page .mb-line.w60 { width: 60%; } .ext-page .mb-line.w80 { width: 80%; }
.ext-page .fake-form { border: 1px dashed var(--cta); border-radius: 12px; padding: 12px; display: grid; gap: 8px; }
.ext-page .fake-form i { height: 26px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.ext-panel { border-left: 1px solid var(--line); padding: 16px; display: grid; gap: 10px; align-content: start; font-size: .8rem; }
.ext-panel .verdict-chip { font-size: .78rem; padding: 4px 10px; }
.howto { padding-left: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; margin: 0; }
.howto li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.howto li::before { content: counter(s); width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font-weight: 800; font-size: .82rem; }

/* admin */
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 20px; width: fit-content; flex-wrap: wrap; }
.tab { padding: 8px 14px; text-decoration: none; color: var(--muted); font-weight: 700; font-size: .9rem; border-radius: 10px; }
.tab:hover { color: var(--hover); }
.tab.is-on { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
.admin-card { margin-bottom: 18px; }
.admin-card h2 { font-size: 1.15rem; }
.status-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.status { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; word-break: break-all; background: var(--surface); }
.status.ok { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-soft); }
.status.todo { border-color: color-mix(in srgb, var(--cta) 45%, transparent); background: var(--cta-soft); }
.status span { font-size: .86rem; color: var(--muted); }
.row-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; }
.tbl th, .tbl td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 800; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; }
.tbl tr.is-off { opacity: .5; }
.actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline-flex; gap: 6px; }
.inline-form input { width: 150px; padding: 7px 10px; border-radius: 10px; }

/* ================================================================ REVEAL */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

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

/* ================================================================ RESPONSIVE */
@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .routes { grid-template-columns: repeat(2, 1fr); }
  .personas { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .nano-chip .nano-txt { display: none; }
}
@media (max-width: 920px) {
  .hero-in, .app-grid, .grid2, .quick, .auth-split, .ext-hero { grid-template-columns: 1fr; }
  .result-card { position: static; }
  .router { grid-template-columns: 1fr; }
  .router::before, .router-flow { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile.w3, .tile.w4 { grid-column: span 1; }
  .tile.w4 { grid-column: span 2; }
  .float-1 { left: -6px; } .float-2 { right: -6px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .auth-art { min-height: 0; padding: 32px; }
  .reports { grid-template-columns: 1fr; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: var(--shadow-lg); }
  .site-head .bar { position: relative; }
  .site-head.is-open .nav { display: flex; }
  .menu-btn { display: grid; }
  .user-pill .who { display: none; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .site-head { padding: 8px 0; }
  .brand small { display: none; }
  .hero { padding-top: 28px; }
  .hero h1 .serif { white-space: normal; }
  .choices, .status-grid, .metrics { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile.w4 { grid-column: span 1; }
  .routes, .personas, .stats-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .card { padding: 18px; border-radius: 20px; }
  .cta-box { padding: 44px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
  .go-row { grid-template-columns: 1fr; }
  .float-chip { display: none; }
  .res-hero { grid-template-columns: 1fr; justify-items: start; }
  .ext-shot { grid-template-columns: 1fr; }
  .ext-panel { border-left: 0; border-top: 1px solid var(--line); }
  .nano-chip { display: none; }
}

/* hero highlight timing (no inline styles under the CSP) */
.mark.d1 { animation-delay: 1.0s; } .mark.d2 { animation-delay: 1.4s; } .mark.d3 { animation-delay: 1.8s; } .mark.d4 { animation-delay: 2.2s; }
.cta-box .logo-xl { margin: 0 auto 18px; width: 72px; height: 72px; }
.cred-card h3 { display: flex; align-items: center; gap: 8px; font-size: 1.2rem; }
.cred-card h3 .ico { color: var(--gold); }
.verdict-panel .verdict-chip { font-size: .82rem; padding: 5px 11px; }
.demo-card .cred-row br, .cred-card .cred-row br { display: none; }
.cred-row > div { display: flex; flex-direction: column; gap: 2px; }
.kpi b small { display: inline; font-size: .82rem; }
#extRing { --risk: 91; }
.page-hero-title { font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 6px 0 14px; letter-spacing: -.04em; }
.page-hero-title .serif, .page-hero h1 .serif { color: var(--brand-ink); }
.page-title { padding: 34px 0 14px; }
.page-title h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.ext-panel strong { font-size: 1rem; }
.panel-title + p:empty { margin: 0 0 14px; }
.auth-art .logo-xl { width: 64px; height: 64px; }
.page-hero .section-lead { margin: 0; }
@media (max-width: 600px) {
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { grid-template-columns: 1fr; padding: 12px 14px; }
  .kpi .kpi-ico { display: none; }
  .kpi b { font-size: 1rem; }
  .dash-head .btn { width: 100%; }
}
.kpi b span { display: inline; font-size: inherit; text-transform: none; letter-spacing: inherit; color: inherit; font-weight: inherit; }
@media (max-width: 600px) {
  .step-h { flex-wrap: wrap; }
  .step-h .seg { margin-left: 0; width: 100%; }
  .step-h .seg button { flex: 1; justify-content: center; }
}
