/* v2 components: navigation, illustrations, conversion blocks.
   Surface language adapted from NullMotion (MIT): glass plates with an inset top highlight,
   deep soft shadows, blur-to-sharp reveals and a slow light sweep. */
:root {
  --glass: linear-gradient(180deg, rgba(30, 34, 42, .92), rgba(15, 18, 23, .95));
  --glass-line: rgba(255, 255, 255, .09);
  --glass-hi: inset 0 1px 0 rgba(255, 255, 255, .09);
  --shadow-lg: 0 40px 80px -20px rgba(0, 0, 0, .6), 0 12px 24px -12px rgba(0, 0, 0, .5);
  --hdr-h: 68px;
  --cyan: #63d3e8;
}

/* ---------- glass plate + sheen ---------- */
.glass { background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), var(--shadow-lg); border-radius: 16px; position: relative; overflow: hidden; }
.sheen::after { content: ""; position: absolute; top: 0; bottom: 0; left: -45%; width: 32%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .07) 50%, transparent); transform: skewX(-16deg); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .sheen::after { animation: sweep 7s var(--ease) infinite; } }
@keyframes sweep { 0%, 62% { left: -45%; } 100% { left: 125%; } }
.btn-primary { position: relative; overflow: hidden; box-shadow: 0 10px 30px -10px rgba(77, 141, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-18deg); }
@media (prefers-reduced-motion: no-preference) { .btn-primary::after { animation: sweep 5.5s var(--ease) infinite; } }
.btn-xl { min-height: 56px; padding: .9rem 1.6rem; font-size: 1.02rem; }

/* ---------- reveal ---------- */
.reveal.pre:not(.in) { opacity: .001; transform: translateY(16px); filter: blur(8px); }
.reveal.pre { transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.reveal.pre.d1 { transition-delay: .08s; } .reveal.pre.d2 { transition-delay: .16s; } .reveal.pre.d3 { transition-delay: .24s; }

/* ---------- header + dropdowns ---------- */
.site-header { --pad: 0px; }
.nav > ul { gap: .15rem; }
.nav .has-menu { position: relative; }
.nav .has-menu > button { display: inline-flex; align-items: center; gap: .35rem; min-height: 40px; padding: 0 .8rem; border-radius: 999px; color: var(--fg-2); background: none; border: 0; font: 400 .93rem var(--sans); cursor: pointer; }
.nav .has-menu > button::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform var(--dur) var(--ease); }
.nav .has-menu.open > button, .nav .has-menu > button:hover { color: var(--fg); background: rgba(255, 255, 255, .04); }
.nav .has-menu.open > button::after { transform: translateY(1px) rotate(225deg); }
.nav .has-menu.current > button { color: var(--fg); }
.nav .has-menu.current > button::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--blue); margin-right: .1rem; }
.menu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px); width: min(560px, 90vw); padding: .6rem; opacity: 0; visibility: hidden; transition: opacity .18s var(--ease), transform .18s var(--ease), visibility 0s .18s; z-index: 60; }
.menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.has-menu.open .menu { opacity: 1; visibility: visible; transform: translateX(-50%); transition-delay: 0s; }
.menu ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .2rem; }
.menu.one ul { grid-template-columns: 1fr; }
.menu a { display: grid; grid-template-columns: 34px 1fr; gap: .1rem .75rem; align-items: start; padding: .7rem .75rem; border-radius: 10px; text-decoration: none; color: var(--fg); min-height: 0; }
.menu a:hover, .menu a:focus-visible { background: rgba(255, 255, 255, .05); color: var(--fg); }
.menu a .ic { grid-row: span 2; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-fg); font-family: var(--mono); font-size: .7rem; border: 1px solid rgba(77, 141, 255, .25); }
.menu a.flag .ic { background: var(--orange-soft); color: var(--orange); border-color: rgba(255, 154, 69, .3); }
.menu a b { font-weight: 500; font-size: .92rem; letter-spacing: -.01em; }
.menu a span.d { font-size: .8rem; color: var(--fg-3); line-height: 1.35; }
.menu .menu-foot { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-top: .4rem; padding: .7rem .75rem .3rem; border-top: 1px solid var(--line); font-size: .82rem; color: var(--fg-3); }
.menu .menu-foot a { display: inline; padding: 0; color: var(--blue-fg); }
.hdr-actions { display: flex; align-items: center; gap: .5rem; }
@media (max-width: 1023px) { .nav { display: none !important; } .hdr-cta { display: none !important; } .nav-toggle { display: inline-flex !important; } }
@media (min-width: 1024px) { .nav { display: block !important; } .hdr-cta { display: inline-flex !important; } .nav-toggle, .mnav { display: none !important; } }

/* mobile grouped menu */
body.menu-open { overflow: hidden; }
.mnav { max-height: calc(100dvh - var(--hdr-h) - env(safe-area-inset-top, 0px)); overflow-y: auto; }
.mnav .grp { padding-block: .9rem .3rem; border-bottom: 1px solid var(--line); }
.mnav .grp > p { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); margin-bottom: .2rem; }
.mnav .grp ul { list-style: none; display: grid; }
.mnav .grp a { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 52px; border: 0; font-size: 1.08rem; padding-block: .35rem; }
.mnav .grp a small { font-size: .78rem; color: var(--fg-3); letter-spacing: 0; }
.mnav .grp a[aria-current="page"] { color: var(--blue-fg); }

/* sticky in-page subnav */
.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--hdr-h)); z-index: 40; background: rgba(11, 13, 16, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; align-items: center; gap: 1rem; }
.subnav .lbl { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); white-space: nowrap; display: none; }
@media (min-width: 900px) { .subnav .lbl { display: block; } }
.subnav ul { list-style: none; display: flex; gap: .2rem; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding-block: .45rem; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; white-space: nowrap; min-height: 38px; padding: 0 .8rem; border-radius: 999px; color: var(--fg-2); text-decoration: none; font-size: .86rem; }
.subnav a:hover { color: var(--fg); background: rgba(255, 255, 255, .04); }
.subnav a[aria-current="true"] { color: var(--bg); background: var(--fg); }
.subnav .btn { flex: none; }
@media (max-width: 640px) { .subnav .btn { display: none; } }
html { scroll-padding-top: 136px; }

