/* STL Guard — design tokens */
:root {
  color-scheme: dark;
  --bg: #07080a;
  --bg-2: #0b0d10;
  --panel: #0e1114;
  --panel-2: #12161a;
  --panel-3: #171c21;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.1);
  --line-3: rgba(255, 255, 255, 0.2);
  --text: #eceef1;
  --text-2: #c4c9cf;
  --muted: #8b929b;
  --dim: #5c636c;
  --plus: #7ef0c4;
  --plus-2: #4fd8a6;
  --minus: #ff8a5c;
  --danger: #ff5f57;
  --glow: rgba(126, 240, 196, 0.16);
  --radius: 14px;
  --radius-lg: 20px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: rgba(126, 240, 196, 0.3); color: #fff; }
:focus-visible { outline: 2px solid var(--plus); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sprite { position: absolute; }
.mono { font-family: var(--mono); font-feature-settings: "zero"; }
.muted { color: var(--muted); }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }

/* page atmosphere */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% -8%, rgba(126, 240, 196, 0.09), transparent 60%),
    radial-gradient(700px 500px at 10% 30%, rgba(255, 138, 92, 0.035), transparent 60%);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 55% at 50% 0%, #000 20%, transparent 75%);
  opacity: 0.55;
}
.grain {
  position: fixed; inset: -50%; z-index: 100; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(7, 8, 10, 0.72); backdrop-filter: blur(14px) saturate(1.4); border-bottom-color: var(--line); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; font-size: 15px; }
