/* =============================================================
   CHATBRIDGE · CONCEPT 1 — AURORA
   Premium dark SaaS. Geist · OKLCH · color-mix() · @property
   CSS nesting · :has() · container queries · popover API
   scroll-driven animations · cross-document view transitions
   ============================================================= */

@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@property --glow  { syntax: "<percentage>"; initial-value: 0%; inherits: false; }

:root {
  color-scheme: dark;
  --bg:        oklch(0.13 0.022 285);
  --bg-raise:  oklch(0.165 0.028 285);
  --surface:   oklch(1 0 0 / .035);
  --surface-2: oklch(1 0 0 / .065);
  --line:      oklch(1 0 0 / .08);
  --line-2:    oklch(1 0 0 / .15);
  --text:      oklch(0.97 0.006 285);
  --text-2:    oklch(0.80 0.02 285);
  --text-3:    oklch(0.63 0.025 285);
  --violet:    oklch(0.58 0.23 288);
  --violet-hi: oklch(0.76 0.15 292);
  --magenta:   oklch(0.62 0.21 330);
  --green:     #25D366;
  --green-hi:  oklch(0.86 0.18 152);
  --red:       oklch(0.67 0.21 25);
  --amber:     oklch(0.84 0.15 80);
  --grad: linear-gradient(100deg in oklch, var(--violet-hi), var(--magenta) 48%, var(--green-hi));
  --r-sm: 10px; --r: 18px; --r-lg: 28px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 4vw, 32px);
  --maxw: 1200px;
  --font: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  interpolate-size: allow-keywords;          /* animate to height:auto */
}
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  min-height: 100dvh;
}
/* film grain over everything */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--violet-hi); outline-offset: 3px; border-radius: 8px; }
::selection { background: oklch(0.58 0.23 288 / .5); }
h1, h2, h3 { text-wrap: balance; line-height: 1.06; letter-spacing: -0.04em; font-weight: 640; }
p { text-wrap: pretty; }
strong { font-weight: 620; color: var(--text); }

