/* Cubework - AI workflow automation theme. Every colour, font and the radius live in :root. */
:root {
  --bg: #03070f;        /* page */
  --bg-hero: #060c1a;   /* hero base */
  --bg-alt: #050a15;    /* alternate section */
  --panel: #0a1222;     /* cards */
  --panel-2: #0f1830;   /* raised parts of cards */
  --line: #1a2440;      /* hairlines */
  --ink: #eaf1fb;       /* text */
  --dim: #8796ae;       /* quiet text */
  --faint: #45526b;     /* very quiet text, big numbers */
  --acc: #5cc8ff;       /* accent: live, buttons, model */
  --acc-2: #b4a6ff;     /* second accent: highlights */
  --acc-ink: #021320;   /* text on an accent fill */
  --glow-1: #14578a;    /* hero glow, centre */
  --glow-2: #0a2440;    /* hero glow, edge */
  --radius: 4px;        /* the one radius of the theme */
  --f-head: "Clash Grotesk", "Switzer", system-ui, sans-serif;
  --f-body: "Switzer", system-ui, sans-serif;
  --f-mono: "DM Mono", ui-monospace, monospace;
  --frame: 1380px;      /* width of the framed column */
  --pad: clamp(16px, 3vw, 40px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
.sprite { position: absolute; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--acc); color: var(--acc-ink); padding: 8px 12px; border-radius: var(--radius); }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; }
::selection { background: var(--acc); color: var(--acc-ink); }

.wrap { width: min(100% - 2 * var(--pad), var(--frame) - 2 * var(--pad)); margin-inline: auto; }
.mono { font: 400 12px/1.4 var(--f-mono); color: var(--dim); }
.small { font-size: 12.5px; color: var(--dim); }
.lead { font-size: 15.5px; color: var(--ink); max-width: 36ch; }
.acc { color: var(--acc); }

.h1, .h2, .h3 { font-family: var(--f-head); font-weight: 600; letter-spacing: -.025em; line-height: 1.06; }
.h1 { font-size: clamp(33px, 4.4vw, 64px); max-width: 13ch; }
.h2 { font-size: clamp(28px, 3vw, 44px); max-width: 20ch; }
.h2.big { font-size: clamp(34px, 3.8vw, 54px); max-width: none; }
.h3 { font-size: 17px; letter-spacing: -.01em; line-height: 1.25; }
.h3.big { font-size: clamp(22px, 1.9vw, 28px); }
.h2 em, .h1 em { font-style: normal; color: var(--acc-2); }

.label { display: flex; align-items: center; gap: 8px; font: 400 12px/1.4 var(--f-mono); color: var(--dim); letter-spacing: .02em; }
.dot { display: inline-block; width: 6px; height: 6px; background: var(--acc); flex: none; }
.dot.live { box-shadow: 0 0 0 0 var(--acc); animation: ping 2s steps(8) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 60%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }

/* buttons: outlined accent, light grows from the bottom edge on hover */
.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent);
  border-radius: var(--radius); background: color-mix(in srgb, var(--acc) 12%, var(--panel)); color: var(--ink); font-weight: 500; font-size: 14.5px; overflow: hidden;
  box-shadow: 0 0 24px -8px color-mix(in srgb, var(--acc) 60%, transparent), inset 0 1px 0 color-mix(in srgb, var(--acc) 25%, transparent); transition: box-shadow .4s, border-color .4s; }
.btn::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: linear-gradient(to top, color-mix(in srgb, var(--acc) 38%, transparent), transparent 70%);
  transform: scaleY(0); transform-origin: bottom; transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.btn:hover { border-color: var(--acc); box-shadow: 0 0 36px -6px color-mix(in srgb, var(--acc) 75%, transparent), inset 0 1px 0 color-mix(in srgb, var(--acc) 45%, transparent); }
.btn:hover::after { transform: scaleY(1); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.glyph { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2);
  font: 600 10px/1 var(--f-mono); font-style: normal; color: var(--ink); overflow: hidden; }
.apps .glyph { width: 26px; height: 26px; font-size: 11px; }

/* ---------- header: a console bar across the top, split into cells that line up with the page frame ---------- */
.head { position: fixed; z-index: 50; top: 0; left: 0; right: 0; border-bottom: 1px solid transparent; transition: background .4s, border-color .4s; }
.head.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.head-in { width: min(100% - 2 * var(--pad) + 2px, var(--frame) - 2 * var(--pad) + 2px); margin-inline: auto; display: flex; align-items: stretch; height: 60px;
  border-inline: 1px solid var(--line); }
.cell { display: flex; align-items: center; padding: 0 20px; border-right: 1px solid var(--line); }
.logo { gap: 10px; font: 600 19px/1 var(--f-head); letter-spacing: -.02em; }
.logo-mark { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--radius); background: var(--panel-2); color: var(--acc); border: 1px solid var(--line); }
.nav { display: flex; font-size: 13px; color: var(--dim); }
.nav a { position: relative; gap: 8px; transition: color .3s, background .3s; }
.idx { display: inline-flex; align-items: center; gap: 6px; font: 400 10.5px/1 var(--f-mono); color: var(--faint); }
.idx::before { content: ""; width: 5px; height: 5px; background: var(--line); transition: background .25s steps(2), box-shadow .25s; }
.nav a::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: 14px; height: 1px; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform .35s steps(6); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: color-mix(in srgb, var(--acc) 5%, transparent); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a:hover .idx::before, .nav a[aria-current="page"] .idx::before { background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.rate { gap: 8px; margin-left: auto; border-left: 1px solid var(--line); font: 400 11.5px/1 var(--f-mono); color: var(--dim); white-space: nowrap; }
.rate b { font-weight: 400; color: var(--ink); font-variant-numeric: tabular-nums; min-width: 4.4ch; text-align: right; }
.head-cta { position: relative; display: flex; align-items: center; gap: 10px; padding: 0 22px; background: var(--acc); color: var(--acc-ink); font-weight: 500; font-size: 14px; overflow: hidden; }
.head-cta::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--acc-ink) 18%, transparent) 0 4px, transparent 4px 8px);
  clip-path: inset(0 100% 0 0); transition: clip-path .45s steps(8); }
