:root {
  --rail: #05060F; --side: #0B0E1E; --main: #111428; --card: #181C38; --hover: #1A1F3D; --active: #1E2448;
  --line: #1E2340; --line-2: #262B4D; --line-btn: #3A4170;
  --text: #E2E8F0; --text-2: #C3C9DD; --muted: #9AA3C0;
  --accent: #4F46E5; --accent-text: #A5B4FC;
  --ok: #5EEAD4; --ok-bg: rgba(45,212,191,.12);
  --low: #FCD34D; --low-bg: rgba(251,191,36,.12);
  --crit: #FDA4AF; --crit-bg: rgba(251,113,133,.14); --crit-strong: #F43F5E;
  --display: Sora, 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--text); font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.6;
  background: var(--rail);
  background-image: linear-gradient(rgba(99,102,241,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(99,102,241,.07) 1px, transparent 1px);
  background-size: 48px 48px; }
a { color: var(--accent-text); }
a:hover { color: #C7D2FE; }
button { font-family: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
h1, h2, h3, p { margin: 0; }
figure { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.pad { padding-top: 96px; padding-bottom: 96px; }
.center { text-align: center; }

.top { border-bottom: 1px solid var(--line); background: rgba(5,6,15,.85); }
.top-row { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.crumb { display: flex; align-items: center; gap: 18px; }
.mark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--text); font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: -.02em; text-transform: uppercase; }
.mark span { background: #FF5A1F; color: #111; padding: 0 5px; margin-left: 2px; }
.mark:hover { color: var(--text); }
.slash { color: var(--line-btn); }
.crumb-here { font-family: var(--display); font-weight: 600; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; font-size: 15px; }
.nav a:not(.btn) { color: var(--text-2); text-decoration: none; }

.btn, .btn-line { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border-radius: 10px; text-decoration: none; font-weight: 600; cursor: pointer; font-size: 15px; }
.btn { background: var(--accent); color: #fff; border: 0; }
.btn:hover { color: #fff; background: #4338CA; }
.btn-line { border: 1px solid var(--line-btn); color: var(--text); background: transparent; }
.btn-line:hover { color: var(--text); background: var(--hover); }
.big { min-height: 48px; padding: 14px 26px; border-radius: 12px; font-size: 16px; }
.wide { width: 100%; min-height: 48px; border-radius: 12px; }
.btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }

.kicker { font-family: var(--mono); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 10px; }
h1 { margin: 0 auto; max-width: 980px; font-family: var(--display); font-weight: 800; font-size: clamp(40px, 6vw, 80px); line-height: 1.02; letter-spacing: -.04em; }
h2 { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 4vw, 48px); letter-spacing: -.03em; line-height: 1.08; }
.teal { color: var(--ok); }
.lead { margin: 24px auto 0; max-width: 640px; font-size: 19px; color: var(--text-2); }
.intro { margin: 14px 0 36px; max-width: 640px; color: var(--text-2); font-size: 18px; }
.center .intro { margin-left: auto; margin-right: auto; }

.hero { position: relative; overflow: hidden; }
.hero-in { position: relative; padding-top: 88px; padding-bottom: 96px; text-align: center; }
.hero .kicker { margin-bottom: 18px; }
.glow, .glow2 { position: absolute; left: 50%; pointer-events: none; animation: glow 4s ease-in-out infinite; }
.glow { top: 360px; width: 900px; height: 520px; margin-left: -450px; background: radial-gradient(closest-side, rgba(79,70,229,.35), rgba(79,70,229,0)); }
.glow2 { top: 40px; width: 800px; height: 360px; margin-left: -400px; background: radial-gradient(closest-side, rgba(94,234,212,.16), rgba(94,234,212,0)); }

.app { margin: 64px auto 0; max-width: 1120px; text-align: left; background: var(--side); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: 0 40px 120px rgba(0,0,0,.6); overflow: hidden; }
.app-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px; border-bottom: 1px solid var(--line); background: var(--rail); }
.dots { display: flex; gap: 7px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.app-note { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.app-body { display: flex; flex-wrap: wrap; }
.side { flex: 1 1 210px; max-width: 240px; min-width: 0; border-right: 1px solid var(--line); padding: 18px 14px; font-size: 14px; display: flex; flex-direction: column; gap: 2px; }
.side-name { font-family: var(--display); font-weight: 700; font-size: 15px; padding: 0 8px; }
.side-sub { font-size: 12px; color: var(--muted); padding: 0 8px 12px; }
.side-h { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); padding: 14px 8px 6px; }
.side-i { display: flex; justify-content: space-between; padding: 6px 8px; color: var(--text-2); }
.side-i b { background: var(--crit-strong); color: #fff; font-size: 11px; border-radius: 999px; padding: 0 7px; font-weight: 500; }
.side-i em { color: var(--low); font-size: 11px; font-style: normal; }
.side-i small { font-size: 11px; border: 1px solid var(--line-btn); border-radius: 999px; padding: 0 7px; }
.side-i.on { background: var(--active); border-radius: 8px; color: #fff; }
.main { flex: 999 1 400px; min-width: 0; background: var(--main); padding: 22px; }
.main-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.main-title { font-family: var(--display); font-weight: 700; font-size: 18px; }
.main-title span { font-family: 'IBM Plex Sans', sans-serif; font-weight: 400; font-size: 14px; color: var(--muted); margin-left: 8px; }
.chip-btn { font-size: 13px; border: 1px solid var(--line-btn); border-radius: 8px; padding: 6px 12px; color: var(--text-2); }
.headline { margin: 16px 0 4px; font-family: var(--display); font-weight: 700; font-size: 22px; }
.sub { font-size: 14px; color: var(--muted); }
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.stat { flex: 1 1 130px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.stat-l { font-size: 12px; color: var(--muted); }
.stat-v { font-family: var(--mono); font-size: 24px; font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.filters button { min-height: 36px; padding: 6px 14px; border-radius: 999px; font-size: 13px; cursor: pointer; border: 1px solid var(--line-btn); background: var(--card); color: var(--text-2); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.findings { display: flex; flex-direction: column; gap: 10px; }
.finding { background: var(--card); border: 1px solid var(--line); border-radius: 12px; animation: rise .6s ease-out both; }
.finding.open { border-color: var(--line-btn); }
.finding > button { width: 100%; text-align: left; background: transparent; border: 0; color: var(--text); padding: 14px 16px; cursor: pointer; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 44px; font-size: 15px; }
.f-name { font-weight: 600; }
.f-conf { font-size: 12px; color: var(--muted); }
.f-line { flex: 1 1 100%; font-size: 14px; color: var(--text-2); }
.f-more { padding: 0 16px 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.f-more p { flex: 1 1 300px; font-size: 14px; color: var(--text-2); }
.f-act { background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 10px; }
.chip { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.k-loss { background: var(--crit-bg); color: var(--crit); }
.k-count { background: rgba(165,180,252,.14); color: var(--accent-text); }
.k-setup { background: var(--low-bg); color: var(--low); }
.k-paper { background: var(--ok-bg); color: var(--ok); }
.hint { margin-top: 14px; font-size: 12px; color: var(--muted); }

.alt { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(11,14,30,.7); }
section + section { border-top: 1px solid var(--line); }
.row { display: flex; flex-wrap: wrap; gap: 22px; align-items: stretch; margin-top: 22px; }
.card { min-width: 0; background: var(--main); border: 1px solid var(--line-2); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.grow2 { flex: 2 1 560px; }
.grow1 { flex: 1 1 320px; }
.card-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.card-title { font-family: var(--display); font-weight: 700; font-size: 17px; }
.card-title span { font-family: 'IBM Plex Sans', sans-serif; font-weight: 400; font-size: 13px; color: var(--muted); margin-left: 6px; }
figcaption { font-size: 14px; color: var(--text-2); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; }
.pills span { padding: 3px 10px; border-radius: 999px; }

.shelf-head, .order-head { display: flex; gap: 12px; padding: 0 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.c-spot { flex: 0 0 64px; } .c-name { flex: 1 1 140px; } .c-ctl { flex: 0 0 150px; text-align: center; }
.c-par { flex: 0 0 40px; text-align: right; } .c-need { flex: 0 0 48px; text-align: right; } .c-st { flex: 0 0 84px; text-align: right; }
.s-row { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); border-left: 3px solid transparent; }
.s-row.low { border-left-color: var(--low); } .s-row.crit { border-left-color: var(--crit-strong); }
.s-spot { flex: 0 0 64px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.s-name { flex: 1 1 140px; min-width: 0; font-size: 15px; }
.s-name small, .o-name small { display: block; font-size: 12px; color: var(--muted); }
.s-ctl, .o-ctl { flex: 0 0 150px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.s-n { min-width: 44px; text-align: center; font-family: var(--mono); font-weight: 600; font-size: 18px; }
.step-btn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-btn); background: var(--hover); color: var(--text); font-size: 20px; cursor: pointer; }
.step-btn.plus { background: var(--accent); border-color: var(--accent); color: #fff; }
.s-par, .s-need { font-family: var(--mono); color: var(--text-2); text-align: right; }
.s-par { flex: 0 0 40px; } .s-need { flex: 0 0 48px; }
.s-st { flex: 0 0 84px; text-align: right; }
.sm-only { display: none; }

.phones { display: flex; gap: 14px; justify-content: center; }
.phone { position: relative; flex: 0 1 140px; background: var(--rail); border: 1px solid var(--line-btn); border-radius: 22px; padding: 16px 12px; text-align: center; }
.ph-who { font-size: 11px; color: var(--muted); }
.ph-item { margin: 14px 0 6px; font-size: 13px; }
.ph-n { font-family: var(--mono); font-size: 30px; font-weight: 600; }
.ph-plus { margin-top: 10px; height: 40px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 22px; line-height: 40px; }
.pop { position: absolute; top: 46px; right: 10px; color: var(--ok); font-family: var(--mono); font-weight: 600; animation: pop 1s ease-out forwards; }

.viewfinder { position: relative; height: 230px; border-radius: 16px; background: var(--rail); border: 1px solid var(--line-btn); overflow: hidden; display: flex; align-items: center; justify-content: center; }
.frame { position: absolute; inset: 18px; border: 2px solid rgba(94,234,212,.5); border-radius: 12px; }
.scanline { position: absolute; left: 10%; right: 10%; height: 2px; background: var(--ok); box-shadow: 0 0 16px var(--ok); animation: scan 1.5s ease-in-out infinite; }
.found { position: absolute; left: 14px; right: 14px; bottom: 14px; background: var(--card); border: 1px solid var(--ok); border-radius: 12px; padding: 10px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: center; animation: rise .5s ease-out both; }
.found[hidden] { display: none; }
.found b { display: block; font-size: 14px; }
.found small { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.found strong { font-family: var(--mono); font-size: 18px; color: var(--ok); }

.order { flex-direction: row; flex-wrap: wrap; gap: 20px; }
.order-l { flex: 999 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.order-r { flex: 1 1 200px; min-width: 0; background: var(--rail); border: 1px solid var(--line-2); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; align-self: flex-start; }
.order .full { flex: 1 1 100%; }
.seg { display: flex; border: 1px solid var(--line-btn); border-radius: 10px; overflow: hidden; }
.seg button { min-height: 36px; padding: 6px 12px; border: 0; cursor: pointer; font-size: 13px; background: transparent; color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--active); }
.order-head { padding: 0 4px; gap: 10px; }
.o-name { flex: 1 1 120px; min-width: 0; }
.o-num { flex: 0 0 52px; text-align: right; }
.order-head .o-ctl { flex: 0 0 128px; display: block; text-align: center; }
.o-row { display: flex; gap: 10px; align-items: center; padding: 6px 4px; border-top: 1px solid var(--line); }
.o-row .o-name { font-size: 14px; }
.o-row .o-num { font-family: var(--mono); font-size: 13px; }
.o-row .o-ctl { flex: 0 0 128px; gap: 8px; }
.o-row .step-btn { font-size: 18px; }
.o-q { min-width: 20px; text-align: center; font-family: var(--mono); font-weight: 600; }
.mini-h { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--muted); }
.order-sum { font-family: var(--display); font-weight: 700; font-size: 20px; }
.abc { font-family: var(--mono); font-size: 13px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.abc-h, .abc-r { display: flex; justify-content: space-between; padding: 4px 10px; }
.abc-h { background: var(--main); color: var(--muted); }
.abc-r { border-top: 1px solid var(--line); animation: rise .4s ease-out both; }
.dl-note { font-size: 12px; color: var(--ok); }

.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.split-l { flex: 1 1 400px; min-width: 0; }
.split .intro { margin-top: 18px; margin-bottom: 0; }
.kinds { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 8px; }
.kinds span { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.formula { margin-top: 24px; font-family: var(--mono); font-size: 13px; color: var(--muted); line-height: 1.8; }
.calc { flex: 1 1 460px; padding: 26px; box-shadow: 0 0 80px rgba(79,70,229,.18); border-radius: 18px; gap: 0; }
.calc-sub { margin: 4px 0 18px; font-size: 14px; color: var(--muted); }
.fields { display: flex; flex-wrap: wrap; gap: 12px; }
.fields label { flex: 1 1 120px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.fields input { min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-btn); background: var(--rail); color: var(--text); font: 600 16px var(--mono); width: 100%; }
.results { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }
.results > div { flex: 1 1 140px; background: var(--card); border-radius: 12px; padding: 14px; }
.res { font-family: var(--mono); font-size: 22px; font-weight: 600; }
.verdict { margin-top: 16px; font-size: 15px; }

.steps { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.steps button { flex: 1 1 180px; min-width: 0; min-height: 64px; text-align: left; padding: 14px 16px; border-radius: 12px; cursor: pointer; border: 1px solid var(--line-2); background: var(--main); color: var(--text); }
.steps button[aria-pressed="true"] { background: var(--active); border-color: var(--accent); }
.steps .n { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.steps .done .n, .steps [aria-pressed="true"] .n { color: var(--ok); }
.steps .t { display: block; font-family: var(--display); font-weight: 600; font-size: 16px; }
.progress { position: relative; height: 2px; background: var(--line-2); margin: 22px 0; }
.progress span { position: absolute; left: 0; top: 0; height: 2px; background: var(--ok); box-shadow: 0 0 12px var(--ok); transition: width .4s ease; }
.step { flex-direction: row; flex-wrap: wrap; gap: 20px; align-items: center; padding: 26px; animation: rise .5s ease-out both; }
.step .big-n { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; color: var(--line-btn); }
.step .body { flex: 1 1 420px; min-width: 0; }
.step h3 { margin-bottom: 6px; font-family: var(--display); font-size: 22px; }
.step p { color: var(--text-2); font-size: 17px; }

.trust { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.trust li { display: flex; gap: 12px; }
.trust svg { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: var(--ok); stroke-width: 1.8; }
.feed-box { flex: 1 1 440px; min-width: 0; height: 380px; overflow: hidden; background: var(--main); border: 1px solid var(--line-2); border-radius: 18px; position: relative; }
.feed-top { position: absolute; top: 0; left: 0; right: 0; z-index: 1; padding: 14px 18px; background: var(--main); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-weight: 700; }
.live { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--ok); animation: blink 1.6s ease-in-out infinite; }
.feed { padding: 60px 18px 0; animation: feed 22s linear infinite; }
.feed div { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.feed b { font-weight: 600; }
.feed span { color: var(--text-2); }
.feed small { display: block; font-size: 12px; color: var(--muted); }

.end { position: relative; overflow: hidden; }
.end .wrap { position: relative; padding-top: 104px; padding-bottom: 104px; }
.end-h { margin: 0 auto; max-width: 820px; font-size: clamp(34px, 5vw, 60px); letter-spacing: -.04em; line-height: 1.04; }
.end .intro { margin-top: 18px; margin-bottom: 0; }

.foot { border-top: 1px solid var(--line); }
.foot-row { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--muted); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot-nav a { color: var(--text-2); }

.pulse { animation: pulse 2.2s ease-out infinite; }
@keyframes scan { 0% { top: 14%; } 50% { top: 80%; } 100% { top: 14%; } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { opacity: 0; transform: translateY(6px) scale(.8); } 25% { opacity: 1; transform: translateY(-4px) scale(1); } 100% { opacity: 0; transform: translateY(-26px); } }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,.55); } 50% { box-shadow: 0 0 0 10px rgba(99,102,241,0); } }
@keyframes feed { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes glow { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

@media (max-width: 640px) {
  .side, .shelf-head, .order-head, .s-spot, .s-par, .s-need, .o-row .o-num { display: none; }
  .sm-only { display: block; }
  .nav a:not(.btn) { display: none; }
  .top-row { gap: 12px; }
  .crumb { gap: 10px; }
  .mark { font-size: 15px; gap: 7px; }
  .mark img { width: 26px; height: 26px; }
  .pad { padding-top: 72px; padding-bottom: 72px; }
  .hero-in { padding-top: 56px; padding-bottom: 72px; }
  .app { margin-top: 44px; }
  .main { padding: 16px; }
  .stat { padding: 10px 12px; }
  .stat-v { font-size: 20px; }
  .headline { font-size: 20px; }
  .card { padding: 18px; }
}
@media (max-width: 420px) {
  .slash, .crumb-here { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
