/* Built with Baron design system (2026-11 redesign). One dark theme, one accent.
   Every page links this file; page-only styles stay in that page. */
:root {
  --bg: #08090a;
  --bg-1: #0d0e10;      /* raised panel */
  --bg-2: #131417;      /* card inside a panel, inputs */
  --bg-3: #1a1c20;      /* hover, chips */
  --line: rgba(255,255,255,.08);
  --line-2: rgba(255,255,255,.14);
  --text: #f7f8f8;
  --text-2: #b4b8c0;    /* body copy */
  --text-3: #8a8f98;    /* captions, labels (4.9:1 on --bg) */
  --accent: #58e0d8;    /* the teal of the logo mark */
  --accent-2: #8ff0ea;
  --accent-ink: #04201f; /* text on the accent */
  --accent-dim: rgba(88,224,216,.12);
  --accent-line: rgba(88,224,216,.32);
  --good: #4cc38a; --warn: #f2b84b; --bad: #f2777a; --info: #7aa7ff; --violet: #a78bfa;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Consolas, monospace;
  --r: 14px; --r-sm: 9px; --r-lg: 22px;
  --maxw: 1160px;
  --ease: cubic-bezier(.22,1,.36,1);
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 24px 60px -20px rgba(0,0,0,.7);
  --fs-h1: clamp(2.5rem, 1.5rem + 4.4vw, 4.75rem);
  --fs-h2: clamp(1.85rem, 1.3rem + 2.3vw, 3rem);
  --fs-h3: clamp(1.15rem, 1.05rem + .4vw, 1.35rem);
  --fs-lead: clamp(1.05rem, 1rem + .35vw, 1.25rem);
}

*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: dark; }
body { background: var(--bg); color: var(--text-2); font: 400 1rem/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; font-feature-settings: "cv11","ss01"; }
h1,h2,h3,h4 { color: var(--text); font-weight: 600; letter-spacing: -.022em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: var(--fs-h2); letter-spacing: -.03em; }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
p { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img,svg,canvas,video { display: block; max-width: 100%; }
button,input,select,textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }
section { padding-block: clamp(64px, 9vw, 128px); position: relative; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.grad { background: linear-gradient(180deg, #fff 30%, rgba(255,255,255,.62)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.accent { color: var(--accent); }
.lead { font-size: var(--fs-lead); color: var(--text-2); max-width: 56ch; }
.muted { color: var(--text-3); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

/* Small label above a heading */
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 .78rem/1 var(--mono); letter-spacing: .02em; color: var(--text-3); margin-bottom: 20px; }
.kicker::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.sec-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head.center { margin-inline: auto; }
.sec-head .lead { margin-top: 18px; }

/* Pills and chips */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); font-size: .82rem; color: var(--text-2); }
.pill .dot, .dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px rgba(76,195,138,.18); flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--line); font: 500 .74rem/1.4 var(--mono); color: var(--text-2); white-space: nowrap; }
.chip.ok { color: var(--good); border-color: rgba(76,195,138,.3); background: rgba(76,195,138,.1); }
.chip.warn { color: var(--warn); border-color: rgba(242,184,75,.3); background: rgba(242,184,75,.1); }
.chip.bad { color: var(--bad); border-color: rgba(242,119,122,.3); background: rgba(242,119,122,.1); }
.chip.info { color: var(--info); border-color: rgba(122,167,255,.3); background: rgba(122,167,255,.1); }
.chip.teal { color: var(--accent); border-color: var(--accent-line); background: var(--accent-dim); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font-weight: 550; font-size: .95rem; line-height: 1.2; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s; }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset, 0 8px 30px -8px rgba(88,224,216,.55); }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,.3) inset, 0 12px 36px -8px rgba(88,224,216,.7); }
.btn-light { background: #e9eaec; color: #0b0c0e; }
.btn-light:hover { background: #fff; transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.24); }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1.02rem; border-radius: 12px; }
.btn-sm { min-height: 36px; padding: 6px 13px; font-size: .86rem; border-radius: 8px; }
.link { color: var(--accent); display: inline-flex; align-items: center; gap: 6px; font-weight: 550; }
.link svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link:hover svg { transform: translateX(3px); }

/* Header */
.site-head { position: sticky; top: 0; z-index: 100; background: rgba(8,9,10,.72); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; letter-spacing: -.015em; font-size: 1.02rem; }
.brand img { width: 26px; height: 26px; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; padding: 0; }
.nav-links a { white-space: nowrap; padding: 8px 12px; border-radius: 8px; font-size: .9rem; color: var(--text-3); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); background: rgba(255,255,255,.05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-phone { font-weight: 600; font-size: .92rem; color: var(--text); white-space: nowrap; padding: 8px 6px; }
.nav-phone:hover { color: var(--accent, var(--text)); }
.menu-toggle { display: none; width: 40px; height: 40px; background: none; border: 0; cursor: pointer; color: var(--text); place-items: center; }
.menu-toggle svg { width: 22px; height: 22px; }
@media (max-width: 1080px) {
  .menu-toggle { display: grid; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px clamp(20px,5vw,40px) 20px; background: rgba(8,9,10,.97); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 12px; font-size: 1.02rem; }
  .nav-cta .hide-sm { display: none; }
}
@media (max-width: 520px) {
  .nav-phone { font-size: .85rem; padding: 6px 2px; }
  .nav-cta .btn { display: none; }
  .nav-cta { gap: 4px; }
}

/* Panels and cards */
.card { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.6vw, 30px); position: relative; transition: border-color .3s, transform .3s var(--ease), background .3s; }
a.card:hover, .card.hover:hover { border-color: var(--line-2); transform: translateY(-3px); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: .95rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--bg-3); border: 1px solid var(--line); color: var(--accent); margin-bottom: 18px; }
.icon svg { width: 19px; height: 19px; }
.ticks { list-style: none; padding: 0; display: grid; gap: 9px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--text-2); }
.ticks li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat; }