.head-cta:hover::before { clip-path: inset(0 0 0 0); }
.head-cta svg { position: relative; transition: transform .3s steps(3); }
.head-cta:hover svg { transform: translateX(3px); }
.menu-btn { display: none; margin-left: auto; width: 60px; border: 0; border-left: 1px solid var(--line); background: none; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 21px; right: 21px; height: 1.5px; background: var(--ink); transition: transform .3s; }
.menu-btn span:first-child { top: 26px; } .menu-btn span:nth-child(2) { top: 33px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }
.menu { position: absolute; left: 0; right: 0; top: 100%; display: grid; background: var(--bg); border-bottom: 1px solid var(--line);
  clip-path: inset(0 0 100% 0); transition: clip-path .45s steps(9); }
.menu.open { clip-path: inset(0 0 0 0); }
.menu a { display: flex; align-items: center; gap: 14px; padding: 18px var(--pad); font: 500 22px/1.1 var(--f-head); border-top: 1px solid var(--line); }
.menu .menu-cta { justify-content: space-between; background: var(--acc); color: var(--acc-ink); font: 500 16px/1 var(--f-body); }

/* ---------- frame: vertical hairlines with "+" where sections meet ---------- */
main { position: relative; }
.sec, .feed, .hero { position: relative; }
.sec::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, var(--line) 8%, var(--line) 92%, transparent); }
.sec > .wrap { position: relative; }
.sec > .wrap::before, .sec > .wrap::after { content: "+"; position: absolute; top: 0; translate: -50% -50%; font: 300 16px/1 var(--f-mono); color: var(--faint); }
.sec > .wrap::before { left: calc(-1 * var(--pad) / 2 - 6px); }
.sec > .wrap::after { left: calc(100% + var(--pad) / 2 + 6px); }
.rails { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
main::before { content: ""; position: absolute; inset: 100vh 0 0; pointer-events: none; z-index: 2;
  background: linear-gradient(var(--line), var(--line)) calc(50% - min(50% - var(--pad) / 2, var(--frame) / 2 - var(--pad) / 2)) 0 / 1px 100% no-repeat,
              linear-gradient(var(--line), var(--line)) calc(50% + min(50% - var(--pad) / 2, var(--frame) / 2 - var(--pad) / 2)) 0 / 1px 100% no-repeat; }

.sec { padding: clamp(64px, 7vw, 96px) 0; background: var(--bg); }
.sec.alt { background: var(--bg-alt); }
.sec-head { display: grid; grid-template-columns: 1fr minmax(0, 300px); gap: 14px 40px; align-items: end; padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.sec-head .label { grid-column: 1 / -1; }
.sec-text { color: var(--dim); font-size: 14px; }

/* ---------- hero: text on the left, the cube on the right, client strip along the bottom ---------- */
.hero { min-height: max(100svh, 720px); display: flex; flex-direction: column; background: var(--bg-hero); overflow: hidden; }
/* glow and grid sit where the cursor is (main.js sets --gx / --gy every frame; without a mouse they rest on the cube) */
.hero-glow { position: absolute; inset: 0; opacity: var(--gon, 1);
  background: radial-gradient(circle min(300px, 40vw) at var(--b0x, 70%) var(--b0y, 47%), var(--glow-1) 0%, transparent 70%),
              radial-gradient(circle min(380px, 48vw) at var(--b1x, 70%) var(--b1y, 47%), var(--glow-2) 0%, transparent 72%),
              radial-gradient(circle min(460px, 56vw) at var(--b2x, 70%) var(--b2y, 47%), color-mix(in srgb, var(--glow-2) 70%, transparent) 0%, transparent 74%); }
.hero-glow::after { content: ""; position: absolute; inset: 0; opacity: .22;
  background-image: linear-gradient(var(--ink) 1px, transparent 1px), linear-gradient(90deg, var(--ink) 1px, transparent 1px); background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle min(200px, 30vw) at var(--b0x, 70%) var(--b0y, 47%), #000, transparent 70%), radial-gradient(circle min(260px, 36vw) at var(--b1x, 70%) var(--b1y, 47%), rgba(0,0,0,.7), transparent 72%), radial-gradient(circle min(300px, 40vw) at var(--b2x, 70%) var(--b2y, 47%), rgba(0,0,0,.5), transparent 74%);
  mask-image: radial-gradient(circle min(200px, 30vw) at var(--b0x, 70%) var(--b0y, 47%), #000, transparent 70%), radial-gradient(circle min(260px, 36vw) at var(--b1x, 70%) var(--b1y, 47%), rgba(0,0,0,.7), transparent 72%), radial-gradient(circle min(300px, 40vw) at var(--b2x, 70%) var(--b2y, 47%), rgba(0,0,0,.5), transparent 74%); }
.cube { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; } /* size and centre of the cube: main.js part 4 */
.hero-in { position: relative; z-index: 2; flex: 1; display: flex; align-items: center; padding: 120px 0 40px; }
.hero-main { display: grid; justify-items: start; gap: 20px; max-width: 560px; }
.hero .h1 { max-width: 11ch; font-size: clamp(40px, 5vw, 76px); }
.hero .lead { max-width: 44ch; color: color-mix(in srgb, var(--ink) 80%, var(--dim)); }
.hero .h1, .hero .lead { text-shadow: 0 0 18px var(--bg-hero), 0 0 2px var(--bg-hero); }
/* eyebrow signal: three squares after the label light up one after another, like a signal being received */
.sig { display: inline-flex; align-items: flex-end; gap: 3px; margin-left: 6px; height: 10px; }
.js [data-type]:not(.typed) .sig { visibility: hidden; }
.sig i { width: 4px; background: var(--acc); visibility: hidden; animation: sig 1.8s steps(1) infinite; }
.sig i:nth-child(1) { height: 4px; } .sig i:nth-child(2) { height: 7px; animation-delay: .3s; } .sig i:nth-child(3) { height: 10px; animation-delay: .6s; }
@keyframes sig { 0% { visibility: visible; } 45% { visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .sig i, .js [data-type]:not(.typed) .sig { animation: none; visibility: visible; } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.runlog { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: color-mix(in srgb, var(--panel) 80%, transparent); color: var(--ink); max-width: 100%; overflow: hidden; white-space: nowrap; }
.runlog span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.runlog span::after { content: ""; display: inline-block; width: .55em; height: 1em; margin-left: 2px; vertical-align: -.15em; background: var(--acc); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { visibility: hidden; } }
.trusted { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 18px 40px; padding: 22px 0 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.logos { display: flex; flex-wrap: wrap; gap: 12px 32px; color: var(--faint); font: 600 17px/1 var(--f-head); letter-spacing: -.02em; }
.logos li { display: flex; align-items: center; gap: 8px; }
.wm { width: 16px; height: 16px; border: 2px solid currentColor; }
.wm-0 { border-radius: 50%; } .wm-1 { transform: rotate(45deg); scale: .8; } .wm-2 { border-width: 0 0 6px 6px; }
.wm-3 { border-radius: 50% 0; } .wm-4 { border-radius: 50%; border-style: dotted; } .wm-5 { border-width: 6px 2px; }

/* ---------- live feed: two rows running opposite ways ---------- */
.feed { padding: 36px 0 44px; background: var(--bg); border-bottom: 1px solid var(--line); overflow: hidden; }
.feed .label { margin-bottom: 18px; }
.feed-row { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.feed-row + .feed-row { margin-top: 12px; }
.feed-track { display: flex; gap: 12px; flex: none; padding-right: 12px; animation: run 48s linear infinite; }
.feed-row[data-dir="right"] .feed-track { animation-direction: reverse; animation-duration: 56s; }
.feed-row:hover .feed-track { animation-play-state: paused; }
@keyframes run { to { transform: translateX(-100%); } }
.ev { display: flex; align-items: center; gap: 10px; flex: none; height: 46px; padding: 0 14px 0 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); font-size: 13px; white-space: nowrap; }
.ev::before { content: ""; width: 5px; height: 5px; background: var(--acc); }
.ev svg { color: var(--faint); }
.ev .ago { font: 400 11.5px/1 var(--f-mono); color: var(--dim); margin-left: 6px; }

/* ---------- 01 anatomy ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step { position: relative; display: grid; align-content: start; gap: 10px; padding: 18px 18px 20px; min-height: 250px; }
.step-top { display: flex; justify-content: space-between; align-items: center; color: var(--acc); margin-bottom: 14px; }
.step p { color: var(--dim); font-size: 13.5px; }
.tags { margin-top: auto; padding-top: 26px; display: grid; gap: 6px; font: 400 12px/1.3 var(--f-mono); color: var(--dim); }
.tags li::before { content: ""; display: inline-block; width: 4px; height: 4px; margin-right: 8px; vertical-align: middle; background: var(--acc); }
.step .link { position: absolute; top: 50%; left: 100%; width: 22px; height: 1px; background: var(--line); }
.step .link::after { content: ""; position: absolute; top: -2px; left: 0; width: 5px; height: 5px; background: var(--acc); animation: hop 2.4s steps(10) infinite; }
.step:last-child .link { display: none; }
@keyframes hop { to { transform: translateX(17px); } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.stats div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 22px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dd { font: 600 clamp(26px, 2.3vw, 34px)/1 var(--f-head); letter-spacing: -.02em; }
.stats dt { font-size: 12.5px; color: var(--dim); }

/* ---------- 02 premise: words light up while you scroll ---------- */
.premise .label { margin-bottom: 28px; }
.premise-text { font: 500 clamp(24px, 2.5vw, 36px)/1.32 var(--f-head); letter-spacing: -.02em; max-width: 30ch; color: var(--ink); }
.premise-text b, .premise-text em { font-weight: 600; font-style: normal; }
.premise-text em { color: var(--acc); }
.premise-text em.a2 { color: var(--acc-2); }
.js .premise-text .w { transition: color .5s; }
.js .premise-text .w:not(.on) { color: var(--faint) !important; }

/* ---------- 03 connectors ---------- */
.wiring { padding: 22px 22px 18px; }
.wiring-cap { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--dim); }
.wiring-cap:first-child { margin-bottom: 14px; }
.wiring-cap:last-child { margin-top: 14px; }
.apps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.apps li { display: grid; justify-items: center; gap: 8px; padding: 16px 8px 14px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); font-size: 12.5px; color: var(--dim); transition: border-color .3s, color .3s; }
.apps li:hover { border-color: color-mix(in srgb, var(--acc) 50%, var(--line)); color: var(--ink); }
.wires { width: 100%; height: 56px; overflow: visible; }
.wires path { fill: none; stroke: var(--line); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.wires .pulse { stroke: var(--acc); stroke-width: 2px; stroke-dasharray: .12 .88; stroke-dashoffset: 1; filter: drop-shadow(0 0 4px var(--acc)); animation: flow 3.2s linear infinite; }
.wires .pulse.p2 { animation-delay: -1.6s; }
.wires-bot .pulse { animation-delay: -.8s; } .wires-bot .pulse.p2 { animation-delay: -2.4s; }
@keyframes flow { to { stroke-dashoffset: 0; } }
.core { position: relative; width: max-content; margin: 0 auto; display: flex; align-items: center; gap: 8px; padding: 10px 18px; background: var(--panel-2); border: 1px solid color-mix(in srgb, var(--acc) 40%, var(--line)); border-radius: var(--radius); font-size: 13px;
  box-shadow: 0 0 40px -10px color-mix(in srgb, var(--acc) 50%, transparent); }
.core .corner, .core::before, .core::after { position: absolute; font: 300 12px/1 var(--f-mono); color: var(--dim); }
.core::before { content: "+"; left: -12px; top: -12px; } .core::after { content: "+"; right: -12px; bottom: -12px; }

/* ---------- 04 recipes: a timeline down the middle ---------- */
.recipes { position: relative; display: grid; }
.recipes .axis { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.recipes .axis i { position: absolute; inset: 0; background: var(--acc); transform-origin: top; transform: scaleY(var(--p, 0)); box-shadow: 0 0 10px var(--acc); }
.recipe { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 190px; border-bottom: 1px solid var(--line); }
.recipe:last-child { border-bottom: 0; }
.recipe-body { min-width: 0; display: grid; gap: 10px; padding: 26px 0 26px 48px; grid-column: 2; grid-row: 1; }
.big-n { grid-column: 1; grid-row: 1; justify-self: end; padding-right: 48px; font: 600 clamp(60px, 6vw, 92px)/1 var(--f-head); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--line); }
.recipe:nth-child(odd) .recipe-body { grid-column: 1; justify-items: end; text-align: right; padding: 26px 48px 26px 0; }
.recipe:nth-child(odd) .big-n { grid-column: 2; justify-self: start; padding: 0 0 0 48px; }
.recipe .node { position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; translate: -50% -50%; background: var(--bg); border: 1px solid var(--faint); transition: background .3s, border-color .3s, box-shadow .3s; }
.recipe.on .node { background: var(--acc); border-color: var(--acc); box-shadow: 0 0 12px var(--acc); }
.recipe.on .big-n { -webkit-text-stroke-color: color-mix(in srgb, var(--acc) 45%, var(--line)); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.recipe:nth-child(odd) .chips { justify-content: flex-end; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px 0 4px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); font-size: 12px; color: var(--dim); }
.chip i { display: grid; place-items: center; width: 19px; height: 19px; background: var(--panel-2); font: 600 9.5px/1 var(--f-mono); font-style: normal; color: var(--ink); }
.chip.is-model { border-color: color-mix(in srgb, var(--acc) 40%, var(--line)); color: var(--acc); background: color-mix(in srgb, var(--acc) 8%, var(--panel)); }
.path { font-size: 11.5px; }

/* ---------- 05 teams ---------- */
.teams { overflow: hidden; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.tabs button { position: relative; height: 50px; border: 0; background: none; color: var(--dim); font-size: 13.5px; cursor: pointer; transition: color .3s, background .3s; }
.tabs button + button { border-left: 1px solid var(--line); }
.tabs button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--acc); transform: scaleX(0); transition: transform .4s steps(8); }
.tabs button[aria-selected="true"] { color: var(--acc); background: color-mix(in srgb, var(--acc) 7%, transparent); }
.tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.tabs button:hover { color: var(--ink); }
.panel { display: grid; grid-template-columns: 1fr 1.15fr; gap: 30px; padding: 30px; min-height: 380px; }
.panel[data-on="false"] { display: none; }
.panel-text { display: grid; align-content: start; gap: 12px; }
.panel-text > p:not(.small):not(.stat) { color: var(--dim); max-width: 46ch; }
.stat { display: inline-grid; justify-self: start; gap: 2px; margin-top: 10px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--acc) 40%, var(--line)); background: color-mix(in srgb, var(--acc) 8%, var(--panel)); border-radius: var(--radius); }
.stat b { font: 600 26px/1 var(--f-head); color: var(--acc); }
.stat span { font-size: 12px; color: var(--dim); }
.flow { position: relative; min-height: 300px; border-radius: var(--radius);
  background: radial-gradient(60% 70% at 70% 40%, color-mix(in srgb, var(--acc-2) 10%, transparent), transparent 70%); }
.total { position: absolute; right: 0; top: 0; display: flex; align-items: center; gap: 6px; padding: 5px 9px; border: 1px solid color-mix(in srgb, var(--acc) 40%, var(--line)); border-radius: var(--radius); font: 400 11.5px/1 var(--f-mono); color: var(--acc); }
.flow-line { position: absolute; inset: 40px 0 0; width: 100%; height: calc(100% - 40px); overflow: visible; }
.flow-line path { fill: none; stroke: color-mix(in srgb, var(--acc) 70%, transparent); stroke-width: 1.5px; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.panel.drawn .flow-line path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(.3, .6, .2, 1); }
.nodes { position: absolute; inset: 40px 0 0; }
.nodes li { --x: calc(12% + var(--k) * 25%); --y: calc(80% - var(--k) * 19.3%); position: absolute; left: var(--x); top: var(--y); display: grid; gap: 2px; padding-left: 22px; translate: -11px -11px; font-size: 12.5px; white-space: nowrap; visibility: hidden; }
.nodes li::before { content: ""; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--acc-2); background: radial-gradient(var(--ink) 0 3px, var(--panel-2) 4px); box-shadow: 0 0 16px color-mix(in srgb, var(--acc-2) 60%, transparent); }
.nodes li:last-child::before { border-color: var(--acc); box-shadow: 0 0 22px var(--acc); }
.nodes li::after { content: ""; position: absolute; left: 10px; top: 22px; width: 1px; height: 400px; background: linear-gradient(color-mix(in srgb, var(--acc-2) 45%, transparent), transparent 60%); }
.nodes b { font-weight: 500; padding-left: 8px; } .nodes span { padding-left: 8px; font: 400 10.5px/1 var(--f-mono); color: var(--acc); }
.panel.drawn .nodes li { visibility: visible; animation: pop .5s steps(5) both; animation-delay: calc(var(--k) * .3s); }
@keyframes pop { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.flow { overflow: hidden; }
.nodes li:last-child { padding-left: 0; padding-right: 22px; text-align: right; translate: calc(-100% + 11px) -11px; }
.nodes li:last-child::before { left: auto; right: 0; }
.nodes li:last-child::after { left: auto; right: 10px; }
.nodes li:last-child b, .nodes li:last-child span { padding: 0 8px 0 0; }

/* ---------- 06 pricing ---------- */
.calc { display: grid; gap: 16px; }
.calc-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.calc-pay { text-align: right; }
.calc-big { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.calc-pay .calc-big { justify-content: flex-end; }
.calc-big b { font: 600 clamp(34px, 3.3vw, 48px)/1 var(--f-head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc-big span { font-size: 12.5px; color: var(--dim); }
.range { position: relative; height: 46px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel);
  background-image: linear-gradient(90deg, transparent calc(33.33% - 1px), var(--line) 0 33.33%, transparent 0 calc(66.66% - 1px), var(--line) 0 66.66%, transparent 0); }
.range-fill { position: absolute; left: 0; top: 0; bottom: 0; width: var(--v, 21%); background: linear-gradient(90deg, color-mix(in srgb, var(--acc) 4%, transparent), color-mix(in srgb, var(--acc) 30%, transparent)); border-right: 1px solid var(--acc); pointer-events: none; }
.range input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: ew-resize; }
.range input::-webkit-slider-runnable-track { height: 100%; background: none; }
.range input::-moz-range-track { height: 100%; background: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: 15px; background: var(--acc); border: 0; border-radius: 0; box-shadow: 0 0 14px var(--acc); }
.range input::-moz-range-thumb { width: 14px; height: 14px; background: var(--acc); border: 0; border-radius: 0; box-shadow: 0 0 14px var(--acc); }
.range input:focus-visible { outline-offset: 4px; }
.range-marks { display: flex; justify-content: space-between; margin-top: -8px; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius); }
.tiers li { display: grid; gap: 3px; padding: 16px; font-size: 12.5px; color: var(--dim); transition: background .3s, color .3s; }
.tiers li + li { border-left: 1px solid var(--line); }
.tiers b { font-weight: 500; color: var(--ink); }
.tiers li.on { background: color-mix(in srgb, var(--acc) 9%, var(--panel)); color: var(--ink); }
.tiers li.on b { color: var(--acc); }

/* ---------- 07 platform ---------- */
.plat { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plat-card { display: grid; gap: 6px; padding: 0 26px 26px; border: 0; border-radius: 0; background: var(--panel); }
.plat-card:nth-child(even) { border-left: 1px solid var(--line); }
.plat-card:nth-child(n+3) { border-top: 1px solid var(--line); }
.plat-card canvas { width: calc(100% + 52px); margin: 0 -26px 18px; height: auto; aspect-ratio: 800 / 520;
  background: radial-gradient(70% 70% at 50% 55%, color-mix(in srgb, var(--acc-2) 12%, transparent), transparent 70%); }
.plat-card p { color: var(--dim); font-size: 13.5px; }

/* ---------- 08 trust ---------- */
.trust { padding: 22px; display: grid; gap: 22px; }
.uptime { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; align-items: end; }
.uptime > .small:first-child { grid-column: 1 / -1; }
.uptime-big { font: 600 clamp(28px, 2.6vw, 38px)/1 var(--f-head); letter-spacing: -.02em; }
.status { display: flex; align-items: center; gap: 8px; }
.bars { grid-column: 1 / -1; display: flex; gap: 3px; height: 44px; margin-top: 10px; }
.bars i { flex: 1; background: color-mix(in srgb, var(--acc) 65%, var(--panel)); transform-origin: bottom; }
.bars i.warn { background: var(--acc-2); }
.bars.run i { animation: grow .5s steps(6) both; animation-delay: calc(var(--k) * 12ms); }
@keyframes grow { from { transform: scaleY(0); } }
.bars-cap { grid-column: 1 / -1; display: flex; justify-content: space-between; }
.controls { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); }
.controls li { display: grid; gap: 3px; padding: 16px; font-size: 12.5px; color: var(--dim); }
.controls li:nth-child(3n + 2), .controls li:nth-child(3n + 3) { border-left: 1px solid var(--line); }
.controls li:nth-child(n + 4) { border-top: 1px solid var(--line); }
.controls b { font-weight: 500; color: var(--ink); font-size: 13.5px; }
.sq { width: 6px; height: 6px; background: var(--acc); margin-bottom: 8px; }

/* ---------- end ---------- */
.end { padding: clamp(90px, 10vw, 140px) 0; background: radial-gradient(70% 90% at 50% 120%, color-mix(in srgb, var(--acc-2) 22%, transparent), transparent 70%), var(--bg); }
.end::after { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; translate: -50% 0; background: var(--acc); box-shadow: 0 0 14px var(--acc); }
.end-in { display: grid; justify-items: center; gap: 22px; text-align: center; }
.end .lead { max-width: 44ch; color: var(--dim); }
.end .h2 { max-width: 16ch; }

/* ---------- footer ---------- */
.foot { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg); }
.foot-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.6fr repeat(3, .6fr) 1fr; gap: 30px; padding: 54px 0 0; }
.foot-brand { display: grid; align-content: start; gap: 14px; }
.foot-brand p { color: var(--dim); font-size: 13px; max-width: 30ch; }
.foot-col { display: grid; align-content: start; gap: 9px; font-size: 13.5px; }
.foot-col p { font-size: 12.5px; color: var(--faint); margin-bottom: 4px; }
.foot-col a { transition: color .3s; } .foot-col a:hover { color: var(--acc); }
.foot-start { justify-self: end; display: inline-flex; align-items: center; gap: 8px; height: max-content; font-size: 14px; }
.foot-start:hover { color: var(--acc); }
.foot-copy { grid-column: 1 / -1; padding: 120px 0 26px; font-size: 12px; color: var(--dim); }
.waves { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 300px; pointer-events: none; }

/* back to top */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius);
  background: color-mix(in srgb, var(--panel) 85%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--acc);
  clip-path: inset(100% 0 0 0); transition: clip-path .4s steps(6), border-color .3s; }
