:root {
  --navy: #070b16; --navy2: #0d1426; --navy3: #141d35; --line: #22304f;
  --ink: #eaf0fa; --dim: #93a1bb; --dim2: #6b7896;
  --teal: #5eead4; --blue: #60a5fa; --violet: #a78bfa; --gold: #fcd34d;
  --green: #4ade80; --amber: #fbbf24; --red: #f87171;
  --grad: linear-gradient(120deg, #5eead4 0%, #60a5fa 45%, #a78bfa 100%);
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--navy); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kicker { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; font-weight: 700; color: var(--teal); }
h1, h2, h3 { letter-spacing: -.025em; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; margin-top: 12px; }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
.lead { color: var(--dim); font-size: clamp(17px, 2vw, 20px); max-width: 720px; margin-top: 18px; }
section { padding: 96px 0; position: relative; }
section + section { border-top: 1px solid rgba(34,48,79,.55); }

/* backdrop */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(139,92,246,.16), transparent 60%),
    radial-gradient(800px 600px at -10% 20%, rgba(94,234,212,.10), transparent 60%),
    var(--navy); }
.bg::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(147,161,187,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(147,161,187,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(to bottom, #000 0%, transparent 70%); -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%); }

/* nav */
nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7,11,22,.72); border-bottom: 1px solid rgba(34,48,79,.6); }
nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.brand img { width: 38px; height: 22px; }
nav .links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; color: var(--dim); }
nav .links a { text-decoration: none; }
nav .links a:hover { color: var(--ink); }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 12px; font-weight: 650; font-size: 15px; text-decoration: none; border: 1px solid var(--line); transition: transform .15s, border-color .15s, background .15s; }
.btn:hover { transform: translateY(-1px); border-color: #3a4d78; }
.btn.primary { background: var(--grad); color: #06101f; border: 0; }
.btn.small { padding: 8px 14px; font-size: 14px; }

/* hero */
.hero { padding: 104px 0 88px; border: 0; }
.mark { width: 120px; height: 70px; filter: drop-shadow(0 0 26px rgba(94,234,212,.35)); }
.mark path { stroke-dasharray: 420; stroke-dashoffset: 420; animation: draw 2.4s cubic-bezier(.6,.1,.2,1) .2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero h1 { font-size: clamp(40px, 7vw, 78px); font-weight: 850; margin-top: 22px; max-width: 980px; }
.hero .lead { font-size: clamp(18px, 2.2vw, 22px); max-width: 760px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border-radius: 999px; background: rgba(20,29,53,.7); border: 1px solid var(--line); color: var(--dim); font-size: 14px; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }

/* cards */
.grid { display: grid; gap: 18px; margin-top: 44px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: linear-gradient(180deg, rgba(20,29,53,.85), rgba(13,20,38,.85)); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.card p { color: var(--dim); margin-top: 10px; font-size: 15.5px; }
.ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; }
.ico svg { width: 22px; height: 22px; }
.num { font-size: 12px; letter-spacing: .14em; font-weight: 700; color: var(--dim2); margin-bottom: 6px; }
.tag { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .02em; }
.tag.ok { background: rgba(74,222,128,.12); color: var(--green); }
.tag.pre { background: rgba(96,165,250,.13); color: var(--blue); }
.tag.soon { background: rgba(167,139,250,.14); color: var(--violet); }

/* problem */
.flags { display: grid; gap: 12px; margin-top: 40px; grid-template-columns: repeat(2, 1fr); }
.flag { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: rgba(248,113,113,.06); border: 1px solid rgba(248,113,113,.22); }
.flag svg { width: 22px; height: 22px; flex: none; color: var(--red); margin-top: 2px; }
.flag small { display: block; color: var(--dim2); font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 13px; margin-top: 3px; }
.callout { margin-top: 28px; padding: 22px 24px; border-radius: 16px; border: 1px solid rgba(252,211,77,.28); background: rgba(252,211,77,.06); color: var(--dim); max-width: 860px; }
.callout b { color: var(--gold); }

/* flow */
.newmac { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: center; margin-top: 44px; padding: 30px; border-radius: 18px; border: 1px solid rgba(94,234,212,.35); background: linear-gradient(135deg, rgba(94,234,212,.07), rgba(13,20,38,.7)); }
.newmac .num { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--teal); }
.newmac h3 { font-size: 24px; margin-top: 8px; }
.newmac p { color: var(--dim); margin-top: 10px; font-size: 15.5px; }
.newmac code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: .9em; color: var(--teal); background: rgba(94,234,212,.08); padding: 1px 6px; border-radius: 6px; }
.newmac pre { margin: 0; padding: 18px 20px; border-radius: 12px; background: #070b16; border: 1px solid var(--line); font: 13.5px/1.7 "SF Mono", Menlo, Consolas, monospace; color: #e6edf7; overflow-x: auto; }
.newmac pre .c { color: var(--dim); }
@media (max-width: 860px) { .newmac { grid-template-columns: 1fr; padding: 22px; } }
.steps { counter-reset: s; display: grid; gap: 18px; margin-top: 44px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding: 26px; border-radius: 18px; border: 1px solid var(--line); background: rgba(13,20,38,.7); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--grad); color: #06101f; font-weight: 800; margin-bottom: 16px; }
.step p { color: var(--dim); margin-top: 10px; font-size: 15.5px; }
.step code, .card code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: .9em; color: var(--teal); background: rgba(94,234,212,.08); padding: 1px 6px; border-radius: 6px; }

/* demo */
.video { margin-top: 40px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #000; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(94,234,212,.06); }
.video video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; }
.note { color: var(--dim2); font-size: 14px; margin-top: 14px; }

/* three feature videos */
.vids { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.vid .video { margin-top: 0; border-radius: 16px; }
.vid .num { margin: 16px 0 0; }
.vid h3 { margin-top: 4px; }
.vid p { color: var(--dim); font-size: 15.5px; margin-top: 8px; }
@media (max-width: 900px) { .vids { grid-template-columns: 1fr; gap: 34px; } }

/* principles */
.principles { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 40px; }
.principles li { display: flex; gap: 14px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(34,48,79,.7); color: var(--dim); }
.principles li b { color: var(--ink); font-weight: 650; }
.principles li::before { content: ""; flex: none; width: 18px; height: 10px; background: url("/assets/logo.svg") center/contain no-repeat; transform: translateY(1px); }

/* audiences */
.who h3 { display: flex; align-items: center; gap: 10px; }
.who ul { margin: 16px 0 0; padding: 0; list-style: none; color: var(--dim); }
.who li { padding: 7px 0 7px 22px; position: relative; font-size: 15.5px; }
.who li::before { content: "→"; position: absolute; left: 0; color: var(--teal); }

/* final cta */
.final { text-align: center; padding: 110px 0; }
.final .mark { width: 96px; height: 56px; }
.final .lead { margin: 18px auto 0; }
.final .cta { justify-content: center; }

footer { border-top: 1px solid rgba(34,48,79,.6); padding: 34px 0 44px; color: var(--dim2); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
footer .sp { flex: 1; }


/* ---------- live stage (hero demo) ---------- */
.stage { position: relative; margin-top: 48px; display: grid; grid-template-columns: 1fr 1.08fr; gap: 18px; }
.win { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid #2e3f63; background: rgba(9,13,25,.96); box-shadow: 0 30px 90px rgba(0,0,0,.5); min-width: 0; }
.win .bar { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: #111830; border-bottom: 1px solid var(--line); }
.win .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2b3758; }
.win .bar i:nth-child(1) { background: #ff5f57; } .win .bar i:nth-child(2) { background: #febc2e; } .win .bar i:nth-child(3) { background: #28c840; }
.win .bar span { margin-left: 10px; color: var(--dim2); font: 12.5px "SF Mono", Menlo, Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.term { padding: 18px 18px 22px; font: 13.5px/1.62 "SF Mono", Menlo, Consolas, monospace; color: #cdd6e6; min-height: 420px; }
.term > div { opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.term > div.on { opacity: 1; transform: none; }
.term .you { color: var(--ink); } .term .you::before { content: "› "; color: var(--teal); font-weight: 700; }
.term .tool { color: var(--violet); margin-top: 8px; word-break: break-word; } .term .tool::before { content: "⏺ "; }
.term .out { color: #8e9ab3; padding-left: 20px; }
.term .ok { color: var(--green); } .term .warn { color: var(--amber); font-weight: 700; }
.term .say { color: var(--ink); margin-top: 10px; } .term .say::before { content: "⏺ "; color: var(--teal); }
.typing::after { content: ""; display: inline-block; width: 8px; height: 1.05em; background: var(--teal); margin-left: 2px; vertical-align: -2px; }

.con { background: #f5f7fb; color: #111827; }
.con .bar { background: #e9edf4; border-color: #dfe5ee; } .con .bar span { color: #6b7896; }
.con .top { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff; border-bottom: 1px solid #e3e8f0; font-size: 13px; }
.con .top b { font-size: 14px; } .con .top .sp { flex: 1; }
.light-pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #e3e8f0; border-radius: 999px; padding: 3px 10px; font-weight: 700; font-size: 12px; transition: all .4s; }
.light-pill i { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; transition: background .4s; }
.light-pill.green i { background: #22c55e; }
.todo-btn { border: 1px solid #e3e8f0; border-radius: 8px; padding: 4px 10px; font-weight: 650; font-size: 12px; background: #fff; transition: all .3s; }
.todo-btn.hot { border-color: #fecaca; background: #fef2f2; color: #b91c1c; animation: ring 1.1s ease-in-out infinite; }
@keyframes ring { 50% { box-shadow: 0 0 0 6px rgba(239,68,68,.15); } }
.canvas { position: relative; height: 382px; background-image: radial-gradient(#d6dce7 1px, transparent 1px); background-size: 18px 18px; overflow: hidden; }
.canvas svg.edges { position: absolute; inset: 0; width: 100%; height: 100%; }
.edges path { fill: none; stroke: #c3cbd9; stroke-width: 1.6; }
.edges path.new { stroke: #8b5cf6; stroke-dasharray: 5 5; opacity: 0; transition: opacity .5s; }
.edges path.new.on { opacity: 1; }
.nd { position: absolute; width: 132px; padding: 8px 10px; border-radius: 11px; background: #fff; border: 1px solid #e3e8f0; box-shadow: 0 4px 14px rgba(17,24,39,.06); font-size: 11px; color: #5b6577; }
.nd b { display: flex; align-items: center; gap: 5px; font-size: 12.5px; color: #111827; }
.nd b i { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #22c55e; }
.nd b i.a { background: #f59e0b; } .nd b i.r { background: #ef4444; }
.nd .bd { position: absolute; top: -8px; right: 8px; font-size: 8.5px; font-weight: 800; letter-spacing: .05em; padding: 2px 6px; border-radius: 99px; background: #dcfce7; color: #166534; text-transform: uppercase; transition: all .4s; }
.nd .bd.t { background: #ede9fe; color: #5b21b6; }
.nd.pop { opacity: 0; transform: scale(.8); transition: opacity .45s, transform .45s cubic-bezier(.2,1.4,.4,1); border: 1.5px dashed #8b5cf6; }
.nd.pop.on { opacity: 1; transform: none; }
.nd.pop.done { border: 1px solid #e3e8f0; }
.panel-todo { position: absolute; top: 8px; right: 8px; bottom: 8px; width: 74%; background: #fff; border-radius: 12px; border: 1px solid #e3e8f0; box-shadow: 0 20px 50px rgba(17,24,39,.18); padding: 14px 16px; transform: translateX(110%); transition: transform .55s cubic-bezier(.2,.9,.2,1); font-size: 12px; color: #374151; }
.panel-todo.on { transform: none; }
.panel-todo h4 { margin: 0; font-size: 15px; color: #111827; }
.panel-todo .ag { color: #6b7280; font-size: 11.5px; margin-top: 2px; } .panel-todo .ag b { color: #111827; }
.panel-todo .item { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef1f6; }
.panel-todo .item h5 { margin: 0; font-size: 13px; color: #111827; display: flex; align-items: center; gap: 7px; }
.panel-todo .item h5 i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; transition: background .4s; }
.panel-todo ol { margin: 6px 0 0; padding-left: 18px; } .panel-todo li { margin: 2px 0; }
.ubtn { display: inline-block; margin-top: 9px; background: #4f46e5; color: #fff; border-radius: 7px; padding: 6px 11px; font-weight: 650; font-size: 11.5px; transition: all .3s; }
.ubtn.press { transform: scale(.95); background: #4338ca; }
.ubtn.done { background: #16a34a; }
.cursor { position: absolute; width: 20px; height: 20px; z-index: 6; pointer-events: none; opacity: 0; transition: left .9s cubic-bezier(.5,0,.2,1), top .9s cubic-bezier(.5,0,.2,1), opacity .3s; }
.localpage { position: absolute; left: 6%; right: 6%; bottom: 18px; z-index: 5; border-radius: 12px; overflow: hidden; border: 1px solid #2e3f63; background: #0d1426; color: var(--ink); box-shadow: 0 30px 70px rgba(0,0,0,.45); opacity: 0; transform: translateY(20px) scale(.97); transition: all .45s cubic-bezier(.2,.9,.2,1); pointer-events: none; }
.localpage.on { opacity: 1; transform: none; }
.localpage .bar { height: 32px; background: #111830; }
.localpage .body { padding: 14px 16px; font-size: 12.5px; }
.localpage .body b { font-size: 14px; } .localpage .body p { color: var(--dim); margin-top: 3px; font-size: 12px; }
.localpage .field { margin-top: 10px; border: 1px solid #2e3f63; border-radius: 8px; padding: 8px 10px; font: 13px "SF Mono", Menlo, monospace; color: var(--teal); min-height: 34px; letter-spacing: .12em; }
.localpage .save { display: inline-block; margin-top: 10px; background: var(--grad); color: #06101f; font-weight: 750; border-radius: 7px; padding: 6px 12px; font-size: 12px; transition: transform .2s; }
.localpage .save.press { transform: scale(.94); }
.vaultchip { position: absolute; right: 12px; bottom: 12px; z-index: 4; display: flex; align-items: center; gap: 8px; border-radius: 999px; padding: 6px 12px 6px 8px; background: #111827; color: #fff; font-size: 12px; font-weight: 650; box-shadow: 0 8px 24px rgba(17,24,39,.3); }
.vaultchip svg { width: 18px; height: 18px; color: var(--violet); }
.vaultchip.bump { animation: bump .6s; }
@keyframes bump { 40% { transform: scale(1.15); box-shadow: 0 0 0 8px rgba(167,139,250,.25); } }
.flykey { position: absolute; z-index: 7; width: 22px; height: 22px; color: var(--gold); pointer-events: none; opacity: 0; filter: drop-shadow(0 0 8px rgba(252,211,77,.8)); }
.toast { position: absolute; left: 12px; bottom: 12px; z-index: 4; background: #fff; border: 1px solid #e3e8f0; border-left: 3px solid #16a34a; border-radius: 9px; padding: 7px 10px; font-size: 11.5px; box-shadow: 0 8px 24px rgba(17,24,39,.12); opacity: 0; transform: translateY(10px); transition: all .4s; }
.toast.on { opacity: 1; transform: none; }
.stage-cap { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; color: var(--dim); font-size: 14.5px; }
.stage-cap span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-right: 8px; vertical-align: 2px; }
.replay { margin-left: auto; color: var(--dim2); font-size: 13px; cursor: pointer; background: none; border: 0; padding: 0; font-family: inherit; }
.replay:hover { color: var(--ink); }

/* ---------- console section ---------- */
.cshow { display: grid; grid-template-columns: 1.35fr 1fr; gap: 18px; margin-top: 44px; align-items: start; }
.bigmap .canvas { height: 520px; }
.bigmap .nd { width: 150px; }
.bigmap .edges path { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); transition: stroke-dashoffset 1.6s ease; }
.bigmap .edges path.runs { stroke: #5eaaa0; stroke-dasharray: 4 5; stroke-dashoffset: 0; opacity: 0; transition: opacity 1s 1s; }
.in .bigmap .edges path { stroke-dashoffset: 0; }
.in .bigmap .edges path.runs { opacity: 1; }
.bigmap .nd { opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s; }
.in .bigmap .nd { opacity: 1; transform: none; }
.lbl { position: absolute; font-size: 9.5px; color: #3f8f84; background: #f5f7fb; padding: 0 4px; opacity: 0; transition: opacity .6s 1.6s; }
.in .lbl { opacity: 1; }
.todo-card { background: #fff; color: #374151; border-radius: 16px; padding: 20px 22px; font-size: 13.5px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.todo-card h4 { margin: 0; font-size: 18px; color: #111827; }
.todo-card .ag { color: #6b7280; font-size: 13px; margin-top: 3px; } .todo-card .ag b { color: #111827; }
.todo-card .ag .live { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; margin-right: 6px; box-shadow: 0 0 0 0 rgba(34,197,94,.5); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(34,197,94,0); } }
.todo-card .item { margin-top: 14px; padding-top: 14px; border-top: 1px solid #eef1f6; opacity: 0; transform: translateX(16px); transition: opacity .5s, transform .5s; }
.in .todo-card .item { opacity: 1; transform: none; }
.todo-card .item h5 { margin: 0; font-size: 14.5px; color: #111827; }
.todo-card .item h5 i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; margin-right: 8px; vertical-align: 1px; }
.todo-card .item h5 .unv { margin-left: 6px; vertical-align: 2px; }
.todo-card .item h5 i.a { background: #f59e0b; } .todo-card .item h5 i.n { background: #9ca3af; }
.todo-card .item p { color: #4b5563; margin-top: 5px; font-size: 13px; }
.unv { font-size: 11px; font-weight: 650; color: #b45309; background: #fef3c7; border-radius: 6px; padding: 2px 7px; }
.todo-card .ubtn { font-size: 12.5px; padding: 7px 12px; }
.ghost { display: inline-block; margin: 9px 6px 0 0; border: 1px solid #e3e8f0; border-radius: 7px; padding: 6px 11px; font-weight: 650; font-size: 12.5px; color: #111827; }
.feed { margin-top: 18px; }
.feed h6 { margin: 0 0 8px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim2); }
.ev { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid rgba(34,48,79,.7); font-size: 14px; color: var(--dim); opacity: 0; transition: opacity .5s; }
.in .ev { opacity: 1; }
.ev i { width: 8px; height: 8px; border-radius: 50%; margin-top: 7px; flex: none; background: var(--violet); }
.ev i.g { background: var(--green); } .ev i.n { background: var(--dim2); }
.ev small { display: block; color: var(--dim2); font-size: 12px; }

/* ---------- secrets diagram ---------- */
.flowd { margin-top: 44px; border: 1px solid var(--line); border-radius: 20px; background: rgba(13,20,38,.6); padding: 10px; }
.flowd svg { display: block; width: 100%; height: auto; }
.flowd .box { fill: #0f1830; stroke: #2e3f63; stroke-width: 1.5; }
.flowd .t1 { fill: #eaf0fa; font: 700 17px -apple-system, "Segoe UI", sans-serif; }
.flowd .t2 { fill: #93a1bb; font: 13px -apple-system, "Segoe UI", sans-serif; }
.flowd .t3 { font: 600 12.5px "SF Mono", Menlo, monospace; }
.flowd .wire { fill: none; stroke-width: 2; stroke-dasharray: 6 7; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -26; } }
.legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.legend div { border-radius: 14px; border: 1px solid var(--line); padding: 16px 18px; background: rgba(13,20,38,.7); color: var(--dim); font-size: 14.5px; }
.legend b { display: block; color: var(--ink); margin-bottom: 4px; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .8s ease, transform .8s ease; }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .stage, .cshow { grid-template-columns: 1fr; }
  .term { min-height: 0; }
  .legend { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .term { font-size: 12px; }
  .canvas { height: 340px; }
  .bigmap .canvas { height: 440px; }
  .bigmap .nd { width: 31%; font-size: 9.5px; padding: 7px 8px; }
  .bigmap .nd b { font-size: 11px; }
  .bigmap .top .light-pill { display: none; }
  .panel-todo { width: 92%; }
}
@media (prefers-reduced-motion: reduce) {
  .rv, .bigmap .nd, .todo-card .item, .ev { opacity: 1 !important; transform: none !important; transition: none !important; }
  .bigmap .edges path { stroke-dashoffset: 0 !important; transition: none; }
  .flowd .wire, .todo-btn.hot, .todo-card .ag .live { animation: none; }
}

@media (max-width: 900px) {
  .g3, .g4, .steps { grid-template-columns: 1fr 1fr; }
  nav .links a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  section { padding: 72px 0; }
  .hero { padding: 72px 0 64px; }
  .g2, .g3, .g4, .steps, .flags, .principles { grid-template-columns: 1fr; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .mark path { animation: none; stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* pages: pricing, marketplace, community */
nav .links a.on { color: var(--ink); }
.page-hero { padding: 88px 0 56px; border: 0; }
.page-hero h1 { font-size: clamp(36px, 5.6vw, 60px); font-weight: 850; margin-top: 18px; max-width: 900px; }
.tiers { width: 100%; border-collapse: collapse; margin-top: 36px; font-size: 16px; }
.tiers th, .tiers td { text-align: left; padding: 16px 14px; border-bottom: 1px solid var(--line); }
.tiers th { color: var(--dim2); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; }
.tiers td b { font-size: 22px; }
.tiers tr.hl td { background: rgba(94,234,212,.05); }
.price { font-size: clamp(44px, 6vw, 64px); font-weight: 850; letter-spacing: -.03em; margin-top: 10px; }
.price small { font-size: 18px; color: var(--dim); font-weight: 600; letter-spacing: 0; }
.ex { color: var(--dim); font-size: 15px; margin-top: 8px; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 24px; color: var(--dim); font-size: 15.5px; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.checks code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: .9em; color: var(--teal); }
.card .btn { margin-top: 20px; }
.calc { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; color: var(--dim); }
.calc input[type=range] { flex: 1 1 260px; accent-color: #5eead4; }
.calc output { color: var(--ink); font-weight: 800; font-size: 22px; margin-left: 6px; }
.calc #per { margin-left: -8px; }
.toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.toggle button { background: transparent; color: var(--dim); border: 0; padding: 8px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.toggle button.on { background: var(--navy3); color: var(--ink); }
.faq { margin-top: 36px; display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; background: rgba(13,20,38,.7); }
.faq summary { cursor: pointer; font-weight: 650; }
.faq p { color: var(--dim); margin: 10px 0 0; font-size: 15.5px; }
.flow { counter-reset: f; list-style: none; padding: 0; margin: 40px 0 0; display: grid; gap: 14px; }
.flow li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(13,20,38,.7); }
.flow li::before { counter-increment: f; content: counter(f); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #06101f; font-weight: 800; }
.flow b { color: var(--ink); }
.flow p { color: var(--dim); margin: 6px 0 0; font-size: 15.5px; }
footer nav.fl { position: static; backdrop-filter: none; -webkit-backdrop-filter: none; background: none; border: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer nav.fl a { color: var(--dim); text-decoration: none; }
footer nav.fl a:hover { color: var(--ink); }

/* legal pages */
.legal { max-width: 780px; }
.legal h2 { font-size: 26px; margin-top: 44px; }
.legal h3 { font-size: 18px; margin-top: 26px; }
.legal p, .legal li { color: var(--dim); font-size: 16px; }
.legal li { margin: 6px 0; }
.legal b, .legal strong { color: var(--ink); }
.legal a { color: var(--teal); }
.legal table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 14.5px; }
.legal th, .legal td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); color: var(--dim); vertical-align: top; }
.legal th { color: var(--ink); }
.legal .todo { background: rgba(251,191,36,.15); color: var(--amber); padding: 0 4px; border-radius: 4px; }
.updated { color: var(--dim2); font-size: 14px; margin-top: 10px; }

/* download page */
.install { position: relative; margin-top: 14px; }
.install pre { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 14.5px; color: var(--teal); background: rgba(4,8,18,.7); border: 1px solid var(--line); border-radius: 12px; padding: 16px 92px 16px 18px; overflow-x: auto; white-space: pre; }
.install button { position: absolute; top: 9px; right: 9px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink, #e7ecf5); background: rgba(255,255,255,.07); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.install button:hover { background: rgba(255,255,255,.13); }
.files { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 14.5px; }
.files th, .files td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.files th { color: var(--dim); font-weight: 600; }
.files code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: 12px; color: var(--dim); word-break: break-all; }
@media (max-width: 720px) { .files .sha { display: none; } }

/* guide page: one card per task, a short screen recording and its steps */
.gnav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.gcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
.gcard { background: linear-gradient(180deg, rgba(20,29,53,.85), rgba(13,20,38,.85)); border: 1px solid var(--line); border-radius: 18px; padding: 14px 14px 24px; min-width: 0; }
.gcard .video { margin-top: 0; border-radius: 12px; box-shadow: none; }
.gcard .video video { aspect-ratio: 16/10; }
.gcard .num { margin: 18px 10px 0; }
.gcard h3 { margin: 4px 10px 0; }
.gcard ol { margin: 14px 10px 0; padding-left: 22px; color: var(--dim); font-size: 15.5px; display: grid; gap: 7px; }
.gcard ol li::marker { color: var(--teal); font-weight: 700; }
.gcard p.gn { margin: 14px 10px 0; color: var(--dim2); font-size: 14px; }
.gcard code, .gcard pre { font-family: "SF Mono", Menlo, Consolas, monospace; }
.gcard code { font-size: .9em; color: var(--teal); }
.gcard pre { margin: 14px 10px 0; padding: 12px 14px; border-radius: 10px; background: rgba(4,8,18,.7); border: 1px solid var(--line); color: #cdd6e6; font-size: 12.5px; line-height: 1.55; overflow-x: auto; white-space: pre; }
.gcard pre b { color: var(--teal); font-weight: 600; }
.gcard.text { padding: 26px 24px; }
.gcard.text .num, .gcard.text h3, .gcard.text ol, .gcard.text p.gn { margin-left: 0; margin-right: 0; }
@media (max-width: 900px) { .gcards { grid-template-columns: minmax(0, 1fr); } }

/* download page: the system of this browser first (JS), all three side by side without JS */
.dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.dlos { background: linear-gradient(180deg, rgba(20,29,53,.85), rgba(13,20,38,.85)); border: 1px solid var(--line); border-radius: 18px; padding: 22px; min-width: 0; }
.dlos h3 { margin: 0; font-size: 18px; }
.dlbtns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.dlos .btn { padding: 8px 14px; font-size: 14px; }
.dlnote { color: var(--dim); font-size: 14.5px; margin: 14px 0 0; }
.dlos code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: .9em; color: var(--teal); }
.dl.detected { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dl.detected .dlos.main { grid-column: 1 / -1; padding: 30px; border-color: #3a4d78; }
.dl.detected .dlos.main h3 { font-size: 22px; }
.dl.detected .dlos.main .btn { padding: 16px 26px; font-size: 17px; }
.dl.detected .dlos.main .btn:not(.primary) { padding: 14px 20px; font-size: 15px; }
.dl.detected .dlos:not(.main) { padding: 16px 20px; background: none; }
.dl.detected .dlos:not(.main) h3 { font-size: 15px; color: var(--dim); }
.dl.detected .dlos:not(.main) .btn { background: none; color: var(--ink); border: 1px solid var(--line); padding: 6px 12px; font-size: 13.5px; }
.dl.detected .dlos:not(.main) .dlnote { font-size: 13.5px; }
.dltrial { margin: 16px 0 0; color: var(--teal); font-weight: 650; font-size: 15px; }
.dlsteps { counter-reset: d; list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; color: var(--dim); font-size: 15.5px; }
.dlsteps li { position: relative; padding-left: 40px; min-height: 26px; line-height: 26px; }
.dlsteps li::before { counter-increment: d; content: counter(d); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; line-height: 1; border-radius: 50%; background: var(--grad); color: #06101f; font-weight: 800; font-size: 13px; }
.dlsteps b { color: var(--ink); }
.dlsteps code { font-family: "SF Mono", Menlo, Consolas, monospace; font-size: .9em; color: var(--teal); }
.dl .install pre { font-size: 13px; padding-right: 80px; }
.termdet { border: 1px solid var(--line); border-radius: 18px; padding: 20px 24px; background: rgba(13,20,38,.7); }
.termdet summary { cursor: pointer; font-weight: 700; font-size: 18px; }
.termdet .lead { font-size: 16px; margin-top: 8px; }
.termdet .gcards { margin-top: 20px; }
@media (max-width: 900px) { .dl, .dl.detected { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .dl.detected .dlos.main { padding: 22px 18px; }
  .dl.detected .dlos.main .btn { flex: 1 1 100%; justify-content: center; }
  .termdet { padding: 16px; }
}

/* nav on phones: brand, Sign in and the primary button; the row scrolls inside itself if it still does not fit */
nav .links { min-width: 0; }
@media (max-width: 900px) {
  nav .wrap { gap: 16px; }
  nav .links { align-items: center; gap: 16px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
  nav .links::-webkit-scrollbar { display: none; }
  nav .links a[href="https://app.getsymbiont.com/login"] { display: inline; }
}

/* phones: long code lines and the price table stay inside the page */
.gcard ol > li { min-width: 0; }
@media (max-width: 640px) {
  .tiers { font-size: 14.5px; }
  .tiers th, .tiers td { padding: 12px 6px; }
  .tiers th { font-size: 11.5px; letter-spacing: .04em; }
  .tiers td b { font-size: 18px; }
}
.dl .install button { background: var(--navy3); }
.gcard li code { overflow-wrap: anywhere; }

@media (max-width: 520px) { .install pre, .dl .install pre { padding-right: 14px; white-space: pre-wrap; overflow-wrap: anywhere; } .install button { position: static; margin-top: 8px; } }

/* beta label next to a platform name */
.dlos h3 .tag { margin: 0 0 0 8px; vertical-align: 3px; font-size: 11.5px; }
.gcard kbd, .dlos kbd { font-family: inherit; font-size: .85em; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--ink); }

/* guide: a clip still to be recorded (same placeholder as the home) */
.video.vsoon { position: relative; aspect-ratio: 16 / 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: #0b0f1a; text-align: center; padding: 16px; }
.video.vsoon::before { content: ""; position: absolute; inset: 0; background: url(/assets/app/poster-map.webp) 60% 30% / cover no-repeat; filter: brightness(.38) saturate(.8) blur(1.5px); transform: scale(1.03); }
.video.vsoon::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 70% at 50% 50%, transparent, rgba(7,11,22,.75)); }
.video.vsoon > * { position: relative; z-index: 1; }
.video.vsoon .vplay { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--grad); color: #06101f; box-shadow: 0 0 0 8px rgba(94,234,212,.12); }
.video.vsoon .vplay svg { width: 24px; height: 24px; margin-left: 4px; }
.video.vsoon b { font-size: 16px; color: var(--ink); }
