/* ==========================================================================
   Appwire — marketing site styles
   ========================================================================== */

:root {
  --bg: #06080d;
  --bg-2: #0a0e16;
  --surface: #0e131d;
  --surface-2: #131a27;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .15);
  --text: #e8ecf3;
  --muted: #98a2b8;
  --dim: #687187;
  --cyan: #2ee6ff;
  --cyan-dim: rgba(46, 230, 255, .14);
  --copper: #f0a35e;
  --green: #4ade80;
  --red: #fb7185;
  --violet: #8b8cff;
  --radius: 14px;
  --radius-lg: 22px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
code, pre, kbd { font-family: var(--mono); }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.container.narrow { max-width: 800px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--cyan); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; font-weight: 600; }
.skip:focus { left: 8px; }

/* Ambient background */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 15% -10%, rgba(46, 230, 255, .10), transparent 60%),
    radial-gradient(800px 500px at 90% 0%, rgba(240, 163, 94, .07), transparent 60%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 10%, transparent 100%);
          mask-image: radial-gradient(ellipse 70% 50% at 50% 0%, #000 10%, transparent 100%);
}

/* ---------- Icons ---------- */
.icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.brand-mark { width: 28px; height: 28px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: .925rem; line-height: 1;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .15s, background .2s, border-color .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { background: var(--cyan); color: #04141a; }
.btn-primary:hover { background: #63efff; box-shadow: 0 10px 34px -10px rgba(46, 230, 255, .6); }
.btn-ghost { border-color: var(--border-strong); background: rgba(255, 255, 255, .03); }
.btn-ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .28); }
.btn-lg { padding: 15px 24px; font-size: 1rem; border-radius: 12px; }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  background: rgba(6, 8, 13, .55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(6, 8, 13, .85); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand .wordmark { position: relative; display: inline-block; white-space: nowrap; font-size: 1.35rem; font-weight: 700; letter-spacing: -.035em; line-height: 1; color: var(--text); }
.wordmark .wm-a, .wordmark .wm-i { position: relative; display: inline-block; }
.wordmark .wm-wire { position: absolute; left: 0; right: -.14em; top: .1825em; height: .045em; border-radius: 1em; background: var(--cyan); }
.wordmark .wm-node { position: absolute; left: 50%; top: .125em; width: .16em; height: .16em; margin-left: -.08em; border-radius: 50%; background: var(--copper); }
.nav-menu { display: contents; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; color: var(--muted); font-size: .925rem; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; }
.nav-toggle { display: none; place-items: center; width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--border); margin-left: auto; }
.nav-toggle .i-close { display: none; }
body.nav-open .nav-toggle .i-open { display: none; }
body.nav-open .nav-toggle .i-close { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 96px 0 0; }
.hero-copy { text-align: center; max-width: 880px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px;
  border: 1px solid var(--border-strong); border-radius: 999px; background: rgba(255, 255, 255, .04);
  font-size: .82rem; font-weight: 500; color: var(--muted); margin-bottom: 28px;
  transition: border-color .2s, color .2s;
}
.pill:hover { border-color: rgba(46, 230, 255, .5); color: var(--text); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: pulse 2.2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(46, 230, 255, .2); }
  50% { box-shadow: 0 0 0 8px rgba(46, 230, 255, .04); }
}
h1 { font-size: clamp(2.7rem, 7vw, 5.2rem); line-height: 1.02; letter-spacing: -.035em; font-weight: 800; }
.grad {
  background: linear-gradient(92deg, var(--cyan) 0%, #c3f5ff 48%, var(--copper) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { max-width: 700px; margin: 26px auto 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.6; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.install {
  display: inline-flex; align-items: center; gap: 12px; margin-top: 28px;
  padding: 8px 8px 8px 16px; border: 1px solid var(--border-strong); border-radius: 12px;
  background: rgba(10, 14, 22, .85); font-family: var(--mono); font-size: .9rem;
}
.install-prompt { color: var(--dim); }
.install code { color: var(--text); }
.copy {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px;
  background: rgba(255, 255, 255, .06); color: var(--muted); font-size: .76rem; font-weight: 600; font-family: var(--font);
  transition: background .2s, color .2s;
}
.copy:hover { background: rgba(255, 255, 255, .11); color: var(--text); }
.copy.done { color: var(--green); }
.copy .icon { width: 14px; height: 14px; }
.hero-meta { margin-top: 22px; font-size: .82rem; color: var(--dim); }

/* Hero wiring diagram */
.hero-visual { margin-top: 64px; position: relative; }
.wire-board {
  position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 28px 18px 18px;
  background:
    radial-gradient(620px 320px at 50% 50%, rgba(46, 230, 255, .09), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .01));
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05);
  overflow: hidden;
}
.wire-board::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .08) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent);
}
.board-label { position: absolute; top: 14px; font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.board-label-l { left: 7.2%; }
.board-label-r { right: 7.2%; }
.wire-svg { width: 100%; height: auto; position: relative; }
.wire { fill: none; stroke: rgba(46, 230, 255, .22); stroke-width: 1.5; }
.ports circle { fill: var(--cyan); opacity: .55; }
.pulse { fill: var(--cyan); filter: url(#glow); }
.pulse.res { fill: var(--copper); }
.node .box { fill: #0f1520; stroke: rgba(255, 255, 255, .11); stroke-width: 1; }
.node .label { fill: #dfe5ef; font: 600 14px var(--font); letter-spacing: -.01em; }
.node .t-a { fill: rgba(46, 230, 255, .16); }
.node .t-b { fill: rgba(240, 163, 94, .2); }
.node .t-c { fill: rgba(139, 140, 255, .22); }
.node .t-d { fill: rgba(74, 222, 128, .17); }
.node .t-e { fill: rgba(255, 255, 255, .1); }
.node .tile-txt { fill: #e8ecf3; font: 700 10.5px var(--mono); text-anchor: middle; }
.gw { fill: url(#gwGrad); stroke: rgba(46, 230, 255, .42); stroke-width: 1.2; }
.gw-ring { fill: none; stroke: rgba(46, 230, 255, .35); stroke-width: 1; stroke-dasharray: 4 10; animation: dash 30s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -560; } }
.gw-wordmark text { fill: #fff; font: 700 28px var(--font); }
.gw-wordmark .gw-wire { fill: var(--cyan); }
.gw-wordmark .gw-node { fill: var(--copper); }
.gw-sub { fill: var(--cyan); font: 600 10px var(--mono); letter-spacing: .2em; }
.chips rect { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .1); }
.chips text { fill: #c9d1df; font: 500 10.5px var(--font); }
.gw-stats { fill: var(--dim); font: 500 11px var(--mono); }

.toast {
  position: absolute; display: flex; align-items: center; gap: 10px; max-width: 340px;
  padding: 10px 14px 10px 10px; border: 1px solid var(--border-strong); border-radius: 12px;
  background: rgba(14, 19, 29, .94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .8rem; color: var(--muted); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .85);
  opacity: 0; animation: toast 13.5s infinite;
}
.toast b { color: var(--text); font-weight: 600; margin-right: 6px; }
.toast-ic { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; flex: none; }
.toast-ic .icon { width: 14px; height: 14px; }
.toast-ic.ok { background: rgba(74, 222, 128, .15); color: var(--green); }
.toast-ic.warn { background: rgba(240, 163, 94, .18); color: var(--copper); }
.toast-ic.bad { background: rgba(251, 113, 133, .15); color: var(--red); }
.t1 { left: 22%; top: 10%; }
.t2 { right: 21%; bottom: 10%; animation-delay: 4.5s; }
.t3 { left: 23%; bottom: 14%; animation-delay: 9s; }
@keyframes toast {
  0% { opacity: 0; transform: translateY(8px); }
  3% { opacity: 1; transform: none; }
  28% { opacity: 1; }
  32% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 0; }
}

.wire-mobile { display: none; gap: 10px; justify-items: center; padding: 24px 16px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .02); }
.wm-group { display: grid; gap: 10px; justify-items: center; }
.wm-label { font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
.wm-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.wm-pills span { padding: 7px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: .8rem; font-weight: 500; background: #0f1520; }
.wm-arrow { width: 2px; height: 28px; background: linear-gradient(180deg, transparent, var(--cyan)); }
.wm-gateway { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid rgba(46, 230, 255, .4); border-radius: 14px; background: linear-gradient(135deg, #141c2d, #0a0f18); }
.wm-gateway b { display: block; }
.wm-gateway span { font-size: .75rem; color: var(--muted); }
.wm-gateway .brand-mark { width: 32px; height: 32px; }

/* ---------- Compat marquee ---------- */
.compat { padding: 40px 0 0; margin-top: 72px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .012); }
.compat-title { text-align: center; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin-bottom: 22px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); padding-bottom: 36px; }
.marquee-track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee-track span { margin-right: 12px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; font-size: .85rem; font-weight: 500; color: var(--muted); white-space: nowrap; background: rgba(255, 255, 255, .02); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 112px 0; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.eyebrow { font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); margin-bottom: 16px; }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -.03em; line-height: 1.08; }
.section-head p:not(.eyebrow) { margin-top: 18px; color: var(--muted); font-size: 1.08rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015));
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: rgba(46, 230, 255, .35); transform: translateY(-2px); box-shadow: 0 24px 50px -30px rgba(46, 230, 255, .4); }
.card h3 { font-size: 1.1rem; margin: 18px 0 10px; letter-spacing: -.015em; }
.card p { color: var(--muted); font-size: .95rem; }
.card-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--cyan-dim); color: var(--cyan); border: 1px solid rgba(46, 230, 255, .2); }

/* ---------- Features bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento-lg { grid-column: span 3; }
.bento-sm { grid-column: span 2; }
.mini-code { margin: 22px 0 0; padding: 16px; border-radius: 10px; background: #070a10; border: 1px solid var(--border); font-size: .78rem; line-height: 1.65; overflow: auto; color: #c9d1df; }
.trace { margin-top: 24px; display: grid; gap: 8px; }
.trace-row { display: grid; grid-template-columns: 64px 1fr 56px; align-items: center; gap: 10px; font-family: var(--mono); font-size: .72rem; color: var(--dim); }
.trace-row i { position: relative; height: 10px; border-radius: 4px; background: rgba(255, 255, 255, .05); }
.trace-row i::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); border-radius: 4px; background: rgba(46, 230, 255, .65); }
.trace-row i.hl::after { background: linear-gradient(90deg, var(--cyan), var(--copper)); }
.trace-row em { font-style: normal; text-align: right; color: var(--muted); }

/* Code colouring */
.k { color: #7dd3fc; }
.s { color: #fcd29b; }
.p { color: #6b7489; }
.c { color: #5b6475; font-style: italic; }
.ok { color: var(--green); }
.warn { color: var(--copper); }
.bad { color: var(--red); }

/* ---------- Lifecycle ---------- */
.lifecycle { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 28px; align-items: start; }
.steps { display: grid; gap: 6px; }
.step {
  position: relative; display: flex; gap: 16px; width: 100%; text-align: left; padding: 16px 18px;
  border-radius: 12px; border: 1px solid transparent; overflow: hidden;
  transition: background .2s, border-color .2s;
}
.step:hover { background: rgba(255, 255, 255, .03); }
.step.is-active { background: rgba(46, 230, 255, .06); border-color: rgba(46, 230, 255, .25); }
.step-num { font-family: var(--mono); font-size: .75rem; color: var(--dim); padding-top: 3px; flex: none; }
.step.is-active .step-num { color: var(--cyan); }
.step-body { display: grid; gap: 4px; }
.step-body strong { font-weight: 600; font-size: .98rem; }
.step-body span { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.step-body code { font-size: .8rem; color: #c9d1df; background: rgba(255, 255, 255, .06); padding: 1px 5px; border-radius: 5px; }
.step-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--cyan); }
.step.is-active.auto .step-bar { animation: progress var(--dur, 4.8s) linear forwards; }
@keyframes progress { to { width: 100%; } }
.step-panel { position: sticky; top: 90px; border: 1px solid var(--border); border-radius: var(--radius); background: #070a10; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); }
.panel-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .02); font-family: var(--mono); font-size: .75rem; color: var(--dim); }
.panel-dots { display: inline-flex; gap: 6px; }
.panel-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.panel-stage { margin-left: auto; color: var(--cyan); }
.panel-code { margin: 0; padding: 22px; font-size: .8rem; line-height: 1.7; min-height: 360px; overflow: auto; color: #c9d1df; }
.panel-code code { display: block; animation: fadein .35s; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- Console mock ---------- */
.console { border: 1px solid var(--border); border-radius: var(--radius-lg); background: #0a0d14; overflow: hidden; box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(46, 230, 255, .05); }
.console-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-family: var(--mono); font-size: .75rem; color: var(--dim); }
.console-url { flex: 1; text-align: center; padding: 5px 12px; border-radius: 6px; background: rgba(255, 255, 255, .04); max-width: 440px; margin: 0 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--green); }
.live i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.console-body { display: grid; grid-template-columns: 190px minmax(0, 1fr); }
.console-nav { border-right: 1px solid var(--border); padding: 16px 10px; background: rgba(255, 255, 255, .012); }
.console-nav li { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 8px; font-size: .84rem; color: var(--muted); }
.console-nav li.is-active { background: rgba(46, 230, 255, .08); color: var(--text); }
.console-nav b { font-size: .7rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--muted); }
.console-nav b.warn { background: rgba(240, 163, 94, .18); color: var(--copper); }
.console-main { padding: 20px; display: grid; gap: 18px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, .02); display: grid; gap: 4px; align-content: start; }
.stat span { font-size: .75rem; color: var(--dim); }
.stat b { font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.stat small { font-size: .9rem; color: var(--muted); font-weight: 500; }
.stat em { font-style: normal; font-size: .72rem; color: var(--dim); }
.stat em.up { color: var(--green); }
.stat em.warn { color: var(--copper); }
.meter { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .07); margin-top: 4px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--cyan), var(--copper)); }
.chart { border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; background: rgba(255, 255, 255, .02); }
.chart-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; font-size: .75rem; color: var(--dim); margin-bottom: 12px; }
.chart-head > span:first-child { white-space: nowrap; }
.legend { display: inline-flex; gap: 10px; align-items: center; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 4px; }
.legend .ok { background: var(--cyan); }
.legend .warn { background: var(--copper); }
.legend .bad { background: var(--red); }
.bars { display: flex; align-items: flex-end; gap: 5px; height: 96px; }
.bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, rgba(46, 230, 255, .85), rgba(46, 230, 255, .25)); transform-origin: bottom; animation: grow 1s var(--ease) both; }
.bars i.now { background: linear-gradient(180deg, var(--copper), rgba(240, 163, 94, .3)); }
@keyframes grow { from { transform: scaleY(0); } }
.calls-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.calls { width: 100%; border-collapse: collapse; font-size: .8rem; }
.calls th { text-align: left; font-weight: 500; color: var(--dim); font-size: .72rem; padding: 6px 10px; border-bottom: 1px solid var(--border); }
.calls td { padding: 9px 10px; border-bottom: 1px solid rgba(255, 255, 255, .04); color: var(--muted); white-space: nowrap; }
.calls td code { color: var(--text); font-size: .76rem; }
.calls tr.new { animation: rowin .6s ease; }
@keyframes rowin { from { background: rgba(46, 230, 255, .14); } }
.status { padding: 2px 8px; border-radius: 999px; font-size: .7rem; font-weight: 600; }
.status.ok { background: rgba(74, 222, 128, .14); color: var(--green); }
.status.warn { background: rgba(240, 163, 94, .18); color: var(--copper); }
.status.bad { background: rgba(251, 113, 133, .15); color: var(--red); }

