:root {
  --navy: #0b1626; --navy-2: #111e33; --navy-3: #172840; --line-d: #223650;
  --paper: #eef1f5; --paper-2: #ffffff; --paper-3: #e3e8ef; --line: #d6dde8;
  --ink: #0f1a2b; --ink-soft: #3b4252; --muted: #5b6270; --muted-d: #93a4c0;
  --orange: #f0a93a; --orange-text: #8f5a16; --blue: #7fb6ea; --blue-text: #2f6fb0;
  --on-dark: #eef2f8; --on-dark-soft: #b9c4d6;
  --display: "Funnel Display", "IBM Plex Sans", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: #8a97ab transparent; }
body { margin: 0; background: var(--paper); color: var(--ink-soft); font: 16px/1.55 "IBM Plex Sans", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; color: var(--ink); margin: 0; text-wrap: balance; }
p, li { text-wrap: pretty; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
a { color: var(--blue-text); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.sec { padding: 104px 0; }
.sec.soft { background: var(--paper-3); }
.dark { background: var(--navy); color: var(--on-dark-soft); }
.dark.alt { background: #081220; }
h2 { font-size: clamp(32px, 4.2vw, 46px); line-height: 1.06; margin-bottom: 16px; max-width: 22ch; }
.lead { font-size: 18px; line-height: 1.5; max-width: 66ch; color: var(--ink-soft); margin: 0; }
.dark .lead { color: var(--on-dark-soft); }
.sec-head { margin-bottom: 44px; }
.note { font-size: 14px; color: var(--muted); line-height: 1.5; margin: 20px 0 0; max-width: 100ch; }
.note.light { color: var(--muted-d); }
b { font-weight: 600; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 22, 38, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255,255,255,.06); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 64px; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 16px var(--display); }
.mark { width: 30px; height: 30px; border-radius: 9px; background: var(--orange); display: grid; place-items: center; flex: none; }
.mark svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.links { display: flex; gap: 2px; align-items: center; }
.links a { color: var(--on-dark-soft); text-decoration: none; font-size: 14px; padding: 8px 11px; border-radius: 8px; }
.links a:hover { color: #fff; background: rgba(255,255,255,.06); }
.links .btn { margin-left: 8px; }
.burger { display: none; background: none; border: 0; width: 40px; height: 40px; cursor: pointer; padding: 8px; }
.burger span { display: block; height: 2px; background: #fff; margin: 5px 0; border-radius: 1px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; padding: 12px 18px; border-radius: 10px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; line-height: 1.2; transition: background .15s ease; }
.btn.primary { background: var(--orange); color: var(--ink); }
.btn.primary:hover { background: #f6b95b; }
.btn.ghost { border-color: rgba(255,255,255,.24); color: #fff; }
.btn.ghost:hover { background: rgba(255,255,255,.08); }
.btn.small { padding: 8px 13px; font-size: 13.5px; background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.14); }
.btn.small:hover { background: rgba(255,255,255,.18); }
.sec:not(.dark) .btn.ghost { border-color: var(--ink); color: var(--ink); }
.sec:not(.dark) .btn.ghost:hover { background: rgba(15,26,43,.06); }

/* ---------- hero ---------- */
.hero { padding: 92px 0 64px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; left: 30%; top: -30%; width: 70%; height: 90%; background: radial-gradient(50% 50% at 50% 50%, rgba(240,169,58,.13), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero-copy { max-width: 800px; }
h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.02; margin: 0 0 22px; color: #fff; letter-spacing: -.02em; }
.hero .lead { font-size: 19px; color: var(--on-dark-soft); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-flow { margin: 64px 0 0; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); border-radius: 18px; padding: 22px 26px 14px; }
.hero-flow figcaption { font-size: 13.5px; color: var(--muted-d); margin-top: 8px; }

/* flow diagram, dark */
.iflow { width: 100%; height: auto; display: block; }
.iflow .ln { fill: none; stroke: #3a5172; stroke-width: 2; }
.iflow .ln.cmd { stroke: var(--blue); stroke-width: 1.8; }
.iflow .ln.dash { stroke-dasharray: 5 5; }
.iflow .nd { fill: var(--navy-3); stroke: #2c4262; stroke-width: 1.5; }
.iflow .nd.hi { fill: var(--orange); stroke: var(--orange); }
.iflow .ic { fill: none; stroke: var(--on-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iflow .nd.hi ~ .ic { stroke: var(--ink); }
.iflow .lb { font-family: "IBM Plex Sans", sans-serif; font-size: 12px; fill: var(--muted-d); text-anchor: middle; }
.iflow .lb.cmd { fill: var(--blue); font-weight: 600; }
.iflow .nl { font-family: var(--display); font-weight: 600; font-size: 13.5px; fill: var(--on-dark); text-anchor: middle; }

/* ---------- devices ---------- */
.devices { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.device.browser { background: #0a0d12; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.45); border: 1px solid #1f2a3d; }
.browser .bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #141a24; line-height: 16px; }
.browser .bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4458; }
.browser .bar span { margin-left: 10px; font-size: 12px; color: var(--muted-d); }
.vp { position: relative; overflow: hidden; background: #06101c; }
.browser .vp { aspect-ratio: 1440 / 900; }
.vp iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; }
.phone .vp { width: 300px; aspect-ratio: 390 / 844; border-radius: 36px; border: 9px solid #0a0d12; box-shadow: 0 0 0 2px #2a3140, 0 30px 60px rgba(0,0,0,.45); margin: 0 auto; background: var(--paper); }
.dev-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 4px 0; }
.phone .dev-foot { max-width: 300px; margin: 0 auto; }
.dev-foot b { display: block; color: #fff; }
.dev-foot span { font-size: 13px; color: var(--muted-d); display: block; }
.device.browser .dev-foot { padding: 12px 14px 14px; background: #0a0d12; }
.screens { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.screens li { border-top: 1px solid var(--line-d); }
.screens a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 14px 4px; text-decoration: none; color: var(--on-dark-soft); }
.screens a .arr { width: 18px; height: 18px; stroke: var(--muted-d); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.screens a:hover b { color: var(--orange); }
.screens b { display: block; color: #fff; margin-bottom: 2px; }
.screens span { font-size: 13.5px; }

/* ---------- how it works ---------- */
.how { display: grid; grid-template-columns: 400px 1fr; gap: 56px; align-items: start; }
.how-sticky { position: sticky; top: 84px; }
.vflow { width: 100%; height: auto; display: block; overflow: visible; }
.vflow .ln { fill: none; stroke: #b9c3d1; stroke-width: 2; }
.vflow .ln.cmd { stroke: var(--blue-text); stroke-width: 1.8; }
.vflow .ln.dash { stroke-dasharray: 5 5; }
.vflow .nd { fill: #fff; stroke: #cfd6e0; stroke-width: 1.5; transition: stroke .3s, stroke-width .3s; }
.vflow .nd.hi { fill: var(--orange); stroke: var(--orange); }
.vflow .ic { fill: none; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.vflow .lb { font-family: "IBM Plex Sans", sans-serif; font-size: 11.5px; fill: var(--muted); }
.vflow .lb.cmd { fill: var(--blue-text); font-weight: 600; }
.vflow .nl { font-family: var(--display); font-weight: 600; font-size: 14.5px; fill: var(--ink); }
.vflow .ns { font-family: "IBM Plex Sans", sans-serif; font-size: 11.5px; fill: var(--muted); }
.vflow .fnode { transition: opacity .3s; }
.how.live .fnode { opacity: .4; }
.how.live .fnode.on { opacity: 1; }
.how.live .fnode.on .nd { stroke: var(--ink); stroke-width: 2.5; }
.how-steps { list-style: none; margin: 0; padding: 0; }
.how-steps li { padding: 28px 0 28px 64px; position: relative; border-top: 1px solid var(--line); min-height: 42vh; display: flex; flex-direction: column; justify-content: center; transition: opacity .3s; }
.how.live .how-steps li { opacity: .5; }
.how.live .how-steps li.on { opacity: 1; }
.how-steps .n { position: absolute; left: 0; top: 50%; margin-top: -20px; width: 40px; height: 40px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font: 700 15px var(--display); color: var(--orange-text); transition: background .3s; }
.how-steps li.on .n { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.how-steps h3 { font-size: 26px; margin-bottom: 4px; }
.how-steps .tag { color: var(--muted); font-size: 13.5px; margin: 0 0 10px; }
.how-steps p { margin: 0; max-width: 62ch; }
.how-steps .btn { align-self: flex-start; margin-top: 18px; }

/* ---------- modules ---------- */
.modules { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; border-top: 1px solid var(--line); }
.modules li { padding: 18px 0 18px 24px; border-bottom: 1px solid var(--line); position: relative; }
.modules li::before { content: ""; position: absolute; left: 0; top: 27px; width: 10px; height: 10px; border-radius: 50%; background: #c3ccd9; }
.modules li.p1::before { background: var(--orange); }
.modules b { display: block; font: 600 17px/1.25 var(--display); color: var(--ink); }
.modules .when { display: block; font-size: 13px; color: var(--orange-text); margin: 3px 0 6px; font-weight: 500; }
.modules p { margin: 0; font-size: 14.5px; line-height: 1.45; }

/* ---------- architecture ---------- */
.arch { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.layers { display: flex; flex-direction: column; gap: 8px; }
.layer { border-radius: 10px; border: 1px solid var(--line); background: var(--paper-2); padding: 10px 16px; display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.layer.core { background: #e4eefb; border-color: #9fc2e8; }
.layer.channels { background: var(--paper-3); }
.layer.outside { background: transparent; border-style: dashed; color: var(--muted); }
.layer.outside b { color: var(--muted); }
.layer b { font-family: var(--display); font-size: 16px; color: var(--ink); display: block; }
.layer span { font-size: 13.5px; color: var(--ink-soft); display: block; line-height: 1.35; }
.layer em { flex: none; font-style: normal; font-size: 13px; font-weight: 600; color: var(--orange-text); text-align: right; white-space: nowrap; }
.layer.hi1 { border-color: var(--orange); background: #fff6e3; }
.arch-side { display: flex; flex-direction: column; gap: 22px; }
.card { padding: 18px 0 0; border-top: 1px solid var(--line); }
.card h3 { font-size: 19px; margin-bottom: 8px; }
.card p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.45; }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0; padding-left: 18px; }
.card li { margin-bottom: 7px; font-size: 14.5px; }
.card b { color: var(--ink); }

/* stack */
.stack { border-radius: 10px; overflow: hidden; }
.srow { display: grid; grid-template-columns: 170px 1.1fr 1.3fr 1.5fr; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.srow span { padding: 14px 16px; font-size: 14px; line-height: 1.4; }
.srow span + span { border-left: 1px solid var(--line); }
.srow.head { background: var(--ink); border: 0; }
.srow.head span { color: #fff; font-weight: 600; border-left-color: rgba(255,255,255,.12); }
.srow span:first-child { font-weight: 600; color: var(--ink); }

/* ---------- plan ---------- */
.stages { list-style: none; margin: 0; padding: 30px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; position: relative; }
.stages::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: var(--line-d); }
.stages li { position: relative; padding-top: 2px; display: flex; flex-direction: column; }
.stages li::before { content: ""; position: absolute; left: 0; top: -30px; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); border: 2px solid var(--muted-d); }
.stages li.hi::before { background: var(--orange); border-color: var(--orange); }
.stages .n { font: 600 13px var(--display); color: var(--orange); letter-spacing: .02em; }
.stages h3 { font-size: 19px; margin: 4px 0 2px; color: #fff; line-height: 1.15; }
.stages .when { font-size: 13px; color: var(--muted-d); }
.stages p { font-size: 13.5px; margin: 8px 0 0; line-height: 1.45; }
.stages .gate { font-weight: 600; color: #fff; margin-top: auto; padding-top: 8px; }
.streams, .sprints { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 44px; }
.streams div, .sprints div { border-top: 1px solid var(--line-d); padding-top: 12px; }
.streams b, .sprints b { color: var(--orange); display: block; font-size: 14.5px; }
.streams p, .sprints p { margin: 4px 0 0; font-size: 14px; line-height: 1.45; }
.gantt-wrap { overflow: auto; margin-top: 6px; }
.gantt { display: grid; grid-template-columns: repeat(13, 1fr); row-gap: 6px; min-width: 860px; }
.gantt .m { font-weight: 600; color: #fff; font-size: 15px; }
.gantt .w { font-size: 13.5px; color: var(--muted-d); padding-bottom: 4px; }
.bar { border-radius: 8px; padding: 12px 14px; font-weight: 600; font-size: 14.5px; line-height: 1.2; display: flex; align-items: center; white-space: nowrap; position: relative; z-index: 1; }
.bar.or { background: var(--orange); color: var(--ink); }
.bar.bl { background: var(--blue); color: var(--ink); }
.bar.nv { background: #fff; color: var(--ink); }
.hol { grid-row: 3 / span 4; background: rgba(255,255,255,.05); border: 1px dashed var(--line-d); border-radius: 8px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; color: var(--muted-d); font-size: 13.5px; }

/* ---------- team ---------- */
.team { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.team li { display: grid; grid-template-columns: 230px 1fr 170px; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.team .role { font: 600 18px/1.2 var(--display); color: var(--ink); display: block; }
.team b { display: block; color: var(--orange-text); font-weight: 500; margin-top: 4px; }
.team .area { font-size: 13px; color: var(--muted); display: block; margin-bottom: 4px; }
.team p { margin: 0; font-size: 14.5px; line-height: 1.45; }
.team .kit { font-weight: 600; color: var(--ink); font-size: 14px; text-align: right; }

/* ---------- bands ---------- */
.band { border-radius: 14px; padding: 20px 24px; margin-top: 28px; display: flex; gap: 22px; align-items: center; }
.band.nv { background: var(--ink); color: var(--on-dark-soft); display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.band.nv b { color: var(--orange); display: block; margin-bottom: 4px; font-size: 14px; }
.band.nv p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.band.or { background: var(--orange); color: var(--ink); }
.band.or p { margin: 0; font-size: 15.5px; line-height: 1.45; }
.blabel { font-weight: 700; font-size: 14px; flex: none; letter-spacing: .02em; }

/* ---------- costs ---------- */
.costs { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.costs table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 15px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--paper-2); font-variant-numeric: tabular-nums; }
.costs th { background: var(--ink); color: #fff; text-align: left; font-weight: 600; padding: 11px 14px; }
.costs th.r, .costs td.r { text-align: right; white-space: nowrap; }
.costs td { padding: 10px 14px; border-top: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; line-height: 1.35; }
.costs td + td { border-left: 1px solid var(--line); }
.costs tr.total td { background: var(--paper-3); font-weight: 600; color: var(--ink); }
.costs tr.free td { color: var(--ink); }
.total-line { display: grid; grid-template-columns: auto auto 1fr; gap: 10px 28px; align-items: baseline; margin-top: 26px; padding-top: 18px; border-top: 2px solid var(--ink); }
.total-line span { font-size: 15px; color: var(--muted); }
.total-line b { font: 700 36px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.total-line p { margin: 0; font-size: 15px; line-height: 1.45; }

/* ---------- requirements, commitments ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.dark-card { border-top: 1px solid var(--line-d); padding-top: 18px; }
.dark-card h3 { font-size: 21px; margin-bottom: 10px; }
.dark-card ul { margin: 0; padding-left: 18px; }
.dark-card li { margin-bottom: 8px; font-size: 14.5px; line-height: 1.45; }
.dark-card b { color: #fff; }
.dark-card p { font-size: 14.5px; margin: 0; }
.sub-k { color: var(--orange); font-weight: 600; font-size: 13.5px; margin: 10px 0 6px !important; }
.commit { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.deliver { margin: 0; padding: 18px 0 0 22px; border-top: 1px solid var(--line); }
.deliver li { margin-bottom: 10px; font-size: 14.5px; line-height: 1.45; padding-left: 4px; }
.commit-side { display: flex; flex-direction: column; gap: 22px; }

/* ---------- footer ---------- */
.foot { background: #06101c; color: var(--on-dark-soft); padding: 52px 0; }
.foot-in { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot p { max-width: 56ch; font-size: 14px; margin: 14px 0 0; line-height: 1.5; }
.foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.foot a { color: #fff; text-decoration: none; font-size: 14.5px; }
.foot ul a:hover { color: var(--orange); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .stages { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .stages::before { display: none; }
  .stages li::before { display: none; }
  .stages li { padding-top: 0; border-top: 2px solid var(--line-d); padding-top: 12px; }
  .stages li.hi { border-top-color: var(--orange); }
}
@media (max-width: 900px) {
  .sec { padding: 72px 0; }
  .burger { display: block; }
  .links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--navy); flex-direction: column; align-items: stretch; padding: 12px; border-bottom: 1px solid var(--line-d); gap: 2px; }
  .links.open { display: flex; }
  .links .btn { margin: 8px 0 0; justify-content: center; }
  .devices { grid-template-columns: 1fr; }
  .screens { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; gap: 24px; }
  .how-sticky { position: relative; top: 0; max-width: 420px; }
  .how-steps li { min-height: 0; padding: 22px 0 22px 56px; }
  .how-steps .n { top: 22px; margin-top: 0; }
  .modules { grid-template-columns: 1fr; }
  .arch { grid-template-columns: 1fr; }
  .stack { display: block; overflow: auto; }
  .srow { min-width: 860px; }
  .streams, .sprints { grid-template-columns: repeat(2, 1fr); }
  .stages { grid-template-columns: repeat(2, 1fr); }
  .costs, .two, .commit { grid-template-columns: 1fr; }
  .team li { grid-template-columns: 1fr; gap: 8px; }
  .team .kit { text-align: left; }
  .band.nv { grid-template-columns: 1fr; }
  .band.or { flex-direction: column; align-items: flex-start; gap: 8px; }
  .total-line { grid-template-columns: 1fr; }
  .layer { flex-direction: column; align-items: flex-start; gap: 4px; }
  .layer em { text-align: left; white-space: normal; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 56px 0 40px; }
  .hero-flow { padding: 14px 12px 10px; overflow: auto; }
  .hero-flow svg { min-width: 760px; }
  .stages, .streams, .sprints { grid-template-columns: 1fr; }
  .how-steps h3 { font-size: 22px; }
  .foot-in { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vflow circle, .iflow circle { display: none; }
  .btn, .vflow .nd, .how-steps li, .how-steps .n { transition: none; }
}