/* ---------- kinetic hero headline ---------- */
.kinetic { font-size: clamp(2.5rem, 1rem + 4.6vw, 5.2rem); line-height: 1; letter-spacing: -.045em; font-weight: 600; }
.kinetic .w { display: inline-block; }
.kinetic .pill { white-space: nowrap; display: inline-flex; align-items: center; padding: .02em .32em .08em; margin: .04em 0; border-radius: 999px; background: var(--glass); border: 1px solid rgba(77, 141, 255, .35); box-shadow: var(--glass-hi), 0 0 0 6px rgba(77, 141, 255, .06), 0 18px 40px -12px rgba(77, 141, 255, .45); color: var(--fg); position: relative; overflow: hidden; }
.kinetic .pill::after { content: ""; position: absolute; top: 0; bottom: 0; left: -50%; width: 30%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .22), transparent); transform: skewX(-16deg); }
.kinetic .soft { color: var(--fg-3); }
@media (prefers-reduced-motion: no-preference) {
  .kinetic .w { animation: kin-l .8s var(--ease) both; }
  .kinetic .w.r { animation-name: kin-r; }
  .kinetic .w:nth-child(2) { animation-delay: .08s; } .kinetic .w:nth-child(3) { animation-delay: .16s; } .kinetic .w:nth-child(4) { animation-delay: .24s; } .kinetic .w:nth-child(5) { animation-delay: .32s; }
  .kinetic .pill { animation: kin-pill .7s .35s cubic-bezier(.3, 1.4, .5, 1) both; }
  .kinetic .pill::after { animation: sweep 6s 1.2s var(--ease) infinite; }
}
@keyframes kin-l { from { opacity: .001; transform: translateX(-40px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes kin-r { from { opacity: .001; transform: translateX(40px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes kin-pill { from { opacity: .001; transform: scale(.92, 1.06) translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- hero v2 ---------- */
.hero2 { position: relative; padding-block: clamp(1.5rem, .5rem + 4vw, 4rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); isolation: isolate; overflow: hidden; }
.hero2::before { content: ""; position: absolute; inset: -10% -10% auto; height: 120%; z-index: -1; background: radial-gradient(40% 50% at 78% 30%, rgba(77, 141, 255, .18), transparent 70%), radial-gradient(30% 35% at 12% 10%, rgba(99, 211, 232, .07), transparent 70%); }
.hero2::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 64px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 64px 100%; opacity: .28; -webkit-mask-image: radial-gradient(60% 70% at 70% 30%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 70% 30%, #000, transparent 75%); }
.hero2-grid { display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 980px) { .hero2-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.hero2-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero2-visual { position: relative; min-width: 0; max-width: 560px; width: 100%; justify-self: center; }
.hero2-visual .plate { aspect-ratio: 4 / 4.4; border-radius: 20px; }
.hero2-visual .plate img { width: 86%; right: 0; }
.float-card { position: absolute; z-index: 3; padding: .85rem .95rem; border-radius: 14px; }
.float-card.chart { right: -5%; bottom: 6%; width: min(300px, 62%); }
.float-card.status { left: -6%; top: 7%; width: min(220px, 48%); }
@media (max-width: 600px) { .float-card.chart { right: 0; bottom: 3%; width: 66%; } .float-card.status { left: 0; top: 3%; width: 52%; } }
@media (prefers-reduced-motion: no-preference) { .float-card { animation: bob 6s ease-in-out infinite; } .float-card.status { animation-delay: -3s; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.float-card .k { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: .45rem; gap: .5rem; }
.float-card .k b { color: var(--green); font-weight: 500; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); display: inline-block; }
@media (prefers-reduced-motion: no-preference) { .live-dot { animation: pulse 1.8s ease-in-out infinite; } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(85, 201, 139, 0); } }
.viz-mini { height: 110px; }
.ticker { list-style: none; display: grid; gap: .35rem; }
.ticker li { display: flex; align-items: center; gap: .55rem; font-family: var(--mono); font-size: .72rem; color: var(--fg-3); transition: color .3s; }
.ticker li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; transition: all .3s; }
.ticker li.run { color: var(--fg); }
.ticker li.run::before { border-color: var(--blue); border-top-color: transparent; animation: spin .8s linear infinite; }
.ticker li.done { color: var(--fg-2); }
.ticker li.done::before { background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230b0d10' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; border-color: var(--green); }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats > div { background: var(--bg); padding: 1rem 1.1rem; display: grid; gap: .15rem; }
.stats b { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.4rem); font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.stats > div > span { font-size: .82rem; color: var(--fg-3); line-height: 1.35; }
.stats b span { font: inherit; color: inherit; }

/* tools marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee .track { display: flex; gap: 2.5rem; width: max-content; padding-block: 1.1rem; }
@media (prefers-reduced-motion: no-preference) { .marquee .track { animation: marq 40s linear infinite; } }
@keyframes marq { to { transform: translateX(-50%); } }
.marquee span { font-family: var(--mono); font-size: .82rem; letter-spacing: .06em; color: var(--fg-2); white-space: nowrap; display: inline-flex; align-items: center; gap: .6rem; }
.marquee span::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--blue); opacity: .7; }

/* ---------- viz containers ---------- */
.viz { position: relative; display: grid; gap: .75rem; min-width: 0; }
.viz canvas { display: block; width: 100%; height: 100%; }
.viz-frame { padding: 1rem; border-radius: 16px; }
.viz-frame > .viz-cap, .viz-cap { display: flex; justify-content: space-between; gap: .75rem; flex-wrap: wrap; font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.viz-cap b { color: var(--fg-2); font-weight: 500; }
.viz-cap .sim::before { content: "◦ "; }
.h-220 canvas { height: 220px; } .h-260 canvas { height: 260px; } .h-300 canvas { height: 300px; } .h-340 canvas { height: 340px; } .h-110 canvas { height: 110px; }
@media (max-width: 559px) { .funnel-v canvas { height: 420px; } }
.viz-controls { display: grid; gap: .5rem; }
.viz-controls label { display: flex; justify-content: space-between; font-size: .88rem; color: var(--fg-2); }
.viz-controls output { font-family: var(--mono); color: var(--fg); background: var(--surface-2); border: 1px solid var(--line-strong); padding: 0 .55rem; border-radius: 6px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--green), var(--orange) 55%, var(--danger)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--green), var(--orange) 55%, var(--danger)); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--fg); border: 3px solid var(--bg); box-shadow: 0 0 0 1px var(--line-strong), 0 4px 12px rgba(0, 0, 0, .5); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--fg); border: 3px solid var(--bg); }
input[type="range"]:focus-visible { box-shadow: none; outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.viz-readout { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .84rem; color: var(--fg-3); align-items: baseline; }
.viz-readout b { font-family: var(--mono); color: var(--fg); font-weight: 500; font-size: .95rem; margin-right: .2rem; }
.viz-readout .verdict { flex-basis: 100%; font-size: .9rem; padding: .55rem .75rem; border-radius: 8px; border: 1px solid var(--line); color: var(--fg); }
.verdict.ok { border-color: rgba(85, 201, 139, .4); background: var(--green-soft); }
.verdict.warn { border-color: rgba(255, 154, 69, .4); background: var(--orange-soft); }
.verdict.bad { border-color: rgba(255, 107, 107, .45); background: rgba(255, 107, 107, .08); }

/* walk-forward */
.wf { display: grid; gap: .45rem; }
.wf-row { display: grid; grid-template-columns: 4.2rem 1fr; gap: .7rem; align-items: center; font-family: var(--mono); font-size: .68rem; color: var(--fg-3); }
.wf-track { position: relative; height: 16px; border-radius: 4px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); }
.wf-track i { position: absolute; top: 2px; bottom: 2px; border-radius: 3px; }
.wf-track i.is { background: rgba(77, 141, 255, .55); }
.wf-track i.oos { background: var(--orange); }
.wf-row.total .wf-track i.oos { box-shadow: 0 0 12px rgba(255, 154, 69, .4); }
@media (prefers-reduced-motion: no-preference) {
  .wf.play .wf-track i { transform-origin: left; animation: grow .6s var(--ease) both; }
  .wf.play .wf-row:nth-child(2) i { animation-delay: .25s; } .wf.play .wf-row:nth-child(3) i { animation-delay: .5s; } .wf.play .wf-row:nth-child(4) i { animation-delay: .75s; } .wf.play .wf-row:nth-child(5) i { animation-delay: 1s; } .wf.play .wf-row:nth-child(6) i { animation-delay: 1.25s; } .wf.play .wf-row:nth-child(7) i { animation-delay: 1.6s; }
}
@keyframes grow { from { transform: scaleX(0); opacity: 0; } to { transform: none; opacity: 1; } }
.legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-family: var(--mono); font-size: .68rem; color: var(--fg-3); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .4rem; vertical-align: -1px; }

/* hub network (agents / Hermes) */
.hub svg { width: 100%; height: auto; display: block; }
.hub .spoke { stroke: rgba(77, 141, 255, .35); stroke-width: 1.4; fill: none; }
.hub .flow { stroke: var(--cyan); stroke-width: 2; fill: none; stroke-dasharray: 6 120; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) { .hub .flow { animation: dash 2.4s linear infinite; } .hub .flow.f2 { animation-delay: -.6s; } .hub .flow.f3 { animation-delay: -1.2s; } .hub .flow.f4 { animation-delay: -1.8s; } .hub .core-ring { animation: spinr 18s linear infinite; transform-origin: center; transform-box: fill-box; } .hub .core-glow { animation: breathe 3.6s ease-in-out infinite; transform-origin: center; transform-box: fill-box; } }
@keyframes dash { from { stroke-dashoffset: 126; } to { stroke-dashoffset: 0; } }
@keyframes spinr { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { opacity: .55; transform: scale(1.08); } }
.hub .node rect { fill: #151a22; stroke: rgba(255, 255, 255, .12); }
.hub .node text, .hub text { font-family: var(--mono); font-size: 13px; fill: var(--fg-2); }
.hub .node text.t { fill: var(--fg); font-family: var(--sans); font-size: 14.5px; font-weight: 500; }
.hub .core text { fill: #fff; font-family: var(--mono); font-size: 12.5px; letter-spacing: 1.5px; font-weight: 600; }

/* HUD core (Strategic Engine) */
.hud { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; margin-inline: auto; }
.hud svg { width: 100%; height: 100%; display: block; overflow: visible; }
.hud .ring { fill: none; stroke: rgba(99, 211, 232, .35); }
.hud .ring.b { stroke: rgba(77, 141, 255, .5); stroke-dasharray: 2 8; }
.hud .ring.c { stroke: rgba(169, 139, 255, .55); stroke-dasharray: 120 40 30 60; stroke-width: 2.5; }
.hud .ring.d { stroke: rgba(255, 154, 69, .55); stroke-dasharray: 40 300; stroke-width: 3; stroke-linecap: round; }
@media (prefers-reduced-motion: no-preference) { .hud .rot { transform-origin: 260px 260px; animation: spinr 40s linear infinite; } .hud .rot.rev { animation-direction: reverse; animation-duration: 26s; } .hud .rot.fast { animation-duration: 9s; } .hud .mod { animation: modpulse 6.6s ease-in-out infinite; } .hud .mod:nth-of-type(2) { animation-delay: .6s; } .hud .mod:nth-of-type(3) { animation-delay: 1.2s; } .hud .mod:nth-of-type(4) { animation-delay: 1.8s; } .hud .mod:nth-of-type(5) { animation-delay: 2.4s; } .hud .mod:nth-of-type(6) { animation-delay: 3s; } .hud .mod:nth-of-type(7) { animation-delay: 3.6s; } .hud .mod:nth-of-type(8) { animation-delay: 4.2s; } }
@keyframes modpulse { 0%, 80%, 100% { opacity: .75; } 10% { opacity: 1; } }
.hud .mod rect { fill: rgba(16, 20, 26, .92); stroke: rgba(99, 211, 232, .35); }
.hud .mod text { font-family: var(--mono); font-size: 12px; fill: var(--fg); letter-spacing: .5px; }
.hud .mod text.n { fill: var(--cyan); font-size: 10.5px; }
.hud .center text { font-family: var(--sans); fill: #fff; font-weight: 600; letter-spacing: -.5px; }
.hud .center text.s { font-family: var(--mono); font-size: 11px; fill: var(--cyan); letter-spacing: 2px; font-weight: 500; }

/* codegen */
.codegen { display: grid; gap: .8rem; }
.codegen .rule { font-size: .92rem; color: var(--fg); padding: .75rem .9rem; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.codegen .rule b { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); font-weight: 500; margin-bottom: .3rem; }
.code { margin: 0; font-family: var(--mono); font-size: .76rem; line-height: 1.65; color: var(--fg-2); background: #0a0c0f; border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1rem; overflow-x: auto; white-space: pre; tab-size: 4; min-height: 0; }
.code .kw { color: #c792ea; } .code .fn { color: var(--blue-fg); } .code .num { color: var(--orange); } .code .str { color: #9ece6a; } .code .cm { color: var(--fg-3); font-style: italic; }
.codegen.typing [data-code]::after { content: "▍"; color: var(--blue); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pass { display: inline-flex; gap: .5rem; align-items: center; font-family: var(--mono); font-size: .74rem; color: var(--green); }
.pass::before { content: "✓"; width: 18px; height: 18px; border-radius: 50%; background: var(--green-soft); border: 1px solid rgba(85, 201, 139, .4); display: grid; place-items: center; font-size: .7rem; }
.codegen [data-code] { min-height: 15.5em; }

/* code tabs */
.ctabs { display: grid; gap: .7rem; min-width: 0; }
.ctabs [role="tablist"] { display: flex; gap: .3rem; flex-wrap: wrap; }
.ctabs [role="tab"] { min-height: 38px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--fg-2); font: 500 .84rem var(--sans); cursor: pointer; }
.ctabs [role="tab"][aria-selected="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* risk gate */
.riskgate ol { list-style: none; display: grid; gap: .45rem; min-height: 13.6rem; }
.ord { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "side sym chk" "res res res"; gap: .35rem .7rem; align-items: center; padding: .6rem .75rem; border-radius: 10px; background: rgba(255, 255, 255, .025); border: 1px solid var(--line); font-size: .84rem; animation: toastin .45s var(--ease) both; }
@media (min-width: 520px) { .ord { grid-template-columns: auto minmax(0, 1fr) auto 10.5rem; grid-template-areas: "side sym chk res"; } }
.ord .side { grid-area: side; font-family: var(--mono); font-size: .68rem; padding: .15rem .45rem; border-radius: 5px; }
.ord .side.b { color: var(--green); background: var(--green-soft); } .ord .side.s { color: var(--danger); background: rgba(255, 107, 107, .1); }
.ord .sym { grid-area: sym; font-family: var(--mono); color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord .sym i { font-style: normal; color: var(--fg-3); }
.ord .chk { grid-area: chk; display: flex; gap: 4px; }
.ord .chk i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); transition: background .2s; }
.ord .chk i.ok { background: var(--green); } .ord .chk i.x { background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.ord .res { grid-area: res; font-family: var(--mono); font-size: .72rem; color: var(--fg-3); }
.ord.sent .res { color: var(--green); } .ord.blocked { border-color: rgba(255, 107, 107, .4); background: rgba(255, 107, 107, .05); } .ord.blocked .res { color: var(--danger); }
@keyframes toastin { from { opacity: .001; transform: translateY(-8px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* toasts */
.toasts { position: relative; }
.toasts ol { list-style: none; display: grid; position: relative; min-height: 12.5rem; }
.toast { grid-area: 1 / 1; align-self: start; display: grid; grid-template-columns: 36px 1fr auto; gap: .1rem .75rem; align-items: center; padding: .75rem .85rem; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi), 0 18px 36px -14px rgba(0, 0, 0, .7); transition: transform .5s var(--ease), opacity .5s var(--ease), filter .5s var(--ease); }
.toast[data-depth="0"] { animation: toastin .5s var(--ease) both; z-index: 4; }
.toast[data-depth="1"] { transform: translateY(4.2rem) scale(.97); opacity: .85; z-index: 3; }
.toast[data-depth="2"] { transform: translateY(8.1rem) scale(.94); opacity: .55; z-index: 2; filter: blur(.4px); }
.toast[data-depth="3"] { transform: translateY(10rem) scale(.9); opacity: 0; z-index: 1; }
.toast .ic { grid-row: span 2; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-size: .8rem; }
.toast .ic.g { background: var(--green-soft); color: var(--green); } .toast .ic.b { background: var(--blue-soft); color: var(--blue-fg); } .toast .ic.o { background: var(--orange-soft); color: var(--orange); } .toast .ic.r { background: rgba(255, 107, 107, .1); color: var(--danger); }
.toast b { font-size: .88rem; font-weight: 500; color: var(--fg); }
.toast > span:not(.ic) { font-size: .76rem; color: var(--fg-3); grid-column: 2; grid-row: 2; }
.toast b { grid-column: 2; grid-row: 1; }
.toast time { grid-row: 1; grid-column: 3; font-family: var(--mono); font-size: .66rem; color: var(--fg-3); }

/* checklist */
.checklist ul { list-style: none; display: grid; gap: .35rem; }
.checklist li { display: grid; grid-template-columns: 20px 1fr; gap: .6rem; align-items: center; font-size: .88rem; color: var(--fg-3); padding: .4rem .5rem; border-radius: 8px; transition: color .3s, background .3s; }
.checklist li::before { content: ""; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--line-strong); transition: all .3s; }
.checklist li.on { color: var(--fg); background: rgba(255, 255, 255, .02); }
.checklist li.on::before { border-color: var(--green); background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230b0d10' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.progress { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--green)); transition: width .5s var(--ease); }
.ready { font-family: var(--mono); font-size: .78rem; color: var(--green); }

/* sentiment */
.senti { display: grid; gap: .5rem; }
.srow { display: grid; grid-template-columns: minmax(0, 1fr); gap: .4rem; padding: .7rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); opacity: .6; transition: opacity .4s; }
.srow.on { opacity: 1; }
.srow .h { font-size: .88rem; color: var(--fg); }
.srow .m { display: flex; flex-wrap: wrap; gap: .3rem .8rem; font-family: var(--mono); font-size: .68rem; color: var(--fg-3); align-items: center; }
.srow .m .ent { color: var(--blue-fg); }
.sbar { position: relative; height: 6px; border-radius: 6px; background: var(--line); }
.sbar::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--fg-3); }
.sbar i { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; border-radius: 6px; transition: width .8s var(--ease), left .8s var(--ease); }
.srow[data-sign="pos"] .sbar i { background: var(--green); } .srow[data-sign="neg"] .sbar i { background: var(--danger); } .srow[data-sign="neu"] .sbar i { background: var(--fg-3); }

/* ---------- problem / failure cards ---------- */
.fails { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 860px) { .fails { grid-template-columns: repeat(3, 1fr); } }
.fail { padding: 1.4rem; display: grid; gap: .7rem; align-content: start; }
.fail .n { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; color: var(--danger); text-transform: uppercase; }
.fail h3 { font-size: 1.15rem; }
.fail p { color: var(--fg-2); font-size: .93rem; }
.fail .fix { margin-top: .3rem; padding-top: .8rem; border-top: 1px solid var(--line); font-size: .88rem; color: var(--fg); }
.fail .fix b { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--green); font-weight: 500; display: block; margin-bottom: .2rem; }

/* ---------- offers ---------- */
.offers { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .offers { grid-template-columns: 1fr 1fr; } }
.offer { padding: clamp(1.4rem, 1rem + 1.5vw, 2.2rem); display: grid; gap: 1.1rem; align-content: start; }
.offer.hot { border-color: rgba(77, 141, 255, .4); box-shadow: var(--glass-hi), 0 0 0 1px rgba(77, 141, 255, .15), 0 40px 80px -30px rgba(77, 141, 255, .35); }
.offer .tag { justify-self: start; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: .3rem .65rem; border-radius: 999px; background: var(--blue-soft); color: var(--blue-fg); border: 1px solid rgba(77, 141, 255, .3); }
.offer.alt .tag { background: var(--orange-soft); color: var(--orange); border-color: rgba(255, 154, 69, .3); }
.offer h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); letter-spacing: -.03em; line-height: 1.15; }
.offer .for { color: var(--fg-2); }
.offer ul { list-style: none; display: grid; gap: .55rem; }
.offer li { display: grid; grid-template-columns: 1.3rem 1fr; gap: .5rem; color: var(--fg-2); font-size: .94rem; }
.offer li::before { content: "✓"; color: var(--green); font-weight: 600; }
.offer .btns { margin-top: .4rem; }

/* before/after */
.ba { display: grid; grid-template-columns: 1fr; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 760px) { .ba { grid-template-columns: 1fr 1fr; } }
.ba > div { padding: 1.5rem; display: grid; gap: .8rem; align-content: start; }
.ba .before { background: rgba(255, 107, 107, .04); }
.ba .after { background: linear-gradient(135deg, rgba(77, 141, 255, .1), rgba(85, 201, 139, .05)); border-top: 1px solid var(--line); }
@media (min-width: 760px) { .ba .after { border-top: 0; border-left: 1px solid var(--line); } }
.ba h3 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.ba .before h3 { color: var(--danger); } .ba .after h3 { color: var(--green); }
.ba ul { list-style: none; display: grid; gap: .6rem; }
.ba li { display: grid; grid-template-columns: 1.2rem 1fr; gap: .5rem; font-size: .95rem; color: var(--fg-2); }
.ba .before li::before { content: "✕"; color: var(--danger); } .ba .after li::before { content: "✓"; color: var(--green); }
.ba .after li { color: var(--fg); }

/* outcomes grid */
.outcomes { list-style: none; display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
@media (min-width: 640px) { .outcomes { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .outcomes { grid-template-columns: repeat(4, 1fr); } }
.outcomes li { background: var(--bg); padding: 1.3rem; display: grid; gap: .5rem; align-content: start; }
.outcomes .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-fg); border: 1px solid rgba(77, 141, 255, .25); font-family: var(--mono); font-size: .76rem; }
.outcomes b { font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.outcomes span { font-size: .87rem; color: var(--fg-3); }

/* skill staircase */
.stairs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .5rem; align-items: end; height: 260px; }
.stairs > div { position: relative; border-radius: 12px 12px 4px 4px; padding: .8rem .7rem; display: flex; flex-direction: column; justify-content: flex-start; gap: .25rem; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi); min-width: 0; }
.stairs > div:nth-child(1) { height: 34%; } .stairs > div:nth-child(2) { height: 55%; } .stairs > div:nth-child(3) { height: 77%; border-color: rgba(77, 141, 255, .45); } .stairs > div:nth-child(4) { height: 100%; border-color: rgba(85, 201, 139, .45); background: linear-gradient(180deg, rgba(85, 201, 139, .12), rgba(15, 18, 23, .95)); }
.stairs .w { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-fg); }
.stairs b { font-size: .86rem; font-weight: 600; line-height: 1.25; letter-spacing: -.01em; }
.stairs span { font-size: .74rem; color: var(--fg-3); line-height: 1.3; }
@media (max-width: 520px) { .stairs span { display: none; } .stairs b { font-size: .78rem; } }
@media (prefers-reduced-motion: no-preference) { .stairs.play > div { transform-origin: bottom; animation: rise-up .7s var(--ease) both; } .stairs.play > div:nth-child(2) { animation-delay: .15s; } .stairs.play > div:nth-child(3) { animation-delay: .3s; } .stairs.play > div:nth-child(4) { animation-delay: .45s; } }
@keyframes rise-up { from { transform: scaleY(.2); opacity: .001; } to { transform: none; opacity: 1; } }

/* curriculum v2 */
.wtabs [role="tablist"] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; margin-bottom: 1.2rem; }
@media (min-width: 900px) { .wtabs [role="tablist"] { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wtabs [role="tab"] { text-align: left; display: grid; gap: .2rem; padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--line); background: var(--bg-2); color: var(--fg); cursor: pointer; font: inherit; min-height: 60px; transition: border-color var(--dur), background var(--dur); }
.wtabs [role="tab"]:hover { border-color: var(--line-strong); }
.wtabs [role="tab"][aria-selected="true"] { border-color: var(--blue); background: linear-gradient(180deg, rgba(77, 141, 255, .14), rgba(77, 141, 255, .03)); box-shadow: 0 0 0 1px rgba(77, 141, 255, .3); }
.wtabs [role="tab"] .w { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-fg); }
.wtabs [role="tab"] .s { font-weight: 500; font-size: .95rem; letter-spacing: -.01em; }
.wtabs [role="tab"] .m { font-family: var(--mono); font-size: .66rem; color: var(--fg-3); }
.wpanel { display: grid; gap: 1.4rem; }
.wpanel-head { display: grid; gap: 1.2rem; grid-template-columns: 1fr; padding: clamp(1.2rem, 1rem + 1vw, 1.8rem); }
@media (min-width: 900px) { .wpanel-head { grid-template-columns: 1.2fr 1fr; } }
.wpanel-head h3 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); letter-spacing: -.025em; }
.wpanel-head .outs { list-style: none; display: grid; gap: .5rem; }
.wpanel-head .outs li { display: grid; grid-template-columns: 1.3rem 1fr; gap: .5rem; font-size: .92rem; color: var(--fg); }
.wpanel-head .outs li::before { content: "→"; color: var(--green); }
.wpanel-head .meta-row { display: flex; flex-wrap: wrap; gap: .4rem; }
.deliv2 { border-left: 2px solid var(--orange); padding-left: .9rem; font-size: .92rem; color: var(--fg-2); }
.deliv2 b { display: block; font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); font-weight: 500; margin-bottom: .2rem; }
.module .body .lab { border: 1px solid rgba(77, 141, 255, .28); background: var(--blue-soft); border-radius: var(--radius-sm); padding: var(--s4); font-size: .9rem; color: var(--fg); align-self: start; }
.module .body .lab b { display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-fg); font-weight: 500; margin-bottom: .35rem; }
.wtabs .modules { margin-left: 0 !important; }