/* ---------- Quick start ---------- */
.setup-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.setup-copy h2 { margin-bottom: 18px; }
.setup-copy > p { color: var(--muted); font-size: 1.05rem; }
.checks { display: grid; gap: 10px; margin-top: 24px; }
.checks li { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: .95rem; }
.checks .icon { width: 18px; height: 18px; color: var(--cyan); }
.setup-actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.code-tabs { border: 1px solid var(--border); border-radius: var(--radius); background: #070a10; overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0, 0, 0, .9); }
.tab-list { display: flex; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .02); overflow-x: auto; }
.tab-list button { padding: 12px 16px; font-size: .84rem; font-weight: 500; color: var(--dim); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .2s; }
.tab-list button:hover { color: var(--text); }
.tab-list button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--cyan); }
.code-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 8px 18px; font-family: var(--mono); font-size: .72rem; color: var(--dim); border-bottom: 1px solid var(--border); }
.tab-panels pre { margin: 0; padding: 20px; font-size: .8rem; line-height: 1.7; overflow: auto; color: #c9d1df; min-height: 320px; }

/* ---------- Deploy & compliance ---------- */
.compliance {
  margin-top: 18px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: center;
  padding: 32px; border: 1px solid var(--border); border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(46, 230, 255, .07), rgba(240, 163, 94, .05));
}
.compliance h3 { font-size: 1.25rem; margin-bottom: 8px; }
.compliance p { color: var(--muted); }
.badges { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.badges li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: rgba(6, 8, 13, .55); font-weight: 600; font-size: .9rem; }
.badges .icon { color: var(--cyan); width: 18px; height: 18px; }