.container { width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- page transitions (cross-document) ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .28s ease both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); filter: blur(6px); } }
@keyframes vt-in  { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

/* ---------- buttons ---------- */
.btn {
  --h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  height: var(--h); padding-inline: 1.15em; border-radius: 999px;
  font-size: .94rem; font-weight: 560; letter-spacing: -.01em; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .3s, box-shadow .3s, border-color .3s, color .3s;
  &:hover { transform: translateY(-2px); }
  &:active { transform: translateY(0) scale(.98); }
  & i { font-size: .9em; }
}
.btn-lg { --h: 52px; padding-inline: 1.55em; font-size: 1rem; }
.btn-primary {
  color: oklch(0.18 0.03 285);
  background: linear-gradient(180deg, #fff, oklch(0.9 0.03 290));
  box-shadow: 0 0 0 1px oklch(1 0 0 / .6) inset, 0 10px 40px -10px oklch(0.76 0.15 292 / .8);
  &:hover { box-shadow: 0 0 0 1px #fff inset, 0 14px 50px -10px oklch(0.76 0.15 292); }
}
.btn-secondary {
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
  backdrop-filter: blur(12px);
  &:hover { background: var(--surface-2); border-color: oklch(1 0 0 / .28); }
}
.btn-ghost { color: var(--text-2); padding-inline: .9em; &:hover { color: var(--text); transform: none; } }
.btn-green {
  color: oklch(0.2 0.05 152);
  background: linear-gradient(180deg, var(--green-hi), var(--green));
  box-shadow: 0 10px 40px -12px color-mix(in oklch, var(--green) 80%, transparent);
}
.btn-violet {
  color: #fff;
  background: linear-gradient(135deg in oklch, var(--violet), var(--magenta));
  box-shadow: 0 10px 40px -12px var(--violet);
}

/* ---------- eyebrow / section head ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .32rem .8rem; border-radius: 999px;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--violet-hi);
  background: color-mix(in oklch, var(--violet) 14%, transparent);
  border: 1px solid color-mix(in oklch, var(--violet) 35%, transparent);
  & i { font-size: .85em; }
}
.eyebrow.live { color: oklch(0.8 0.15 25); background: oklch(0.67 0.21 25 / .1); border-color: oklch(0.67 0.21 25 / .3); }
.eyebrow.live i { color: var(--red); animation: blink 1.4s infinite; }

.section { position: relative; padding-block: clamp(5rem, 11vw, 9rem); }
.section-head {
  display: grid; justify-items: center; text-align: center; gap: 1rem;
  max-width: 720px; margin: 0 auto clamp(3rem, 6vw, 4.5rem);
  & h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
  & p { color: var(--text-2); font-size: 1.08rem; max-width: 560px; }
}
.section-head.left { justify-items: start; text-align: left; margin-inline: 0; }

/* ---------- reveal: scroll-driven where supported, IO fallback ---------- */
@keyframes reveal { from { opacity: 0; transform: translateY(42px) scale(.985); } }
@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
}
.no-sda .reveal { opacity: 0; transform: translateY(36px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.no-sda .reveal.in { opacity: 1; transform: none; }

/* =============================================================
   HEADER — floating glass island, solidifies on scroll
   ============================================================= */
.site-header {
  position: fixed; inset: 14px 0 auto; z-index: 100;
  display: flex; justify-content: center; padding-inline: var(--gutter);
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  width: min(var(--maxw), 100%);
  display: flex; align-items: center; gap: 1.5rem;
  height: 64px; padding: 0 .55rem 0 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
@keyframes solidify {
  to {
    background-color: oklch(0.16 0.03 285 / .72);
    border-color: var(--line-2);
    box-shadow: 0 20px 60px -20px oklch(0 0 0 / .7), 0 1px 0 oklch(1 0 0 / .06) inset;
    backdrop-filter: blur(18px) saturate(1.4);
  }
}
@supports (animation-timeline: scroll()) {
  .nav { animation: solidify linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
}
.site-header.scrolled .nav {
  background-color: oklch(0.16 0.03 285 / .78); border-color: var(--line-2);
  backdrop-filter: blur(18px) saturate(1.4);
}
.nav-logo img { height: 34px; width: auto; filter: brightness(1.18) saturate(1.1); }
.nav-links {
  display: flex; gap: .25rem; margin-inline: auto;
  & a {
    display: block; padding: .5rem .9rem; border-radius: 999px;
    font-size: .92rem; color: var(--text-2); transition: color .25s, background-color .25s;
    &:hover { color: var(--text); background: var(--surface-2); }
    &[aria-current="page"] { color: var(--text); background: var(--surface-2); box-shadow: 0 0 0 1px var(--line) inset; }
  }
}
.nav-cta { display: flex; align-items: center; gap: .35rem; }
.nav-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  margin-left: auto; place-content: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--line);
  & span { display: block; width: 18px; height: 1.5px; background: var(--text); border-radius: 2px; }
}

/* mobile menu — native popover + @starting-style entry */
.mobile-menu {
  inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none;
  margin: 0; border: 0; padding: 6rem var(--gutter) 2rem;
  background: oklch(0.12 0.03 285 / .9); backdrop-filter: blur(24px);
  color: var(--text);
  flex-direction: column; gap: .25rem;
  opacity: 0; transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), overlay .35s allow-discrete, display .35s allow-discrete;
  &:popover-open { display: flex; opacity: 1; transform: none; }
  & a:not(.btn) { font-size: 2rem; font-weight: 600; letter-spacing: -.03em; padding: .35rem 0; border-bottom: 1px solid var(--line); }
  & .btn { margin-top: 1rem; }
  & .close { position: absolute; top: 24px; right: var(--gutter); width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); font-size: 1.1rem; }
}
@starting-style { .mobile-menu:popover-open { opacity: 0; transform: translateY(-12px); } }
.mobile-menu::backdrop { background: transparent; }

/* =============================================================
   HERO
   ============================================================= */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100svh; display: grid; align-items: center;
  padding: 140px 0 90px;
}
.aurora {
  position: absolute; inset: -25% -10% auto; height: 125%; z-index: -2;
  filter: blur(90px) saturate(1.25); opacity: .8; pointer-events: none;
  & span { position: absolute; border-radius: 50%; mix-blend-mode: screen; will-change: transform; }
  & span:nth-child(1) { width: 58vw; height: 42vw; left: -8vw; top: -6vw; background: radial-gradient(closest-side, oklch(0.52 0.25 288), transparent); animation: drift-a 18s ease-in-out infinite alternate; }
  & span:nth-child(2) { width: 46vw; height: 36vw; right: -6vw; top: 2vw; background: radial-gradient(closest-side, oklch(0.55 0.22 335 / .9), transparent); animation: drift-b 23s ease-in-out infinite alternate; }
  & span:nth-child(3) { width: 40vw; height: 28vw; left: 34vw; top: 20vw; background: radial-gradient(closest-side, oklch(0.74 0.19 152 / .55), transparent); animation: drift-c 27s ease-in-out infinite alternate; }
}
@keyframes drift-a { to { transform: translate(14vw, 8vw) scale(1.15); } }
@keyframes drift-b { to { transform: translate(-12vw, 10vw) scale(.9); } }
@keyframes drift-c { to { transform: translate(-16vw, -10vw) scale(1.2); } }
.hero-grid-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 25%, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .3rem .85rem .3rem .3rem; margin-bottom: 1.75rem;
  border-radius: 999px; font-size: .86rem; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line-2); backdrop-filter: blur(10px);
  transition: border-color .3s, color .3s;
  & .tag { padding: .15rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg in oklch, var(--violet), var(--magenta)); }
  & i { font-size: .75em; transition: transform .3s var(--ease); }
  &:hover { color: var(--text); border-color: oklch(1 0 0 / .3); & i { transform: translateX(3px); } }
}
.hero h1 {
  font-size: clamp(2.5rem, 4.7vw, 4.6rem);
  line-height: .98; letter-spacing: -.05em; font-weight: 660;
  margin-bottom: 1.5rem;
}
.rotator {
  display: inline-block; min-width: 3ch;
  background: inherit; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-desc { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-2); max-width: 520px; margin-bottom: 2.25rem; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 0; margin-top: 3.25rem;
  border-top: 1px solid var(--line); padding-top: 1.75rem; max-width: 560px;
  & > div { flex: 1 1 0; padding-right: 1.5rem; & + div { padding-left: 1.5rem; border-left: 1px solid var(--line); } }
  & .num { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 640; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
  & .lbl { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
}

/* hero visual — 3D tilt dashboard */
.hero-visual {
  --rx: 0deg; --ry: 0deg;
  position: relative; perspective: 1400px;
  & .stage { transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .6s var(--ease); }
}
.glass {
  background: linear-gradient(180deg, oklch(1 0 0 / .075), oklch(1 0 0 / .025));
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: 0 1px 0 oklch(1 0 0 / .08) inset, 0 40px 120px -30px oklch(0 0 0 / .8);
}
.mock { padding: 1.25rem; }
.win-bar {
  display: flex; align-items: center; gap: .45rem;
  padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line);
  & i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
  & i:nth-child(2) { background: #febc2e; } & i:nth-child(3) { background: #28c840; }
  & span { margin-left: .5rem; font-family: var(--mono); font-size: .74rem; color: var(--text-3); }
}
.mock-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); margin-bottom: .7rem; }
.msg-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .55rem; margin-bottom: 1rem; }
.msg {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem .75rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
}
.hero .msg { opacity: 0; animation: msg-in .7s var(--ease) forwards; animation-delay: calc(.6s + var(--i, 0) * .45s); }
@keyframes msg-in { from { opacity: 0; transform: translateX(-14px) translateZ(0); } to { opacity: 1; transform: none; } }
.avatar {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 650; font-size: .85rem; color: #fff;
  background: linear-gradient(135deg in oklch, var(--c1, var(--violet)), var(--c2, var(--magenta)));
}
.msg-body { flex: 1; min-width: 0; }
.msg-sender { font-size: .78rem; font-weight: 600; color: var(--green-hi); & i { font-size: .7em; opacity: .8; } }
.msg-text { font-size: .9rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-actions { display: flex; gap: .35rem; }
.act {
  height: 30px; min-width: 30px; padding-inline: .55rem; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  font-size: .76rem; font-weight: 600;
  transition: background-color .25s, color .25s, transform .2s;
  &:hover { transform: scale(1.06); }
  &.ok { color: var(--green-hi); background: oklch(0.78 0.19 152 / .14); border: 1px solid oklch(0.78 0.19 152 / .3); &:hover { background: var(--green); color: oklch(0.2 0.05 152); } }
  &.no { color: oklch(0.75 0.16 25); background: oklch(0.67 0.21 25 / .1); border: 1px solid oklch(0.67 0.21 25 / .25); &:hover { background: oklch(0.67 0.21 25 / .3); } }
  &:disabled { opacity: .35; pointer-events: none; }
}
.feed-bar {
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem .9rem; border-radius: 14px;
  background: oklch(0.78 0.19 152 / .07); border: 1px solid oklch(0.78 0.19 152 / .22);
  & > i { color: var(--green); font-size: 1.05rem; }
  & strong { display: block; font-size: .82rem; color: var(--green-hi); }
  & span { font-family: var(--mono); font-size: .72rem; color: var(--text-3); overflow-wrap: anywhere; }
  & > div { min-width: 0; }
}
.live-dot {
  margin-left: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 0 oklch(0.78 0.19 152 / .6); animation: ping 1.8s infinite;
}
@keyframes ping { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@keyframes blink { 50% { opacity: .25; } }

.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .7rem;
  padding: .65rem 1rem; border-radius: 16px; white-space: nowrap;
  font-size: .82rem; font-weight: 600;
  background: oklch(0.2 0.03 285 / .7); border: 1px solid var(--line-2); backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px -15px oklch(0 0 0 / .7);
  animation: bob 6s ease-in-out infinite;
  & small { display: block; font-size: .7rem; font-weight: 500; color: var(--text-3); }
  & > i { font-size: 1.25rem; }
  & img { height: 30px; width: auto; }
}
.fc-1 { top: -6%; left: -8%; transform: translateZ(70px); }
.fc-2 { bottom: 16%; right: -9%; transform: translateZ(90px); animation-delay: -2s; }
.fc-3 { bottom: -7%; left: 6%; transform: translateZ(60px); animation-delay: -4s; }
@keyframes bob { 50% { translate: 0 -10px; } }
.c-green { color: var(--green); }

/* =============================================================
   BRANDS MARQUEE
   ============================================================= */
.brands { padding-block: 3.5rem; border-block: 1px solid var(--line); background: oklch(1 0 0 / .012); }
.brands-label { text-align: center; font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1.75rem; }
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  &:hover .marquee-run { animation-play-state: paused; }
}
.marquee-run { --gap: 1.25rem; display: flex; gap: var(--gap); width: max-content; animation: marquee 38s linear infinite; }
@keyframes marquee { to { transform: translateX(calc(-50% - var(--gap) / 2)); } }
.logo-chip {
  height: 64px; padding: 0 1.4rem; border-radius: 16px;
  display: grid; place-items: center;
  background: #fff; border: 0;
  transition: transform .3s var(--ease), box-shadow .3s;
  & img { height: 34px; width: auto; max-width: 140px; object-fit: contain; }
  &:hover { transform: translateY(-3px); box-shadow: 0 12px 30px -12px oklch(0 0 0 / .6); }
}