.to-top.show { clip-path: inset(0 0 0 0); }
.to-top:hover { border-color: var(--acc); }

/* ---------- entrance: elements are built from small squares (main.js "pixel build") ---------- */
.js [data-px]:not(.px-done) { -webkit-mask-image: linear-gradient(transparent, transparent); mask-image: linear-gradient(transparent, transparent);
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
[data-type] .tw { visibility: hidden; }
[data-type] .tw.on { visibility: visible; }
.caret { display: inline-block; width: .5em; height: .82em; margin-left: .06em; vertical-align: -.04em; background: var(--acc); }

/* ================= inner pages ================= */
.intro { position: relative; padding: 130px 0 40px; background: radial-gradient(80% 50% at 50% -10%, color-mix(in srgb, var(--glow-2) 70%, transparent), transparent 70%), var(--bg); }
.intro .sec-head { margin-bottom: 26px; }
.intro > .label { margin-bottom: 14px; }
.intro .h2 { font-size: clamp(30px, 3.2vw, 46px); }
.ticker { display: flex; overflow: hidden; margin-bottom: 28px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; gap: 10px; flex: none; padding-right: 10px; animation: run 40s linear infinite; }
.ticker-track li { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); font-size: 12.5px; white-space: nowrap; }
.ticker-track li::before { content: ""; width: 5px; height: 5px; background: var(--acc); }
.ticker-track svg { color: var(--dim); }
.ico-box { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid color-mix(in srgb, var(--acc) 40%, var(--line)); border-radius: var(--radius); background: var(--panel-2); color: var(--acc); }
.sub-title { margin: 0 0 18px; }
.sub-title:not(:first-child) { margin-top: 56px; }
.badge { display: inline-flex; align-items: center; width: max-content; height: 22px; padding: 0 8px; border: 1px solid color-mix(in srgb, var(--acc) 55%, transparent); border-radius: var(--radius); font: 400 11px/1 var(--f-mono); color: var(--acc); background: color-mix(in srgb, var(--acc) 8%, transparent); }
.btn.ghost { background: var(--panel-2); border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { border-color: var(--acc); }
.ticks { display: grid; gap: 8px; font-size: 13px; color: var(--dim); }
.ticks li { display: flex; gap: 10px; align-items: baseline; }
.ticks li::before { content: ""; flex: none; width: 9px; height: 5px; border: solid var(--acc); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translateY(-2px); }

/* how a connector runs */
.howto { padding: 20px 22px 24px; }
.howto-steps { position: relative; display: flex; justify-content: space-between; margin-top: 20px; }
.howto-steps::before, .howto-steps::after { content: ""; position: absolute; left: 20px; right: 20px; top: 20px; height: 1px; background: var(--line); }
.howto-steps::after { background: var(--acc); box-shadow: 0 0 8px var(--acc); transform-origin: left; transform: scaleX(var(--h, 0)); transition: transform .5s steps(8); }
.howto-steps li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 10px; font-size: 12.5px; color: var(--dim); text-align: center; }
.howto-steps li:first-child { justify-items: start; } .howto-steps li:last-child { justify-items: end; }
.howto-steps li.on { color: var(--ink); }
.howto-steps li.on .ico-box { box-shadow: 0 0 18px -4px var(--acc); border-color: var(--acc); }