/* ---------- Compare ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: rgba(255, 255, 255, .015); }
.compare-table { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.compare-table th { text-align: left; padding: 16px 20px; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--border); }
.compare-table th:nth-child(3) { color: var(--cyan); }
.compare-table td { padding: 14px 20px; border-bottom: 1px solid rgba(255, 255, 255, .05); color: var(--muted); }
.compare-table td:first-child { color: var(--text); }
.compare-table tr:last-child td { border-bottom: 0; }
.yes { color: var(--green); font-weight: 700; margin-right: 6px; }
.no { color: var(--dim); }
.partial { color: var(--copper); font-weight: 500; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 30px;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .015));
}
.plan.featured { border-color: rgba(46, 230, 255, .45); box-shadow: 0 0 0 1px rgba(46, 230, 255, .15), 0 30px 80px -40px rgba(46, 230, 255, .45); }
.plan-badge { position: absolute; top: -12px; left: 30px; padding: 4px 12px; border-radius: 999px; background: var(--cyan); color: #04141a; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.plan h3 { font-size: 1.1rem; }
.price { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 12px; }
.price b { font-size: 2.6rem; letter-spacing: -.04em; font-weight: 800; line-height: 1; }
.price span { color: var(--dim); font-size: .85rem; }
.plan > p { color: var(--muted); font-size: .92rem; min-height: 3em; }
.plan ul { display: grid; gap: 10px; margin: 22px 0 28px; flex: 1; align-content: start; }
.plan li { position: relative; padding-left: 24px; color: var(--muted); font-size: .9rem; }
.plan li::before { content: ""; position: absolute; left: 1px; top: 7px; width: 11px; height: 6px; border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg); }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
details { border: 1px solid var(--border); border-radius: 12px; background: rgba(255, 255, 255, .02); transition: border-color .2s; }
details[open] { border-color: rgba(46, 230, 255, .3); }
summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 22px; font-weight: 600; position: relative; font-size: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s;
}
details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
details p { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; }

/* ---------- CTA / demo form ---------- */
.cta-card {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 48px;
  border: 1px solid rgba(46, 230, 255, .25); border-radius: var(--radius-lg); position: relative; overflow: hidden;
  background:
    radial-gradient(700px 400px at 0% 0%, rgba(46, 230, 255, .13), transparent 60%),
    radial-gradient(500px 300px at 100% 100%, rgba(240, 163, 94, .12), transparent 60%),
    var(--surface);
}
.cta-copy h2 { margin-bottom: 16px; }
.cta-copy > p { color: var(--muted); font-size: 1.05rem; }
.cta-alt { margin-top: 24px; font-size: .9rem; color: var(--dim); }
.cta-alt a { color: var(--cyan); }
.demo-form { display: grid; gap: 14px; position: relative; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.demo-form label { display: grid; gap: 6px; font-size: .82rem; font-weight: 500; color: var(--muted); }
.demo-form input, .demo-form select, .demo-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: rgba(6, 8, 13, .7); color: var(--text); font: inherit; font-size: .92rem;
  transition: border-color .2s, box-shadow .2s;
}
.demo-form textarea { resize: vertical; min-height: 84px; }
.demo-form select {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2398a2b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.demo-form select option { background: var(--surface); color: var(--text); }
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(46, 230, 255, .18); }
.demo-form input::placeholder, .demo-form textarea::placeholder { color: var(--dim); }
.demo-form .error { border-color: var(--red) !important; }
.demo-form .btn { margin-top: 4px; justify-self: start; }
.form-note { font-size: .76rem; color: var(--dim); }
.form-note a { text-decoration: underline; }
.form-success { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 14px; background: var(--surface); border-radius: 12px; color: var(--muted); }
.form-success[hidden] { display: none; }
.form-success .icon { width: 44px; height: 44px; color: var(--green); padding: 10px; border-radius: 50%; background: rgba(74, 222, 128, .14); }
.form-success b { color: var(--text); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 32px; background: rgba(0, 0, 0, .25); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 32px; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin: 16px 0; max-width: 300px; }
.footer-social a { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); color: var(--muted); transition: color .2s, border-color .2s; }
.footer-social a:hover { color: var(--text); border-color: var(--border-strong); }
.footer h4 { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text); margin-bottom: 14px; }
.footer ul { display: grid; gap: 9px; }
.footer li a { color: var(--muted); font-size: .9rem; transition: color .2s; }
.footer li a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--dim); }