/* final project build */
.build { list-style: none; counter-reset: b; display: grid; gap: .5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .build { grid-template-columns: 1fr 1fr; } }
.build li { counter-increment: b; display: grid; grid-template-columns: 2.2rem 1fr; gap: .6rem; align-items: center; padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); font-size: .93rem; }
.build li::before { content: counter(b, decimal-leading-zero); font-family: var(--mono); font-size: .72rem; color: var(--blue-fg); }

/* ---------- project showcase ---------- */
.showcase { display: grid; gap: 1.2rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1140px) { .showcase.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pc { display: grid; grid-template-rows: auto 1fr; border-radius: 16px; overflow: hidden; position: relative; transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease); min-width: 0; }
.pc:hover { transform: translateY(-3px); border-color: rgba(77, 141, 255, .35); }
.pc:has(.pc-title a:focus-visible) { box-shadow: var(--focus); }
.pc-art { position: relative; height: 190px; border-bottom: 1px solid var(--line); background: radial-gradient(70% 90% at 70% 0%, rgba(77, 141, 255, .14), transparent 70%), #0d1015; overflow: hidden; display: grid; place-items: center; padding: 1rem; }
.pc-art > * { width: 100%; }
.pc-art .viz canvas { height: 158px; }
.pc-body { padding: 1.2rem 1.3rem 1.3rem; display: grid; gap: .7rem; align-content: start; }
.pc-top { display: flex; justify-content: space-between; gap: .5rem; align-items: center; flex-wrap: wrap; }
.pc-title { font-size: 1.15rem; letter-spacing: -.015em; }
.pc-title a { color: var(--fg); text-decoration: none; }
.pc-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.pc-title a:focus-visible { box-shadow: none; }
.pc p { color: var(--fg-2); font-size: .92rem; }
.pc .stack-list { font-family: var(--mono); font-size: .7rem; color: var(--fg-3); display: flex; flex-wrap: wrap; gap: .25rem .8rem; }
.pc .go { font-size: .86rem; color: var(--blue-fg); margin-top: .2rem; }
.pc.flag { grid-column: 1 / -1; }
@media (min-width: 900px) { .pc.flag { grid-template-columns: 1.15fr 1fr; grid-template-rows: none; } .pc.flag .pc-art { height: auto; min-height: 300px; border-bottom: 0; border-right: 1px solid var(--line); } .pc.flag .pc-body { padding: 2rem; align-content: center; } .pc.flag .pc-title { font-size: 1.8rem; letter-spacing: -.03em; } }
.pc.flag .funnel-art canvas { height: 270px; }
.partof { font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.mini-hub svg { max-height: 165px; }
.mini-code { font-size: .64rem; line-height: 1.5; padding: .6rem .75rem; max-height: 158px; overflow: hidden; }
.pc-art .riskgate ol, .pc-art .toasts ol { min-height: 0; }
.pc-art .ord { padding: .45rem .6rem; font-size: .76rem; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "side sym chk" "res res res"; }
.pc-art .checklist li { padding: .2rem .4rem; font-size: .8rem; }
.pc-art .srow { padding: .45rem .6rem; }
.pc-art .srow .h { font-size: .78rem; }

/* project detail */
.pd-hero { padding-block: clamp(2rem, 1.5rem + 3vw, 4rem); border-bottom: 1px solid var(--line); position: relative; }
.pd-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .pd-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3.5rem; } }
.pd-grid > * { min-width: 0; }
.steps { list-style: none; display: grid; gap: 0; counter-reset: s; position: relative; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.6rem 1fr; gap: .9rem; padding-bottom: 1.4rem; position: relative; }
.steps li::before { content: counter(s); width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: .82rem; color: var(--blue-fg); background: var(--glass); border: 1px solid rgba(77, 141, 255, .35); box-shadow: var(--glass-hi); position: relative; z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 1.3rem; top: 2.6rem; bottom: 0; width: 1px; background: linear-gradient(var(--blue), transparent); opacity: .5; }
.steps li:last-child::after { display: none; }
.steps b { display: block; font-weight: 600; font-size: 1.02rem; margin-bottom: .2rem; letter-spacing: -.01em; padding-top: .45rem; }
.steps span { color: var(--fg-2); font-size: .94rem; }
.steps.h { counter-reset: s; }
@media (min-width: 900px) { .steps.h { grid-template-columns: repeat(5, 1fr); gap: 1rem; } .steps.h li { grid-template-columns: 1fr; padding-bottom: 0; } .steps.h li::after { left: 2.6rem; right: -1rem; top: 1.3rem; bottom: auto; width: auto; height: 1px; background: linear-gradient(90deg, var(--blue), transparent); } .steps.h b { padding-top: .3rem; } }
.feat { list-style: none; display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feat { grid-template-columns: 1fr 1fr; } }
.feat li { display: grid; grid-template-columns: 1.4rem 1fr; gap: .55rem; padding: .85rem .95rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2); font-size: .93rem; color: var(--fg); }
.feat li::before { content: "✓"; color: var(--green); font-weight: 600; }

