:root {
  --bg: #07060c;
  --bg2: #100c1c;
  --card: rgba(18, 14, 32, 0.92);
  --line: rgba(255, 255, 255, 0.1);
  --text: #efeaf8;
  --muted: #a89bb8;
  --accent: #ff3d8a;
  --accent2: #7c5cff;
  --ok: #3dffc5;
  --warn: #ffd166;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --r: 22px;
  --font: "Manrope", "Segoe UI", system-ui, sans-serif;
}
[data-theme="cyan"] { --accent: #22d3ee; --accent2: #6366f1; --ok: #34d399; }
[data-theme="violet"] { --accent: #c084fc; --accent2: #818cf8; --ok: #67e8f9; }
[data-theme="amber"] { --accent: #fb923c; --accent2: #f43f5e; --ok: #fde047; }

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
body { min-height: 100vh; background:
  radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 55%),
  radial-gradient(900px 500px at 110% 0%, color-mix(in srgb, var(--accent2) 24%, transparent), transparent 50%),
  linear-gradient(180deg, var(--bg), var(--bg2) 40%, #05040a);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
.wrap { width: min(1280px, calc(100% - 24px)); margin: 0 auto; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7, 6, 12, 0.78);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 800; letter-spacing: .04em; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: grid; place-items: center; font-size: 13px;
}
.cta-row { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  appearance: none; border: 0; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 18px; font-weight: 800; font-size: 14px;
  transition: transform .2s, box-shadow .2s, filter .2s, background .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }
.btn-primary { color: #0b0710; background: linear-gradient(135deg, var(--accent), var(--accent2)); box-shadow: 0 10px 30px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn-ghost { color: var(--text); background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.btn-ok { color: #062018; background: var(--ok); }

.hero { padding: 42px 0 18px; }
.kicker { display: inline-flex; gap: 8px; align-items: center; color: var(--ok); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { font-size: clamp(28px, 5vw, 46px); line-height: 1.15; margin: 12px 0 16px; }
.lead { font-size: 18px; color: #d8d0e6; max-width: 70ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font-size: 12px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--muted); }

.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 28px 0 40px; }
.ba-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: rgba(255,255,255,.03); box-shadow: var(--shadow); }
.ba-wrap { position: relative; aspect-ratio: 4/5; overflow: hidden; cursor: ew-resize; user-select: none; touch-action: none; }
.ba-before, .ba-after { position: absolute; inset: 0; }
.ba-before img, .ba-after img { width: 100%; height: 100%; object-fit: cover; object-position: center top; pointer-events: none; }
.ba-after { clip-path: inset(0 50% 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; background: #fff; transform: translateX(-50%); z-index: 3; box-shadow: 0 0 16px #fff; pointer-events: none; }
.ba-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2)); color: #fff; display: grid; place-items: center; font-weight: 900; z-index: 4; pointer-events: none; }
.lbl { position: absolute; top: 12px; z-index: 5; background: rgba(4,8,15,.78); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; pointer-events: none; }
.lbl-b { left: 12px; color: #9fb3c8; }
.lbl-a { right: 12px; color: var(--ok); }

.article { padding: 8px 0 48px; }
.article h2 { font-size: 28px; margin: 36px 0 12px; }
.article h3 { font-size: 20px; margin: 24px 0 8px; }
.article p, .article li { color: #d4cce0; line-height: 1.75; font-size: 16.5px; }
.article p { margin: 0 0 14px; }
.faq details { background: rgba(255,255,255,.03); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; margin: 10px 0; }
.faq summary { cursor: pointer; font-weight: 800; }

.finder {
  margin: 20px 0 56px; padding: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 28px;
  background:
    radial-gradient(500px 180px at 0% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%),
    rgba(12, 10, 22, .85);
  box-shadow: var(--shadow);
}
.finder h2 { margin: 0 0 8px; }
.finder-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.finder-card { padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: rgba(255,255,255,.03); min-height: 220px; }
.finder-card h3 { margin: 0 0 8px; }
.search-viz { margin-top: 14px; }
.orbit {
  width: 84px; height: 84px; margin: 8px auto 12px; position: relative;
}
.orbit span, .orbit::before, .orbit::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent;
}
.orbit::before { border-top-color: var(--accent); animation: spin 1s linear infinite; }
.orbit::after { inset: 10px; border-right-color: var(--accent2); animation: spin 1.6s linear infinite reverse; }
.orbit span { inset: 20px; border-bottom-color: var(--ok); animation: spin .8s linear infinite; }
.progress { height: 6px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.progress > i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), var(--ok)); transition: width .12s linear; }
.status { min-height: 22px; font-size: 13px; color: var(--muted); margin: 8px 0; }
.result-box {
  margin-top: 12px; padding: 12px; border-radius: 14px;
  background: rgba(0,0,0,.28); border: 1px dashed color-mix(in srgb, var(--ok) 40%, transparent);
  word-break: break-all; font-family: ui-monospace, monospace; font-size: 13px;
}
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13px; }

/* GATES */
.gate {
  position: fixed; inset: 0; z-index: 80;
  background:
    radial-gradient(700px 400px at 50% 20%, color-mix(in srgb, var(--accent2) 20%, transparent), transparent 60%),
    rgba(4, 3, 9, .94);
  display: grid; place-items: center; padding: 20px;
  backdrop-filter: blur(18px);
}
.gate.is-out { animation: fadeOut .45s ease forwards; }
.gate-card {
  width: min(560px, 100%);
  background: linear-gradient(180deg, rgba(24,18,40,.96), rgba(10,8,18,.96));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line));
  border-radius: 28px; padding: 28px 24px 24px; box-shadow: var(--shadow), 0 0 80px color-mix(in srgb, var(--accent) 18%, transparent);
  position: relative; overflow: hidden;
}
.gate-card::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 180px;
  background: conic-gradient(from 90deg, transparent, color-mix(in srgb, var(--accent) 50%, transparent), transparent 40%);
  animation: spin 8s linear infinite; opacity: .45; pointer-events: none;
}
.gate-inner { position: relative; z-index: 1; }
.gate h2 { margin: 0 0 6px; font-size: 24px; }
.gate p { color: var(--muted); margin: 0 0 16px; }