.brand-mark { width: 26px; height: 26px; color: var(--plus); }
.brand-sm .brand-mark { width: 20px; height: 20px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* BUTTONS */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  font-weight: 500; font-size: 14.5px; letter-spacing: -0.005em;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s, color 0.2s, opacity 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-sm { --h: 36px; padding: 0 16px; font-size: 13.5px; }
.btn-block { width: 100%; }
.btn-primary {
  background: linear-gradient(180deg, #9cf7d4, var(--plus) 45%, var(--plus-2));
  color: #04140e;
  box-shadow: 0 0 0 1px rgba(126, 240, 196, 0.5) inset, 0 1px 0 rgba(255, 255, 255, 0.5) inset, 0 8px 30px -8px rgba(126, 240, 196, 0.55);
}
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(126, 240, 196, 0.6) inset, 0 1px 0 rgba(255, 255, 255, 0.6) inset, 0 12px 40px -6px rgba(126, 240, 196, 0.7); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-ghost { background: rgba(255, 255, 255, 0.02); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--line-3); }
.btn-danger { background: rgba(255, 95, 87, 0.1); border-color: rgba(255, 95, 87, 0.35); color: #ff8b85; }
.btn-danger:hover { background: rgba(255, 95, 87, 0.18); border-color: rgba(255, 95, 87, 0.6); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--plus); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }

/* HERO */
.hero { padding: clamp(36px, 7vw, 96px) 0 clamp(48px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--plus); box-shadow: 0 0 0 4px rgba(126, 240, 196, 0.15), 0 0 14px var(--plus); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(126, 240, 196, 0.05), 0 0 20px var(--plus); } }
h1 {
  margin: 0; font-weight: 500; letter-spacing: -0.045em; line-height: 0.96;
  font-size: clamp(46px, 7.4vw, 96px);
}
h1 em {
  font-size: 1.08em; padding-right: 0.04em;
  background: linear-gradient(100deg, #fff 10%, var(--plus) 55%, #c2fbe6 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { margin: 28px 0 0; max-width: 520px; font-size: clamp(16px, 1.5vw, 18.5px); line-height: 1.6; color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-points { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; font-size: 13.5px; color: var(--muted); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 15px; height: 15px; color: var(--plus); }

/* VIZ FRAME */
.viz-frame {
  position: relative; aspect-ratio: 1 / 1; width: 100%;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(60% 60% at 50% 45%, rgba(126, 240, 196, 0.07), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.005));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  isolation: isolate;
}
.viz-frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(circle at 50% 50%, #000 30%, transparent 75%);
}
.viz-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.viz-frame canvas:active { cursor: grabbing; }
.corner { position: absolute; width: 14px; height: 14px; border-color: rgba(126, 240, 196, 0.55); border-style: solid; border-width: 0; pointer-events: none; }
.c-tl { top: 14px; left: 14px; border-top-width: 1.5px; border-left-width: 1.5px; }
.c-tr { top: 14px; right: 14px; border-top-width: 1.5px; border-right-width: 1.5px; }
.c-bl { bottom: 14px; left: 14px; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.c-br { bottom: 14px; right: 14px; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.viz-hud { position: absolute; left: 36px; right: 36px; display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; pointer-events: none; }
.viz-hud-top { top: 30px; align-items: center; font-size: 11px; letter-spacing: 0.08em; color: var(--dim); }
.viz-hud-bottom { bottom: 30px; }
.hud-val { color: var(--plus); letter-spacing: 0.06em; font-size: 11.5px; }
.hud-dim { color: var(--dim); font-size: 11px; letter-spacing: 0.04em; }
.hud-label { display: block; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.hud-buyer { display: block; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; transition: opacity 0.35s; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hud-buyer.fade { opacity: 0; }
.legend { display: flex; flex-direction: column; gap: 6px; font: 11px var(--mono); color: var(--muted); text-align: right; }
.legend span { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; }
.sw { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.sw-plus { background: var(--plus); box-shadow: 0 0 10px var(--plus); }
.sw-minus { background: var(--minus); box-shadow: 0 0 10px var(--minus); }
.viz-caption { margin: 16px 0 0; text-align: center; font-size: 12px; color: var(--dim); letter-spacing: 0.02em; }

/* STRIP */
.strip { border-block: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.015), transparent); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 34px 28px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-size: clamp(30px, 3.4vw, 42px); font-weight: 500; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-num small { font: 400 13px var(--mono); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.stat-label { font-size: 13.5px; color: var(--muted); line-height: 1.5; max-width: 230px; }

/* SECTIONS */
.section { padding: clamp(72px, 10vw, 140px) 0 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head .eyebrow { margin-bottom: 18px; }
h2 { margin: 0; font-weight: 500; letter-spacing: -0.04em; line-height: 1.02; font-size: clamp(34px, 4.6vw, 58px); }
h2 em { color: var(--plus); font-size: 1.06em; }
.section-sub { margin: 18px 0 0; color: var(--muted); font-size: 16px; max-width: 560px; }

/* STEPS */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step {
  position: relative; padding: 28px; border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.step:hover { border-color: var(--line-2); transform: translateY(-3px); }
.step-num { position: absolute; top: 24px; right: 26px; font-size: 12px; color: var(--dim); }
.step-art { height: 130px; margin: -4px -8px 18px; border-radius: 12px; background: radial-gradient(70% 80% at 50% 50%, rgba(126, 240, 196, 0.05), transparent 70%); display: grid; place-items: center; }
.step-art svg { width: 100%; max-width: 240px; height: auto; }
.step h3 { margin: 0 0 8px; font-size: 20px; font-weight: 500; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.step b { color: var(--text-2); font-weight: 500; }
.s-line { stroke: var(--line-3); }
.s-plus { stroke: var(--plus); }
.s-minus { stroke: var(--minus); }
.f-plus { fill: var(--plus); stroke: none; }
.art-dots .p { fill: var(--plus); }
.art-dots .m { fill: var(--minus); }
.art-dots circle { animation: twinkle 3s ease-in-out infinite; }
.art-dots circle:nth-child(2n) { animation-delay: -1.2s; }
.art-dots circle:nth-child(3n) { animation-delay: -2.1s; }
@keyframes twinkle { 50% { opacity: 0.35; } }
.art-label { fill: var(--dim); font: 10px var(--mono); stroke: none; letter-spacing: 0.02em; }
.art-hit { fill: var(--minus); }

/* STUDIO */
.studio {
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(20, 25, 30, 0.9), rgba(11, 13, 16, 0.95));
  border: 1px solid var(--line-2);
  box-shadow: 0 60px 140px -50px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.studio-bar { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); overflow-x: auto; scrollbar-width: none; }
.studio-bar::-webkit-scrollbar { display: none; }
.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); }
.tab {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 10px;
  background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s;
}
.tab svg { width: 15px; height: 15px; }
.tab:hover { color: var(--text); }
.tab[aria-selected="true"] { color: var(--text); background: var(--panel-3); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 4px 14px -6px rgba(0, 0, 0, 0.8); }
.tab[aria-selected="true"] svg { color: var(--plus); }
.tab-count { font: 500 11px var(--mono); padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.vault-chip {
  margin-left: auto; display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--muted); font: 12px var(--mono); cursor: pointer; white-space: nowrap;
}
.vault-chip:hover { border-color: var(--line-2); color: var(--text-2); }
.vdot { width: 7px; height: 7px; border-radius: 50%; background: var(--plus); box-shadow: 0 0 8px var(--plus); }
.vault-chip.warn .vdot { background: var(--minus); box-shadow: 0 0 8px var(--minus); }
.vault-chip.warn { color: #ffb08f; border-color: rgba(255, 138, 92, 0.3); }

.studio-body { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); min-height: 660px; }
.studio-main { padding: clamp(20px, 3vw, 34px); border-right: 1px solid var(--line); min-width: 0; }
.studio-viz { padding: clamp(16px, 2.4vw, 28px); display: flex; flex-direction: column; position: sticky; top: 64px; align-self: start; }
.viz-frame-studio { aspect-ratio: auto; height: min(560px, 70vh); }
.viz-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--dim); font-size: 13.5px; pointer-events: none; }
.viz-empty svg { width: 56px; height: 56px; color: var(--line-3); animation: float 5s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px) rotate(4deg); } }
.viz-tip { margin: 12px 0 0; text-align: center; font-size: 11.5px; color: var(--dim); }

.panel { animation: panelIn 0.45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px); } }
.panel-head { margin-bottom: 22px; }
.panel-head h3 { margin: 0 0 4px; font-size: 21px; font-weight: 500; letter-spacing: -0.02em; }
.panel-head p { margin: 0; color: var(--muted); font-size: 14px; }
.panel-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.head-actions { display: flex; gap: 8px; align-items: center; }

/* forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.field-sm { flex: 0 0 150px; }
.field-row { display: flex; gap: 12px; }
.field label { font-size: 13px; color: var(--text-2); font-weight: 500; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.field label .muted { font-weight: 400; font-size: 12px; }
input:not([type]), input[type="text"], textarea, select, .search input {
  width: 100%; background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line-2); border-radius: 11px;
  padding: 11px 14px; font-size: 14.5px; color: var(--text); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
textarea { resize: vertical; line-height: 1.5; }
.mono-input { font-family: var(--mono); font-size: 12.5px; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, textarea:focus, select:focus { border-color: rgba(126, 240, 196, 0.6); box-shadow: 0 0 0 4px rgba(126, 240, 196, 0.1); background: rgba(0, 0, 0, 0.45); }
.select { position: relative; }
.select select { appearance: none; padding-right: 40px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
select option { background: var(--panel-2); }
.hint { margin: 0; font-size: 12px; color: var(--dim); }
input[type="range"] { appearance: none; width: 100%; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--plus) var(--fill, 17%), var(--line-2) var(--fill, 17%)); outline: none; margin: 8px 0; }
input[type="range"]::-webkit-slider-thumb { appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--plus); cursor: pointer; box-shadow: 0 0 12px rgba(126, 240, 196, 0.5); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 4px solid var(--plus); cursor: pointer; }
output { color: var(--plus); font-size: 12px; }

.check { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; font-size: 13.5px; color: var(--text-2); user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check-box { flex: 0 0 18px; height: 18px; margin-top: 2px; border-radius: 6px; border: 1px solid var(--line-3); background: rgba(0, 0, 0, 0.3); display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; }
.check-box::after { content: ""; width: 9px; height: 5px; border-left: 2px solid #04140e; border-bottom: 2px solid #04140e; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; transition: opacity 0.15s; }
.check input:checked + .check-box { background: var(--plus); border-color: var(--plus); }
.check input:checked + .check-box::after { opacity: 1; }
.check input:focus-visible + .check-box { outline: 2px solid var(--plus); outline-offset: 2px; }
#panel-models .check { margin: 16px 0 6px; }

.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; }
.seg span { display: block; text-align: center; padding: 8px; border-radius: 9px; font-size: 13.5px; color: var(--muted); font-weight: 500; transition: background 0.2s, color 0.2s; }
.seg input:checked + span { background: var(--panel-3); color: var(--text); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset; }
.seg input:focus-visible + span { outline: 2px solid var(--plus); }
.link-file { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--plus); cursor: pointer; margin-top: 10px; }
.link-file svg { width: 15px; height: 15px; }

.adv { border: 1px solid var(--line); border-radius: 12px; background: rgba(0, 0, 0, 0.18); }
.adv summary { list-style: none; cursor: pointer; padding: 13px 16px; font-size: 13.5px; color: var(--text-2); font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.adv summary::-webkit-details-marker { display: none; }
.adv summary::after { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); transition: transform 0.25s; }
.adv[open] summary::after { transform: rotate(-135deg); }
.adv-body { padding: 4px 16px 18px; display: flex; flex-direction: column; gap: 18px; }

/* drop zone */
.drop {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  gap: 6px; min-height: 200px; padding: 28px; border-radius: 16px; cursor: pointer;
  border: 1.5px dashed var(--line-3); background: radial-gradient(60% 80% at 50% 0%, rgba(126, 240, 196, 0.045), transparent 70%), rgba(0, 0, 0, 0.18);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.drop svg { width: 46px; height: 46px; color: var(--plus); margin-bottom: 8px; transition: transform 0.35s var(--ease); }
.drop:hover { border-color: rgba(126, 240, 196, 0.5); }
.drop:hover svg { transform: translateY(-3px); }
.drop.over { border-color: var(--plus); background: radial-gradient(60% 80% at 50% 0%, rgba(126, 240, 196, 0.12), transparent 70%), rgba(126, 240, 196, 0.03); transform: scale(1.01); }
.drop-title { font-size: 16px; font-weight: 500; }
.drop-sub { font-size: 13px; color: var(--muted); }
.drop-sub u { color: var(--plus); text-underline-offset: 3px; }
.drop-alt { min-height: 170px; }
.drop-alt svg { color: var(--minus); }
.drop-alt:hover, .drop-alt.over { border-color: rgba(255, 138, 92, 0.6); }
.drop-alt.over { background: radial-gradient(60% 80% at 50% 0%, rgba(255, 138, 92, 0.12), transparent 70%); }
.drop-busy { position: absolute; inset: 0; border-radius: inherit; background: rgba(9, 11, 13, 0.92); display: none; align-items: center; justify-content: center; gap: 12px; font-size: 14px; color: var(--text-2); }
.drop.busy .drop-busy { display: flex; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--plus); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* model list */
.model-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 10px; }
.model {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.model:hover { border-color: var(--line-2); }
.model.active { border-color: rgba(126, 240, 196, 0.45); background: rgba(126, 240, 196, 0.04); box-shadow: 0 0 0 4px rgba(126, 240, 196, 0.05); }
.model-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(126, 240, 196, 0.08); color: var(--plus); }
.model-icon svg { width: 20px; height: 20px; }
.model-body { min-width: 0; }
.model-name { font-weight: 500; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-meta { font: 12px var(--mono); color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font: 500 11px var(--mono); padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.badge-ok { color: var(--plus); border-color: rgba(126, 240, 196, 0.3); }
.badge-warn { color: var(--minus); border-color: rgba(255, 138, 92, 0.35); }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; border: 1px solid transparent; background: none; color: var(--dim); cursor: pointer; transition: color 0.2s, background 0.2s, border-color 0.2s; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { color: #ff8b85; background: rgba(255, 95, 87, 0.08); border-color: rgba(255, 95, 87, 0.25); }

.empty-hint { padding: 26px; border-radius: 14px; border: 1px dashed var(--line-2); text-align: center; color: var(--muted); }
.empty-hint p { margin: 0 0 14px; }

/* progress */
.progress { position: relative; height: 40px; border-radius: 11px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); overflow: hidden; }
.progress-bar { position: absolute; inset: 0; width: 0%; background: linear-gradient(90deg, rgba(126, 240, 196, 0.08), rgba(126, 240, 196, 0.22)); border-right: 1px solid var(--plus); transition: width 0.4s var(--ease); }
.progress-bar::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent); animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.progress-text { position: relative; display: flex; align-items: center; height: 100%; padding: 0 14px; font: 12.5px var(--mono); color: var(--text-2); }

/* results */
.result { margin-top: 22px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel-2); overflow: hidden; animation: panelIn 0.5s var(--ease); }
.result-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.result-icon { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; display: grid; place-items: center; }
.result-icon svg { width: 18px; height: 18px; }
.ok .result-icon { background: rgba(126, 240, 196, 0.12); color: var(--plus); }
.alert .result-icon { background: rgba(255, 95, 87, 0.12); color: #ff8b85; }
.neutral .result-icon { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.result-title { font-weight: 500; font-size: 15.5px; }
.result-sub { font-size: 13px; color: var(--muted); }
.result-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.kv div { background: var(--panel); padding: 12px 14px; min-width: 0; }
.kv dt { font: 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.kv dd { margin: 0; font: 500 13.5px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.result-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.verdict { padding: 26px 22px 22px; position: relative; }
.alert .verdict { background: radial-gradient(80% 120% at 0% 0%, rgba(255, 95, 87, 0.12), transparent 60%); }
.ok .verdict { background: radial-gradient(80% 120% at 0% 0%, rgba(126, 240, 196, 0.1), transparent 60%); }
.verdict-label { font: 500 11px var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.alert .verdict-label { color: #ff8b85; }
.ok .verdict-label { color: var(--plus); }
.neutral .verdict-label { color: var(--muted); }
.verdict-name { margin: 8px 0 4px; font-size: clamp(24px, 3vw, 32px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; word-break: break-word; }
.verdict-sub { color: var(--muted); font-size: 14px; margin: 0; }
.verdict-score { position: absolute; top: 22px; right: 22px; text-align: right; }
.verdict-score b { display: block; font: 500 34px/1 var(--mono); letter-spacing: -0.04em; }
.alert .verdict-score b { color: #ff8b85; }
.verdict-score span { font: 10.5px var(--mono); color: var(--dim); text-transform: uppercase; letter-spacing: 0.08em; }
.ranks { display: flex; flex-direction: column; gap: 8px; }
.ranks-title { font: 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); }
.rank { display: grid; grid-template-columns: minmax(0, 180px) 1fr 54px; gap: 12px; align-items: center; font-size: 13px; }
.rank-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.rank-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.rank-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: var(--line-3); transition: width 0.9s var(--ease); }
.rank.hit .rank-bar i { background: linear-gradient(90deg, #ff6f61, var(--minus)); box-shadow: 0 0 12px rgba(255, 138, 92, 0.6); }
.rank.hit .rank-name { color: var(--text); font-weight: 500; }
.rank-score { font: 12.5px var(--mono); text-align: right; color: var(--muted); }
.rank.hit .rank-score { color: #ff8b85; }

/* table */
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; width: 15px; height: 15px; transform: translateY(-50%); color: var(--dim); }
.search input { padding: 8px 12px 8px 34px; height: 36px; width: 200px; font-size: 13.5px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 560px; }
.table th { text-align: left; font: 500 10.5px var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--dim); padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(0, 0, 0, 0.2); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.table td.mono { font-size: 12.5px; color: var(--text-2); }
.table td.dim { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.table td.buyer { font-weight: 500; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table-empty { margin: 0; padding: 36px 20px; text-align: center; color: var(--dim); font-size: 13.5px; }

/* vault */
.vault-card { border-radius: 16px; border: 1px solid var(--line-2); background: radial-gradient(90% 140% at 100% 0%, rgba(126, 240, 196, 0.07), transparent 60%), var(--panel-2); padding: 20px; }
.vault-key { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.vault-key > svg { width: 40px; height: 40px; padding: 10px; border-radius: 12px; background: rgba(126, 240, 196, 0.1); color: var(--plus); }
.vault-fp { font-size: 16px; letter-spacing: 0.12em; color: var(--text); }
.vault-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 18px 0 0; gap: 12px; }
.vault-stats dt { font: 10.5px var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); }
.vault-stats dd { margin: 4px 0 0; font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.vault-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.action { display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.015); cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.action:hover { border-color: var(--line-2); background: rgba(255, 255, 255, 0.035); }
.action > svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--plus); }
.action b { display: block; font-weight: 500; font-size: 14px; }
.action small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.danger { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding: 16px; border-radius: 14px; border: 1px solid rgba(255, 95, 87, 0.2); background: rgba(255, 95, 87, 0.03); }
.danger b { display: block; font-weight: 500; font-size: 14px; color: #ff8b85; }
.danger small { font-size: 12.5px; color: var(--muted); }

/* PROOF */
.proof-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.proof-grid .section-head { margin-bottom: 0; position: sticky; top: 100px; }
.proof-table { border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--panel-2), var(--panel)); padding: 8px 24px 22px; }
.pt-row { display: grid; grid-template-columns: 1fr 120px 96px; gap: 18px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pt-label { font-size: 14.5px; color: var(--text-2); }
.pt-bar { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.05); overflow: hidden; }
.pt-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--plus-2), var(--plus)); box-shadow: 0 0 14px rgba(126, 240, 196, 0.5); transition: width 1.4s var(--ease); }
.pt-bar i.none { background: var(--line-3); box-shadow: none; }
.pt-score { text-align: right; font-size: 14px; color: var(--plus); }
.pt-row-muted .pt-score { color: var(--muted); }
.pt-note { margin: 18px 0 0; font-size: 13px; color: var(--dim); line-height: 1.6; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-grid .section-head { position: sticky; top: 100px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; transition: color 0.2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--plus); }
.faq summary::after { content: "+"; font: 300 22px/1 var(--sans); color: var(--muted); transition: transform 0.3s var(--ease), color 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--plus); }
.faq details p { margin: -6px 0 22px; color: var(--muted); font-size: 15px; max-width: 640px; animation: panelIn 0.4s var(--ease); }

/* CTA */
.cta-final { padding: clamp(96px, 12vw, 170px) 0 clamp(80px, 10vw, 130px); text-align: center; position: relative; }
.cta-final::before { content: ""; position: absolute; left: 50%; top: 55%; width: min(900px, 90vw); height: 380px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(126, 240, 196, 0.12), transparent); pointer-events: none; }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 34px; }
.cta-final h2 { font-size: clamp(40px, 6vw, 76px); }

/* FOOTER */
.footer { border-top: 1px solid var(--line); padding: 28px 0 36px; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }

/* TOASTS */
.toasts { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: 380px; padding: 12px 16px; border-radius: 12px; background: rgba(22, 27, 32, 0.96); border: 1px solid var(--line-2); box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8); backdrop-filter: blur(10px); font-size: 13.5px; animation: toastIn 0.4s var(--ease); }
.toast svg { width: 16px; height: 16px; flex: 0 0 16px; color: var(--plus); }
.toast.err svg { color: #ff8b85; }
.toast.out { animation: toastOut 0.3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* MODAL */
.modal { border: 1px solid var(--line-2); border-radius: 18px; padding: 0; background: var(--panel-2); color: var(--text); width: min(440px, calc(100vw - 32px)); box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.9); }
.modal::backdrop { background: rgba(3, 4, 5, 0.7); backdrop-filter: blur(4px); }
.modal[open] { animation: panelIn 0.3s var(--ease); }
.modal-inner { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.modal h3 { margin: 0; font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.modal p { margin: 0; color: var(--muted); font-size: 14px; }
.modal-confirm-input { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-2); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* RESPONSIVE */
@media (max-width: 1020px) {
  .studio-body { grid-template-columns: 1fr; }
  .studio-viz { position: relative; top: 0; order: -1; border-bottom: 1px solid var(--line); }
  .studio-main { border-right: 0; }
  .viz-frame-studio { height: 340px; }
  .viz-tip { display: none; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 520px; width: 100%; margin: 0 auto; }
  .strip-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 26px 20px; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .proof-grid, .faq-grid { grid-template-columns: 1fr; }
  .proof-grid .section-head, .faq-grid .section-head { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .field-row { flex-direction: column; }
  .field-sm { flex: 1; }
  .kv { grid-template-columns: 1fr 1fr; }
  .pt-row { grid-template-columns: 1fr 80px; }
  .pt-bar { display: none; }
  .rank { grid-template-columns: minmax(0, 120px) 1fr 44px; }
  .verdict-score { position: static; text-align: left; margin-bottom: 10px; }
  .vault-stats { grid-template-columns: 1fr 1fr; }
  .search input { width: 140px; }
  .viz-hud { left: 26px; right: 26px; }
  .viz-hud-top { top: 24px; }
  .viz-hud-bottom { bottom: 24px; }
  .hud-buyer { font-size: 15px; max-width: 170px; }
  .danger { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