/* =============================================================
   STEPS (short)
   ============================================================= */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.steps::before {
  content: ""; position: absolute; top: 58px; left: 16%; right: 16%; height: 1px;
  background: linear-gradient(90deg in oklch, var(--violet-hi), var(--magenta), var(--green-hi));
  transform-origin: left; opacity: .8;
}
@supports (animation-timeline: view()) {
  .steps::before { animation: draw linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
}
@keyframes draw { from { transform: scaleX(0); } }
.step {
  position: relative; text-align: center; padding: 2.25rem 1.75rem 2rem;
  border-radius: var(--r-lg); background: var(--bg-raise); border: 1px solid var(--line);
  transition: border-color .3s, translate .4s var(--ease);
  &:hover { border-color: var(--line-2); translate: 0 -6px; }
  & .num {
    position: relative; z-index: 1; width: 46px; height: 46px; margin: 0 auto 1.5rem;
    display: grid; place-items: center; border-radius: 14px;
    font-family: var(--mono); font-weight: 600; color: #fff;
    background: linear-gradient(135deg in oklch, var(--violet), var(--magenta));
    box-shadow: 0 0 0 6px var(--bg-raise), 0 10px 30px -8px var(--violet);
  }
  & .icon { height: 56px; display: flex; align-items: center; justify-content: center; gap: 1rem; margin-bottom: 1.1rem; font-size: 2.4rem; }
  & .icon img { height: 40px; width: auto; }
  & h3 { font-size: 1.22rem; margin-bottom: .6rem; letter-spacing: -.025em; }
  & p { color: var(--text-2); font-size: .95rem; }
}
.center-cta { display: flex; justify-content: center; margin-top: 3rem; }

/* =============================================================
   LIVE DEMO
   ============================================================= */
.demo { overflow: hidden; padding: 0; }
.demo > .win-bar { padding: 1rem 1.25rem; margin: 0; background: oklch(1 0 0 / .03); }
.ticker {
  display: flex; align-items: center; gap: 1rem; padding: .9rem 1.25rem;
  background: oklch(0.1 0.03 285 / .7); border-bottom: 1px solid var(--line);
}
.live-badge {
  flex: none; display: inline-flex; align-items: center; gap: .45rem;
  padding: .28rem .7rem; border-radius: 6px;
  font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .12em; color: #fff;
  background: var(--red);
  & i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
}
.ticker-track { flex: 1; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-run { --gap: 2.5rem; display: flex; gap: var(--gap); width: max-content; animation: marquee 34s linear infinite; }
.ticker-half { display: flex; gap: 2.5rem; }
.ticker-item { font-size: .92rem; color: var(--text-2); white-space: nowrap; display: inline-flex; align-items: center; gap: 2.5rem;
  & b { color: var(--green-hi); font-weight: 600; }
  &::after { content: "●"; color: var(--violet-hi); font-size: .55rem; }
}
.ticker-item.fresh b { color: var(--amber); }
.demo-body { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.25rem; padding: 1.5rem; min-height: 330px; }
.demo-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; align-content: start; }
.demo-list .msg { transition: background-color .3s, border-color .3s; }
.demo-list .msg.is-approved { background: oklch(0.78 0.19 152 / .1); border-color: oklch(0.78 0.19 152 / .4); }
.demo-list .msg.is-declined { background: oklch(0.67 0.21 25 / .08); border-color: oklch(0.67 0.21 25 / .35); }
.demo-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; align-content: start; }
.stat-box {
  padding: 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  & .n { font-size: 1.9rem; font-weight: 640; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
  & .l { font-size: .74rem; color: var(--text-3); }
  &.green .n { color: var(--green-hi); }
  &.violet .n { color: var(--violet-hi); }
  &.wide { grid-column: 1 / -1; display: flex; align-items: center; gap: .75rem; }
  & .feed { font-size: .8rem; font-weight: 600; color: var(--green-hi); display: flex; align-items: center; gap: .45rem; }
}
.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }
.all-done {
  display: grid; justify-items: center; gap: .35rem; padding: 2.5rem 1rem; text-align: center;
  border-radius: 14px; border: 1px dashed oklch(0.78 0.19 152 / .4); background: oklch(0.78 0.19 152 / .05);
  & > i { font-size: 2rem; color: var(--green); margin-bottom: .25rem; }
  & small { color: var(--text-3); margin-bottom: .75rem; }
}

/* =============================================================
   BENTO FEATURES — spotlight border follows the cursor
   ============================================================= */
.bento {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
  grid-template-areas:
    "wa wa ai"
    "mod img ai"
    "mod ws modes"
    "feed feed web";
}
.card {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  padding: 1.6rem; border-radius: var(--r-lg);
  background: var(--bg-raise); border: 1px solid var(--line);
  container-type: inline-size;
  display: flex; flex-direction: column; gap: .5rem;
}
.card::before { /* border spotlight */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 2; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx) var(--my), oklch(0.8 0.14 292 / .9), transparent 45%);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0; transition: opacity .4s;
}
.card::after { /* inner glow */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx) var(--my), oklch(0.58 0.23 288 / .13), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
:is(.bento, .compat):hover .card::before, :is(.bento, .compat):hover .card::after { opacity: 1; }
.card h3 { font-size: 1.12rem; letter-spacing: -.02em; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.card p { color: var(--text-2); font-size: .93rem; }
.f-icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; margin-bottom: .6rem;
  color: var(--ic, var(--violet-hi));
  background: color-mix(in oklch, var(--ic, var(--violet-hi)) 14%, transparent);
  border: 1px solid color-mix(in oklch, var(--ic, var(--violet-hi)) 28%, transparent);
}
.badge-new { font-size: .65rem; font-weight: 700; letter-spacing: .06em; padding: .18rem .55rem; border-radius: 999px; color: #fff; background: linear-gradient(135deg in oklch, var(--violet), var(--magenta)); }
.card .viz { margin-top: auto; padding-top: 1.25rem; }
.a-wa { grid-area: wa; } .a-mod { grid-area: mod; } .a-ai { grid-area: ai; } .a-img { grid-area: img; }
.a-ws { grid-area: ws; } .a-feed { grid-area: feed; } .a-modes { grid-area: modes; } .a-web { grid-area: web; }

/* mini visuals inside bento cards */
.viz-wa { display: flex; align-items: center; gap: .9rem; }
.viz-wa .node { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; background: var(--surface-2); border: 1px solid var(--line-2); }
.viz-wa .node.wa { color: var(--green); }
.viz-wa .wire { flex: 1; height: 2px; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--green) 0 8px, transparent 8px 16px); background-size: 32px 2px; animation: wire 1s linear infinite; opacity: .8; }
@keyframes wire { to { background-position: 32px 0; } }
.viz-mod { display: grid; gap: .45rem; }
.viz-mod div { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-size: .78rem; color: var(--text-2); padding: .55rem .7rem; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.viz-mod .ok { color: var(--green-hi); } .viz-mod .no { color: oklch(0.75 0.16 25); }
.viz-mod b { font-weight: 600; font-size: .72rem; }
.viz-ai { display: grid; gap: .5rem; font-size: .8rem; }
.viz-ai .bubble { padding: .55rem .75rem; border-radius: 12px 12px 12px 4px; background: var(--surface-2); color: var(--text-2); max-width: 90%; }
.viz-ai .bubble.bot { justify-self: end; border-radius: 12px 12px 4px 12px; background: linear-gradient(135deg in oklch, oklch(0.58 0.23 288 / .5), oklch(0.62 0.21 330 / .45)); color: var(--text); }
.viz-ws { display: flex; align-items: flex-end; gap: 4px; height: 44px; }
.viz-ws i { flex: 1; border-radius: 3px; background: linear-gradient(to top, var(--violet), var(--green-hi)); animation: eq 1.2s ease-in-out infinite; animation-delay: calc(var(--n) * -.13s); }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.viz-feed { display: flex; gap: .5rem; flex-wrap: wrap; font-family: var(--mono); font-size: .75rem; }
.viz-feed span { padding: .4rem .7rem; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.viz-feed span:first-child { color: var(--violet-hi); border-color: color-mix(in oklch, var(--violet) 40%, transparent); }
.viz-feed code { flex-basis: 100%; display: block; padding: .7rem .8rem; border-radius: 10px; background: oklch(0.1 0.02 285); color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viz-feed code b { color: var(--green-hi); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chips span { font-size: .74rem; padding: .3rem .65rem; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text-2); }
.img-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.img-tiles i { aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(135deg in oklch, var(--a), var(--b)); }
@container (min-width: 460px) {
  .card.a-feed { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); column-gap: 1.75rem; align-content: start; }
  .card.a-feed .viz { grid-column: 2; grid-row: 1 / span 4; margin: 0; padding: 0; }
}

/* =============================================================
   AI REPLY
   ============================================================= */
.ai-section {
  background:
    radial-gradient(60% 80% at 85% 50%, oklch(0.58 0.23 288 / .14), transparent 70%),
    linear-gradient(180deg, transparent, oklch(0.58 0.23 288 / .04), transparent);
  border-block: 1px solid oklch(0.58 0.23 288 / .14);
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 1rem 0 1.25rem; }
.split .lead { color: var(--text-2); font-size: 1.04rem; margin-bottom: 1.75rem; }
.checks { display: grid; gap: .7rem; margin-bottom: 2.25rem; }
.checks li { display: flex; align-items: center; gap: .75rem; color: var(--text-2); }
.checks i { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .65rem; color: var(--violet-hi); background: color-mix(in oklch, var(--violet) 18%, transparent); }
.ai-demo { padding: 1.5rem; }
.ai-head { display: flex; align-items: center; gap: .65rem; padding-bottom: 1rem; margin-bottom: 1.25rem; border-bottom: 1px solid var(--line); font-size: .86rem; color: var(--text-2);
  & > i { color: var(--violet-hi); }
  & .dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--violet-hi); animation: blink 1.5s infinite; }
}
.ai-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: .45rem; }
.ai-msg { padding: .8rem 1rem; border-radius: 14px; margin-bottom: 1.1rem;
  & small { display: block; font-size: .72rem; margin-bottom: .2rem; }
  &.in { background: oklch(0.78 0.19 152 / .07); border: 1px solid oklch(0.78 0.19 152 / .2); & small { color: var(--green-hi); } }
  &.out { background: color-mix(in oklch, var(--violet) 14%, transparent); border: 1px solid color-mix(in oklch, var(--violet) 32%, transparent); & small { color: var(--violet-hi); } }
}
.ai-typing { display: flex; align-items: center; gap: .6rem; font-size: .8rem; color: var(--text-3); margin-bottom: 1.1rem;
  & .dots { display: inline-flex; gap: 4px; }
  & .dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--violet-hi); animation: typing 1.2s infinite; }
  & .dots i:nth-child(2) { animation-delay: .15s; } & .dots i:nth-child(3) { animation-delay: .3s; }
}
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-5px); opacity: 1; } }
.ai-demo .step-in { opacity: 0; transform: translateY(10px); }
.ai-demo.play .step-in { animation: msg-in .6s var(--ease) forwards; animation-delay: calc(var(--t) * 1s); }
.ai-demo.play .ai-typing { animation: msg-in .5s var(--ease) forwards, fade-away .4s ease forwards; animation-delay: .9s, 2.6s; }
@keyframes fade-away { to { opacity: 0; height: 0; margin: 0; } }