/* directory: search, filter chips, grids, rows */
.dir-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.search input { width: min(340px, 80vw); height: 40px; padding: 0 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font: inherit; font-size: 13.5px; }
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: none; border-color: var(--acc); }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.fchip { height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); color: var(--dim); font-size: 12.5px; cursor: pointer; transition: color .3s, border-color .3s; }
.fchip:hover { color: var(--ink); }
.fchip[aria-pressed="true"] { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 60%, transparent); background: color-mix(in srgb, var(--acc) 9%, var(--panel)); }
[data-item][hidden] { display: none !important; }
.conn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.conn { display: grid; gap: 6px; padding: 18px 18px 14px; transition: border-color .3s; }
.conn:hover { border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); }
.conn-top { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.conn-top b { font-weight: 600; font-family: var(--f-head); }
.star { margin-left: auto; color: var(--acc); font-size: 13px; }
.conn-text { font-size: 13.5px; color: var(--dim); margin: 4px 0 12px; }
.conn-foot { display: flex; gap: 14px; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); }
.conn-foot b { color: var(--ink); font-weight: 500; }
.conn-foot svg { margin-left: auto; color: var(--acc); }
.conn:hover .conn-foot svg { animation: nudge .5s steps(4) both; }
@keyframes nudge { 50% { transform: translateX(4px); } }
.more-row { display: flex; justify-content: center; margin-top: 26px; }
.empty { padding: 30px 0; text-align: center; }

