:root {
  --navy-950: #061433;
  --navy-900: #0b1f4d;
  --navy-800: #122d6b;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --sky-400: #38bdf8;
  --sky-300: #7dd3fc;
  --ice-50: #f4f8ff;
  --ice-100: #e8f0fe;
  --ice-200: #d4e3fc;
  --ink: #0f1b33;
  --ink-2: #3b4a66;
  --muted: #64748b;
  --white: #fff;
  --ok: #059669;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(11, 31, 77, 0.06), 0 8px 24px rgba(11, 31, 77, 0.08);
  --shadow-lg: 0 20px 50px rgba(6, 20, 51, 0.18);
  --font: "Inter", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --display: "Plus Jakarta Sans", var(--font);
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font: 16px/1.65 var(--font); color: var(--ink); background: var(--ice-50); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 0.88rem; }
.center { text-align: center; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 2px; border-radius: 6px; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; font: 600 0.98rem var(--font); padding: 12px 20px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, background 0.15s; text-decoration: none !important; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; }
.btn-primary { background: linear-gradient(135deg, var(--blue-600), var(--sky-400)); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.25); }
.btn-ghost-d { background: #fff; color: var(--blue-700); border-color: var(--ice-200); }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; border-radius: 10px; }
.full { width: 100%; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(6, 20, 51, 0.82); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font: 700 1rem var(--display); text-decoration: none !important; }
.logo { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: linear-gradient(135deg, var(--blue-600), var(--sky-400)); font-size: 0.85rem; letter-spacing: 0.02em; }
.links { display: flex; align-items: center; gap: 4px; }
.links a:not(.btn) { color: #c9d7f5; padding: 8px 12px; border-radius: 8px; font-weight: 500; font-size: 0.95rem; text-decoration: none; }
.links a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.links .btn { margin-left: 8px; }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; transition: 0.2s; }

/* hero */
.hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(1200px 600px at 85% -10%, rgba(56, 189, 248, 0.28), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(37, 99, 235, 0.45), transparent 60%), linear-gradient(180deg, var(--navy-950), var(--navy-900)); padding: 84px 0 96px; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(125, 211, 252, 0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 211, 252, 0.07) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.88rem; color: var(--sky-300); background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.25); padding: 6px 12px; border-radius: 999px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0.05); } }
.hero h1 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); font-weight: 800; margin: 18px 0 18px; }
.grad { background: linear-gradient(90deg, var(--sky-300), #93c5fd, #fff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 1.13rem; color: #c9d7f5; max-width: 60ch; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 36px; }
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 620px; }
.stats li { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 14px; padding: 12px 14px; }
.stats b { display: block; font: 800 1.6rem var(--display); color: #fff; }
.stats span { font-size: 0.82rem; color: #a9bde6; }
.term { background: rgba(6, 20, 51, 0.75); border: 1px solid rgba(125, 211, 252, 0.25); border-radius: 18px; box-shadow: var(--shadow-lg), 0 0 80px rgba(56, 189, 248, 0.15); overflow: hidden; transform: rotate(1.2deg); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; 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: 500 0.8rem var(--mono); color: #8aa3d6; }
.term pre { margin: 0; padding: 18px 20px 22px; font: 0.9rem/1.7 var(--mono); color: #dbe7ff; overflow-x: auto; }
.term k { color: var(--sky-300); }
.term s { color: #a5f3c5; text-decoration: none; }

/* sections */
.section { padding: 88px 0; }
.section.alt { background: linear-gradient(180deg, var(--ice-100), var(--ice-50)); }
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.sec-head.left { text-align: left; margin: 0 0 28px; }
.kicker { font: 700 0.8rem var(--display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-600); margin-bottom: 10px; }
.kicker.light { color: var(--sky-300); }
.sub { color: var(--ink-2); font-size: 1.05rem; }
.card { background: var(--white); border: 1px solid var(--ice-200); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }

/* tabs */
.tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 22px; flex-wrap: wrap; }
.tab { font: 600 0.98rem var(--font); padding: 12px 18px; border-radius: 12px; border: 1px solid var(--ice-200); background: #fff; color: var(--ink-2); cursor: pointer; }
.tab.active { background: var(--navy-900); color: #fff; border-color: var(--navy-900); box-shadow: 0 6px 18px rgba(11, 31, 77, 0.25); }
.tab .ic { margin-right: 4px; }
.demo-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.chat { display: flex; flex-direction: column; min-height: 560px; }
.chat-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.chat-top b { display: block; font-family: var(--display); }
.chat-top small { color: var(--muted); }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 0.9rem; color: var(--ink-2); cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 40px; height: 22px; border-radius: 99px; background: var(--ice-200); position: relative; transition: 0.2s; }
.switch span::after { content: ""; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: 0.2s; }
.switch input:checked + span { background: var(--blue-600); }
.switch input:checked + span::after { left: 21px; }
.switch input:focus-visible + span { outline: 3px solid var(--sky-400); outline-offset: 2px; }
.custom { background: var(--ice-50); border: 1px dashed var(--blue-500); border-radius: 12px; padding: 12px; margin-bottom: 12px; }
.custom label { font-size: 0.9rem; color: var(--ink-2); display: block; margin-bottom: 6px; }
textarea, input[type="search"], .ask input, select { width: 100%; font: 0.98rem var(--font); color: var(--ink); background: #fff; border: 1px solid var(--ice-200); border-radius: 12px; padding: 12px 14px; outline: none; transition: border 0.15s, box-shadow 0.15s; }
textarea:focus, input:focus, select:focus { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); }
textarea { resize: vertical; }
select { width: auto; padding: 8px 12px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.msgs { flex: 1; overflow-y: auto; max-height: 420px; padding: 6px 2px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 88%; padding: 12px 16px; border-radius: 16px; font-size: 0.97rem; animation: pop 0.2s ease-out; }
.msg p { margin: 0 0 0.6em; }
.msg p:last-child { margin: 0; }
.msg ul { margin: 0.2em 0 0.6em; padding-left: 1.2em; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } }
.msg.bot { background: var(--ice-100); border-top-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--blue-600); color: #fff; border-top-right-radius: 4px; align-self: flex-end; }
.msg.err { background: #fef2f2; color: var(--bad); }
.msg .cite { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; margin: 0 1px; border-radius: 6px; background: var(--blue-600); color: #fff; font: 600 0.72rem var(--mono); vertical-align: 2px; cursor: pointer; border: 0; }
.msg .meta { font-size: 0.75rem; color: var(--muted); margin-top: 6px; }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500); margin-right: 3px; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.chips button { font: 500 0.86rem var(--font); padding: 7px 12px; border-radius: 999px; border: 1px solid var(--ice-200); background: #fff; color: var(--blue-700); cursor: pointer; transition: 0.15s; }
.chips button:hover { border-color: var(--blue-500); background: var(--ice-50); }
.chips button.on { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }
.chips-tight { margin-top: 0; }
.ask { display: flex; gap: 8px; }
.side h3 { margin-bottom: 4px; }
.sources { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; counter-reset: s; }
.sources li.src { border: 1px solid var(--ice-200); border-radius: 12px; padding: 10px 12px; font-size: 0.86rem; transition: 0.2s; }
.sources li.src.flash { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15); }
.src-h { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; }
.src-h .n { color: #fff; background: var(--blue-600); border-radius: 6px; font: 600 0.72rem var(--mono); padding: 2px 6px; margin-right: 6px; }
.src-h .sc { font: 500 0.75rem var(--mono); color: var(--muted); white-space: nowrap; }
.bar { height: 4px; background: var(--ice-100); border-radius: 4px; margin: 6px 0; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-600), var(--sky-400)); }
.src p { margin: 0; color: var(--ink-2); }
details.how { margin-top: 10px; border-top: 1px solid var(--ice-200); padding-top: 10px; }
details.how summary { cursor: pointer; font-weight: 600; color: var(--blue-700); }
.flow { padding-left: 1.2em; font-size: 0.9rem; color: var(--ink-2); }
.flow li { margin: 6px 0; }

/* triage result */
.result { min-height: 420px; }
.empty { text-align: center; color: var(--ink-2); padding: 40px 10px; }
.empty-ic { font-size: 2.4rem; }
.t-head { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pill { font: 600 0.78rem var(--font); padding: 5px 10px; border-radius: 999px; background: var(--ice-100); color: var(--navy-800); text-transform: capitalize; }
.pill.high, .pill.angry, .pill.negative { background: #fff7ed; color: var(--warn); }
.pill.critical { background: #fef2f2; color: var(--bad); }
.pill.low, .pill.positive { background: #ecfdf5; color: var(--ok); }
.t-sum { font-weight: 600; margin-bottom: 14px; }
.score { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 0.88rem; }
.score .bar { flex: 1; height: 8px; margin: 0; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 0.9rem; margin-bottom: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.reply { background: var(--ice-50); border-left: 3px solid var(--blue-600); border-radius: 8px; padding: 12px 14px; font-size: 0.95rem; margin-bottom: 12px; }
.json { background: var(--navy-950); color: #dbe7ff; border-radius: 12px; padding: 14px; font: 0.8rem/1.6 var(--mono); max-height: 320px; overflow: auto; white-space: pre; }

/* how-grid */
.how-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.how-card { background: #fff; border: 1px solid var(--ice-200); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform 0.2s, box-shadow 0.2s; }
.how-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.how-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: linear-gradient(135deg, var(--ice-100), var(--ice-200)); margin-bottom: 12px; }
.how-card > p { color: var(--ink-2); }
.how-card ul { padding-left: 1.1em; margin: 0 0 14px; font-size: 0.92rem; color: var(--ink-2); }
.how-card li { margin: 6px 0; }
.how-card b { color: var(--ink); }
.ex { margin-top: auto; font-size: 0.8rem; color: var(--blue-700); background: var(--ice-50); border-radius: 8px; padding: 8px 10px; }
.pipeline { margin-top: 24px; }
.pipe { display: flex; align-items: stretch; gap: 8px; overflow-x: auto; padding: 6px 2px 10px; }
.pnode { flex: 1; min-width: 118px; background: var(--ice-50); border: 1px solid var(--ice-200); border-radius: 12px; padding: 12px; text-align: center; }
.pnode b { display: block; font-family: var(--display); }
.pnode span { font-size: 0.78rem; color: var(--muted); }
.pnode.hot { background: linear-gradient(135deg, var(--blue-600), var(--sky-400)); border-color: transparent; color: #fff; }
.pnode.hot span { color: #e0f2fe; }
.parrow { align-self: center; color: var(--blue-500); font-weight: 700; }

/* projects */
.filters { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.filters .chips { margin: 0; }
.filters input { max-width: 320px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pcard { text-align: left; font: inherit; color: inherit; background: #fff; border: 1px solid var(--ice-200); border-radius: var(--radius); padding: 0; box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; overflow: hidden; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue-500); }
.pc-top { height: 6px; background: linear-gradient(90deg, var(--blue-600), var(--sky-400)); }
.pcard[data-cat="telegram"] .pc-top { background: linear-gradient(90deg, #0284c7, #22d3ee); }
.pcard[data-cat="web"] .pc-top { background: linear-gradient(90deg, #4f46e5, #60a5fa); }
.pcard[data-cat="desktop"] .pc-top, .pcard[data-cat="iot"] .pc-top, .pcard[data-cat="devops"] .pc-top { background: linear-gradient(90deg, var(--navy-800), var(--blue-500)); }
.pc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.pc-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 0.78rem; color: var(--muted); }
.badge { font: 600 0.72rem var(--font); padding: 3px 8px; border-radius: 999px; background: var(--ice-100); color: var(--navy-800); }
.badge.live { background: #ecfdf5; color: var(--ok); }
.badge.live::before { content: "● "; }
.badge.feat { background: linear-gradient(135deg, var(--blue-600), var(--sky-400)); color: #fff; }
.pcard h3 { margin-bottom: 6px; }
.pcard p { color: var(--ink-2); font-size: 0.93rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.tags span { font: 500 0.74rem var(--mono); background: var(--ice-50); border: 1px solid var(--ice-200); color: var(--navy-800); padding: 3px 7px; border-radius: 6px; }
.more { font-size: 0.85rem; color: var(--blue-600); font-weight: 600; margin-top: 12px; }

/* modal */
.modal { width: min(760px, 94vw); max-height: 88vh; border: 0; border-radius: 20px; padding: 0; box-shadow: var(--shadow-lg); color: var(--ink); background: #fff; overflow-y: auto; }
.modal::backdrop { background: rgba(6, 20, 51, 0.65); }
.modal[open] { animation: pop 0.2s ease-out; }
.m-close { position: sticky; float: right; top: 12px; margin: 12px 12px 0 0; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.9); cursor: pointer; font-size: 1rem; z-index: 2; }
.m-hero { background: linear-gradient(135deg, var(--navy-900), var(--blue-700)); color: #fff; padding: 28px 28px 24px; }
.m-hero p { color: #c9d7f5; margin: 0; }
.m-hero .pc-meta { color: #a9bde6; }
.m-body { padding: 24px 28px 28px; }
.m-body h4 { font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-600); margin: 18px 0 6px; }
.m-body ul { padding-left: 1.2em; margin: 0; }
.m-body li { margin: 5px 0; }
.ai-box { background: var(--ice-50); border: 1px solid var(--ice-200); border-left: 4px solid var(--blue-600); border-radius: 10px; padding: 12px 14px; }
.m-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.note { font-size: 0.86rem; color: var(--muted); margin-top: 12px; }

/* experience */
.two { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--blue-600), var(--sky-300)); }
.timeline li { position: relative; padding: 0 0 26px 34px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--blue-600); }
.when { font: 600 0.8rem var(--mono); color: var(--blue-600); }
.timeline h3 { margin: 4px 0 2px; }
.org { font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.timeline p:last-child { color: var(--ink-2); font-size: 0.95rem; }
.skills { display: grid; gap: 12px; }
.skill { background: #fff; border: 1px solid var(--ice-200); border-radius: 14px; padding: 14px 16px; }
.skill h4 { font-size: 0.95rem; margin-bottom: 4px; color: var(--navy-900); }
.skill p { margin: 0; color: var(--ink-2); font-size: 0.92rem; }

/* contact */
.contact { color: #fff; background: radial-gradient(800px 400px at 90% 0%, rgba(56, 189, 248, 0.3), transparent 60%), linear-gradient(135deg, var(--navy-950), var(--navy-800)); }
.contact-in { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.contact p { color: #c9d7f5; font-size: 1.08rem; }
.contact-card { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; padding: 16px; display: grid; gap: 8px; }
.c-row { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 12px; color: #fff; text-decoration: none !important; }
.c-row:hover { background: rgba(255, 255, 255, 0.08); }
.c-row span { font-size: 1.3rem; }
.c-row small { display: block; color: #a9bde6; font-size: 0.78rem; }
.foot { background: var(--navy-950); color: #8aa3d6; font-size: 0.88rem; padding: 22px 0; }
.foot-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot a { color: var(--sky-300); }

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

/* responsive */
@media (max-width: 1024px) {
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero-in { grid-template-columns: 1fr; }
  .hero-card { max-width: 520px; }
}
@media (max-width: 860px) {
  .burger { display: block; }
  .links { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--navy-950); padding: 12px 4vw 18px; display: none; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .links.open { display: flex; }
  .links .btn { margin: 8px 0 0; }
  .demo-grid, .two, .contact-in { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 64px; }
}
@media (max-width: 600px) {
  .grid, .how-grid { grid-template-columns: 1fr; }
  .filters input { max-width: none; }
  .msg { max-width: 96%; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: 6px; }
  .term { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