/* =============================================================
   PRICING — CSS-only billing switch via :has()
   ============================================================= */
.billing {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center;
  padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2);
  & label { position: relative; z-index: 1; padding: .55rem 1.3rem; border-radius: 999px; font-size: .9rem; font-weight: 560; color: var(--text-3); cursor: pointer; text-align: center; transition: color .3s; }
  & input { position: absolute; opacity: 0; pointer-events: none; }
  & label:has(input:checked) { color: oklch(0.18 0.03 285); }
  & label:has(input:focus-visible) { outline: 2px solid var(--violet-hi); outline-offset: 2px; }
  &::before { content: ""; position: absolute; inset: 4px auto 4px 4px; width: calc(50% - 4px); border-radius: 999px; background: #fff; transition: translate .45s var(--ease); }
  &:has(input[value="yearly"]:checked)::before { translate: 100% 0; }
}
.billing-row { display: flex; align-items: center; justify-content: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 3rem; }
.save { font-size: .78rem; font-weight: 600; color: var(--green-hi); padding: .3rem .75rem; border-radius: 999px; background: oklch(0.78 0.19 152 / .1); border: 1px solid oklch(0.78 0.19 152 / .3); }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  padding: 2rem 1.75rem; border-radius: var(--r-lg); background: var(--bg-raise); border: 1px solid var(--line);
  & .plan-name { font-family: var(--mono); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
  & .plan-desc { color: var(--text-2); font-size: .92rem; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--line); }
  & ul { display: grid; gap: .7rem; margin-bottom: 2rem; font-size: .92rem; }
  & li { display: flex; align-items: center; gap: .65rem; }
  & li i { width: 18px; text-align: center; color: var(--green-hi); }
  & li.off { color: var(--text-3); & i { color: var(--text-3); } }
  & .btn { margin-top: auto; width: 100%; }
}
.price { display: flex; align-items: flex-end; gap: .25rem; margin-bottom: .5rem; line-height: 1;
  & .cur { font-size: 1.4rem; font-weight: 600; margin-bottom: .45rem; }
  & .amt { position: relative; font-size: 3.6rem; font-weight: 640; letter-spacing: -.05em; }
  & .per { position: relative; font-size: .9rem; color: var(--text-3); margin-bottom: .35rem; white-space: nowrap; }
  & .amt > span, & .per > span { display: inline-block; transition: opacity .35s, translate .45s var(--ease), filter .35s; }
  & .y { position: absolute; left: 0; bottom: 0; opacity: 0; translate: 0 .4em; filter: blur(4px); }
}
/* the yearly prices swap in purely through :has() — no JavaScript */
body:has(input[name="billing"][value="yearly"]:checked) .price {
  & .m { position: absolute; left: 0; bottom: 0; opacity: 0; translate: 0 -.4em; filter: blur(4px); }
  & .y { position: static; opacity: 1; translate: 0 0; filter: none; }
}
.plan.popular {
  background: linear-gradient(180deg, oklch(0.2 0.05 288), var(--bg-raise));
  border-color: transparent;
  translate: 0 -12px;
  box-shadow: 0 40px 100px -40px var(--violet);
}
.plan.popular::before { /* animated conic border */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--angle) in oklch, var(--violet-hi), var(--magenta), var(--green-hi), var(--violet-hi));
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: spin 6s linear infinite;
}
@keyframes spin { to { --angle: 360deg; } }
.popular-badge { font-family: var(--font); letter-spacing: .02em; text-transform: none; font-size: .72rem; font-weight: 650; padding: .25rem .65rem; border-radius: 999px; color: #fff; background: linear-gradient(135deg in oklch, var(--violet), var(--magenta)); }
.fine { text-align: center; margin-top: 2.25rem; font-size: .85rem; color: var(--text-3); }

/* =============================================================
   TESTIMONIALS
   ============================================================= */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: start; }
.quote {
  padding: 1.9rem; border-radius: var(--r-lg); background: var(--bg-raise); border: 1px solid var(--line);
  &:nth-child(2) { margin-top: 2.5rem; }
  & .stars { color: var(--amber); font-size: .8rem; display: flex; gap: .2rem; margin-bottom: 1.1rem; }
  & blockquote { font-size: 1.04rem; line-height: 1.65; color: var(--text); margin-bottom: 1.6rem; letter-spacing: -.01em; }
  & .who { display: flex; align-items: center; gap: .75rem; }
  & .who b { display: block; font-size: .9rem; font-weight: 600; }
  & .who span { font-size: .8rem; color: var(--text-3); }
}

/* =============================================================
   CTA
   ============================================================= */
.cta { position: relative; isolation: isolate; text-align: center; overflow: clip; padding-block: clamp(6rem, 12vw, 10rem); }
.cta-ring {
  position: absolute; z-index: -1; left: 50%; top: 50%; width: min(900px, 140vw); aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%;
  background: conic-gradient(from var(--angle) in oklch, transparent, oklch(0.58 0.23 288 / .5), oklch(0.62 0.21 330 / .4), oklch(0.78 0.19 152 / .35), transparent 70%);
  filter: blur(70px); opacity: .7; animation: spin 14s linear infinite;
  mask: radial-gradient(closest-side, transparent 45%, #000 70%, transparent);
}
.cta h2 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); margin-bottom: 1.25rem; }
.cta p { color: var(--text-2); font-size: 1.1rem; max-width: 520px; margin: 0 auto 2.25rem; }
.cta-buttons { display: flex; justify-content: center; flex-wrap: wrap; gap: .75rem; }
.cta-note { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1.75rem; font-size: .86rem; color: var(--text-3);
  & span { display: inline-flex; align-items: center; gap: .4rem; } & i { color: var(--green); font-size: .8em; }
}

/* =============================================================
   FOOTER
   ============================================================= */
.footer { position: relative; overflow: clip; border-top: 1px solid var(--line); padding-top: 4.5rem; background: linear-gradient(180deg, oklch(0.11 0.02 285), oklch(0.09 0.02 285)); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer-brand img { height: 36px; width: auto; margin-bottom: 1rem; filter: brightness(1.18); }
.footer-brand p { color: var(--text-2); font-size: .92rem; max-width: 300px; margin-bottom: 1.25rem; }
.social { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); color: var(--green); transition: transform .3s var(--ease); &:hover { transform: translateY(-3px); } }
.footer h4 { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin-bottom: 1rem; }
.footer ul { display: grid; gap: .55rem; }
.footer ul a { font-size: .92rem; color: var(--text-2); transition: color .25s; &:hover { color: var(--text); } }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 3.5rem; padding-block: 1.5rem; border-top: 1px solid var(--line); font-size: .84rem; color: var(--text-3);
  & a { color: var(--green-hi); }
}
.wordmark {
  font-size: clamp(4rem, 19vw, 17rem); font-weight: 700; letter-spacing: -.07em; line-height: .78; text-align: center;
  margin-top: 1rem; user-select: none; pointer-events: none;
  background: linear-gradient(180deg, oklch(1 0 0 / .1), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
  translate: 0 12%;
}

/* =============================================================
   HOW PAGE
   ============================================================= */
.page-hero { position: relative; isolation: isolate; overflow: clip; padding: 170px 0 70px; text-align: center; }
.page-hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); letter-spacing: -.05em; margin-bottom: 1.25rem; }
.page-hero p { color: var(--text-2); font-size: 1.12rem; max-width: 580px; margin: 0 auto 2.25rem; }
.page-hero .hero-buttons { justify-content: center; }
.page-hero .aurora { opacity: .55; }