.tally { display: grid; grid-template-columns: 1fr 1fr; padding: 0; }
.tally-n { display: grid; align-content: center; gap: 6px; padding: 26px; border-right: 1px solid var(--line); }
.tally-n b { font: 600 46px/1 var(--f-head); color: var(--acc); }
.tally-bars { display: grid; gap: 10px; padding: 22px 26px; }
.tally-bars li { display: grid; grid-template-columns: 96px 1fr 18px; align-items: center; gap: 12px; font-size: 12.5px; color: var(--dim); }
.tally-bars i { height: 6px; background: var(--line); position: relative; }
.tally-bars i::after { content: ""; position: absolute; inset: 0; width: var(--w); background: var(--acc); box-shadow: 0 0 8px color-mix(in srgb, var(--acc) 60%, transparent); transform-origin: left; transform: scaleX(0); transition: transform .8s steps(10); }
.tally-bars.run i::after { transform: scaleX(1); }
.tally-bars b { font-weight: 400; color: var(--ink); text-align: right; }

.rows { padding: 0 6px; }
.row-item { display: grid; grid-template-columns: 110px 1fr minmax(0, 220px) 64px 18px; align-items: center; gap: 16px; padding: 16px 12px; border-bottom: 1px solid var(--line); transition: background .3s; }
.row-item:last-child { border-bottom: 0; }
.row-item:hover { background: color-mix(in srgb, var(--acc) 4%, transparent); }
.row-team { display: flex; align-items: center; gap: 8px; }
.row-team .sq { margin: 0; }
.row-item:nth-child(even) .sq { background: var(--acc-2); }
.row-main { display: grid; gap: 2px; min-width: 0; }
.row-main b { font-weight: 500; font-size: 15px; }
.row-main span { font-size: 13px; color: var(--dim); }
.row-apps { display: flex; align-items: center; gap: 6px; color: var(--acc-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-apps svg { flex: none; }
.row-steps b { color: var(--ink); font-weight: 400; }
.row-go { color: var(--acc); }

/* pricing page */
.gauge { padding: 20px 22px 18px; }
.gauge-bar { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; height: 8px; margin: 44px 0 14px; }
.gauge-bar i { background: var(--line); }
.gauge-bar i.on { background: var(--acc); box-shadow: 0 0 12px var(--acc); }
.gauge-tag { position: absolute; left: 37.5%; bottom: calc(100% + 12px); translate: -50% 0; padding: 5px 9px; border: 1px solid var(--acc); border-radius: var(--radius); background: var(--panel-2); color: var(--acc); font-size: 11px; white-space: nowrap; }
.gauge-tag::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 8px; background: var(--acc); }
.gauge-legend { display: grid; grid-template-columns: repeat(4, 1fr); font-size: 12px; color: var(--dim); }
.gauge-legend li { display: grid; gap: 2px; }
.gauge-legend b { font-weight: 500; color: var(--ink); }
.gauge-legend li.on b { color: var(--acc); }
.fit { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 16px 18px; }
.fit .ico { color: var(--acc); flex: none; }
.fit p { display: grid; gap: 2px; }
.fit p b { font: 600 18px/1.2 var(--f-head); }
.seg { display: inline-flex; margin-left: auto; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-2); }
.seg button { height: 30px; padding: 0 12px; border: 0; border-radius: var(--radius); background: none; color: var(--dim); font-size: 12.5px; cursor: pointer; transition: color .3s, background .3s; }
.seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--acc) 16%, var(--panel)); color: var(--ink); }
.seg button:hover { color: var(--ink); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.plan { display: grid; align-content: start; gap: 12px; padding: 24px; border: 0; border-radius: 0; }
.plan + .plan { border-left: 1px solid var(--line); }
.plan.is-top { background: linear-gradient(color-mix(in srgb, var(--acc) 7%, var(--panel)), var(--panel) 60%); }
.plan .mono { display: flex; align-items: center; justify-content: space-between; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price b { font: 600 44px/1 var(--f-head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.price span { color: var(--dim); font-size: 13px; }
.plan-text { color: var(--dim); font-size: 13.5px; }
.plan .btn { justify-content: center; margin: 6px 0 10px; }
.banner { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 14px; padding: 24px; }
.banner > div { display: grid; gap: 10px; }
.table-wrap { overflow-x: auto; }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 13.5px; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: center; font-weight: 400; }
.compare th[scope="row"], .compare thead th:first-child { text-align: left; color: var(--dim); }
.compare thead th { background: color-mix(in srgb, var(--acc) 6%, var(--panel-2)); font-size: 12.5px; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.yes { display: inline-block; width: 11px; height: 6px; border: solid var(--acc); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg); }
.no { color: var(--faint); }
.sec4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sec4 li { display: grid; align-content: start; gap: 6px; padding: 20px; font-size: 13px; color: var(--dim); }
.sec4 b { color: var(--ink); font-weight: 500; font-size: 15px; }
.faq { max-width: 760px; }
.faq .sub-title { text-align: center; }
.acc-list { padding: 0 20px; }
.acc-list details { border-bottom: 1px solid var(--line); }
.acc-list details:last-child { border-bottom: 0; }
.acc-list summary { position: relative; display: block; padding: 18px 30px 18px 0; font-weight: 500; cursor: pointer; list-style: none; }
.acc-list summary::-webkit-details-marker { display: none; }
.acc-list summary::before, .acc-list summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 11px; height: 1.5px; background: var(--acc); transition: transform .3s steps(4); }
.acc-list summary::after { transform: rotate(90deg); }
.acc-list details[open] summary::after { transform: rotate(0); }
.acc-list details p { padding: 0 30px 18px 0; color: var(--dim); font-size: 14px; }
.acc-list details[open] p { animation: pop .4s steps(5) both; }

/* blog */
.posts-sec::before { display: none; }
.posts-sec { padding-top: 10px; }
.featured { display: grid; grid-template-columns: 1fr 1.4fr; margin-bottom: 30px; overflow: hidden; transition: border-color .3s; }
.featured:hover, .post:hover { border-color: color-mix(in srgb, var(--acc) 45%, var(--line)); }
.cover { display: block; overflow: hidden; background: var(--bg-hero); }
.cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.featured:hover .cover img, .post:hover .cover img { transform: scale(1.04); }
.featured-text { display: grid; align-content: center; gap: 12px; padding: 30px; }
.featured-text .h2 { font-size: clamp(26px, 2.6vw, 38px); }
.meta { color: var(--dim); }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-grid.two { grid-template-columns: repeat(2, 1fr); }
.post { display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: hidden; transition: border-color .3s; }
.post .cover { aspect-ratio: 16 / 10; border-bottom: 1px solid var(--line); }
.post-text { display: grid; align-content: start; gap: 8px; padding: 18px; }
.post-text .meta { margin-top: 6px; }

/* article */
.article { padding: 120px 0 40px; }
.article-head { display: grid; justify-items: start; gap: 14px; padding-bottom: 30px; }
.article-head .h2 { max-width: 24ch; }
.back { display: inline-flex; align-items: center; gap: 6px; }
.back svg { transform: rotate(180deg); }
.back:hover { color: var(--acc); }
.article-cover { margin: 0 0 50px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-hero); }
.article-cover img { width: 100%; height: auto; }
.prose { max-width: 66ch; margin: 0 auto; font-size: 16.5px; line-height: 1.7; color: color-mix(in srgb, var(--ink) 82%, var(--dim)); }
.prose p + p { margin-top: 1.1em; }
.prose h2 { margin: 1.8em 0 .6em; font: 600 24px/1.2 var(--f-head); letter-spacing: -.02em; color: var(--ink); }

/* contact */
.next { padding: 20px 22px 22px; }
.next-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.next-steps li { display: grid; gap: 10px; padding: 18px; background: var(--panel-2); }
.next-steps b { font-weight: 500; }
.tabs.two { grid-template-columns: 1fr 1fr; }
.contact-box .panel { grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-box .panel-text { gap: 14px; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-content: start; }
.field { display: grid; gap: 6px; }
.field.wide, .form .wide { grid-column: 1 / -1; }
.field label { font-size: 12.5px; color: var(--dim); }
.field input, .field textarea, .sub-form input { width: 100%; padding: 11px 12px; background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font: inherit; font-size: 14px; resize: vertical; transition: border-color .3s; }
.field input:focus, .field textarea:focus, .sub-form input:focus { outline: none; border-color: var(--acc); }
.field.bad input, .field.bad textarea, .sub-form.bad input { border-color: var(--acc-2); }
.form-end { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-note:empty { display: none; }
.sub-form { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; width: min(460px, 100%); }
.sub-form input { flex: 1 1 220px; height: 44px; }
.sub-form .form-note { flex-basis: 100%; }

/* 404 */
.lost { position: relative; min-height: max(86svh, 600px); display: flex; align-items: center; overflow: hidden; background: var(--bg-hero); }
.small-cube { opacity: .5; }
.lost-in { position: relative; z-index: 2; display: grid; justify-items: center; gap: 16px; text-align: center; padding: 120px 0 60px; }
.lost-n { font: 600 clamp(90px, 14vw, 180px)/.9 var(--f-head); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.5px var(--acc); text-shadow: 0 0 40px color-mix(in srgb, var(--acc) 35%, transparent); }
.lost .lead { color: var(--dim); max-width: 44ch; }
.lost .h2, .lost .lead { text-shadow: 0 0 18px var(--bg-hero); }

@media (max-width: 1080px) {
  .sec4 { grid-template-columns: 1fr 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .contact-box .panel { grid-template-columns: 1fr; }
  .row-item { grid-template-columns: 96px 1fr 60px 18px; }
  .row-apps { display: none; }
}
@media (max-width: 860px) {
  .intro { padding-top: 110px; }
  .conn-grid, .plans, .featured, .post-grid.two { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .tally { grid-template-columns: 1fr; }
  .tally-n { border-right: 0; border-bottom: 1px solid var(--line); }
  .fit { flex-wrap: wrap; }
  .fit .seg { margin-left: 0; }
  .banner { flex-direction: column; align-items: flex-start; }
  .next-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rate span { display: none; }
  .cell { padding: 0 14px; }
  .post-grid, .sec4 { grid-template-columns: 1fr; }
  .row-item { grid-template-columns: 1fr 18px; gap: 6px 12px; }
  .row-team { grid-column: 1 / -1; }
  .row-steps { grid-column: 1; }
  .row-go { grid-column: 2; grid-row: 2 / 4; }
  .howto-steps li { font-size: 11px; max-width: 66px; }
  .gauge-legend { grid-template-columns: 1fr 1fr; gap: 10px; }
  .seg button { padding: 0 8px; }
  .form { grid-template-columns: 1fr; }
  .featured-text { padding: 22px; }
  .tally-bars li { grid-template-columns: 84px 1fr 16px; }
}
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2) .link { display: none; }
  .apps { grid-template-columns: repeat(3, 1fr); }
  .panel { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav, .head-cta { display: none; }
  .menu-btn { display: block; }
  .rate { margin-left: auto; border-right: 0; }
  .head-in { width: 100%; border-inline: 0; height: 60px; }
  .head { background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .sec-head { grid-template-columns: 1fr; }
  .hero-in { align-items: flex-end; padding-top: 52vh; }
  .hero-glow { background: radial-gradient(90% 45% at 50% 28%, var(--glow-1) 0%, var(--glow-2) 45%, transparent 75%); }
  .hero-glow::after { -webkit-mask-image: radial-gradient(70% 40% at 50% 28%, #000, transparent 72%); mask-image: radial-gradient(70% 40% at 50% 28%, #000, transparent 72%); }
  .trusted { justify-content: center; text-align: center; }
  .logos { justify-content: center; }
  .plat { grid-template-columns: 1fr; }
  .plat-card:nth-child(even) { border-left: 0; }
  .plat-card:nth-child(n+2) { border-top: 1px solid var(--line); }
  .foot-in { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-start { justify-self: start; grid-column: 1 / -1; }
  .wires { display: none; }
  .core { margin: 14px auto; }
  .recipes .axis { left: 6px; }
  .recipe { grid-template-columns: 1fr; min-height: 0; }
  .recipe .recipe-body, .recipe:nth-child(odd) .recipe-body { grid-column: 1; grid-row: 1; justify-items: start; text-align: left; padding: 30px 0 30px 34px; }
  .recipe:nth-child(odd) .chips { justify-content: flex-start; }
  .big-n, .recipe:nth-child(odd) .big-n { grid-column: 1; grid-row: 1; justify-self: end; align-self: start; padding: 22px 0 0; font-size: 52px; }
  .recipe .node { left: 6px; }
  .controls { grid-template-columns: 1fr 1fr; }
  .controls li:nth-child(n) { border-left: 0; border-top: 0; }
  .controls li:nth-child(even) { border-left: 1px solid var(--line); }
  .controls li:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .tiers { grid-template-columns: 1fr 1fr; }
  .tiers li:nth-child(3) { border-left: 0; }
  .tiers li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  body { font-size: 14.5px; }
  .steps { grid-template-columns: 1fr; }
  .step .link { display: none; }
  .step { min-height: 0; }
  .stats { grid-template-columns: 1fr; }
  .stats div + div { border-left: 0; border-top: 1px solid var(--line); }
  .apps { grid-template-columns: 1fr 1fr; }
  .tabs { grid-template-columns: 1fr 1fr; }
  .tabs button:nth-child(3) { border-left: 0; }
  .tabs button:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .panel { padding: 20px; }
  .flow { min-height: 280px; }
  .nodes li { font-size: 11.5px; }
  .nodes li:nth-child(3), .nodes li:nth-child(4) { padding-left: 0; padding-right: 22px; text-align: right; translate: calc(-100% + 11px) -11px; }
  .nodes li:nth-child(3)::before, .nodes li:nth-child(4)::before { left: auto; right: 0; }
  .nodes li:nth-child(3)::after, .nodes li:nth-child(4)::after { left: auto; right: 10px; }
  .nodes li:nth-child(3) b, .nodes li:nth-child(4) b, .nodes li:nth-child(3) span, .nodes li:nth-child(4) span { padding: 0 8px 0 0; }
  .calc-top { flex-direction: column; align-items: stretch; }
  .calc-pay, .calc-pay .calc-big { text-align: left; justify-content: flex-start; }
  .controls { grid-template-columns: 1fr; }
  .controls li:nth-child(even) { border-left: 0; }
  .controls li:nth-child(n + 2) { border-top: 1px solid var(--line); }
  .ev { height: 42px; font-size: 12.5px; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .uptime { grid-template-columns: 1fr; }
  .bars { gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .feed-track, .dot.live, .wires .pulse, .step .link::after { animation: none; }
}