/* ---------- 404 ---------- */
.error-page { min-height: calc(100vh - 68px); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.error-code { font-family: var(--mono); font-size: clamp(4rem, 14vw, 9rem); font-weight: 600; letter-spacing: -.06em; line-height: 1; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .bento-sm { grid-column: span 3; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .setup-grid, .lifecycle, .cta-card { grid-template-columns: 1fr; }
  .step-panel { position: static; }
  .panel-code { min-height: 0; }
}
@media (max-width: 860px) {
  .nav-menu { display: none; }
  body.nav-open .nav-menu {
    display: flex; flex-direction: column; gap: 12px; position: absolute; top: 68px; left: -24px; right: -24px;
    padding: 12px 20px 20px; background: rgba(6, 8, 13, .98); border-bottom: 1px solid var(--border);
  }
  body.nav-open .nav-links { flex-direction: column; margin: 0; gap: 2px; }
  body.nav-open .nav-links a { padding: 12px; font-size: 1rem; }
  body.nav-open .nav-cta { margin: 0; flex-direction: column; }
  body.nav-open .nav-cta .btn { width: 100%; padding: 14px; }
  .nav-toggle { display: grid; }
  .grid-3, .plans { grid-template-columns: 1fr; }
  .bento-lg, .bento-sm { grid-column: span 6; }
  .compliance { grid-template-columns: 1fr; }
  .console-nav { display: none; }
  .console-body { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .section-head { margin-bottom: 40px; }
  .hero { padding-top: 72px; }
  .compat { margin-top: 56px; }
}
@media (max-width: 760px) {
  .wire-board { display: none; }
  .wire-mobile { display: grid; }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 32px); }
  body.nav-open .nav-menu { left: -16px; right: -16px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-card { padding: 28px 22px; gap: 32px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .calls th:nth-child(4), .calls td:nth-child(4), .calls th:nth-child(7), .calls td:nth-child(7), .calls th:nth-child(3), .calls td:nth-child(3) { display: none; }
  .hero { padding-top: 56px; }
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; }
  .install { width: 100%; justify-content: space-between; }
  .badges { grid-template-columns: 1fr 1fr; }
  .plan > p { min-height: 0; }
  .demo-form .btn { width: 100%; }
}

/* ---------- About page ---------- */
.nav-links a.is-current { color: var(--text); }
.page-hero { padding: 96px 0 24px; text-align: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); max-width: 900px; margin-inline: auto; }
.page-hero .lede { max-width: 760px; }
.story-section { padding-top: 72px; }
.story { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 56px; align-items: start; }
.story-copy h2 { margin-bottom: 20px; }
.story-copy p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; margin-top: 16px; }
.glance { padding: 28px; border: 1px solid rgba(46, 230, 255, .25); border-radius: var(--radius); background: linear-gradient(180deg, rgba(46, 230, 255, .07), rgba(255, 255, 255, .015)); position: sticky; top: 90px; }
.glance h3 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin-bottom: 18px; font-family: var(--mono); font-weight: 600; }
.glance dl { margin: 0; display: grid; gap: 14px; }
.glance dl > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.glance dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.glance dt { font-size: .8rem; color: var(--dim); }
.glance dd { margin: 0; font-weight: 600; font-size: .95rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.founder { display: grid; gap: 16px; align-content: start; padding: 32px; }
.founder-head { display: flex; align-items: center; gap: 18px; }
.avatar { width: 84px; height: 84px; border-radius: 24px; display: grid; place-items: center; flex: none; font-weight: 800; font-size: 1.6rem; letter-spacing: -.02em; color: #04141a; background: linear-gradient(135deg, var(--cyan), var(--copper)); box-shadow: 0 16px 40px -16px rgba(46, 230, 255, .6); }
.avatar.alt { background: linear-gradient(135deg, var(--violet), var(--cyan)); box-shadow: 0 16px 40px -16px rgba(139, 140, 255, .6); }
.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.founder-name { font-size: 1.3rem; margin: 0 0 4px; }
.founder-role { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.founder > p { color: var(--muted); font-size: .97rem; }
.founder-prev { font-size: .85rem; color: var(--dim); padding-top: 4px; }
.founder-prev strong { color: var(--muted); font-weight: 600; margin-right: 6px; }
.founder-links { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 6px; }
.founder-links a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: .82rem; font-weight: 500; color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.founder-links a:hover { color: var(--text); border-color: rgba(46, 230, 255, .5); background: rgba(46, 230, 255, .06); }
.founder-links .icon { width: 14px; height: 14px; }
.cta-simple { grid-template-columns: 1.4fr 1fr; align-items: center; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: 1fr; gap: 32px; }
  .glance { position: static; }
  .cta-simple { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .founders { grid-template-columns: 1fr; }
  .page-hero { padding-top: 72px; }
}
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr; }
  .founder { padding: 24px; }
  .avatar { width: 68px; height: 68px; border-radius: 18px; font-size: 1.3rem; }
  .glance dl > div { grid-template-columns: 1fr; gap: 2px; }
  .cta-actions { flex-direction: column; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .toast { opacity: 1; }
  .t2, .t3 { display: none; }
}

/* ---------- Footer flag ---------- */
.made-in { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.flag-uk { display: inline-block; width: 20px; height: 10px; border-radius: 2px; flex: none; }