.timeline { position: relative; display: grid; gap: clamp(4rem, 9vw, 7rem); padding-left: 0; }
.timeline-rail { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); translate: -50% 0; }
.timeline-rail i { position: absolute; inset: 0; background: linear-gradient(180deg in oklch, var(--violet-hi), var(--magenta), var(--green-hi)); transform-origin: top; transform: scaleY(0); }
@supports (animation-timeline: view()) {
  .timeline-rail i { animation: grow linear both; animation-timeline: view(); animation-range: cover 0% cover 70%; }
}
.no-sda .timeline-rail i { transform: scaleY(1); }
@keyframes grow { to { transform: scaleY(1); } }
.tl-step { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.tl-step:nth-child(even of .tl-step) .tl-visual { order: -1; }
.tl-num { font-family: var(--mono); font-size: .8rem; letter-spacing: .1em; color: var(--violet-hi); display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem;
  &::before { content: ""; width: 28px; height: 1px; background: currentColor; }
}
.tl-step h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); margin-bottom: 1rem; }
.tl-step .lead { color: var(--text-2); margin-bottom: 1.5rem; }
.tl-list { display: grid; gap: .6rem; font-size: .95rem; color: var(--text-2);
  & li { display: flex; gap: .7rem; align-items: flex-start; }
  & li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; font-size: .7rem; flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; margin-top: .15rem; color: var(--green-hi); background: oklch(0.78 0.19 152 / .12); }
}
.tl-visual { position: relative; min-height: 340px; display: grid; place-items: center; padding: 2rem; overflow: hidden; }
.qr-wrap { display: grid; justify-items: center; gap: 1.25rem; }
.qr-wrap > .wa-logo { width: 3.5rem; height: 3.5rem; color: var(--green); filter: drop-shadow(0 0 30px oklch(0.78 0.19 152 / .5)); animation: bob 5s ease-in-out infinite; }
.qr { position: relative; padding: 18px; border-radius: 22px; background: #fff; box-shadow: 0 30px 80px -20px oklch(0 0 0 / .7), 0 0 0 8px oklch(1 0 0 / .05); overflow: hidden; }
.qr::after { /* scanning laser */
  content: ""; position: absolute; left: 8px; right: 8px; height: 2px; top: 10%;
  background: var(--green); box-shadow: 0 0 18px 4px oklch(0.78 0.19 152 / .7); border-radius: 2px;
  animation: scan 2.6s ease-in-out infinite alternate;
}
@keyframes scan { to { top: 88%; } }
.qr svg { width: 150px; height: 150px; display: block; }
.qr-cap { font-size: .85rem; color: var(--text-3); }
.mod-mock { width: 100%; }
.mod-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem .9rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); margin-bottom: .55rem;
  & .num { font-size: .76rem; font-weight: 600; color: var(--green-hi); & i { font-size: .7em; } }
  & .txt { font-size: .9rem; color: var(--text-2); }
  &.approved { background: oklch(0.78 0.19 152 / .06); border-color: oklch(0.78 0.19 152 / .25); }
  & .done { font-size: .78rem; font-weight: 600; color: var(--green-hi); white-space: nowrap; }
}
.code { width: 100%; font-family: var(--mono); font-size: .8rem; line-height: 1.85; border-radius: 16px; overflow: hidden; background: oklch(0.1 0.02 285); border: 1px solid var(--line);
  & .code-bar { display: flex; align-items: center; gap: .55rem; padding: .65rem 1rem; font-size: .74rem; color: var(--text-3); border-bottom: 1px solid var(--line); background: oklch(1 0 0 / .03); & i { color: var(--green); font-size: .5rem; } }
  & pre { padding: 1.1rem 1.25rem; overflow-x: auto; color: var(--text-3); }
  & .k { color: var(--violet-hi); } & .s { color: var(--green-hi); } & .v { color: var(--amber); }
}
.import-tip { margin-top: 1rem; width: 100%; text-align: center; padding: .9rem 1rem; border-radius: 14px; background: color-mix(in oklch, var(--violet) 10%, transparent); border: 1px solid color-mix(in oklch, var(--violet) 30%, transparent);
  & b { display: block; font-size: .86rem; color: var(--violet-hi); font-weight: 600; }
  & span { font-size: .76rem; color: var(--text-3); font-family: var(--mono); }
}
.stack-v { width: 100%; display: grid; }

.compat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.compat .card { align-items: center; text-align: center; padding: 2rem 1.25rem; }
.compat .logo { height: 72px; display: grid; place-items: center; margin-bottom: .75rem; font-size: 2.6rem; }
.compat .logo img { height: 60px; width: auto; }
.compat .card h3 { justify-content: center; }

/* FAQ — exclusive <details name> + animated ::details-content */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: .65rem; }
.faq details {
  border-radius: var(--r); background: var(--bg-raise); border: 1px solid var(--line);
  transition: border-color .3s, background-color .3s;
  &[open] { border-color: color-mix(in oklch, var(--violet) 40%, transparent); background: linear-gradient(180deg, oklch(0.19 0.04 288), var(--bg-raise)); }
  &::details-content { block-size: 0; overflow: hidden; transition: block-size .45s var(--ease), content-visibility .45s allow-discrete; }
  &[open]::details-content { block-size: auto; }
}
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.2rem 1.4rem; font-weight: 560; font-size: 1.02rem; letter-spacing: -.01em;
  &::-webkit-details-marker { display: none; }
  & .plus { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); transition: rotate .4s var(--ease), background-color .3s; }
  & .plus::before, & .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--text); translate: -50% -50%; border-radius: 2px; }
  & .plus::after { rotate: 90deg; transition: rotate .4s var(--ease); }
}
.faq details[open] .plus { rotate: 180deg; background: color-mix(in oklch, var(--violet) 35%, transparent); }
.faq details[open] .plus::after { rotate: 0deg; }
.faq .answer { padding: 0 1.4rem 1.35rem; color: var(--text-2); font-size: .97rem; line-height: 1.75; }
.still { text-align: center; margin-top: 3rem; & p { color: var(--text-3); margin-bottom: 1rem; } }

/* =============================================================
   CONTACT PAGE
   ============================================================= */
