:root {
  --bg: #F7F6F2;
  --paper: #FFFFFF;
  --night: #0E1020;
  --night2: #161A33;
  --night3: #20264A;
  --ink: #14172B;
  --ink2: #2B2F4A;
  --soft: #5A5F7A;
  --muted: #8E93AA;
  --line: #E4E2DA;
  --line-dark: #2C3260;
  --blue: #3D5AFE;
  --blue2: #6F86FF;
  --blue-pale: #ECEFFF;
  --deep: #2A3990;
  --coral: #FF6B4A;
  --coral-pale: #FFEDE8;
  --mint: #18A999;
  --mint-pale: #E2F6F3;
  --yellow: #FFC93C;
  --yellow-pale: #FFF6DB;
  --cyan: #7CF7FF;
  --font: "Avenir Next", "Nunito Sans", "Segoe UI", "PingFang HK", "Microsoft JhengHei", system-ui, sans-serif;
  --mono: "JetBrains Mono", "SF Mono", Menlo, Consolas, monospace;
  --r: 22px;
  --shadow: 0 18px 50px -24px rgba(20, 23, 43, .35);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: var(--font); cursor: pointer; }
code, .mono { font-family: var(--mono); }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.muted { color: var(--muted); }

/* nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; height: 64px; display: flex; align-items: center; gap: 28px; padding: 0 max(4vw, calc((100vw - 1180px) / 2)); transition: background .3s, box-shadow .3s; color: #fff; }
.nav.solid { background: rgba(14, 16, 32, .86); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.nav.light { color: var(--ink); }
.nav.light.solid { background: rgba(247, 246, 242, .9); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.nav nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 700; }
.nav nav a { text-decoration: none; opacity: .78; transition: opacity .2s; }
.nav nav a:hover { opacity: 1; }
.nav .btn { margin-left: 4px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; color: inherit; font-size: 26px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; padding: 14px 24px; font-size: 16px; font-weight: 800; text-decoration: none; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 30px -10px rgba(61, 90, 254, .8); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 10px 30px -12px rgba(255, 107, 74, .9); }
.btn-ghost { background: rgba(255, 255, 255, .08); color: inherit; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.light-ghost, .sec .btn-ghost { box-shadow: inset 0 0 0 1.5px var(--line); background: var(--paper); color: var(--ink); }
.dark .btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* sections */
.sec { padding: 110px 0; position: relative; }
.sec.alt { background: var(--paper); }
.dark { background: var(--night); color: #fff; }
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--blue); }
.dark .eyebrow, .eyebrow.cyan { color: var(--cyan); }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.06; }
h2 { font-size: clamp(34px, 4.6vw, 58px); font-weight: 900; margin-top: 14px; max-width: 960px; }
h2 em, h1 em { font-style: normal; color: var(--coral); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--soft); max-width: 760px; margin-top: 18px; }
.dark .lead { color: #B9BEDD; }
.head { margin-bottom: 46px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.sec.alt .card { background: var(--bg); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card .k { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.card h3 { font-size: 23px; font-weight: 900; margin-top: 8px; }
.card p { color: var(--soft); margin-top: 8px; font-size: 16px; }
.card ul { list-style: none; margin-top: 14px; display: grid; gap: 8px; }
.card li { position: relative; padding-left: 18px; font-size: 15.5px; color: var(--ink2); }
.card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }
.card .stack { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.dark .card { background: var(--night2); border-color: var(--line-dark); color: #fff; }
.dark .card p { color: #AEB4D6; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--blue-pale); color: var(--blue); white-space: nowrap; }
.pill.live { background: var(--mint-pale); color: var(--mint); }
.pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); animation: pulse 1.6s infinite; }
.pill.plan { background: #F1EFE9; color: #8C887B; }
.pill.coral { background: var(--coral-pale); color: var(--coral); }
@keyframes pulse { 50% { opacity: .3; } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* hero */
.hero { min-height: 100vh; padding: 120px 0 60px; overflow: hidden; position: relative; display: flex; flex-direction: column; justify-content: center; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; pointer-events: none; }
.glow.g1 { width: 620px; height: 620px; background: #2B3FD9; left: -180px; top: -160px; animation: drift 14s ease-in-out infinite alternate; }
.glow.g2 { width: 520px; height: 520px; background: #FF6B4A; right: -160px; bottom: -200px; opacity: .32; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(80px, 60px) scale(1.1); } }
.grid-bg { position: absolute; inset: 0; background-image: linear-gradient(rgba(124, 247, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 247, 255, .06) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 60% 40%, #000 20%, transparent 70%); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(54px, 8.4vw, 112px); font-weight: 900; margin-top: 18px; }
.grad { background: linear-gradient(90deg, var(--cyan), #9DB0FF 45%, var(--coral)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: #C3C8E6; max-width: 600px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.chips li { font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); color: #DCE0F7; }
.hero-bot { position: relative; height: 560px; display: grid; place-items: center; }
.orbit { position: absolute; width: 480px; height: 480px; border-radius: 50%; border: 1.5px dashed rgba(124, 247, 255, .25); animation: spin 40s linear infinite; }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 50%; background: var(--cyan); top: 40px; left: 70px; box-shadow: 0 0 20px var(--cyan); }
.orbit::after { background: var(--yellow); top: auto; bottom: 60px; left: auto; right: 40px; box-shadow: 0 0 20px var(--yellow); }
@keyframes spin { to { transform: rotate(360deg); } }
.robot.big { width: 330px; height: 470px; position: relative; z-index: 2; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.robot svg { width: 100%; height: 100%; overflow: visible; }
.body-tabs { position: absolute; bottom: 6px; z-index: 3; display: flex; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.body-tabs button { border: 0; background: transparent; color: #C3C8E6; font-weight: 800; font-size: 13.5px; padding: 8px 14px; border-radius: 999px; }
.body-tabs button.on { background: #fff; color: var(--ink); }
.bubble { position: absolute; top: 34px; right: -6px; z-index: 3; background: #fff; color: var(--ink); font-weight: 800; font-size: 17px; padding: 12px 18px; border-radius: 20px 20px 20px 6px; box-shadow: var(--shadow); transition: opacity .3s, transform .3s; max-width: 240px; }
.bubble small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 2px; }
.bubble.out { opacity: 0; transform: translateY(8px); }
.hero-strip { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 54px; }
.hero-strip div { border-top: 1.5px solid rgba(255, 255, 255, .14); padding-top: 14px; }
.hero-strip b { display: block; font-size: 28px; font-weight: 900; color: #fff; }
.hero-strip span { font-size: 14px; color: #9EA4C8; }

/* robot parts animation */
.r-body { transition: opacity .45s, transform .45s; transform-origin: 100px 180px; }
.r-body.off { opacity: 0; transform: scale(.85); }
.r-eye { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.r-ant { animation: glowAnt 2.2s ease-in-out infinite; }
@keyframes glowAnt { 50% { opacity: .55; } }
.r-head { transform-origin: 100px 120px; animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-2deg); } }
.r-wheel { transform-box: fill-box; transform-origin: center; animation: spin 2.4s linear infinite; }
.r-leg-a { animation: stepA .8s ease-in-out infinite; }
.r-leg-b { animation: stepA .8s ease-in-out infinite reverse; }
@keyframes stepA { 50% { transform: translateY(-6px); } }

/* problem */
.evidence { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.evidence .card.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.evidence .card.ink p { color: #C9CDE6; }
.evidence .card.ink .k { color: var(--yellow); }

/* demo console */
#demo { background: radial-gradient(1200px 500px at 50% -10%, #1F2A6B 0%, var(--night) 60%); }
.console { display: grid; grid-template-columns: 330px 1fr 340px; gap: 18px; align-items: stretch; }
.panel { background: var(--night2); border: 1px solid var(--line-dark); border-radius: 24px; padding: 20px; display: flex; flex-direction: column; min-height: 620px; }
.panel h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8C93C4; font-weight: 600; }
.link-row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: #C9CEEE; }
.link-dot { width: 10px; height: 10px; border-radius: 50%; background: #646B9A; flex: none; }
.link-dot.on { background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.vbot-wrap { flex: 1; display: grid; place-items: center; position: relative; margin: 10px 0; }
.vbot { width: 250px; height: 330px; }
.vbot svg { width: 100%; height: 100%; overflow: visible; }
.vb-head { transform-origin: 100px 128px; transition: transform .28s ease; }
.vb-arm { transform-origin: 147px 146px; transition: transform .2s ease; }
.vb-led { transition: fill .3s; }
.vb-mouth-talk { transform-box: fill-box; transform-origin: center; animation: talk .18s ease-in-out infinite alternate; }
@keyframes talk { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.vb-bars rect { transform-box: fill-box; transform-origin: bottom; animation: bars .5s ease-in-out infinite alternate; }
.vb-bars rect:nth-child(2) { animation-delay: .1s; } .vb-bars rect:nth-child(3) { animation-delay: .2s; } .vb-bars rect:nth-child(4) { animation-delay: .3s; }
@keyframes bars { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
.vb-dots circle { animation: pulse 1s infinite; } .vb-dots circle:nth-child(2) { animation-delay: .2s; } .vb-dots circle:nth-child(3) { animation-delay: .4s; }
.body-info { font-family: var(--mono); font-size: 12px; color: #8C93C4; line-height: 1.6; border-top: 1px solid var(--line-dark); padding-top: 12px; }
.body-info b { color: #DDE1FF; font-weight: 600; }
.controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.select { background: var(--night3); color: #fff; border: 1px solid var(--line-dark); border-radius: 12px; padding: 9px 12px; font: 700 14px var(--font); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--night3); border: 1px solid var(--line-dark); }
.seg button { border: 0; background: transparent; color: #A9AFD6; font-weight: 800; font-size: 13px; padding: 7px 13px; border-radius: 999px; }
.seg button.on { background: #fff; color: var(--ink); }
.light-seg { background: #F1EFE9; border-color: var(--line); }
.light-seg button { color: var(--soft); }
.light-seg button.on { background: var(--ink); color: #fff; }
.feed { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 16px 4px; max-height: 470px; min-height: 360px; scrollbar-width: thin; }
.msg { max-width: 86%; padding: 12px 16px; border-radius: 18px; font-size: 16px; line-height: 1.5; animation: rise .3s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.msg.user { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 6px; }
.msg.bot { align-self: flex-start; background: var(--night3); color: #EEF0FF; border-bottom-left-radius: 6px; }
.msg.note { align-self: center; background: transparent; color: #8C93C4; font-size: 13px; text-align: center; padding: 4px; }
.msg.bot .act { display: inline-block; font-family: var(--mono); font-size: 11.5px; padding: 2px 7px; border-radius: 6px; margin: 2px 4px 2px 0; background: rgba(124, 247, 255, .12); color: var(--cyan); }
.msg.bot .act.no { background: rgba(255, 107, 74, .14); color: #FF9C86; text-decoration: line-through; }
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; align-self: stretch; animation: rise .3s ease; }
.prod { background: #fff; color: var(--ink); border-radius: 16px; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; transition: transform .2s; }
.prod:hover { transform: translateY(-3px); }
.prod .im { height: 96px; background: #F4F3EE center / contain no-repeat; }
.prod .tx { padding: 9px 11px 11px; font-size: 12.5px; line-height: 1.35; }
.prod .tx b { display: block; font-size: 15px; }
.prod .tx span { color: var(--soft); display: block; margin-top: 3px; }
.prod-src { grid-column: 1 / -1; font-family: var(--mono); font-size: 11.5px; color: #8C93C4; }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 12px; }
.examples button { border: 1px solid var(--line-dark); background: transparent; color: #C9CEEE; font-size: 13.5px; font-weight: 700; padding: 7px 12px; border-radius: 999px; transition: background .2s; }
.examples button:hover { background: var(--night3); }
.composer { display: flex; gap: 10px; align-items: center; background: var(--night3); border: 1px solid var(--line-dark); border-radius: 999px; padding: 6px; }
.composer input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: 600 16px var(--font); padding: 8px 6px; outline: none; }
.composer input::placeholder { color: #7C83B3; }
.mic { width: 48px; height: 48px; flex: none; border-radius: 50%; border: 0; background: var(--coral); color: #fff; display: grid; place-items: center; transition: transform .2s, box-shadow .2s; }
.mic svg { width: 22px; height: 22px; }
.mic.on { animation: micPulse 1.2s infinite; }
@keyframes micPulse { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 74, .7); } 100% { box-shadow: 0 0 0 18px rgba(255, 107, 74, 0); } }
.send { border: 0; background: var(--blue); color: #fff; font-weight: 800; font-size: 14px; padding: 12px 18px; border-radius: 999px; }
.c-note { font-size: 12.5px; color: #7C83B3; margin-top: 10px; }
.trace { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; margin-top: 12px; max-height: 430px; scrollbar-width: thin; }
.turn { background: var(--night3); border-radius: 16px; padding: 14px; animation: rise .3s ease; }
.turn .t-head { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: #A9AFD6; font-family: var(--mono); }
.turn .t-total { font-size: 22px; font-weight: 900; margin: 6px 0 10px; }
.turn .t-total small { font-size: 12px; font-weight: 600; color: #8C93C4; display: block; }
.bar { display: grid; grid-template-columns: 112px 1fr 54px; gap: 8px; align-items: center; font-size: 12px; color: #C9CEEE; margin-top: 6px; }
.bar i { display: block; height: 8px; border-radius: 99px; background: var(--blue2); min-width: 4px; transition: width .4s; }
.bar.tool i { background: var(--yellow); } .bar.voice i { background: var(--mint); } .bar.hear i { background: var(--coral); }
.bar span:last-child { text-align: right; font-family: var(--mono); color: #fff; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .07); color: #C9CEEE; }
.tag.ok { background: rgba(24, 169, 153, .18); color: #7DE3D6; }
.tag.no { background: rgba(255, 107, 74, .18); color: #FF9C86; }
.mem { border-top: 1px solid var(--line-dark); margin-top: 14px; padding-top: 12px; }
.mem ul { list-style: none; margin: 8px 0; font-size: 13.5px; color: #DDE1FF; display: grid; gap: 4px; max-height: 90px; overflow-y: auto; }
.mem li::before { content: "· "; color: var(--cyan); }
.linkbtn { background: none; border: 0; color: #FF9C86; font-weight: 700; font-size: 13px; padding: 0; }
.demo-foot { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; font-size: 14px; color: #9EA4C8; }
.demo-foot b { color: #fff; }

/* architecture */
.arch { display: grid; grid-template-columns: 1.3fr .7fr; gap: 22px; }
.arch-map { position: relative; background: var(--paper); border: 1.5px solid var(--line); border-radius: 24px; padding: 26px; min-height: 470px; }
.arch-map svg.wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.arch-map svg.wires path { stroke: #CFCBBE; stroke-width: 2; fill: none; stroke-dasharray: 5 6; }
.arch-map svg.wires path.hot { stroke: var(--blue); stroke-dasharray: none; stroke-width: 3; }
.zone { position: absolute; border: 1.5px dashed var(--line); border-radius: 18px; }
.zone b { position: absolute; top: -10px; left: 14px; background: var(--paper); padding: 0 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.blk { position: absolute; width: 150px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: #FBFAF6; text-align: left; transition: all .2s; z-index: 2; }
.blk b { display: block; font-size: 15px; font-weight: 900; }
.blk span { font-size: 12px; color: var(--soft); line-height: 1.35; display: block; margin-top: 2px; }
.blk:hover { border-color: var(--ink); }
.blk.on { border-color: var(--blue); background: var(--blue-pale); box-shadow: 0 0 0 4px rgba(61, 90, 254, .12); }
.blk.flash { border-color: var(--coral); background: var(--coral-pale); }
.arch-side { background: var(--ink); color: #fff; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; }
.arch-side .k { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--yellow); font-weight: 600; }
.arch-side h3 { font-size: 30px; font-weight: 900; margin-top: 8px; }
.arch-side p { color: #C9CDE6; margin-top: 10px; }
.arch-side .w { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.arch-side .w code { font-size: 12px; background: rgba(255, 255, 255, .08); padding: 4px 8px; border-radius: 6px; color: #DDE1FF; }
.arch-side .y { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14.5px; color: #AEB4D6; }
.arch-side .btn { margin-top: 16px; align-self: flex-start; }

/* tools */
.tools-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tool { background: var(--bg); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.tool .hd { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tool code { font-size: 13px; color: var(--blue); background: var(--blue-pale); padding: 3px 8px; border-radius: 6px; }
.tool h4 { font-size: 18px; font-weight: 900; margin-top: 10px; }
.tool p { font-size: 14.5px; color: var(--soft); margin-top: 4px; line-height: 1.45; }
.tool .g { font-size: 12.5px; color: var(--mint); font-weight: 800; margin-top: 8px; }

/* body file */
.bodyfile { display: grid; grid-template-columns: 360px 1fr 360px; gap: 20px; }
.bstage { background: var(--yellow-pale); border-radius: 24px; position: relative; min-height: 470px; display: grid; place-items: center; overflow: hidden; }
.bstage .robot { width: 250px; height: 340px; }
.bstage .seg { position: absolute; top: 16px; left: 16px; }
.yaml { background: var(--ink); color: #C9D1FF; border-radius: 24px; padding: 24px 26px; font-family: var(--mono); font-size: 14.5px; line-height: 1.75; white-space: pre; overflow: auto; min-height: 470px; }
.yaml .k { color: var(--cyan); } .yaml .v { color: var(--yellow); } .yaml .c { color: #6F77A6; } .yaml .hl { background: rgba(255, 107, 74, .28); border-radius: 4px; padding: 0 3px; }
.gen { display: flex; flex-direction: column; gap: 14px; }
.gen .card { padding: 20px 22px; }
.gen h5 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .14em; color: var(--muted); font-weight: 600; text-transform: uppercase; }
.gen .tl { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.gen .tl code { font-size: 12.5px; background: var(--blue-pale); color: var(--blue); padding: 4px 8px; border-radius: 6px; }
.gen .tl code.no { background: #F1EFE9; color: #B5B2A8; text-decoration: line-through; }
.gen .guard { background: var(--mint-pale); border-color: #BDEBE5; }

/* models */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 999px; background: #F1EFE9; width: fit-content; }
.tabs button { border: 0; background: transparent; font-weight: 800; font-size: 14px; color: var(--soft); padding: 9px 15px; border-radius: 999px; }
.tabs button.on { background: var(--ink); color: #fff; }
.mgrid { display: grid; grid-template-columns: 1fr 360px; gap: 22px; margin-top: 22px; }
.mtable { background: var(--bg); border: 1.5px solid var(--line); border-radius: 22px; overflow: hidden; }
.mrow { display: grid; grid-template-columns: 1.1fr .9fr 1.6fr 130px; border-top: 1px solid var(--line); align-items: center; }
.mrow:first-child { border-top: 0; }
.mrow > div { padding: 14px 16px; font-size: 15px; }
.mrow.h > div { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: #F1EFE9; }
.mrow .nm b { display: block; font-weight: 900; }
.mrow .nm small { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.mrow .ac { font-size: 13.5px; color: var(--soft); }
.mrow.pick { background: #F4F6FF; }
.pickbox { background: var(--ink); color: #fff; border-radius: 22px; padding: 24px; }
.pickbox .k { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--yellow); font-weight: 600; }
.pickbox h4 { font-size: 22px; font-weight: 900; margin-top: 8px; line-height: 1.25; }
.pickbox p { color: #C9CDE6; margin-top: 8px; font-size: 15px; }
.rule { margin-top: 14px; background: var(--coral-pale); border-radius: 18px; padding: 18px 20px; }
.rule h5 { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--coral); font-weight: 600; }
.rule p { font-size: 14.5px; margin-top: 6px; color: var(--ink2); }

/* languages */
#languages { background: linear-gradient(180deg, var(--night) 0%, #141A3D 100%); overflow: hidden; }
.lang-cloud { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.lang-cloud span { padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 15px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }
.lang-cloud.next span { border-style: dashed; color: #FFE08A; border-color: rgba(255, 201, 60, .45); background: rgba(255, 201, 60, .07); }
.lang-cloud.rare span { color: #FFB6A6; border-color: rgba(255, 107, 74, .45); background: rgba(255, 107, 74, .08); border-style: dashed; }
.promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.promise div { border-top: 2px solid var(--cyan); padding-top: 14px; }
.promise b { font-size: 18px; font-weight: 900; display: block; }
.promise p { color: #AEB4D6; font-size: 15px; margin-top: 6px; }
.votes { margin-top: 34px; display: grid; gap: 8px; max-width: 640px; }
.vote { display: grid; grid-template-columns: 200px 1fr 40px; gap: 10px; align-items: center; font-size: 14px; font-weight: 700; }
.vote i { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--yellow), var(--coral)); display: block; min-width: 4px; }

/* compare */
.cmp { background: var(--bg); border: 1.5px solid var(--line); border-radius: 22px; overflow-x: auto; }
.crow { display: grid; grid-template-columns: 200px repeat(6, minmax(130px, 1fr)); border-top: 1px solid var(--line); min-width: 980px; }
.crow:first-child { border-top: 0; }
.crow > div { padding: 13px 14px; font-size: 14.5px; display: flex; flex-direction: column; justify-content: center; }
.crow > div:first-child { font-weight: 900; }
.crow.h > div { background: #F1EFE9; font-weight: 900; font-size: 15.5px; }
.crow.h small { font-size: 12px; font-weight: 600; color: var(--muted); }
.crow > div.us { background: #EEF1FF; }
.crow.h > div.us { background: var(--blue); color: #fff; } .crow.h > div.us small { color: #DDE3FF; }
.y { color: var(--mint); font-weight: 800; } .n { color: #B9B5A8; font-weight: 700; } .p { color: #C28A00; font-weight: 800; }

/* business */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 22px; }
.stat { background: var(--paper); border: 1.5px solid var(--line); border-radius: 22px; padding: 22px; }
.stat .nn { font-size: 40px; font-weight: 900; letter-spacing: -.02em; }
.stat .l { color: var(--ink2); margin-top: 4px; font-size: 15px; }
.stat .s { font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 8px; }
.stat:nth-child(1) .nn { color: var(--blue); } .stat:nth-child(2) .nn { color: var(--coral); } .stat:nth-child(3) .nn { color: var(--mint); } .stat:nth-child(4) .nn { color: #D9A100; }
.biz .card.ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.biz .card.ink p, .biz .card.ink li { color: #C9CDE6; }
.biz .card.ink .k { color: var(--yellow); }

/* build band */
.build-band { background: var(--yellow); }
.build-band .lead { color: #5B4A12; }
.build-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.steps-mini { display: grid; gap: 10px; }
.steps-mini div { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; background: rgba(255, 255, 255, .72); border-radius: 16px; padding: 12px 14px; font-weight: 800; }
.steps-mini i { width: 44px; height: 44px; border-radius: 14px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; font-style: normal; font-family: var(--mono); }
.steps-mini span { font-weight: 600; color: #5B4A12; display: block; font-size: 14px; }

/* roadmap */
.road { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; margin-top: 10px; }
.road::before { content: ""; position: absolute; left: 4%; right: 4%; top: 22px; height: 3px; background: var(--line); }
.stop { position: relative; text-align: center; }
.stop i { width: 46px; height: 46px; margin: 0 auto; border-radius: 50%; background: var(--paper); border: 3px solid var(--line); display: grid; place-items: center; font-style: normal; font-weight: 900; position: relative; z-index: 1; }
.stop.done i { background: var(--mint); border-color: var(--mint); color: #fff; }
.stop.now i { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: 0 0 0 8px rgba(61, 90, 254, .15); }
.stop b { display: block; margin-top: 12px; font-size: 15.5px; font-weight: 900; }
.stop small { display: block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 2px; }
.stop p { font-size: 13.5px; color: var(--soft); margin-top: 6px; line-height: 1.4; }

/* back */
#back { background: radial-gradient(900px 500px at 80% 0%, #3A1F2E 0%, var(--night) 60%); }
.back-in { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.meter { margin-top: 30px; }
.meter .track { height: 16px; border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.meter .fill { height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--yellow), var(--coral)); transition: width 1.2s ease; }
.meter .nums { display: flex; justify-content: space-between; margin-top: 10px; font-size: 15px; color: #C3C8E6; }
.meter .nums b { color: #fff; font-size: 26px; font-weight: 900; }
.tiers { display: grid; gap: 12px; }
.tier { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; text-align: left; background: var(--night2); border: 1.5px solid var(--line-dark); border-radius: 18px; padding: 18px 20px; color: #fff; transition: border-color .2s, background .2s; }
.tier b { font-size: 18px; font-weight: 900; }
.tier .amt { font-size: 22px; font-weight: 900; color: var(--yellow); grid-row: span 2; align-self: center; }
.tier span { font-size: 14px; color: #AEB4D6; }
.tier.on { border-color: var(--coral); background: #2A1E33; }
.custom { display: flex; align-items: center; gap: 10px; background: var(--night2); border: 1.5px solid var(--line-dark); border-radius: 18px; padding: 12px 16px; }
.custom input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: 900 20px var(--font); outline: none; }
.custom.on { border-color: var(--coral); }
.fine { font-size: 13px; color: #8C93C4; margin-top: 14px; line-height: 1.6; }
.testbar { display: inline-flex; gap: 8px; align-items: center; margin-top: 14px; font-size: 13px; font-weight: 700; color: var(--yellow); background: rgba(255, 201, 60, .1); border: 1px dashed rgba(255, 201, 60, .4); padding: 7px 12px; border-radius: 10px; }
.thanks { background: var(--mint); color: #fff; border-radius: 18px; padding: 16px 20px; font-weight: 800; margin-bottom: 18px; display: none; }
.thanks.show { display: block; animation: rise .4s ease; }

/* team, faq */
.founder { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; }
.avatar { width: 120px; height: 120px; border-radius: 32px; background: var(--blue); display: grid; place-items: center; padding: 14px; }
.needs { display: grid; gap: 10px; margin-top: 8px; }
.needs div { display: flex; gap: 12px; align-items: baseline; font-size: 16px; }
.needs b { font-family: var(--mono); color: var(--coral); }
details { background: var(--bg); border: 1.5px solid var(--line); border-radius: 18px; padding: 18px 22px; }
details + details { margin-top: 12px; }
summary { font-weight: 900; font-size: 17px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--blue); }
details[open] summary::after { content: "–"; }
details p { color: var(--soft); margin-top: 10px; }

/* footer */
footer { background: var(--night); color: #9EA4C8; padding: 60px 0 40px; font-size: 14px; }
.foot-in { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 30px; }
footer h5 { color: #fff; font-size: 14px; margin-bottom: 10px; }
footer a { color: #C3C8E6; }
footer ol { padding-left: 18px; display: grid; gap: 6px; font-size: 13px; }
.foot-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; }

/* responsive */
@media (max-width: 1100px) {
  .console { grid-template-columns: 1fr 1fr; }
  .console .panel.chat { grid-column: 1 / -1; order: -1; }
  .bodyfile { grid-template-columns: 1fr 1fr; }
  .bodyfile .gen { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); }
  .tools-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--night); padding: 8px 4vw 16px; }
  .nav.light nav { background: var(--bg); }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .menu-btn { display: block; }
  .nav .btn { display: none; }
  .hero-in, .arch, .mgrid, .build-in, .back-in, .evidence { grid-template-columns: 1fr; }
  .hero-bot { height: 470px; }
  .robot.big { width: 260px; height: 370px; }
  .orbit { width: 380px; height: 380px; }
  .grid3, .grid4, .stats, .promise, .hero-strip { grid-template-columns: 1fr 1fr; }
  .console { grid-template-columns: 1fr; }
  .panel { min-height: 0; }
  .bodyfile, .bodyfile .gen { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr 1fr; }
  .road { grid-template-columns: 1fr; gap: 18px; }
  .road::before { left: 22px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .stop { text-align: left; display: grid; grid-template-columns: 46px 1fr; gap: 0 14px; }
  .stop i { margin: 0; grid-row: span 3; }
  .stop b { margin-top: 0; }
  .foot-in { grid-template-columns: 1fr; }
  .arch-map { min-height: 620px; }
}
@media (max-width: 560px) {
  .sec { padding: 80px 0; }
  .grid2, .grid3, .grid4, .stats, .promise, .tools-grid { grid-template-columns: 1fr; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .mrow { grid-template-columns: 1fr 1fr; }
  .mrow > div:nth-child(3) { grid-column: 1 / -1; padding-top: 0; }
  .vote { grid-template-columns: 130px 1fr 30px; }
  .founder { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* build page */
.page-hero { padding: 132px 0 64px; position: relative; overflow: hidden; }
.ph-in { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 40px; align-items: center; }
.page-hero h1 { font-size: clamp(42px, 6.2vw, 82px); font-weight: 900; margin-top: 16px; }
.page-hero .lead { color: #C3C8E6; max-width: 640px; }
.ph-bot { height: 400px; display: grid; place-items: center; position: relative; }
.ph-bot::before { content: ""; position: absolute; width: 330px; height: 330px; border-radius: 50%; border: 1.5px dashed rgba(124, 247, 255, .25); animation: spin 40s linear infinite; }
.ph-bot .robot { width: 250px; height: 356px; position: relative; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }

.flow { display: grid; grid-template-columns: 1fr 110px 1fr 110px 1fr; align-items: stretch; }
.fbox { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); padding: 24px; }
.fbox .k, .part .k, .bom-foot .k { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); }
.fbox h3 { font-size: 22px; font-weight: 900; margin-top: 8px; }
.fbox p { color: var(--soft); margin-top: 8px; font-size: 15.5px; }
.fbox.ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.fbox.ink p { color: #C9CDE6; }
.fbox.ink .k { color: var(--yellow); }
.farrow { position: relative; display: grid; place-items: center; }
.farrow::before { content: ""; position: absolute; left: 10px; right: 14px; top: 50%; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--blue) 0 10px, transparent 10px 16px); background-size: 32px 3px; animation: flowDash 1s linear infinite; }
.farrow::after { content: ""; position: absolute; right: 6px; top: calc(50% - 6px); border: 7.5px solid transparent; border-left: 10px solid var(--blue); border-right: 0; }
@keyframes flowDash { to { background-position: 32px 0; } }
.farrow span { position: relative; margin-top: -46px; font-family: var(--mono); font-size: 11.5px; font-weight: 600; color: var(--blue); background: var(--bg); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.pipe { list-style: none; counter-reset: pipe; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 26px; }
.pipe li { counter-increment: pipe; background: var(--paper); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; }
.pipe li::before { content: counter(pipe); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: var(--ink); color: var(--yellow); font-family: var(--mono); font-weight: 600; font-size: 13px; }
.pipe b { display: block; font-size: 17px; font-weight: 900; margin-top: 10px; }
.pipe span { display: block; font-size: 14px; color: var(--soft); margin-top: 4px; line-height: 1.45; }
.pipe code, .wsteps code, .rules code, .tlog code, details code { font-size: .88em; background: var(--blue-pale); color: var(--blue); padding: 1px 6px; border-radius: 5px; }
.tips { margin-top: 22px; }

.parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.part { background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.part:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pimg { position: relative; height: 190px; background: #fff; display: grid; place-items: center; border-bottom: 1.5px solid var(--line); }
.pimg img { max-height: 160px; max-width: 82%; object-fit: contain; }
.qty { position: absolute; top: 12px; right: 12px; background: var(--ink); color: var(--yellow); font-family: var(--mono); font-weight: 600; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.pbody { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.pbody h3 { font-size: 20px; font-weight: 900; margin-top: 6px; line-height: 1.2; }
.pbody > p { color: var(--soft); margin-top: 8px; font-size: 15px; }
.pbody .look, .pbody .skip { font-size: 14px; color: var(--ink2); padding: 10px 12px; border-radius: 12px; margin-top: 10px; }
.pbody .look { background: var(--mint-pale); }
.pbody .skip { background: var(--coral-pale); }
.pbody .look b, .pbody .skip b { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }
.pbody .look b { color: var(--mint); }
.pbody .skip b { color: var(--coral); }
.picks { display: grid; gap: 8px; margin-top: auto; padding-top: 14px; }
.pick { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 14px; padding: 11px 14px; text-decoration: none; font-size: 14px; font-weight: 700; transition: border-color .2s, transform .15s; }
.pick:hover { border-color: var(--blue); transform: translateY(-1px); }
.pick > b { font-size: 17px; font-weight: 900; color: var(--blue); white-space: nowrap; }
.pick > b small { font-size: 11.5px; font-weight: 700; color: var(--muted); }
.more { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font-size: 13.5px; font-weight: 800; }
.more a { color: var(--soft); text-decoration: none; padding: 6px 10px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); }
.more a:hover { color: var(--ink); border-color: var(--ink); }
.live { margin-left: auto; border: 0; border-radius: 999px; padding: 7px 12px; background: var(--ink); color: #fff; font-weight: 800; font-size: 13px; }
.live:disabled { opacity: .6; cursor: progress; }
.livebox:empty { display: none; }
.livebox { margin-top: 12px; display: grid; gap: 8px; }
.livebox .muted { font-size: 13.5px; }
.lv { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; background: var(--paper); border: 1.5px solid var(--line); border-radius: 12px; padding: 7px 10px; text-decoration: none; animation: rise .3s ease; }
.lv:hover { border-color: var(--blue); }
.lv .im { width: 48px; height: 48px; border-radius: 8px; background: #fff center / contain no-repeat; }
.lv .tx { font-size: 12.5px; line-height: 1.3; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lv .tx small { display: block; color: var(--muted); font-weight: 600; margin-top: 2px; }
.lv b { font-size: 14px; font-weight: 900; color: var(--blue); white-space: nowrap; }
.livebox .src { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.bom-foot { display: grid; grid-template-columns: .8fr 1.1fr 1.1fr; gap: 18px; margin-top: 22px; }
.bom-foot .card.ink { background: var(--ink); border-color: var(--ink); color: #fff; }
.bom-foot .card.ink p { color: #C9CDE6; }
.bom-foot .card.ink .k { color: var(--yellow); }
.bom-foot .big { font-size: clamp(44px, 5vw, 64px); font-weight: 900; color: #fff; letter-spacing: -.02em; line-height: 1.05; margin-top: 10px; }
.extras { display: grid; gap: 10px; margin-top: 14px; }
.extras .pick { font-weight: 600; color: var(--soft); align-items: flex-start; }
.extras .pick b { color: var(--ink); }
.extras .pick > b { color: var(--blue); }

.wire-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 26px; align-items: start; }
.wire-fig { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r); padding: 18px; }
.wire-fig .cap { font-size: 13.5px; color: var(--soft); margin-top: 10px; text-align: center; }
.wsteps { list-style: none; counter-reset: ws; display: grid; gap: 10px; margin-top: 20px; }
.wire-grid .wsteps { margin-top: 0; }
.wsteps li { counter-increment: ws; position: relative; padding-left: 44px; font-size: 15.5px; color: var(--ink2); min-height: 30px; }
.wsteps li::before { content: counter(ws); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 10px; background: var(--blue); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 600; }
.warn { margin-top: 18px; background: var(--yellow-pale); border: 1.5px solid #F3DA8B; border-radius: 18px; padding: 18px 20px; }
.warn b { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #A87A00; }
.warn p { font-size: 15px; color: var(--ink2); margin-top: 6px; }
.grid2 > .warn { margin-top: 0; }
.wtable { margin-top: 26px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.wg { background: var(--paper); border: 1.5px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.wg h5 { font-size: 15.5px; font-weight: 900; margin-bottom: 6px; }
.wr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 0; font-size: 14px; border-top: 1px solid #F1EFE9; }
.wr span:first-child { color: var(--soft); }
.wr span:last-child { font-weight: 800; display: flex; align-items: center; gap: 7px; }
.wr i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.w-sig { background: var(--blue); } .w-five { background: #E5484D; } .w-gnd { background: #2B2F4A; } .w-v33 { background: #F59E0B; }

.flash-in { align-items: start; }
.install { margin: 24px 0 14px; }
.fine-dark { display: inline-block; font-size: 14px; font-weight: 700; color: #A0522D; background: var(--coral-pale); padding: 10px 14px; border-radius: 12px; }
.small { font-size: 14px; color: var(--soft); margin-top: 12px; }
.dark .small { color: #9EA4C8; }

.tester { display: grid; grid-template-columns: 380px 1fr; gap: 18px; }
.tester .panel { min-height: 0; }
.tester .panel h4 + .tbtns { margin-top: 10px; }
.tester .tbtns + h4 { margin-top: 18px; }
.checks { list-style: none; display: grid; gap: 7px; margin-top: 18px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 700; color: #9EA4C8; }
.checks li::before { content: ""; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid #4A5285; flex: none; transition: all .25s; }
.checks li.ok { color: #fff; }
.checks li.ok::before { background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.3 4.6-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--mint); }
.bodyjson { margin-top: 10px; background: var(--night); border: 1px solid var(--line-dark); border-radius: 14px; padding: 12px 14px; font-family: var(--mono); font-size: 12px; color: #C9D1FF; max-height: 240px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.tbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.tbtns button { border: 1px solid var(--line-dark); background: var(--night3); color: #E3E6FF; font-weight: 800; font-size: 13.5px; padding: 8px 13px; border-radius: 999px; transition: background .2s, transform .15s; }
.tbtns button:hover:not(:disabled) { background: var(--blue); transform: translateY(-1px); }
.tbtns button:disabled { opacity: .45; cursor: not-allowed; }
#tLights button { display: inline-flex; align-items: center; gap: 7px; }
#tLights button::before { content: ""; width: 11px; height: 11px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.tbtns button.stop { background: rgba(255, 107, 74, .16); border-color: rgba(255, 107, 74, .45); color: #FFB6A6; }
.tlog { margin-top: 10px; background: var(--night); border: 1px solid var(--line-dark); border-radius: 14px; padding: 10px 12px; height: 190px; overflow-y: auto; font-family: var(--mono); font-size: 12.5px; display: flex; flex-direction: column; gap: 3px; }
.tlog p { color: #C9CEEE; animation: rise .25s ease; }
.tlog p span { color: #646B9A; margin-right: 10px; }
.tlog p.out { color: var(--cyan); } .tlog p.in { color: #7DE3D6; } .tlog p.err { color: #FF9C86; }
.tlog p.muted { color: #8C93C4; font-family: var(--font); font-size: 14px; }
.tlog code { background: rgba(124, 247, 255, .12); color: var(--cyan); }

.talk-in { align-items: center; }
.rules { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.rules div { background: var(--bg); border: 1.5px solid var(--line); border-radius: 18px; padding: 18px; }
.rules i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--coral); color: #fff; font-style: normal; font-weight: 900; }
.rules b { display: block; font-size: 17px; font-weight: 900; margin-top: 12px; line-height: 1.25; }
.rules p { font-size: 14px; color: var(--soft); margin-top: 6px; line-height: 1.45; }
.shell-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 22px; align-items: start; }
.sizes { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; margin-top: 16px; font-size: 15px; }
.sizes span { color: var(--soft); font-weight: 700; }
.sizes b { font-weight: 800; }
.template a:first-of-type { display: block; margin-top: 14px; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px; }
.template img { width: 100%; height: auto; }
.template .btn { margin-top: 16px; }
.ideas { margin-top: 22px; }
.share a { color: var(--blue); font-weight: 800; }

.proto .mrow { grid-template-columns: .8fr 1.7fr 1fr; }
.proto .mrow .ac { font-size: 12px; word-break: break-all; }
.small-yaml { font-size: 13px; line-height: 1.7; min-height: 0; }
.pass { list-style: none; display: grid; gap: 10px; align-content: start; }
.pass label { display: flex; gap: 14px; align-items: center; background: var(--paper); border: 1.5px solid var(--line); border-radius: 16px; padding: 15px 18px; font-weight: 800; font-size: 16px; cursor: pointer; transition: border-color .2s, background .2s; }
.pass input { appearance: none; width: 24px; height: 24px; flex: none; border-radius: 8px; border: 2px solid #CFCBBE; background: #fff; display: grid; place-items: center; cursor: pointer; }
.pass input:checked { background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.4 2.3 4.6-5' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat; border-color: var(--mint); }
.pass label:has(input:checked) { border-color: var(--mint); background: var(--mint-pale); }

@media (max-width: 1100px) {
  .parts { grid-template-columns: 1fr 1fr; }
  .rules { grid-template-columns: repeat(3, 1fr); }
  .pipe { grid-template-columns: repeat(3, 1fr); }
  .wtable { grid-template-columns: repeat(3, 1fr); }
  .tester { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .ph-in, .wire-grid, .shell-grid, .bom-foot, .tester { grid-template-columns: 1fr; }
  .ph-bot { height: 340px; }
  .flow { grid-template-columns: 1fr; }
  .farrow { height: 64px; }
  .farrow::before { left: 50%; right: auto; top: 6px; bottom: 14px; width: 3px; height: auto; background: repeating-linear-gradient(180deg, var(--blue) 0 10px, transparent 10px 16px); animation: none; }
  .farrow::after { right: auto; left: calc(50% - 6px); top: auto; bottom: 4px; border: 7.5px solid transparent; border-top: 10px solid var(--blue); border-bottom: 0; }
  .farrow span { margin: 0 0 0 130px; }
  .wtable { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .parts, .rules, .pipe, .wtable { grid-template-columns: 1fr; }
  .page-hero { padding-top: 110px; }
  .proto .mrow { grid-template-columns: 1fr; }
  .proto .mrow.h { display: none; }
  .proto .mrow > div:nth-child(3) { grid-column: auto; }
}