/* three-step process cards */
.proc { list-style: none; display: grid; gap: 1rem; grid-template-columns: 1fr; counter-reset: p; }
@media (min-width: 700px) { .proc { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .proc { grid-template-columns: repeat(5, 1fr); } }
.proc li { counter-increment: p; padding: 1.2rem; display: grid; gap: .55rem; align-content: start; }
.proc li::before { content: counter(p, decimal-leading-zero); font-family: var(--mono); font-size: .7rem; color: var(--fg-3); letter-spacing: .1em; }
.proc .ic { width: 40px; height: 40px; border-radius: 11px; background: linear-gradient(180deg, #2a313c, #171c24); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 6px 14px rgba(0, 0, 0, .4); display: grid; place-items: center; color: var(--fg); font-family: var(--mono); font-size: .8rem; }
.proc b { font-size: 1.02rem; letter-spacing: -.01em; }
.proc span { font-size: .88rem; color: var(--fg-2); }
.proc .bar { height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; margin-top: .3rem; }
.proc .bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform-origin: left; }
@media (prefers-reduced-motion: no-preference) { .proc.play .bar i { animation: grow 1s var(--ease) both; } .proc.play li:nth-child(2) .bar i { animation-delay: .2s; } .proc.play li:nth-child(3) .bar i { animation-delay: .4s; } .proc.play li:nth-child(4) .bar i { animation-delay: .6s; } .proc.play li:nth-child(5) .bar i { animation-delay: .8s; } }

/* services grid */
.svc { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .svc { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .svc { grid-template-columns: repeat(3, 1fr); } }
.svc > div { padding: 1.4rem; display: grid; gap: .6rem; align-content: start; }
.svc .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-size: .78rem; color: var(--blue-fg); background: var(--blue-soft); border: 1px solid rgba(77, 141, 255, .3); }
.svc h3 { font-size: 1.1rem; }
.svc p { color: var(--fg-2); font-size: .92rem; }
.svc ul { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; }
.svc ul li { font-family: var(--mono); font-size: .68rem; color: var(--fg-3); border: 1px solid var(--line); border-radius: 999px; padding: .2rem .55rem; }

/* tool grid (integrations) */
.tools { display: grid; gap: .6rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 700px) { .tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .tools { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tools > div { display: grid; grid-template-columns: 36px 1fr; gap: .1rem .7rem; align-items: center; padding: .75rem .8rem; border-radius: 12px; background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--glass-hi); min-width: 0; }
.tools .ic { grid-row: span 2; width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(180deg, #2a313c, #171c24); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14); font-family: var(--mono); font-size: .72rem; color: var(--fg); }
.tools b { font-size: .88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tools span { font-size: .74rem; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* quiz */
.quiz { padding: clamp(1.3rem, 1rem + 1.5vw, 2.2rem); display: grid; gap: 1.2rem; }
.q-bar { height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.q-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--green)); transition: width .4s var(--ease); }
.q-step { display: grid; gap: .9rem; }
.q-step h3 { font-size: 1.2rem; letter-spacing: -.02em; }
.q-step .meta { margin-bottom: -.4rem; }
.q-opts { display: grid; gap: .5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .q-opts { grid-template-columns: repeat(3, 1fr); } }
.q-opt { text-align: left; display: grid; gap: .2rem; padding: .9rem 1rem; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--fg); font: inherit; cursor: pointer; min-height: 64px; transition: border-color var(--dur), background var(--dur), transform var(--dur); }
.q-opt:hover { border-color: var(--blue); transform: translateY(-1px); }
.q-opt[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); }
.q-opt b { font-weight: 500; }
.q-opt span { font-size: .82rem; color: var(--fg-3); }
.q-back, .q-reset { justify-self: start; background: none; border: 0; color: var(--fg-3); font: .86rem var(--sans); cursor: pointer; min-height: 40px; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.q-result { display: grid; gap: 1rem; padding: 1.3rem; border-radius: 14px; border: 1px solid rgba(85, 201, 139, .4); background: linear-gradient(135deg, rgba(85, 201, 139, .09), rgba(77, 141, 255, .05)); }
.q-result h3 { font-size: 1.35rem; letter-spacing: -.02em; }

/* proof / testimonials */
.tq { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 900px) { .tq { grid-template-columns: repeat(3, 1fr); } }
.tq figure { margin: 0; padding: 1.4rem; display: grid; gap: .8rem; }
.tq blockquote { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--fg); }
.tq figcaption { font-size: .86rem; color: var(--fg-3); }

/* guarantee-free trust strip */
.trust { display: grid; gap: 1px; grid-template-columns: 1fr; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust > div { background: var(--bg-2); padding: 1.1rem 1.2rem; display: grid; gap: .3rem; }
.trust b { font-size: .95rem; letter-spacing: -.01em; }
.trust span { font-size: .84rem; color: var(--fg-3); }

/* not-for-you */
.nfy { list-style: none; display: grid; gap: .55rem; }
.nfy li { display: grid; grid-template-columns: 1.3rem 1fr; gap: .5rem; color: var(--fg-2); }
.nfy li::before { content: "✕"; color: var(--danger); }

/* sitemap page */
.smap { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .smap { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .smap { grid-template-columns: repeat(4, 1fr); } }
.smap section { padding: 1.3rem; display: grid; gap: .8rem; align-content: start; }
.smap h2 { font-size: 1.05rem; display: flex; align-items: center; gap: .55rem; }
.smap h2 i { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-style: normal; font-family: var(--mono); font-size: .66rem; background: var(--blue-soft); color: var(--blue-fg); }
.smap ul { list-style: none; display: grid; gap: .1rem; border-left: 1px solid var(--line-strong); margin-left: .75rem; }
.smap li a { display: grid; padding: .45rem 0 .45rem 1rem; text-decoration: none; color: var(--fg); position: relative; }
.smap li a::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .65rem; height: 1px; background: var(--line-strong); }
.smap li a span { font-size: .8rem; color: var(--fg-3); }
.smap li a:hover { color: var(--blue-fg); }
.smap li li a { padding-left: 1.6rem; font-size: .9rem; }
.smap li li a::before { left: .65rem; }

/* footer v2 */
.ft-grid.v2 { grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .ft-grid.v2 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .ft-grid.v2 { grid-template-columns: 1.4fr repeat(5, minmax(0, 1fr)); gap: var(--s5); } }
.ft-grid.v2 > .brand { grid-column: 1 / -1; }
@media (min-width: 1100px) { .ft-grid.v2 > .brand { grid-column: auto; } }
.ft-cta { display: grid; gap: 1rem; padding: clamp(1.4rem, 1rem + 2vw, 2.4rem); margin-bottom: 3rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 860px) { .ft-cta { grid-template-columns: 1.4fr auto; } }
.ft-cta h2 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -.03em; color: var(--fg); text-transform: none; font-family: var(--sans); font-weight: 600; margin: 0; }

/* section helpers */
.center-head { text-align: center; margin-inline: auto; justify-items: center; }
.center-head .body-2 { margin-inline: auto; }
.kicker-num { font-family: var(--mono); color: var(--blue-fg); }
.two { display: grid; gap: clamp(1.5rem, 3vw, 3rem); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .two.wide-r { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } .two.wide-l { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }
.two > * { min-width: 0; }
.mt-lg { margin-top: 2.5rem; } .mt-md { margin-top: 1.5rem; }
.pull { font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); letter-spacing: -.02em; line-height: 1.35; color: var(--fg); max-width: 34ch; }
.pull em { font-style: normal; color: var(--blue-fg); }
.cap-sim { font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; color: var(--fg-3); }

/* walk-forward geometry (classes, not inline styles: CSP style-src 'self') */
.wf-row:nth-child(1) i.is { left: 1%; width: 38%; } .wf-row:nth-child(1) i.oos { left: 39%; width: 10%; }
.wf-row:nth-child(2) i.is { left: 11%; width: 38%; } .wf-row:nth-child(2) i.oos { left: 49%; width: 10%; }
.wf-row:nth-child(3) i.is { left: 21%; width: 38%; } .wf-row:nth-child(3) i.oos { left: 59%; width: 10%; }
.wf-row:nth-child(4) i.is { left: 31%; width: 38%; } .wf-row:nth-child(4) i.oos { left: 69%; width: 10%; }
.wf-row:nth-child(5) i.is { left: 41%; width: 38%; } .wf-row:nth-child(5) i.oos { left: 79%; width: 10%; }
.wf-row:nth-child(6) i.is { left: 51%; width: 38%; } .wf-row:nth-child(6) i.oos { left: 89%; width: 10%; }
.wf-row.total i.oos { left: 39%; width: 60%; }
.legend .lg-is { background: rgba(77, 141, 255, .55); } .legend .lg-oos { background: var(--orange); }
.hud { aspect-ratio: 8 / 7; max-width: 600px; }
@media (prefers-reduced-motion: no-preference) { .hud .rot { transform-origin: 320px 280px; } }
.module summary h4 { font-size: 1.02rem; letter-spacing: -.015em; line-height: 1.25; }
.soc { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.soc a { display: inline-flex; min-height: 36px; align-items: center; padding: 0 .8rem; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--fg-2); text-decoration: none; font-size: .86rem; }
.marquee .track-a { display: flex; gap: 2.5rem; }
.hero2-visual .plate img { width: 88%; }
.hero2-visual .plate::after { height: 30%; }
.phero.with-img .stats { margin-top: .5rem; }
.form-shell.glass { background: var(--glass); }
.pc-art[aria-hidden="true"] * { pointer-events: none; }
.pc .partof { margin-top: -.3rem; }

figure.viz-frame { margin: 0; }
.menu.glass { background: linear-gradient(180deg, #1a1f27, #11151b); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.nav a, .nav .has-menu > button { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav a, .nav .has-menu > button { padding: 0 .55rem; font-size: .88rem; }
  .nav > ul { gap: 0; }
  .hdr-cta { padding-inline: .9rem; }
}
