:root {
  --bg: #05070d;
  --bg-2: #0a0e18;
  --panel: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef2f8;
  --muted: #98a2b3;
  --dim: #667085;
  --accent: #3b82f6;
  --accent-2: #2dd4bf;
  --accent-3: #6366f1;
  --ok: #22c55e;
  --grad: linear-gradient(120deg, #6366f1 0%, #3b82f6 45%, #2dd4bf 100%);
  --radius: 14px;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  background: var(--grad); color: #fff; font-weight: 600; font-size: 15px;
  box-shadow: 0 6px 24px rgba(59, 130, 246, 0.25);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(59, 130, 246, 0.35); }
.btn-ghost { background: var(--panel); border-color: var(--line-2); box-shadow: none; }
.btn-ghost:hover { border-color: var(--accent); background: rgba(59, 130, 246, 0.08); box-shadow: none; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-block { width: 100%; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 13, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.08em; font-size: 15px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-family: var(--mono); font-weight: 700;
}
.brand-text span { color: var(--accent-2); margin-left: 4px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: var(--muted); }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav-links .btn { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; position: relative; }
.nav-toggle span { position: absolute; left: 9px; right: 9px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s; }
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 720px; height: 720px; right: -200px; top: -260px;
  background: radial-gradient(circle, rgba(59,130,246,0.22), transparent 60%); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-2);
  padding: 6px 12px; border: 1px solid rgba(45, 212, 191, 0.3); border-radius: 999px; background: rgba(45, 212, 191, 0.06);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); } 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 800; margin: 22px 0 20px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 580px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-tags { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-tags li { font-family: var(--mono); font-size: 12px; color: var(--dim); border: 1px solid var(--line); padding: 4px 10px; border-radius: 6px; }

.term { border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(10, 14, 24, 0.9); box-shadow: 0 30px 80px rgba(0,0,0,0.5); overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.02); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #33384a; }
.term-bar i:nth-child(1) { background: #ef4444; } .term-bar i:nth-child(2) { background: #f59e0b; } .term-bar i:nth-child(3) { background: #22c55e; }
.term-bar span { margin-left: 8px; font-family: var(--mono); font-size: 12px; color: var(--dim); }
.term-body { margin: 0; padding: 18px; min-height: 290px; font-family: var(--mono); font-size: 13px; line-height: 1.75; color: #c9d1e0; white-space: pre-wrap; word-break: break-word; }
.term-body .p { color: var(--accent-2); }
.term-body .ok { color: var(--ok); }
.term-body .mut { color: var(--dim); }
.term-body .cur { display: inline-block; width: 8px; height: 15px; background: var(--accent-2); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Targets */
.targets { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.targets-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.target { display: flex; flex-direction: column; gap: 4px; padding: 28px 24px; border-left: 1px solid var(--line); }
.target:first-child { border-left: 0; }
.t-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); }
.t-val { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.t-note { font-size: 13px; color: var(--muted); }

/* Sections */
.section { padding: 104px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 680px; margin-bottom: 48px; }
.kicker { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-2); margin-bottom: 12px; }
.sec-head h2, .contact h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; }
.sec-lead { color: var(--muted); font-size: 17px; margin-top: 14px; }

/* Filters & cards */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip { background: var(--panel); border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; font-size: 14px; color: var(--muted); transition: all .15s; }
.chip:hover { color: var(--text); border-color: var(--line-2); }
.chip.active { color: #fff; border-color: var(--accent); background: rgba(59,130,246,0.15); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: var(--radius);
  background: var(--panel); border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, opacity .25s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(59,130,246,0.45); background: rgba(59,130,246,0.05); }
.card.hidden { display: none; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-2); }
.ico { font-family: var(--mono); font-size: 20px; color: var(--accent); }
.card h3 { font-size: 20px; font-weight: 700; }
.card p { color: var(--muted); font-size: 15px; }
.deliv { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.deliv li::before { content: "→"; color: var(--accent); margin-right: 8px; font-family: var(--mono); }
.stack { margin-top: auto !important; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px !important; color: var(--dim) !important; }

/* Process */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.step { position: relative; padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.step-n { font-family: var(--mono); font-size: 13px; color: var(--accent-2); display: block; margin-bottom: 18px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 36px; right: -18px; width: 18px; height: 1px; background: var(--line-2); }

/* Scope */
.scope { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #070a12; }
.scope-screen { position: relative; border-right: 1px solid var(--line); min-height: 380px; }
.scope-readout { position: absolute; top: 14px; left: 16px; right: 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-family: var(--mono); font-size: 12px; color: var(--accent-2); z-index: 2; pointer-events: none; }
#scope-canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; touch-action: pan-y; }
.scope-probe { position: absolute; bottom: 12px; left: 16px; font-family: var(--mono); font-size: 12px; color: var(--dim); pointer-events: none; }
.scope-ctrl { padding: 24px; display: flex; flex-direction: column; gap: 20px; }
.ctrl-group { display: flex; flex-direction: column; gap: 8px; }
.ctrl-label { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--dim); display: flex; justify-content: space-between; }
.ctrl-label b { color: var(--text); font-weight: 500; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button, .presets button { background: var(--panel); border: 1px solid var(--line); padding: 6px 11px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.seg button:hover, .presets button:hover { color: var(--text); border-color: var(--line-2); }
.seg button.active { color: #fff; border-color: var(--accent-2); background: rgba(45,212,191,0.12); }
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.presets button { text-align: left; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 4px; background: var(--line-2); outline-offset: 6px; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-2); border: 3px solid #070a12; box-shadow: 0 0 0 1px var(--accent-2); }
input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: var(--accent-2); border: 3px solid #070a12; }
#audio-btn[aria-pressed="true"] { border-color: var(--accent-2); color: var(--accent-2); }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { padding: 26px !important; }
.inline-link { color: var(--accent-2); text-decoration: underline; text-underline-offset: 3px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.plan.featured { border-color: rgba(59,130,246,0.55); background: linear-gradient(180deg, rgba(59,130,246,0.1), rgba(255,255,255,0.02)); }
.badge { position: absolute; top: -11px; left: 30px; font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; background: var(--grad); padding: 3px 10px; border-radius: 999px; }
.plan h3 { font-size: 22px; }
.plan-len { font-family: var(--mono); font-size: 13px; color: var(--accent-2); }
.plan > p:not(.plan-len) { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; font-size: 14px; }
.plan li::before { content: "✓"; color: var(--ok); margin-right: 10px; }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 0 20px; transition: border-color .15s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--accent-2); font-size: 18px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

/* Contact */
.contact { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.email-box { margin-top: 32px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.email { font-family: var(--mono); font-size: 16px; color: var(--accent-2); word-break: break-all; }
.email:hover { text-decoration: underline; }
.form { display: grid; gap: 16px; padding: 28px; border: 1px solid var(--line-2); border-radius: var(--radius); background: rgba(5,7,13,0.6); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 500; }
.form input, .form select, .form textarea {
  font: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 9px; padding: 11px 13px; width: 100%; transition: border-color .15s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.2); }
.form .invalid { border-color: #ef4444; }
.form-note { font-size: 13px; color: var(--dim); text-align: center; }
.form-note.err { color: #f87171; }
.form-note.ok { color: var(--ok); }

/* Footer */
.footer { padding: 36px 0; border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; font-size: 14px; color: var(--dim); }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer nav a:hover { color: var(--text); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Tank Architect */
.arch {
  position: relative; border: 1px solid rgba(59,130,246,0.35); border-radius: 18px; padding: 36px;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(59,130,246,0.14), transparent 60%),
              radial-gradient(ellipse 50% 70% at 0% 100%, rgba(45,212,191,0.08), transparent 60%), var(--bg-2);
  box-shadow: 0 30px 80px rgba(0,0,0,0.35);
}
#arch { scroll-margin-top: 84px; }
.arch-intro { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 40px; align-items: center; }
.arch-intro h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; margin-bottom: 18px; }
.arch-points { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; color: var(--muted); }
.arch-points li::before { content: "\2713"; color: var(--accent-2); margin-right: 10px; font-weight: 700; }
.arch-privacy { margin-top: 14px; font-size: 13px; color: var(--dim); }
.arch-art { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.ring {
  --v: 0; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: radial-gradient(closest-side, var(--bg-2) 78%, transparent 79% 100%),
              conic-gradient(var(--accent-2) calc(var(--v) * 1%), rgba(255,255,255,0.08) 0);
}
.ring span { font-size: 38px; font-weight: 800; letter-spacing: -0.03em; }
.ring.big { width: 148px; height: 148px; }
.ring.big span { font-size: 44px; }
.mini-bars { display: grid; gap: 7px; width: 150px; }
.mini-bars i { display: block; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--accent-3), var(--accent-2)); width: var(--w); opacity: .8; }

.arch-progress { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.arch-progress i { display: block; height: 100%; background: var(--grad); transition: width .3s ease; }
.arch-count { font-family: var(--mono); font-size: 12px; color: var(--dim); margin: 12px 0 6px; }
.arch-q { border: 0; padding: 0; margin: 0; min-width: 0; }
.arch-q legend { font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; letter-spacing: -0.01em; padding: 0; margin-bottom: 6px; }
.arch-hint { color: var(--muted); font-size: 14px; }
.arch-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 20px; }
.arch-opt {
  position: relative; display: flex; gap: 12px; align-items: flex-start; cursor: pointer;
  padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--panel);
  transition: border-color .15s, background .15s, transform .15s;
}
.arch-opt:hover { border-color: rgba(59,130,246,0.6); transform: translateY(-1px); }
.arch-opt input { appearance: none; -webkit-appearance: none; width: 18px; height: 18px; margin: 2px 0 0; flex: none; border: 2px solid var(--line-2); border-radius: 50%; background: transparent; transition: all .15s; }
.arch-opt input[type="checkbox"] { border-radius: 5px; }
.arch-opt input:checked { border-color: var(--accent-2); background: var(--accent-2); box-shadow: inset 0 0 0 3px var(--bg-2); }
.arch-opt input:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.arch-opt:has(input:checked) { border-color: var(--accent-2); background: rgba(45,212,191,0.08); }
.arch-opt-text { display: flex; flex-direction: column; gap: 2px; }
.arch-opt-text b { font-weight: 600; }
.arch-opt-text small { color: var(--dim); font-size: 13px; line-height: 1.4; }
.arch-note { min-height: 20px; font-size: 13px; color: #fbbf24; margin-top: 8px; }
.arch-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.res-head { display: flex; gap: 32px; align-items: center; }
.res-head h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin: 2px 0 8px; }
.res-sum { color: var(--muted); font-size: 16px; max-width: 640px; }
.res-meta { font-family: var(--mono); font-size: 12px; color: var(--dim); margin-top: 10px; }
.res-dims { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 40px; margin: 32px 0 8px; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: rgba(5,7,13,0.5); }
.dim { display: grid; grid-template-columns: 120px 1fr 64px; gap: 12px; align-items: center; font-size: 14px; }
.dim-name { color: var(--muted); }
.dim-track { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.dim-track i { display: block; height: 100%; border-radius: 8px; transition: width .6s ease; }
.dim-track i.good { background: #22c55e; } .dim-track i.mid { background: #f59e0b; } .dim-track i.low { background: #ef4444; }
.dim-val { font-family: var(--mono); font-size: 13px; text-align: right; }
.res-block { margin-top: 34px; }
.res-block h4, .res-eng h4 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.res-ok { color: var(--ok); }
.risks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.risk { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.risk-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.risk p { color: var(--muted); font-size: 14px; margin-top: 4px; }
.sev { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; padding: 2px 8px; border-radius: 999px; }
.sev.crit { background: rgba(239,68,68,0.16); color: #fca5a5; }
.sev.high { background: rgba(245,158,11,0.16); color: #fcd34d; }
.sev.med { background: rgba(59,130,246,0.16); color: #93c5fd; }
.arch-list { display: grid; grid-template-columns: 150px 1fr; gap: 12px 20px; margin: 0; }
.arch-list dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent-2); padding-top: 3px; }
.arch-list dd { margin: 0; color: var(--text); }
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.road-col { padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.road-when { display: block; font-family: var(--mono); font-size: 12px; color: var(--accent-2); margin-bottom: 4px; }
.road-col ul { padding-left: 18px; margin: 10px 0 0; display: grid; gap: 8px; color: var(--muted); font-size: 14px; }
.res-eng { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 34px; padding: 26px; border-radius: 14px; border: 1px solid rgba(59,130,246,0.5); background: linear-gradient(180deg, rgba(59,130,246,0.1), rgba(255,255,255,0.02)); }
.res-eng > div > p:not(.kicker) { color: var(--muted); }
.res-effort { margin-top: 12px; font-family: var(--mono); font-size: 13px; color: var(--text) !important; }
.res-send { display: grid; gap: 10px; }
.res-send-sub { font-size: 13px; color: var(--dim); margin-top: -4px; }
.res-send input { font: inherit; font-size: 15px; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 9px; padding: 11px 13px; width: 100%; }
.res-send input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59,130,246,0.2); }
.res-send input.invalid { border-color: #ef4444; }
.res-send .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.res-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .cards, .plans { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step::after { display: none; }
  .scope { grid-template-columns: 1fr; }
  .scope-screen { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact { grid-template-columns: 1fr; gap: 36px; }
  .targets-grid { grid-template-columns: 1fr 1fr; }
  .target:nth-child(3) { border-left: 0; }
  .target:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(5,7,13,0.97); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-links .btn { margin-top: 12px; }
  .hero { padding: 56px 0 48px; }
  .lead { font-size: 16px; }
  .section { padding: 72px 0; }
  .cards, .plans, .steps { grid-template-columns: 1fr; }
  .form .row { grid-template-columns: 1fr; }
  .form { padding: 20px; }
  .scope-screen { min-height: 260px; }
  .term-body { min-height: 230px; font-size: 12px; }
  .t-val { font-size: 24px; }
  .target { padding: 20px 16px; }
}

@media (max-width: 1000px) {
  .arch-intro { grid-template-columns: 1fr; }
  .arch-art { display: none; }
  .res-dims, .res-eng { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .arch { padding: 22px 16px; border-radius: 14px; }
  .arch-opts { grid-template-columns: 1fr; }
  .res-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .dim { grid-template-columns: 100px 1fr 60px; }
  .arch-list { grid-template-columns: 1fr; gap: 4px; }
  .arch-list dd { margin-bottom: 12px; }
  .road { grid-template-columns: 1fr; }
  .res-eng { padding: 18px; }
}

/* Print / save as PDF: just the blueprint, on white */
@media print {
  body { background: #fff !important; color: #111 !important; }
  .nav, .hero, .targets, .footer, main > section:not(#architect), #architect .sec-head, .res-tools, .res-send, .skip { display: none !important; }
  #architect { padding: 0 !important; }
  .arch { border: 0; box-shadow: none; background: #fff !important; padding: 0; }
  .res-dims, .risk, .road-col, .res-eng { background: #fff !important; border-color: #ccc !important; break-inside: avoid; }
  .res-eng { grid-template-columns: 1fr; }
  .ring { background: radial-gradient(closest-side, #fff 78%, transparent 79% 100%), conic-gradient(#0d9488 calc(var(--v) * 1%), #e5e7eb 0) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ring span, .res-head h3, .arch-list dd, .res-effort { color: #111 !important; }
  .res-sum, .risk p, .road-col ul, .res-eng > div > p, .dim-name { color: #333 !important; }
  .dim-track, .sev { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

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