.contact-grid { display: grid; grid-template-columns: .9fr 1.4fr; gap: 1.5rem; align-items: start; }
.info { display: grid; gap: 1rem; }
.info-card {
  display: flex; gap: 1rem; align-items: flex-start; padding: 1.4rem;
  border-radius: var(--r-lg); background: var(--bg-raise); border: 1px solid var(--line);
  transition: border-color .3s, translate .4s var(--ease);
  &:hover { border-color: var(--line-2); translate: 0 -3px; }
  & .f-icon { margin: 0; flex: none; }
  & h3 { font-size: 1rem; letter-spacing: -.01em; margin-bottom: .2rem; }
  & a { color: var(--green-hi); font-weight: 560; }
  & small { display: block; font-size: .8rem; color: var(--text-3); margin-top: .25rem; }
}
.faq-hint {
  padding: 1.5rem; border-radius: var(--r-lg);
  background: radial-gradient(120% 120% at 0% 0%, oklch(0.78 0.19 152 / .1), transparent 60%), var(--bg-raise);
  border: 1px solid oklch(0.78 0.19 152 / .2);
  & > i { font-size: 1.2rem; color: var(--green); margin-bottom: .75rem; display: block; }
  & h3 { font-size: 1rem; margin-bottom: .4rem; }
  & p { font-size: .88rem; color: var(--text-2); margin-bottom: 1rem; }
}
.form-card { padding: clamp(1.5rem, 4vw, 2.5rem); }
.form-card h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .4rem; }
.form-card > p { color: var(--text-2); margin-bottom: 2rem; font-size: .95rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { position: relative; margin-bottom: 1rem; }
.field label {
  position: absolute; left: 1rem; top: 1.05rem; z-index: 1; pointer-events: none;
  font-size: .95rem; color: var(--text-3); transform-origin: left top;
  transition: translate .3s var(--ease), scale .3s var(--ease), color .3s;
  & em { font-style: normal; color: var(--red); }
}
.control {
  width: 100%; min-height: 58px; padding: 1.55rem 1rem .55rem;
  border-radius: 14px; border: 1px solid var(--line-2); background: oklch(1 0 0 / .03);
  outline: none; transition: border-color .3s, background-color .3s, box-shadow .3s;
  &::placeholder { color: transparent; transition: color .3s; }
  &:focus { border-color: var(--violet-hi); background: color-mix(in oklch, var(--violet) 6%, transparent); box-shadow: 0 0 0 4px color-mix(in oklch, var(--violet) 18%, transparent); }
  &:focus::placeholder { color: var(--text-3); }
  &:user-invalid { border-color: var(--red); box-shadow: 0 0 0 4px oklch(0.67 0.21 25 / .14); }
  &:user-valid { border-color: oklch(0.78 0.19 152 / .55); }
}
.field:has(.control:focus) label,
.field:has(.control:not(:placeholder-shown)) label,
.field:has(select) label { translate: 0 -.62rem; scale: .78; color: var(--text-2); }
.field:has(.control:user-invalid) label { color: oklch(0.78 0.15 25); }
.field .hint { display: none; font-size: .78rem; color: oklch(0.78 0.15 25); margin-top: .35rem; }
.field:has(.control:user-invalid) .hint { display: block; }
textarea.control { field-sizing: content; min-height: 150px; resize: vertical; line-height: 1.6; }
select.control {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23a59fc0' d='M6 8.5 1.5 4h9z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1.1rem center;
}
select.control option { background: oklch(0.18 0.03 285); }
/* Customizable select (Chrome 135+) — falls back to the native one elsewhere */
@supports (appearance: base-select) {
  select.control, select.control::picker(select) { appearance: base-select; }
  select.control { background-image: none; display: flex; align-items: center; }
  select.control::picker-icon { color: var(--text-3); transition: rotate .3s var(--ease); }
  select.control:open::picker-icon { rotate: 180deg; }
  select.control::picker(select) {
    border: 1px solid var(--line-2); border-radius: 14px; padding: .35rem; margin-top: 6px;
    background: oklch(0.19 0.035 285 / .96); backdrop-filter: blur(16px);
    box-shadow: 0 30px 80px -20px oklch(0 0 0 / .8);
    opacity: 0; translate: 0 -6px; transition: opacity .25s, translate .25s var(--ease), overlay .25s allow-discrete, display .25s allow-discrete;
  }
  select.control:open::picker(select) { opacity: 1; translate: 0 0; }
  @starting-style { select.control:open::picker(select) { opacity: 0; translate: 0 -6px; } }
  select.control option { padding: .6rem .8rem; border-radius: 10px; background: transparent; }
  select.control option:hover, select.control option:focus-visible { background: var(--surface-2); }
  select.control option:checked { color: var(--violet-hi); }
  select.control option::checkmark { color: var(--green-hi); }
}
.hp { position: absolute; left: -9999px; }
.submit { width: 100%; height: 54px; margin-top: .5rem; border-radius: 14px; }
.submit .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; }
@keyframes rot { to { rotate: 360deg; } }
.legal { text-align: center; margin-top: 1rem; font-size: .8rem; color: var(--text-3); & a { color: var(--green-hi); } }
.alert { display: none; padding: 1rem 1.15rem; border-radius: 14px; margin-bottom: 1.25rem; font-size: .9rem; font-weight: 560; align-items: center; gap: .6rem; }
.alert.ok { color: var(--green-hi); background: oklch(0.78 0.19 152 / .1); border: 1px solid oklch(0.78 0.19 152 / .3); }
.alert.show { display: flex; animation: msg-in .5s var(--ease); }
.strip {
  margin-top: clamp(4rem, 8vw, 6rem); padding-block: 3.25rem;
  border-block: 1px solid var(--line);
  background: radial-gradient(60% 140% at 100% 50%, oklch(0.58 0.23 288 / .12), transparent 70%);
  & .container { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
  & h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: .35rem; }
  & p { color: var(--text-2); }
}

/* =============================================================
   BLOG — latest posts (home) + blog page + article view
   ============================================================= */
.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.post-card {
  display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-lg);
  background: var(--bg-raise); border: 1px solid var(--line);
  transition: border-color .3s, translate .45s var(--ease), box-shadow .45s var(--ease);
  &:hover { border-color: var(--line-2); translate: 0 -6px; box-shadow: 0 30px 80px -40px var(--violet); }
  &:hover .pc-cover > img { scale: 1.05; }
  &:hover .pc-more i { translate: 4px 0; }
}
.pc-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg); }
.pc-cover > img { width: 100%; height: 100%; object-fit: cover; transition: scale .7s var(--ease); }
.pc-art { position: absolute; inset: 0; display: grid; place-items: center;
  background:
    radial-gradient(70% 90% at 15% 15%, oklch(0.58 0.22 calc(265 + var(--h) / 4) / .9), transparent 62%),
    radial-gradient(60% 80% at 95% 95%, oklch(0.75 0.17 152 / .45), transparent 60%),
    linear-gradient(160deg, oklch(0.2 0.04 285), var(--bg));
  & img { width: 64px; filter: drop-shadow(0 12px 30px oklch(0 0 0 / .55)); }
}
.pc-art::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: 32px 32px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); }
.pc-tags { position: absolute; left: 12px; top: 12px; z-index: 1; display: flex; gap: .4rem; }
.pc-tag { padding: .22rem .62rem; border-radius: 999px; font-family: var(--mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: oklch(0.13 0.022 285 / .72); backdrop-filter: blur(8px); border: 1px solid var(--line-2); }
.pc-tag.preview { color: oklch(0.22 0.05 80); background: var(--amber); border-color: transparent; }
.pc-body { display: flex; flex-direction: column; gap: .55rem; padding: 1.3rem 1.4rem 1.5rem; flex: 1; }
.pc-date { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.pc-body h3 { font-size: 1.2rem; letter-spacing: -.025em; line-height: 1.2; }
.pc-body p { color: var(--text-2); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-more { margin-top: auto; padding-top: .4rem; display: inline-flex; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 560; color: var(--violet-hi); & i { transition: translate .3s var(--ease); } }
.post-card.sk { min-height: 380px; background: linear-gradient(100deg, var(--bg-raise) 30%, oklch(0.2 0.03 285) 50%, var(--bg-raise) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }
.blog-note { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-top: 1.5rem; font-family: var(--mono); font-size: .72rem; color: var(--text-3); text-align: center; }
.blog-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }
.post-feature {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); overflow: hidden; margin-bottom: 1.25rem;
  border-radius: var(--r-lg); background: var(--bg-raise); border: 1px solid var(--line); transition: border-color .3s, box-shadow .45s var(--ease);
  &:hover { border-color: var(--line-2); box-shadow: 0 40px 100px -50px var(--violet); }
  &:hover .pc-cover > img { scale: 1.04; }
  & .pc-cover { aspect-ratio: auto; min-height: 360px; }
  & .pc-body { justify-content: center; gap: .9rem; padding: clamp(1.5rem, 4vw, 3rem); }
  & h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
  & p { font-size: 1.02rem; -webkit-line-clamp: 4; }
  & .btn { align-self: flex-start; margin-top: .5rem; }
}
.blog-empty { text-align: center; padding: 3rem 1.5rem; border-radius: var(--r-lg); border: 1px dashed var(--line-2); color: var(--text-2); }
.page-hero.is-article h1 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 22ch; margin-inline: auto; }
.article-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: .4rem 1.25rem; margin: -.75rem 0 1.75rem; font-family: var(--mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.post-cover-lg { position: relative; width: min(100%, 1040px); aspect-ratio: 16 / 8; margin: 0 auto clamp(2.5rem, 5vw, 4rem); overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line-2); box-shadow: 0 40px 120px -40px oklch(0 0 0 / .8), 0 0 80px -40px var(--violet); }
.post-cover-lg > img { width: 100%; height: 100%; object-fit: cover; }
.prose { width: min(100%, 720px); margin-inline: auto; font-size: 1.08rem; line-height: 1.8; color: var(--text-2);
  & > * + * { margin-top: 1.15em; }
  & h2 { font-size: clamp(1.6rem, 2.8vw, 2rem); color: var(--text); margin-top: 1.9em; }
  & h3 { font-size: 1.3rem; color: var(--text); margin-top: 1.6em; letter-spacing: -.02em; }
  & strong { color: var(--text); }
  & a { color: var(--violet-hi); text-decoration: underline; text-underline-offset: 3px; }
  & ul, & ol { padding-left: 1.3em; } & li + li { margin-top: .45em; } & li::marker { color: var(--violet-hi); }
  & blockquote { padding: 1em 1.3em; border-radius: var(--r); color: var(--text); background: color-mix(in oklch, var(--violet) 10%, transparent); border: 1px solid color-mix(in oklch, var(--violet) 30%, transparent); }
  & img { border-radius: var(--r); }
  & code { font-family: var(--mono); font-size: .88em; padding: .1em .4em; border-radius: 6px; background: var(--surface-2); }
  & iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); }
}
.post-loading { display: flex; justify-content: center; align-items: center; gap: .7rem; padding: 2rem; color: var(--text-3);
  & .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: rot .7s linear infinite; } }