.cf-row {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 14px 16px; border-radius: 16px; cursor: pointer; color: inherit;
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
}
.cf-row:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.cf-row.is-busy { pointer-events: none; }
.cf-box {
  width: 28px; height: 28px; border-radius: 6px; flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.35); display: grid; place-items: center;
  background: rgba(0,0,0,.25);
}
.cf-spin {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.15); border-top-color: var(--accent);
  animation: spin .7s linear infinite;
}
.cf-ok { color: var(--ok); font-weight: 900; font-size: 16px; }
.cf-label { font-weight: 800; font-size: 16px; }
.check-list { display: grid; gap: 10px; margin: 8px 0 18px; }
.check-item {
  display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: rgba(255,255,255,.03); color: var(--text); font-size: 14px; line-height: 1.45;
}
.check-item input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.confirm-err { min-height: 18px; color: #fda4af; font-size: 13px; }
.confirm-btn { width: 100%; }

.scan-stage { text-align: center; }
.mega-orbit {
  width: 160px; height: 160px; margin: 10px auto 18px; position: relative;
}
.mega-orbit .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.08);
}
.mega-orbit .ring:nth-child(1) { animation: spin 2.2s linear infinite; border-top-color: var(--accent); border-left-color: var(--accent); }
.mega-orbit .ring:nth-child(2) { inset: 16px; animation: spin 3.4s linear infinite reverse; border-right-color: var(--accent2); }
.mega-orbit .ring:nth-child(3) { inset: 32px; animation: spin 1.4s linear infinite; border-bottom-color: var(--ok); }
.mega-orbit .core {
  position: absolute; inset: 52px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--accent) 40%, #120818);
  box-shadow: 0 0 30px var(--accent); animation: corePulse 1.4s ease-in-out infinite;
}
.scan-pct { font-size: 28px; font-weight: 900; margin: 0; }
.scan-list { list-style: none; padding: 0; margin: 16px 0 0; text-align: left; }
.scan-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.scan-list li.ok { color: var(--ok); }
.age-note { font-size: 12px; color: var(--muted); margin-top: 14px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulseHex { 50% { transform: scale(1.06); } }
@keyframes blink { 50% { opacity: .35; } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
@keyframes corePulse { 50% { transform: scale(1.08); filter: brightness(1.2); } }

/* LAYOUT-V2 */
.ticker {
  background: #05040a; border-bottom: 1px solid var(--line); overflow: hidden; font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.ticker-track { display: flex; gap: 28px; white-space: nowrap; padding: 8px 0; animation: marquee 28s linear infinite; color: var(--muted); }
.ticker b { color: var(--ok); font-weight: 800; }
.topbar { top: 0; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.nav-desk { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.nav-desk a { color: #d8d0e6; text-decoration: none; font-size: 13px; font-weight: 700; }
.nav-desk a:hover { color: #fff; }
.menu-btn { display: none; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 18px 0 8px;
}
.stat { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.03); }
.stat strong { display: block; font-size: 20px; }
.stat span { color: var(--muted); font-size: 12px; }
.crumbs { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.crumbs a { color: var(--muted); }
.shell { display: grid; grid-template-columns: 240px minmax(0,1fr) 240px; gap: 20px; align-items: start; padding: 8px 0 24px; }
.side { position: sticky; top: 86px; display: grid; gap: 12px; }
.panel { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: rgba(18,14,32,.72); }
.panel h3 { margin: 0 0 10px; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.panel a { display: block; color: #efeaf8; text-decoration: none; font-size: 14px; font-weight: 700; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.panel a:last-child { border-bottom: 0; }
.panel p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 6px; animation: blink 1.2s ease-in-out infinite; }
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 12px 0 28px; }
.svc {
  border: 1px solid var(--line); border-radius: 18px; padding: 16px; background: rgba(255,255,255,.03);
  min-height: 150px;
}
.svc .ico { font-size: 22px; }
.svc h3 { margin: 8px 0 6px; font-size: 17px; }
.svc p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 12px 0 28px; }
.step { border: 1px dashed var(--line); border-radius: 16px; padding: 14px; }
.step b { display: block; color: var(--accent); margin-bottom: 6px; }
.step span { font-size: 13px; color: var(--muted); }
.trust { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 24px; }
.trust a {
  color: #d8d0e6; text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.03);
}
.howto { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 28px; }
.checkok { border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.checkok h3 { margin: 0 0 8px; }
.checkok li { color: var(--muted); margin: 6px 0; font-size: 14px; }
.finder-shell { padding: 8px 0 80px; }
.finder {
  max-width: 720px; margin: 0 auto; text-align: center;
  border: 2px solid color-mix(in srgb, var(--accent) 55%, #fff);
  box-shadow: 0 0 0 6px rgba(255,255,255,.03), var(--shadow);
}
.finder h2, .finder > p { text-align: center; }
.finder-grid { text-align: left; }
.mode-day { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 16px; border: 1px solid var(--line); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent), transparent); margin: 0 0 20px; }
.mode-day strong { display: block; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
footer { border-top: 1px solid var(--line); padding: 28px 0 100px; color: var(--muted); font-size: 13px; }
.mobile-nav-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 70; }
.mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 88vw); z-index: 71;
  background: #120c1c; border-left: 1px solid var(--line); padding: 18px; transform: translateX(100%); transition: transform .25s ease;
}
.mobile-nav.open { transform: none; }
.mobile-nav a { display: block; color: #fff; text-decoration: none; font-weight: 800; padding: 12px 0; border-bottom: 1px solid var(--line); }
.bottom-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom,0));
  background: rgba(7,6,12,.96); border-top: 1px solid var(--line);
}

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 1100px) {
  .shell { grid-template-columns: 200px minmax(0,1fr); }
  .side-right { display: none; }
}
@media (max-width: 800px) {
  .ba-grid, .finder-grid, .svc-grid, .steps, .howto, .stats, .footer-grid { grid-template-columns: 1fr; }
  .nav-desk { display: none; }
  .menu-btn { display: inline-flex; }
  .cta-row .btn { padding: 10px 12px; font-size: 13px; }
  .shell { grid-template-columns: 1fr; }
  .side { position: static; }
  .side-left { order: 2; }
  .main-col { order: 1; }
  h1 { font-size: 24px; }
  .ticker-track { animation-duration: 22s; }
  .bottom-cta { display: flex; }
  body { padding-bottom: 72px; }
  .finder { margin: 0 0 24px; }
}