/* App window: the frame every demo sits in */
.win { background: var(--bg-1); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.win-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.win-title { margin-left: 8px; font: 500 .76rem/1 var(--mono); color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.win-bar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.demo-note { font: 500 .74rem/1.4 var(--mono); color: var(--text-3); margin-top: 12px; }
.demo-note::before { content: "● "; color: var(--warn); }

/* Background glow and grid, used behind heroes */
.glow { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.glow::before { content: ""; position: absolute; left: 50%; top: -340px; width: 1100px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(88,224,216,.20), rgba(88,224,216,.05) 55%, transparent); filter: blur(10px); }
.glow::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 20%, transparent 75%); opacity: .55; }
.glow + * , .above { position: relative; z-index: 1; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; }

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .84rem; font-weight: 550; color: var(--text); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 13px; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8f98' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 38px; text-overflow: ellipsis; }
.field select option { background: var(--bg-2); }
.field .err { display: none; color: var(--bad); font-size: .82rem; margin-top: 6px; }
.field.bad input, .field.bad select, .field.bad textarea { border-color: var(--bad); }
.field.bad .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 640px) { .field-row { grid-template-columns: 1fr; } }
.opt-note { font-weight: 400; color: var(--text-3); }

/* Footer */
.site-foot { border-top: 1px solid var(--line); padding-block: clamp(44px, 6vw, 72px) 28px; }
.foot-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.foot-top p { font-size: .92rem; color: var(--text-3); max-width: 34ch; margin-top: 14px; }
.foot-col h4 { font: 500 .76rem/1 var(--mono); color: var(--text-3); letter-spacing: .02em; margin-bottom: 16px; }
.foot-col ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.foot-col a { font-size: .92rem; color: var(--text-2); transition: color .2s; }
.foot-col a:hover { color: var(--text); }
.foot-bot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding-top: 24px; border-top: 1px solid var(--line); font: 400 .78rem/1.5 var(--mono); color: var(--text-3); }
@media (max-width: 820px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* Survey call-to-action band, reused at the foot of every demo page */
.cta-band { position: relative; overflow: hidden; border: 1px solid var(--accent-line); border-radius: var(--r-lg); padding: clamp(32px, 6vw, 72px); text-align: center; background: radial-gradient(80% 120% at 50% 0%, rgba(88,224,216,.16), transparent 60%), var(--bg-1); }
.cta-band h2 { margin-bottom: 14px; }
.cta-band .lead { margin: 0 auto 28px; }
.cta-band .fine { margin-top: 16px; font: 400 .78rem/1.5 var(--mono); color: var(--text-3); }

/* Phone-width action bar */
.mbar { display: none; }
@media (max-width: 760px) {
  .mbar:not([hidden]) { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px)); background: rgba(8,9,10,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line-2); }
  .mbar .btn { flex: 1; }
  .mbar .btn-primary { flex: 1.7; }
  body.has-mbar .site-foot { padding-bottom: 92px; }
}

/* Scroll reveal: hidden only once JS is running; site.js brings each one in. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

.brand { white-space: nowrap; }