.post-more { margin-top: clamp(4rem, 8vw, 6rem); padding-top: 3rem; border-top: 1px solid var(--line); }
@media (max-width: 1000px) {
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-feature { grid-template-columns: minmax(0, 1fr); }
  .post-feature .pc-cover { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 620px) { .posts { grid-template-columns: minmax(0, 1fr); } .post-cover-lg { aspect-ratio: 16 / 10; } }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { text-align: center; display: grid; justify-items: center; }
  .hero-desc { margin-inline: auto; }
  .hero-buttons { justify-content: center; }
  .hero-stats { margin-inline: auto; }
  .hero-visual { max-width: 520px; margin: 2rem auto 0; width: 100%; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "wa wa" "mod ai" "img ws" "feed feed" "modes web"; }
  .compat { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: grid; }
  .steps, .quotes, .pricing { grid-template-columns: minmax(0, 1fr); }
  .steps::before { display: none; }
  .quote:nth-child(2) { margin-top: 0; }
  .plan.popular { translate: none; }
  .split, .tl-step, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .tl-step:nth-child(even of .tl-step) .tl-visual { order: 0; }
  .timeline-rail { display: none; }
  .demo-body { grid-template-columns: minmax(0, 1fr); }
  .float-card { display: none; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: minmax(0, 1fr); grid-template-areas: "wa" "mod" "ai" "img" "ws" "feed" "modes" "web"; }
  .compat { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { font-size: clamp(2.15rem, 10.5vw, 2.7rem); }
  .hero-stats .num { font-size: 1.3rem; }
  .hero-stats .lbl { font-size: .62rem; }
  .pill { font-size: .8rem; }
  .hero-stats > div { padding-right: .75rem; & + div { padding-left: .75rem; } }
  .demo-stats { grid-template-columns: 1fr 1fr; }
  .msg-actions .act span { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
/* Animations intentionally ignore the OS "Reduce Motion" setting (site owner's choice). */
}

/* fewer posts → fewer columns, so no empty slots */
.posts:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.posts:has(> :only-child) { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
@media (max-width: 620px) { .posts:has(> :nth-child(2):last-child) { grid-template-columns: minmax(0, 1fr); } }

/* ===== real logos, icons & clean white logo chips ===== */
.wa-logo { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.2em; flex: none; }
.brand-ico { display: inline-block; width: 1.4em; height: 1.4em; vertical-align: middle; }
.ai-logos { display: flex; flex-wrap: wrap; gap: .6rem; margin: -.5rem 0 1.75rem; }
.ai-logos span { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .9rem .45rem .6rem; border-radius: 999px; border: 1px solid rgb(127 127 127 / .3); font-size: .85rem; font-weight: 600; }
.ai-logos img { width: 20px; height: 20px; }
[class^="ph-"], [class*=" ph-"] { line-height: 1; }
.marquee { position: relative; z-index: 2; }

/* =============================================================
   LIVE DEMO — stream monitor + moderation panel
   ============================================================= */
.onair { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.monitor { padding: .75rem; }
.monitor .win-bar { padding: .35rem .5rem .8rem; margin-bottom: .75rem; }
.monitor .win-bar .mon-live { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .7rem; color: oklch(0.8 0.15 25);
  & b { width: 7px; height: 7px; border-radius: 50%; background: var(--red); animation: blink 1.2s infinite; } }
.screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; container-type: inline-size; background: #0a0816; box-shadow: 0 0 0 1px var(--line-2); }
.stage { position: absolute; inset: 0;
  background:
    radial-gradient(45% 60% at 22% 30%, oklch(0.6 0.22 290 / .65), transparent 70%),
    radial-gradient(45% 60% at 80% 25%, oklch(0.62 0.21 330 / .55), transparent 70%),
    radial-gradient(60% 40% at 50% 70%, oklch(0.75 0.17 152 / .18), transparent 70%),
    linear-gradient(180deg, oklch(0.2 0.06 290), oklch(0.1 0.03 285) 75%); }
.stage .beam { position: absolute; top: -20%; width: 40%; height: 130%; transform-origin: 50% 0; mix-blend-mode: screen; filter: blur(8px);
  clip-path: polygon(46% 0, 54% 0, 100% 100%, 0 100%); background: linear-gradient(180deg, oklch(0.8 0.12 292 / .45), transparent 75%); animation: sweep 7s ease-in-out infinite alternate; }
.stage .beam:nth-child(1) { left: 0; rotate: -22deg; }
.stage .beam:nth-child(2) { left: 30%; rotate: 8deg; animation-delay: -2.5s; background: linear-gradient(180deg, oklch(0.85 0.15 152 / .3), transparent 75%); }
.stage .beam:nth-child(3) { left: 58%; rotate: -6deg; animation-delay: -5s; background: linear-gradient(180deg, oklch(0.75 0.18 330 / .4), transparent 75%); }
@keyframes sweep { to { rotate: 16deg; } }
.stage .led { position: absolute; left: 24%; right: 24%; top: 14%; height: 34%; border-radius: 6px; opacity: .8;
  background: radial-gradient(circle at 1px 1px, oklch(1 0 0 / .22) 1px, transparent 1.5px) 0 0 / 6px 6px, var(--grad);
  box-shadow: 0 0 60px oklch(0.6 0.22 290 / .6); animation: led 8s linear infinite; }
@keyframes led { 50% { filter: hue-rotate(35deg) brightness(1.15); } }
.stage .desk { position: absolute; left: 0; right: 0; bottom: 0; height: 28%; background: linear-gradient(180deg, oklch(0.24 0.05 290), oklch(0.13 0.03 285)); border-top: 1px solid oklch(1 0 0 / .08); }
.stage .host { position: absolute; bottom: 20%; z-index: 1; width: 12cqi; aspect-ratio: 1 / 1.3; border-radius: 50% 50% 10% 10% / 38% 38% 10% 10%; background: #07060f; }
.stage .host::before { content: ""; position: absolute; left: 50%; top: -42%; translate: -50% 0; width: 52%; aspect-ratio: 1; border-radius: 50%; background: #07060f; }
.stage .h1 { left: 30%; }
.stage .h2 { left: 58%; width: 11cqi; }
.scr-badge { position: absolute; top: 3.5cqi; left: 3.5cqi; z-index: 3; display: inline-flex; align-items: center; gap: .45em; padding: .3em .7em; border-radius: 6px; background: var(--red); color: #fff; font-family: var(--mono); font-weight: 700; font-size: max(10px, 2.1cqi); letter-spacing: .12em;
  & i { width: .5em; height: .5em; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; } }
.scr-bug { position: absolute; right: 3.5cqi; top: 3.5cqi; z-index: 3; width: 6.5cqi; opacity: .9; }
.l3 { position: absolute; left: 5cqi; bottom: 13cqi; z-index: 3; display: grid; justify-items: start; max-width: 80cqi; filter: drop-shadow(0 1cqi 3cqi oklch(0 0 0 / .45)); }
.l3-name { display: inline-flex; align-items: center; gap: .45em; padding: .4em .85em .35em; border-radius: .55em .55em 0 0; background: linear-gradient(110deg in oklch, var(--violet), var(--magenta)); color: #fff; font-weight: 650; font-size: 2.9cqi; line-height: 1;
  & i { color: var(--green-hi); } }
.l3-msg { padding: .45em .9em .5em; border-radius: 0 .6em .6em .6em; background: #fff; color: oklch(0.18 0.03 285); font-weight: 600; font-size: 3.5cqi; line-height: 1.2; }
.l3.out { animation: l3-out .45s cubic-bezier(.7, 0, .8, .3) forwards; }
.l3.in .l3-name { animation: l3-in .5s var(--ease) both; }
.l3.in .l3-msg { animation: l3-in .6s .1s var(--ease) both; }
@keyframes l3-in { from { opacity: 0; translate: -14px 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; translate: 0 0; clip-path: inset(0 0 0 0); } }
@keyframes l3-out { to { opacity: 0; translate: 10px 0; } }
.screen .scr-ticker { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 0 2cqi; height: 8.5cqi; gap: 1.6cqi; border-bottom: 0; border-top: 1px solid oklch(1 0 0 / .1);
  background: oklch(0.1 0.03 285 / .82); backdrop-filter: blur(8px); }
.scr-ticker .live-badge { font-size: max(9px, 1.9cqi); padding: .25em .6em; }
.scr-ticker .ticker-item { font-size: max(10px, 2.3cqi); }
.mod-panel { padding: 1.1rem; display: grid; gap: .9rem; }
.mod-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid var(--line); }
.feed-on { display: inline-flex; align-items: center; gap: .45rem; font-size: .78rem; font-weight: 600; color: var(--green-hi);
  & b { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: ping 1.8s infinite; } }
.mod-panel .demo-list { gap: .5rem; }
.mod-panel .msg { padding: .6rem .65rem; gap: .6rem; }
.mod-panel .avatar { width: 30px; height: 30px; font-size: .78rem; }
.mod-panel .act span { display: none; }
.mod-panel .act.ok { min-width: 34px; }
.mod-panel .demo-stats { grid-template-columns: 1fr 1fr; }
.mod-panel .stat-box { padding: .75rem .85rem; }
.mod-panel .stat-box .n { font-size: 1.5rem; }
@media (max-width: 960px) { .onair { grid-template-columns: minmax(0, 1fr); } }

/* =============================================================
   FEED FORMAT DEMO (bento card) — clickable JSON / CSV / Condensed
   ============================================================= */
.feed-demo { display: grid; gap: .75rem; }
.fd-tabs { display: inline-flex; gap: 4px; padding: 4px; justify-self: start; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.fd-tabs button { padding: .45rem .9rem; border-radius: 9px; font-family: var(--mono); font-size: .76rem; color: var(--text-3); transition: color .2s, background-color .2s, box-shadow .2s;
  &:hover { color: var(--text); }
  &[aria-selected="true"] { color: #fff; background: linear-gradient(135deg in oklch, var(--violet), var(--magenta)); box-shadow: 0 6px 20px -8px var(--violet); } }
.fd-window { overflow: hidden; border-radius: 14px; background: oklch(0.1 0.02 285); border: 1px solid var(--line); }
.fd-bar { display: flex; align-items: center; gap: .6rem; padding: .55rem .6rem .55rem .9rem; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .72rem; color: var(--text-3); min-width: 0; }
.fd-method { flex: none; padding: .1rem .4rem; border-radius: 5px; font-weight: 600; color: var(--green-hi); background: oklch(0.78 0.19 152 / .12); }
.fd-url { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-url b { color: var(--text); font-weight: 500; }
.fd-copy { flex: none; display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .6rem; border-radius: 8px; font-size: .7rem; color: var(--text-2); border: 1px solid var(--line-2); transition: color .2s, border-color .2s;
  &:hover { color: var(--text); border-color: oklch(1 0 0 / .3); } &.done { color: var(--green-hi); border-color: oklch(0.78 0.19 152 / .5); } }
.fd-code { margin: 0; max-height: 260px; overflow: auto; padding: .9rem 1rem; font-family: var(--mono); font-size: .76rem; line-height: 1.7; color: var(--text-3); white-space: pre; tab-size: 2; }
.fd-code.swap { animation: fd-in .35s var(--ease); }
@keyframes fd-in { from { opacity: 0; translate: 0 6px; } }
.fd-code .k { color: var(--violet-hi); } .fd-code .s { color: var(--green-hi); } .fd-code .n { color: var(--amber); } .fd-code .z { color: var(--text-3); font-style: italic; }
.fd-code .u { color: oklch(0.8 0.12 220); } .fd-code .h { color: var(--text); font-weight: 600; } .fd-code .q { color: var(--text-3); }
.fd-code .media { background: oklch(0.8 0.12 220 / .1); border-radius: 4px; box-shadow: 0 0 0 1px oklch(0.8 0.12 220 / .25); }
.fd-hint { display: flex; align-items: flex-start; gap: .5rem; font-size: .82rem; color: var(--text-3); & i { color: oklch(0.8 0.12 220); font-size: 1rem; margin-top: .1rem; } & code { font-family: var(--mono); font-size: .9em; color: var(--text-2); } }

/* Company card on the contact page */
.co-line { margin: .15rem 0 0; font-size: .9rem; }
.co-facts { display: grid; gap: .3rem; margin: .6rem 0 0; font-size: .84rem; }
.co-facts div { display: flex; flex-wrap: wrap; gap: .25rem .6rem; }
.co-facts dt { display: inline-flex; align-items: center; gap: .35rem; opacity: .7; }
.co-facts dd { margin: 0; font-weight: 600; }
:is(.info-card, .line-card, .c-card) .co-line a { font: inherit; font-weight: 600; letter-spacing: 0; text-transform: none; }

/* Page heroes fade out into the page instead of ending on a hard edge */
.page-hero .aurora { mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
.page-hero .hero-grid-bg { mask-image: radial-gradient(ellipse 75% 70% at 50% 30%, #000 20%, transparent 70%); }
.contact-sec { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(5rem, 9vw, 7rem); }

/* =============================================================
   LIVE: contact form errors, Turnstile, legal pages
   ============================================================= */
.alert.err { color: oklch(0.8 0.15 25); background: oklch(0.65 0.22 25 / .1); border: 1px solid oklch(0.65 0.22 25 / .35); }
.cf-turnstile { min-height: 65px; margin: .25rem 0 1.1rem; }
.legal-wrap { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(5rem, 9vw, 7rem); }
.legal-content { width: min(100%, 780px); margin-inline: auto; padding: clamp(1.5rem, 4vw, 3rem); border-radius: 24px; color: var(--text-2); line-height: 1.8; font-size: 1rem; }
.legal-content h2 { margin: 0 0 .8rem; color: var(--text); font-size: clamp(1.2rem, 2.4vw, 1.45rem); letter-spacing: -.02em; }
.legal-content h3 { color: var(--text); font-size: 1.1rem; margin: 0 0 .6rem; }
.legal-content p { margin: 0 0 1rem; }
.legal-content ul { margin: 0 0 1rem; padding-left: 1.25rem; display: grid; gap: .35rem; }
.legal-content li::marker { color: var(--violet-hi); }
.legal-content a { color: var(--green-hi); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in oklch, var(--green-hi) 40%, transparent); }
.legal-content strong { color: var(--text); }
.legal-last-updated { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 2rem; padding: .4rem .85rem; border-radius: 999px; font-family: var(--mono); font-size: .75rem; color: var(--text-3); background: var(--surface); border: 1px solid var(--line); }
.legal-divider { border: 0; height: 1px; margin: 2rem 0; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }
.legal-contact-box { margin-top: 1rem; padding: 1.5rem; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.legal-contact-box p { margin-bottom: .3rem; }
.legal-contact-box .btn { text-decoration: none; color: var(--text); }
.rights-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; margin: 0 0 1.25rem; }
.rights-item { display: flex; gap: .7rem; padding: .85rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .92rem; line-height: 1.55; }
.rights-item i { color: var(--green-hi); flex-shrink: 0; margin-top: .3rem; }
@media (max-width: 600px) { .rights-grid { grid-template-columns: minmax(0, 1fr); } }

/* =============================================================
   404 PAGE — auto-redirect home after 5s
   ============================================================= */
.nf { min-height: 100svh; display: grid; align-items: center; padding-bottom: 90px; }
.nf h1 { font-size: clamp(2.2rem, 5.5vw, 4.2rem); }
.nf-code { display: flex; justify-content: center; align-items: center; gap: clamp(.25rem, 1.5vw, 1rem); margin-bottom: 1.25rem; font-weight: 800; font-size: clamp(6rem, 22vw, 13rem); line-height: .9; letter-spacing: -.06em; }
.nf-zero { position: relative; display: grid; place-items: center; width: .78em; height: .78em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, oklch(0.3 0.08 290), oklch(0.14 0.03 285)); box-shadow: inset 0 0 0 .06em oklch(1 0 0 / .08), 0 0 60px oklch(0.6 0.22 290 / .45); animation: bob 5s ease-in-out infinite; }
.nf-zero::after { content: ""; position: absolute; inset: -.06em; border-radius: 50%; border: .03em dashed oklch(0.78 0.19 152 / .55); animation: rot 16s linear infinite; }
.nf-zero .wa-logo { width: .4em; height: .4em; filter: drop-shadow(0 0 24px oklch(0.78 0.19 152 / .6)); }
.nf-count { display: inline-flex; align-items: center; gap: .8rem; margin: 0 auto 2rem; padding: .55rem .6rem .55rem .7rem; border-radius: 999px; font-size: .92rem; color: var(--text-2); }
.nf-count svg { width: 30px; height: 30px; rotate: -90deg; flex: none; }
.nf-count circle { fill: none; stroke-width: 4; }
.nf-count .track { stroke: var(--line-2); }
.nf-count .bar { stroke: var(--green-hi); stroke-linecap: round; stroke-dasharray: 100; animation: nf-drain 5s linear forwards; }
.nf-count b { color: var(--text); font-variant-numeric: tabular-nums; }
.nf-stay { padding: .35rem .8rem; border-radius: 999px; font-size: .8rem; color: var(--text-2); border: 1px solid var(--line-2); transition: color .2s, border-color .2s; &:hover { color: var(--text); border-color: oklch(1 0 0 / .3); } }
.nf-count.stopped .bar { animation-play-state: paused; stroke: var(--text-3); }
.nf-count.stopped .nf-stay { display: none; }
@keyframes nf-drain { to { stroke-dashoffset: 100; } }
