/* ============================================================
   AskAgento v1 redesign: immersive dark / green, no build step.
   Pairs with: index.html, redesign.js, common_code/demo-test.js,
   v1/script.js, common_code/landing-chatbot.js
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --bg: #04080a;
  --bg-2: #071009;
  --bg-3: #0a1410;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(82, 255, 168, 0.12);
  --line-strong: rgba(82, 255, 168, 0.28);
  --green: #2bf096;
  --green-2: #19e3c2;
  --green-dim: #14b873;
  --green-ink: #052613;
  --text: #eaf7ef;
  --muted: #9ab3a4;
  --muted-2: #6d8377;
  --danger: #ff7d7d;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --radius: 16px;
  --radius-lg: 24px;
  --glow: 0 0 24px rgba(43, 240, 150, 0.35);
  --shadow-card: 0 24px 60px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { color: var(--green-2); }
button { font-family: inherit; }
::selection { background: rgba(43, 240, 150, 0.35); color: #fff; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #153022; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #1e4530; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  color: var(--text);
}
p { margin: 0 0 1em; }
code { font-family: var(--font-mono); font-size: 0.9em; color: var(--green-2); }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }
.section { position: relative; padding: 110px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; }
.section-sub { color: var(--muted); font-size: 1.08rem; max-width: 640px; margin: 0 auto; }
.section-sub a { text-decoration: underline; text-underline-offset: 3px; }

.text-gradient {
  background: linear-gradient(100deg, var(--green) 10%, var(--green-2) 55%, #7dffc7 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 18px;
  background: rgba(43, 240, 150, 0.06);
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--green); color: var(--green-ink);
  padding: 10px 18px; border-radius: 0 0 12px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- Ambient layers ---------- */
/* .noise and .aurora are hidden — SVG feTurbulence filters and animated
   filter:blur(110px) on fixed elements destroy Safari/WebKit compositing.
   Replaced with free radial-gradient glows on .hero (no filter, no animation). */
.noise  { display: none; }
.aurora { display: none; }

body > main, body > section, body > header, body > footer, body > div.launch-bar { position: relative; z-index: 2; }
.section, .site-header, .launch-bar, .marquee, .site-footer { position: relative; z-index: 2; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  border-radius: 999px; padding: 14px 30px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn--primary {
  background: linear-gradient(120deg, var(--green) 0%, var(--green-2) 100%);
  color: var(--green-ink);
  box-shadow: 0 8px 28px rgba(43, 240, 150, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn--primary:hover {
  color: var(--green-ink);
  transform: translateY(-2px);
  box-shadow: 0 14px 42px rgba(43, 240, 150, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-strong);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green); transform: translateY(-2px); box-shadow: var(--glow); }
.btn--lg { padding: 17px 38px; font-size: 1.08rem; }
.btn--sm { padding: 10px 22px; font-size: 0.92rem; }
.btn:disabled { opacity: 0.55; cursor: wait; transform: none !important; }

.live-dot {
  width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none;
  background: var(--green); box-shadow: 0 0 0 0 rgba(43, 240, 150, 0.7);
  animation: livepulse 1.8s infinite;
}
@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 rgba(43, 240, 150, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(43, 240, 150, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 240, 150, 0); }
}

/* ---------- Launch bar ---------- */
.launch-bar {
  background: linear-gradient(90deg, rgba(43, 240, 150, 0.14), rgba(25, 227, 194, 0.1));
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
}
.launch-bar__inner { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 9px 24px; flex-wrap: wrap; }
.launch-bar__inner p { margin: 0; color: var(--text); }
.launch-bar__pill {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em;
  background: var(--green); color: var(--green-ink); border-radius: 6px; padding: 2px 8px;
}
.launch-bar__link { font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4, 8, 10, 0.94);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(4, 8, 10, 0.98); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.logo { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; display: inline-flex; align-items: baseline; }
.logo-ask { color: var(--text); }
.logo-agento { color: var(--green); }
.logo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-2); margin-left: 3px; align-self: flex-end; margin-bottom: 6px; box-shadow: var(--glow); }
.site-nav { display: flex; gap: 28px; }
.site-nav a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.site-nav a:hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-strong);
  border-radius: 10px; cursor: pointer;
}
.nav-toggle__bar {
  display: block; width: 100%; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.site-nav--open {
  display: flex !important;
  position: fixed; inset: 0; top: 60px; z-index: 90;
  flex-direction: column; gap: 0;
  background: rgba(4, 8, 10, 0.98);
  padding: 1.25rem;
  overflow-y: auto;
}
.site-nav--open a {
  display: block; padding: 0.9rem 0.75rem;
  font-size: 1.1rem; font-weight: 600; color: var(--text);
  border-bottom: 1px solid var(--line);
}
.site-nav--open .nav-cta-mobile {
  display: block; margin-top: 1.25rem;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - 110px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 90px 0 120px;
}
/* Static glow replaces the aurora blobs — radial-gradient costs nothing on GPU */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 68% 55% at 15% 25%, rgba(20, 184, 115, 0.17) 0%, transparent 70%),
    radial-gradient(ellipse 55% 48% at 82% 55%, rgba(25, 227, 194, 0.11) 0%, transparent 70%),
    radial-gradient(ellipse 50% 42% at 50% 90%, rgba(43, 240, 150, 0.08) 0%, transparent 70%);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero__grid-floor {
  position: absolute; left: -20%; right: -20%; bottom: -12%; height: 46%;
  z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(43, 240, 150, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 240, 150, 0.14) 1px, transparent 1px);
  background-size: 56px 56px;
  transform: perspective(620px) rotateX(63deg);
  transform-origin: center top;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, transparent 95%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, transparent 95%);
  animation: gridscroll 16s linear infinite;
}
@keyframes gridscroll { from { background-position: 0 0, 0 0; } to { background-position: 0 56px, 0 0; } }

.hero__layout {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px; align-items: center;
}
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green); padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(43, 240, 150, 0.07);
  margin-bottom: 26px;
}
.badge--glow { box-shadow: 0 0 30px rgba(43, 240, 150, 0.15); }
.badge__pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: livepulse 1.8s infinite; }
.hero__title {
  font-size: clamp(2.5rem, 5.4vw, 4.3rem);
  font-weight: 700; margin-bottom: 22px;
}
.hero__sub { color: var(--muted); font-size: 1.18rem; max-width: 540px; margin-bottom: 34px; }
.hero__cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.hero__trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 0; padding: 0; }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.92rem; }

.hero__scroll-hint {
  position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted-2);
}
.hero__scroll-hint:hover { color: var(--green); }
.hero__scroll-mouse {
  width: 22px; height: 34px; border: 1.5px solid var(--muted-2); border-radius: 12px; position: relative;
}
.hero__scroll-mouse::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px;
  border-radius: 3px; background: var(--green); transform: translateX(-50%);
  animation: wheel 1.6s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 1; top: 6px; } 70% { opacity: 0; top: 17px; } 100% { opacity: 0; top: 6px; } }

/* Hero demo reel: real recordings of the live test */
.hero__stage { perspective: 1200px; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes float1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.demoreel__frame {
  animation: float1 9s ease-in-out infinite;
  position: relative; aspect-ratio: 680 / 478; overflow: hidden;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: #081009;
  box-shadow: var(--shadow-card), 0 0 70px rgba(43, 240, 150, 0.14);
}
.demoreel__frame img,
.demoreel__frame video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; object-position: top center;
  opacity: 0; transition: opacity 0.55s var(--ease);
  background: var(--surface-2);
}
.demoreel__frame img.is-active,
.demoreel__frame video.is-active { opacity: 1; }
.demoreel__tabs { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.demoreel__tab {
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.025); color: var(--muted);
  font-family: var(--font-display); font-weight: 600; font-size: 0.86rem;
  padding: 8px 16px; cursor: pointer; transition: all 0.25s var(--ease);
}
.demoreel__tab:hover { color: var(--text); border-color: var(--line-strong); }
.demoreel__tab.is-active {
  background: linear-gradient(120deg, rgba(43, 240, 150, 0.18), rgba(25, 227, 194, 0.12));
  border-color: var(--green); color: var(--green);
  box-shadow: 0 0 16px rgba(43, 240, 150, 0.2);
}
.demoreel__caption {
  text-align: center; color: var(--muted-2); font-size: 0.84rem;
  font-family: var(--font-mono); margin: 12px 0 0;
}
.demoreel__caption a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
  overflow: hidden; padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: inline-flex; align-items: center; gap: 34px; white-space: nowrap;
  animation: marquee 30s linear infinite; will-change: transform;
}
.marquee__track span {
  font-family: var(--font-display); font-size: 1.02rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted);
}
.marquee__track i { color: var(--green); font-style: normal; font-size: 0.8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal & tilt (driven by redesign.js) ---------- */
html.fx [data-reveal] {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
html.fx [data-reveal].is-in { opacity: 1; transform: none; }
/* Deep links: visible immediately (Safari waits for video otherwise) */
html.hash-jump [data-reveal],
html.fx :target [data-reveal],
html.fx :target[data-reveal],
html.fx [data-reveal].is-revealed-now {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}
.section[id] { scroll-margin-top: 12px; }
.tilt { transform-style: preserve-3d; transition: box-shadow 0.3s var(--ease); }
html.fx .tilt {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0);
}

/* ============================================================
   LIVE TEST
   ============================================================ */
.demo-test { background: radial-gradient(1100px 520px at 50% 0%, rgba(43, 240, 150, 0.07), transparent 70%); }

.demo-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(4, 8, 10, 0.88);
  box-shadow: var(--shadow-card), 0 0 80px rgba(43, 240, 150, 0.07);
  overflow: hidden;
}
.demo-shell__topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 13px 20px; border-bottom: 1px solid var(--line);
  background: rgba(4, 8, 10, 0.5);
  font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted-2);
}
.demo-shell__dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.demo-shell__dot:first-child { background: rgba(255, 99, 99, 0.55); }
.demo-shell__dot:nth-child(2) { background: rgba(255, 200, 87, 0.55); }
.demo-shell__dot:nth-child(3) { background: rgba(43, 240, 150, 0.6); }
.demo-shell__addr { margin-left: 12px; letter-spacing: 0.04em; }
.demo-shell__status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--green); }

.demo-tabs-nav {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 18px 20px 0;
}
.demo-tab-btn {
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.025); color: var(--muted);
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  padding: 10px 20px; cursor: pointer;
  transition: all 0.25s var(--ease);
}
.demo-tab-btn:hover { color: var(--text); border-color: var(--line-strong); }
.demo-tab-btn.is-active {
  background: linear-gradient(120deg, rgba(43, 240, 150, 0.18), rgba(25, 227, 194, 0.12));
  border-color: var(--green); color: var(--green);
  box-shadow: 0 0 18px rgba(43, 240, 150, 0.2);
}

.demo-tab-panel { padding: 26px 28px 30px; }
.demo-tab-panel[hidden] { display: none; }
.demo-panel__hint { color: var(--muted); font-size: 0.98rem; margin-bottom: 18px; }
.demo-panel { margin: 0; }
.demo-panel__controls { display: flex; gap: 12px; margin-bottom: 14px; }
.demo-input {
  flex: 1; min-width: 0;
  background: rgba(4, 8, 10, 0.6);
  border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 14px 22px;
  color: var(--text); font-size: 1rem; font-family: var(--font-body);
  outline: none; transition: border-color 0.25s, box-shadow 0.25s;
}
.demo-input::placeholder { color: var(--muted-2); }
.demo-input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(43, 240, 150, 0.12), inset 0 0 16px rgba(43, 240, 150, 0.05); }
.demo-panel__btn { flex: none; }
.demo-text-samples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.demo-text-samples__label { color: var(--muted-2); font-size: 0.85rem; margin-right: 4px; }
.demo-text-sample, .demo-shop-chat-sample, .agent-demo-sample {
  border: 1px dashed var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--muted);
  font-size: 0.85rem; padding: 7px 15px; cursor: pointer;
  transition: all 0.2s var(--ease);
}
.demo-text-sample:hover, .demo-shop-chat-sample:hover, .agent-demo-sample:hover {
  color: var(--green); border-color: var(--green); background: rgba(43, 240, 150, 0.07);
}
.demo-status { min-height: 1.3em; color: var(--muted); font-size: 0.9rem; font-family: var(--font-mono); margin: 6px 0 0; }
.demo-status--error { color: var(--danger); }
.demo-panel__action { color: var(--text); font-weight: 600; margin-bottom: 8px; }
.demo-panel__scope { color: var(--muted-2); font-size: 0.84rem; margin: 18px 0 0; }
.demo-panel__scope a { text-decoration: underline; text-underline-offset: 3px; }
.demo-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* Results rows (demo-test.js output) */
.demo-results-row {
  margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(4, 8, 10, 0.45); padding: 20px 22px;
  animation: resultsin 0.5s var(--ease);
}
@keyframes resultsin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.demo-results-row__heading {
  font-size: 0.82rem; font-family: var(--font-mono); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--green);
  margin: 0 0 16px;
}
.demo-results-empty, .demo-recommend-type-empty { color: var(--muted); font-size: 0.92rem; }

.demo-preview-matches { display: flex; flex-wrap: wrap; gap: 12px; }
.demo-preview-match-item { display: flex; }
.demo-preview-match-link {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px;
  background: rgba(255, 255, 255, 0.035); padding: 8px 14px 8px 8px;
  color: var(--text); transition: all 0.22s var(--ease);
}
.demo-preview-match-link:hover {
  border-color: var(--green); color: var(--text);
  transform: translateY(-3px); box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45), 0 0 18px rgba(43, 240, 150, 0.18);
}
.demo-preview-side { display: inline-flex; align-items: center; gap: 10px; }
.demo-preview-thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.demo-preview-thumb--query { width: 72px; height: 72px; border: 1px solid var(--line-strong); box-shadow: var(--glow); }
.demo-preview-label { font-size: 0.9rem; font-weight: 500; }
.demo-preview-label--query {
  font-family: var(--font-mono); color: var(--green); font-size: 0.92rem;
  background: rgba(43, 240, 150, 0.08); border: 1px solid var(--line-strong);
  padding: 8px 14px; border-radius: 10px;
}
.demo-preview-dist { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted-2); margin-left: 4px; }
.demo-preview-flow, .demo-preview-multi { display: grid; gap: 14px; }
.demo-preview-cols-3 {
  display: grid; grid-template-columns: minmax(120px, 220px) 36px 1fr;
  align-items: center; gap: 10px;
}
.demo-preview-grid-head { padding-bottom: 4px; border-bottom: 1px dashed var(--line); }
.demo-preview-grid-label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted-2);
}
.demo-preview-grid-arrow { color: var(--green); text-align: center; font-size: 1.1rem; }
.demo-recommend-type {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin: 18px 0 10px;
}
.demo-recommend-preview .demo-recommend-type:first-child { margin-top: 0; }

/* Recommend catalogue tiles */
.demo-catalog-block { margin-top: 18px; }
.demo-catalog { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.demo-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  width: 120px; padding: 12px 10px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius); cursor: pointer; color: var(--text);
  transition: all 0.22s var(--ease);
}
.demo-tile:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: 0 12px 26px rgba(0, 0, 0, 0.4); }
.demo-tile--selected {
  border-color: var(--green); background: rgba(43, 240, 150, 0.1);
  box-shadow: 0 0 22px rgba(43, 240, 150, 0.25);
}
.demo-tile__media { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; }
.demo-tile__img { width: 100%; height: 100%; object-fit: cover; }
.demo-tile__img--empty { background: rgba(255, 255, 255, 0.06); }
.demo-tile__title { font-size: 0.82rem; font-weight: 500; text-align: center; }

/* Image search */
.demo-image-upload__cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.demo-image-upload__heading {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px;
}
.demo-image-dropzone {
  border: 1.5px dashed var(--line-strong); border-radius: var(--radius);
  background: rgba(43, 240, 150, 0.025);
  padding: 26px 20px; text-align: center; cursor: pointer;
  transition: all 0.25s var(--ease);
}
.demo-image-dropzone:hover, .demo-image-dropzone--over {
  border-color: var(--green); background: rgba(43, 240, 150, 0.07);
  box-shadow: inset 0 0 32px rgba(43, 240, 150, 0.07);
}
.demo-image-dropzone--busy { opacity: 0.6; pointer-events: none; }
.demo-image-dropzone__visual { font-size: 1.8rem; margin-bottom: 6px; }
.demo-image-dropzone__lead { margin-bottom: 2px; }
.demo-image-dropzone__sub { color: var(--muted-2); font-size: 0.85rem; margin-bottom: 14px; }
.demo-image-dropzone__browse { margin: 0 auto; }
.demo-image-search-camera-icon { font-size: 1.1rem; line-height: 1; }
.demo-image-samples { display: flex; flex-wrap: wrap; gap: 12px; }
.demo-image-samples--busy { opacity: 0.6; pointer-events: none; }
.demo-image-sample {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius); padding: 12px; cursor: pointer; color: var(--muted);
  transition: all 0.22s var(--ease);
}
.demo-image-sample img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.demo-image-sample:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.demo-image-sample--selected { border-color: var(--green); box-shadow: 0 0 18px rgba(43, 240, 150, 0.25); color: var(--green); }
.demo-image-sample__label { font-size: 0.8rem; }

/* Shop chat reply */
.demo-shop-chat__thread { display: grid; gap: 16px; }
.demo-shop-chat__msg { display: grid; gap: 6px; }
.demo-shop-chat__role {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted-2);
}
.demo-shop-chat__msg--user .demo-shop-chat__bubble {
  justify-self: start;
  background: rgba(43, 240, 150, 0.1); border: 1px solid var(--line-strong);
  color: var(--text);
}
.demo-shop-chat__bubble {
  border-radius: 14px; padding: 12px 16px; max-width: 100%;
  background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(255, 255, 255, 0.07);
}
.demo-shop-chat__bubble--rich { display: grid; gap: 12px; }
.demo-shop-chat-reply__prose { margin: 0; color: var(--text); }
.demo-shop-chat-product {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px;
  background: rgba(4, 8, 10, 0.45); padding: 12px;
}
.demo-shop-chat-product__img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; flex: none; }
.demo-shop-chat-product__img--empty { background: rgba(255, 255, 255, 0.06); }
.demo-shop-chat-product__body { min-width: 0; }
.demo-shop-chat-product__title { font-size: 0.98rem; margin: 0 0 2px; }
.demo-shop-chat-product__title a { color: var(--green); }
.demo-shop-chat-product__price { color: var(--green-2); font-family: var(--font-mono); font-size: 0.88rem; }
.demo-shop-chat-product__desc { color: var(--muted); font-size: 0.88rem; margin: 6px 0 0; }

/* Agent demo */
.agent-terminal { max-height: 640px; overflow: auto; margin-top: 4px; border-radius: var(--radius); }
.demo-agent-transcript { display: grid; gap: 16px; }
.demo-agent-step { margin: 0; }
.demo-agent-step--pending { opacity: 0.75; }
.demo-agent-step__label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px;
}
.demo-agent-step__pending { color: var(--muted); font-size: 0.9rem; font-family: var(--font-mono); }
.demo-agent-step__pending::after { content: "▋"; color: var(--green); animation: blink 1s steps(1) infinite; margin-left: 4px; }
.demo-agent-brief {
  margin: 0; border-left: 3px solid var(--green); border-radius: 0 12px 12px 0;
  background: rgba(43, 240, 150, 0.06); padding: 12px 16px;
}
.demo-agent-brief p { margin: 0; font-style: italic; color: var(--text); }
.demo-agent-tool-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(4, 8, 10, 0.55); overflow: hidden;
}
.demo-agent-tool-card__head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.demo-agent-tool-card__badge {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green-ink);
  background: var(--green); border-radius: 6px; padding: 2px 8px;
}
.demo-agent-tool-card__name { color: var(--green-2); font-size: 0.88rem; }
.demo-agent-code {
  margin: 0; padding: 14px 16px; overflow-x: auto;
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.55; color: #b9d8c6;
  background: rgba(0, 0, 0, 0.35);
}
.demo-agent-code--call { border-bottom: 1px solid var(--line); }
.demo-agent-tool-card__result { padding: 16px; }
.demo-agent-search-summary {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--green); margin-bottom: 12px;
}
.demo-agent-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.demo-agent-product-card {
  border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 12px;
  background: rgba(255, 255, 255, 0.035); overflow: hidden;
  transition: all 0.22s var(--ease);
}
.demo-agent-product-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.demo-agent-product-card__media { position: relative; }
.demo-agent-product-card__img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.demo-agent-product-card__img--empty { background: rgba(255, 255, 255, 0.06); aspect-ratio: 1; }
.demo-agent-product-card__score {
  position: absolute; top: 8px; right: 8px;
  font-family: var(--font-mono); font-size: 0.66rem; color: var(--green-ink);
  background: var(--green); border-radius: 6px; padding: 2px 7px; font-weight: 600;
}
.demo-agent-product-card__body { padding: 10px 12px 12px; }
.demo-agent-product-card__title { font-size: 0.9rem; margin: 0 0 2px; }
.demo-agent-product-card__title a { color: var(--text); }
.demo-agent-product-card__title a:hover { color: var(--green); }
.demo-agent-product-card__price { color: var(--green-2); font-family: var(--font-mono); font-size: 0.82rem; margin: 0 0 6px; }
.demo-agent-product-card__cta { font-size: 0.82rem; font-weight: 600; }
.demo-agent-raw { margin-top: 12px; }
.demo-agent-raw summary { cursor: pointer; color: var(--muted-2); font-size: 0.82rem; font-family: var(--font-mono); }
.demo-agent-chat-reply {
  border-left: 3px solid var(--green-2); border-radius: 0 12px 12px 0;
  background: rgba(25, 227, 194, 0.06); padding: 12px 16px;
}
.demo-agent-chat-reply p { margin: 0; }
.demo-agent-chat-reply--error { border-left-color: var(--danger); background: rgba(255, 125, 125, 0.07); }
.demo-agent-email {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(43, 240, 150, 0.07), rgba(4, 8, 10, 0.4));
  overflow: hidden; box-shadow: 0 0 40px rgba(43, 240, 150, 0.1);
}
.demo-agent-email__header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.demo-agent-email__tag {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green-ink); background: var(--green);
  border-radius: 6px; padding: 2px 8px;
}
.demo-agent-email__subject { margin: 0; font-weight: 600; font-family: var(--font-display); }
.demo-agent-email__body { padding: 18px; }
.demo-agent-email__lead { color: var(--muted); }
.demo-agent-email__heroes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.demo-agent-hero-card {
  position: relative; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 12px;
  background: rgba(255, 255, 255, 0.04); overflow: hidden;
}
.demo-agent-hero-card__num {
  position: absolute; top: 8px; left: 8px; z-index: 1;
  width: 24px; height: 24px; display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600;
  color: var(--green-ink); background: var(--green); border-radius: 50%;
}
.demo-agent-hero-card__img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.demo-agent-hero-card__img--empty { background: rgba(255, 255, 255, 0.06); aspect-ratio: 1; }
.demo-agent-hero-card__body { padding: 10px 12px 12px; }
.demo-agent-hero-card__title { font-size: 0.9rem; margin: 0 0 2px; }
.demo-agent-hero-card__price { color: var(--green-2); font-family: var(--font-mono); font-size: 0.82rem; margin: 0 0 6px; }
.demo-agent-hero-card__link { font-size: 0.82rem; font-weight: 600; }
.demo-agent-email__note {
  border-left: 3px solid var(--green-2); background: rgba(25, 227, 194, 0.05);
  border-radius: 0 10px 10px 0; padding: 10px 14px;
}
.demo-agent-email__note p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.demo-agent-email__note-label {
  display: block; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green-2); margin-bottom: 4px;
}

.demo-test__footer { text-align: center; margin-top: 44px; }
.demo-test__footer p { color: var(--muted); margin-bottom: 18px; }
.demo-test__cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- Steps ---------- */
.steps__grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
  counter-reset: step;
}
.steps__card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  padding: 32px 28px; overflow: hidden;
}
.steps__card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 200px at 20% 0%, rgba(43, 240, 150, 0.08), transparent 70%);
  pointer-events: none;
}
.steps__num {
  display: inline-block; font-family: var(--font-mono); font-size: 0.82rem;
  color: var(--green); border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 4px 10px; margin-bottom: 18px; background: rgba(43, 240, 150, 0.06);
}
.steps__card h3 { font-size: 1.25rem; }
.steps__card p { color: var(--muted); font-size: 0.96rem; margin: 0; }

/* ---------- Features ---------- */
.features-with-sidebar {
  display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start;
}
.features-sidebar-nav { display: grid; gap: 6px; position: sticky; top: 110px; }
.fsn-item {
  text-align: left; border: 1px solid transparent; border-radius: 12px;
  background: transparent; color: var(--muted);
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem;
  padding: 12px 16px; cursor: pointer;
  transition: all 0.22s var(--ease);
}
.fsn-item:hover { color: var(--text); background: rgba(255, 255, 255, 0.035); }
.fsn-item.is-active {
  color: var(--green); border-color: var(--line-strong);
  background: rgba(43, 240, 150, 0.07); box-shadow: 0 0 18px rgba(43, 240, 150, 0.1);
}
.features-detail-pane {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  padding: 34px; min-height: 380px;
}
.feature-detail { display: none; }
.feature-detail.is-active { display: block; animation: resultsin 0.45s var(--ease); }
.feature-detail__layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 30px; align-items: center; }
.feature-detail__icon { font-size: 1.9rem; display: inline-block; margin-bottom: 12px; }
.feature-detail__text h3 { font-size: 1.55rem; }
.feature-detail__lead { color: var(--muted); font-size: 1rem; }
.feature-detail__media img,
.feature-detail__media video {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow-card);
  background: var(--surface-2);
}

/* ---------- VS ---------- */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 980px; margin: 0 auto; }
.vs-card {
  border-radius: var(--radius-lg); padding: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}
.vs-card--positive {
  border-color: var(--line-strong);
  box-shadow: 0 0 50px rgba(43, 240, 150, 0.1);
  background: linear-gradient(165deg, rgba(43, 240, 150, 0.08), rgba(255, 255, 255, 0.015));
}
.vs-card__head h3 { font-size: 1.4rem; margin-bottom: 18px; }
.vs-card--negative .vs-card__head h3 { color: var(--muted); }
.vs-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.vs-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 0.97rem; }
.vs-card--positive .vs-list li { color: var(--text); }
.vs-check, .vs-cross {
  flex: none; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 700; margin-top: 1px;
}
.vs-check { background: rgba(43, 240, 150, 0.18); color: var(--green); }
.vs-cross { background: rgba(255, 125, 125, 0.12); color: var(--danger); }

/* ---------- Pricing ---------- */
.pricing { background: radial-gradient(1100px 600px at 50% 18%, rgba(43, 240, 150, 0.06), transparent 70%); }
.billing-toggle {
  display: inline-flex; gap: 4px; margin: 0 auto 26px; padding: 5px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
}
.pricing .billing-toggle { display: flex; width: max-content; }
.billing-toggle__btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  border: 0; border-radius: 999px; padding: 8px 18px;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600;
  color: var(--muted); background: transparent; transition: color 0.15s, background 0.15s;
}
.billing-toggle__btn:hover { color: var(--text); }
.billing-toggle__btn.is-active {
  background: linear-gradient(120deg, var(--green), var(--green-2));
  color: var(--green-ink);
}
.billing-toggle__save {
  font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; background: rgba(0, 0, 0, 0.18);
}
.billing-toggle__btn:not(.is-active) .billing-toggle__save { color: var(--green); background: rgba(43, 240, 150, 0.12); }
.plans {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  align-items: stretch; margin-bottom: 26px;
}
.plan {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
  padding: 28px 24px;
}
.plan--featured {
  border-color: var(--green);
  background: linear-gradient(170deg, rgba(43, 240, 150, 0.1), rgba(4, 8, 10, 0.3));
  box-shadow: 0 0 60px rgba(43, 240, 150, 0.16);
  transform: translateY(-8px) scale(1.02);
}
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; white-space: nowrap;
  background: linear-gradient(120deg, var(--green), var(--green-2));
  color: var(--green-ink); border-radius: 999px; padding: 5px 14px;
  box-shadow: var(--glow);
}
.plan h3 { font-size: 1.18rem; margin-bottom: 2px; }
.plan-audience { color: var(--muted-2); font-size: 0.82rem; min-height: 2.2em; margin-bottom: 10px; }
.price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.price span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.price span[data-billing-price] { font-size: inherit; font-weight: inherit; color: inherit; }
.plan__cta[hidden] { display: none !important; }
.price-custom { font-size: 1.7rem; padding-top: 0.35em; }
.price-note { color: var(--muted-2); font-size: 0.8rem; margin-bottom: 16px; }
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; flex: 1; }
.plan ul li { position: relative; padding-left: 24px; color: var(--muted); font-size: 0.9rem; }
.plan--featured ul li { color: var(--text); }
.plan ul li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--green); font-weight: 700; font-size: 0.85rem;
}
.plan__cta { width: 100%; }
.pricing-note { text-align: center; color: var(--muted-2); font-size: 0.88rem; margin-bottom: 56px; }

.pricing-topups {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.02); padding: 32px; margin-bottom: 26px;
}
.pricing-topups-title { font-size: 1.3rem; }
.pricing-topups-lead { color: var(--muted); margin-bottom: 22px; }
.pricing-topups-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 20px; }
.pricing-topup-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(4, 8, 10, 0.4); padding: 22px;
}
.pricing-topup-card-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 10px; }
.pricing-topup-icon { font-size: 1.5rem; }
.pricing-topup-heading { font-size: 1.05rem; margin: 0; }
.pricing-topup-amount { color: var(--green); font-family: var(--font-mono); font-size: 0.82rem; margin: 2px 0 0; }
.pricing-topup-price {
  margin-left: auto; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; color: var(--text);
}
.pricing-topup-desc { color: var(--muted); font-size: 0.9rem; }
.limits-byok { color: var(--muted-2); font-size: 0.85rem; margin: 0; }

.pricing-limits { max-width: 980px; margin: 0 auto; }
.limits-details {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}
.limits-summary {
  cursor: pointer; padding: 18px 24px; font-family: var(--font-display); font-weight: 600;
  color: var(--text); list-style: none;
}
.limits-summary::-webkit-details-marker { display: none; }
.limits-summary::after { content: "+"; float: right; color: var(--green); font-size: 1.2rem; transition: transform 0.25s; }
.limits-details[open] .limits-summary::after { transform: rotate(45deg); }
.limits-card { padding: 0 24px 24px; }
.limits-intro { color: var(--muted); font-size: 0.94rem; }
.table-wrap { overflow-x: auto; margin: 16px 0; }
.limits-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.limits-table th, .limits-table td {
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.limits-table thead th {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-2);
}
.limits-table tbody th { color: var(--green); font-family: var(--font-display); }
.limits-table td { color: var(--muted); }
.limits-fn-ref { color: var(--green-2); font-size: 0.78em; vertical-align: super; }
.limits-footnotes p { color: var(--muted-2); font-size: 0.82rem; margin-bottom: 6px; }

/* ---------- FAQ ---------- */
.faq-tabs-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.faq-tab-btn {
  border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--muted);
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  padding: 10px 22px; cursor: pointer; transition: all 0.22s var(--ease);
}
.faq-tab-btn:hover { color: var(--text); border-color: var(--line-strong); }
.faq-tab-btn.is-active {
  color: var(--green); border-color: var(--green);
  background: rgba(43, 240, 150, 0.08); box-shadow: 0 0 16px rgba(43, 240, 150, 0.15);
}
.faq-accordion { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.025); overflow: hidden;
  transition: border-color 0.25s;
}
.faq-item[open] { border-color: var(--line-strong); background: rgba(43, 240, 150, 0.04); }
.faq-question {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text);
  position: relative; padding-right: 52px;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
  content: "+"; position: absolute; right: 22px; top: 50%;
  transform: translateY(-50%); color: var(--green); font-size: 1.3rem; font-weight: 400;
  transition: transform 0.25s var(--ease);
}
.faq-item[open] .faq-question::after { transform: translateY(-50%) rotate(45deg); }
.faq-answer { padding: 0 22px 18px; color: var(--muted); font-size: 0.96rem; }
.faq-answer p { margin: 0 0 0.75rem; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer strong { color: var(--text); }
.faq-answer a { text-decoration: underline; text-underline-offset: 3px; }
.faq-answer ul { margin: 0 0 0.75rem; padding-left: 1.25em; }
.faq-wp-notice {
  margin: 0.75rem 0 0;
  padding: 14px 16px;
  border-left: 4px solid;
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
}
.faq-wp-notice--warning { border-left-color: #dba617; }
.faq-wp-notice--success { border-left-color: var(--green); }
.faq-wp-notice__title { margin: 0 0 8px; font-size: 1.05em; color: var(--text); font-family: var(--font-display); font-weight: 600; }
.faq-wp-notice p { margin: 0 0 0.5rem; }
.faq-wp-notice ul { margin: 0 0 0.5rem; padding-left: 1.25em; }
.faq-wp-notice__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.75rem !important; }
.faq-wp-notice__btn {
  display: inline-block; padding: 6px 12px; border-radius: 4px;
  border: 1px solid var(--line-strong); background: rgba(255, 255, 255, 0.05);
  font-size: 0.85rem; color: var(--muted);
}
.faq-wp-notice__btn--primary {
  background: rgba(43, 240, 150, 0.15); border-color: var(--green); color: var(--green);
}
.faq-compat-table-wrap {
  margin: 0.75rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow-x: auto;
}

/* ---------- Final CTA ---------- */
.cta { text-align: center; overflow: hidden; }
.cta__beam {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: min(900px, 90vw); height: 100%; pointer-events: none;
  background: radial-gradient(ellipse 50% 45% at 50% 50%, rgba(43, 240, 150, 0.13), transparent 70%);
}
.cta h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta p { color: var(--muted); font-size: 1.12rem; }
.cta__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 30px 0 18px; }
.cta__fine { color: var(--muted-2); font-size: 0.85rem; font-family: var(--font-mono); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: rgba(4, 8, 10, 0.65); }
.footer-inner {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-top: 54px; padding-bottom: 34px;
}
.footer-desc { color: var(--muted-2); max-width: 360px; font-size: 0.92rem; margin-top: 12px; }
.footer-links { text-align: right; }
.footer-email { font-weight: 600; }
.footer-legal ul { list-style: none; margin: 14px 0 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
.footer-legal a, .footer-cookie-settings { color: var(--muted-2); font-size: 0.88rem; }
.footer-legal a:hover { color: var(--green); }
.footer-cookie-settings { background: none; border: none; padding: 0; cursor: pointer; font-family: inherit; }
.footer-cookie-settings:hover { color: var(--green); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding: 18px 24px; text-align: center; }
.footer-bottom p { margin: 0; color: var(--muted-2); font-size: 0.82rem; }

/* ---------- Cookie consent ---------- */
html[data-cookie-consent='set'] #cookie-consent { display: none; }
.cookie-consent {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 150; width: min(860px, calc(100vw - 32px));
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: rgba(7, 16, 9, 0.97);
  box-shadow: var(--shadow-card), 0 0 40px rgba(43, 240, 150, 0.1);
}
.cookie-consent__inner { padding: 22px 26px; }
.cookie-consent__text { color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.cookie-consent__text strong { display: block; color: var(--text); font-family: var(--font-display); font-size: 1.02rem; margin-bottom: 4px; }
.cookie-consent__details { margin-bottom: 10px; }
.cookie-consent__summary { cursor: pointer; color: var(--green); font-size: 0.88rem; list-style: none; }
.cookie-consent__summary::-webkit-details-marker { display: none; }
.cookie-consent__categories { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.cookie-consent__label { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; align-items: center; cursor: pointer; }
.cookie-consent__label input { accent-color: var(--green); width: 16px; height: 16px; }
.cookie-consent__label-title { color: var(--text); font-weight: 600; font-size: 0.9rem; }
.cookie-consent__label-desc { grid-column: 2; color: var(--muted-2); font-size: 0.8rem; }
.cookie-consent__legal { color: var(--muted-2); font-size: 0.8rem; margin-bottom: 14px; }
.cookie-consent__legal a { text-decoration: underline; }
.cookie-consent__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-btn {
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: transparent; color: var(--text);
  font-size: 0.88rem; font-weight: 600; padding: 9px 18px; cursor: pointer;
  transition: all 0.2s var(--ease);
}
.cookie-btn:hover { border-color: var(--green); color: var(--green); }
.cookie-btn--accent { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.cookie-btn--accent:hover { background: var(--green-2); color: var(--green-ink); }

/* ---------- Floating chatbot (landing-chatbot.js) ---------- */
.lp-chatbot { position: fixed; right: 22px; bottom: 22px; z-index: 140; font-family: var(--font-body); }
.lp-chatbot-fab {
  width: 60px; height: 60px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: var(--green-ink); font-size: 1.5rem; cursor: pointer;
  box-shadow: 0 10px 30px rgba(43, 240, 150, 0.35);
  display: grid; place-items: center;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.lp-chatbot-fab:hover { transform: translateY(-3px) scale(1.05); box-shadow: 0 16px 40px rgba(43, 240, 150, 0.5); }
.lp-chatbot-panel {
  position: absolute; right: 0; bottom: 74px;
  width: min(380px, calc(100vw - 44px)); max-height: min(560px, calc(100vh - 120px));
  display: flex; flex-direction: column;
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background: rgba(7, 16, 9, 0.99);
  box-shadow: var(--shadow-card), 0 0 50px rgba(43, 240, 150, 0.12);
  overflow: hidden;
}
.lp-chatbot-panel[hidden] { display: none; }
.lp-chatbot-panel__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; border-bottom: 1px solid var(--line);
  background: rgba(43, 240, 150, 0.05);
}
.lp-chatbot-panel__brand { display: flex; align-items: center; gap: 10px; }
.lp-chatbot-panel__logo {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green), var(--green-2));
  color: var(--green-ink); font-weight: 700; font-family: var(--font-display);
}
.lp-chatbot-panel__title { font-weight: 600; font-size: 0.95rem; color: var(--text); }
.lp-chatbot-panel__close {
  border: none; background: none; color: var(--muted); font-size: 1.4rem; cursor: pointer;
  line-height: 1; padding: 4px 8px; border-radius: 8px;
}
.lp-chatbot-panel__close:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.lp-chatbot-messages { flex: 1; overflow-y: auto; padding: 16px; display: grid; gap: 12px; align-content: start; }
.lp-chatbot-legal { color: var(--muted-2); font-size: 0.74rem; margin: 0; }
.lp-chatbot-legal a { text-decoration: underline; }
.lp-chatbot-msg { display: flex; gap: 9px; align-items: flex-end; }
.lp-chatbot-msg--user { flex-direction: row-reverse; }
.lp-chatbot-avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 700;
  background: rgba(43, 240, 150, 0.16); color: var(--green);
}
.lp-chatbot-msg__content { max-width: 82%; }
.lp-chatbot-bot-name { display: block; font-size: 0.7rem; color: var(--muted-2); margin-bottom: 3px; }
.lp-chatbot-bubble {
  border-radius: 14px; padding: 10px 14px; font-size: 0.9rem; line-height: 1.5;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.07); color: var(--text);
  overflow-wrap: break-word;
}
.lp-chatbot-msg--user .lp-chatbot-bubble {
  background: rgba(43, 240, 150, 0.14); border-color: var(--line-strong);
}
.lp-chatbot-bubble a { text-decoration: underline; }
.lp-chatbot-dots { display: inline-flex; gap: 4px; align-items: center; }
.lp-chatbot-dots span {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block;
  animation: lpdots 1.1s ease-in-out infinite;
}
.lp-chatbot-dots span:nth-child(2) { animation-delay: 0.18s; }
.lp-chatbot-dots span:nth-child(3) { animation-delay: 0.36s; }
@keyframes lpdots { 0%, 100% { opacity: 0.35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.lp-chatbot-form {
  display: flex; gap: 8px; align-items: flex-end;
  padding: 12px 14px 6px; border-top: 1px solid var(--line);
}
.lp-chatbot-input {
  flex: 1; resize: none; border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgba(4, 8, 10, 0.6); color: var(--text);
  font-family: var(--font-body); font-size: 0.9rem; padding: 10px 14px; outline: none;
}
.lp-chatbot-input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(43, 240, 150, 0.12); }
.lp-chatbot-send {
  width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--green), var(--green-2)); color: var(--green-ink);
  font-size: 1.1rem; font-weight: 700; flex: none;
}
.lp-chatbot-send:disabled { opacity: 0.5; cursor: wait; }
.lp-chatbot-status { min-height: 1em; color: var(--danger); font-size: 0.76rem; margin: 0; padding: 0 16px; }
.lp-chatbot-footer { color: var(--muted-2); font-size: 0.7rem; text-align: center; padding: 6px 0 10px; }
.lp-chatbot-footer a { color: var(--muted-2); text-decoration: underline; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.fx [data-reveal] { opacity: 1; transform: none; }
  .hero__grid-floor, .marquee__track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__layout { grid-template-columns: 1fr; gap: 48px; }
  .hero__stage { max-width: 560px; margin: 0 auto; width: 100%; }
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plan--featured { transform: none; }
  .features-with-sidebar { grid-template-columns: 1fr; }
  .features-sidebar-nav {
    position: static; display: flex; flex-wrap: wrap; gap: 8px;
  }
  .feature-detail__layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 76px 0; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta-desktop { display: none; }
  .steps__grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; padding: 64px 0 96px; }
  .hero__scroll-hint { display: none; }
  .demoreel__frame { animation: none; }
  .demo-tab-panel { padding: 20px 16px 24px; }
  .demo-panel__controls { flex-direction: column; }
  .demo-panel__btn { width: 100%; }
  .demo-image-upload__cols { grid-template-columns: 1fr; }
  .demo-preview-cols-3 { grid-template-columns: 1fr; }
  .demo-preview-grid-arrow { display: none; }
  .demo-preview-grid-head { display: none; }
  .vs-grid { grid-template-columns: 1fr; }
  .pricing-topups-grid { grid-template-columns: 1fr; }
  .footer-links { text-align: left; }
  .footer-legal ul { justify-content: flex-start; }
  .cookie-consent__actions .cookie-btn { flex: 1; }

  /* Kill canvas particles and grid animation on small screens */
  .hero__canvas { display: none; }
  .hero__grid-floor { animation: none; will-change: auto; }
}

@media (max-width: 540px) {
  .plans { grid-template-columns: 1fr; }
  .launch-bar__inner { font-size: 0.8rem; gap: 8px; }
  .hero__cta .btn { width: 100%; }
  .demo-tabs-nav { padding: 14px 14px 0; }
  .demo-tab-btn { font-size: 0.84rem; padding: 9px 14px; }
}

/* ============================================================
   Agents page
   ============================================================ */
.demoreel__frame--agent { aspect-ratio: 852 / 740; }

.agent-flow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px;
  padding: 18px 20px 4px;
}
.agent-flow__step {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.025); color: var(--muted);
  font-family: var(--font-mono); font-size: 0.78rem; padding: 8px 14px;
}
.agent-flow__step code { color: var(--green-2); }
.agent-flow__step strong { color: var(--text); font-weight: 600; }
.agent-flow__arrow { color: var(--green); font-size: 0.9rem; }

.proof-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.proof-row__item {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02); padding: 16px 18px;
  color: var(--muted); font-size: 0.92rem;
}
.proof-row__item span { flex: none; }
.proof-row__item strong { color: var(--text); display: block; margin-bottom: 2px; }

/* Setup guide */
.connect-prereq-card {
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: rgba(43, 240, 150, 0.05); padding: 22px 26px; margin-bottom: 22px;
}
.connect-prereq-card h3 { font-size: 1.08rem; margin-bottom: 10px; }
.connect-prereq-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.connect-prereq-list li { position: relative; padding-left: 24px; color: var(--muted); font-size: 0.94rem; }
.connect-prereq-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.connect-info-block {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02); padding: 22px 26px; margin-bottom: 22px;
}
.connect-info-block__heading {
  font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--green); margin: 0 0 14px;
}
.connect-info-table-wrap { overflow-x: auto; }
.connect-info-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.connect-info-table th, .connect-info-table td {
  text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line);
}
.connect-info-table thead th {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-2);
}
.connect-info-table td { color: var(--muted); }
.connect-info-table tbody tr:last-child th, .connect-info-table tbody tr:last-child td { border-bottom: none; }
.connect-info-block__note { color: var(--muted-2); font-size: 0.85rem; margin: 14px 0 0; }

.connect-tabs-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.connect-tab-btn {
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255, 255, 255, 0.025); color: var(--muted);
  font-family: var(--font-display); font-weight: 600; font-size: 0.9rem;
  padding: 10px 18px; cursor: pointer; transition: all 0.25s var(--ease);
}
.connect-tab-btn:hover { color: var(--text); border-color: var(--line-strong); }
.connect-tab-btn.is-active {
  background: linear-gradient(120deg, rgba(43, 240, 150, 0.18), rgba(25, 227, 194, 0.12));
  border-color: var(--green); color: var(--green);
  box-shadow: 0 0 16px rgba(43, 240, 150, 0.18);
}
.connect-tab-panel[hidden] { display: none; }
.agents-tutorial-block {
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  padding: 28px 30px;
}
.agents-tutorial-block h3 { font-size: 1.3rem; }
.agents-tutorial-block p { color: var(--muted); font-size: 0.95rem; }
.agents-tutorial-block a { text-decoration: underline; text-underline-offset: 3px; }
.agents-tutorial-subhead { font-size: 1rem; color: var(--text); margin: 22px 0 10px; }
.agents-tutorial-code {
  margin: 0 0 16px; padding: 16px 18px; overflow-x: auto;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.6; color: #b9d8c6;
}
.agents-tutorial-code code { color: inherit; font-size: inherit; }
.code-copy-wrap { position: relative; margin: 0 0 16px; }
.code-copy-wrap .agents-tutorial-code { margin: 0; padding-right: 76px; }
.code-copy-btn {
  position: absolute; top: 10px; right: 10px;
  padding: 5px 12px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.55);
  color: var(--muted); font-family: var(--font-mono); font-size: 0.72rem;
  cursor: pointer; transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.code-copy-btn:hover { color: #fff; border-color: var(--green); }
.code-copy-btn.is-copied { color: var(--green); border-color: var(--green); }
.agents-tutorial-steps { color: var(--muted); font-size: 0.95rem; padding-left: 22px; display: grid; gap: 8px; margin: 0 0 16px; }
.agents-tutorial-steps ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.agents-tutorial-details { margin: 14px 0; border: 1px solid var(--line); border-radius: 12px; padding: 0 16px; }
.agents-tutorial-details summary {
  cursor: pointer; padding: 13px 0; color: var(--green); font-size: 0.92rem; list-style: none;
}
.agents-tutorial-details summary::-webkit-details-marker { display: none; }
.agents-tutorial-details summary::before { content: "+ "; }
.agents-tutorial-details[open] summary::before { content: "− "; }
.agents-tutorial-details[open] { padding-bottom: 14px; }
.agents-tutorial-try {
  border-left: 3px solid var(--green); border-radius: 0 12px 12px 0;
  background: rgba(43, 240, 150, 0.06); padding: 12px 16px; margin-top: 18px;
}
.agents-tutorial-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.agents-tutorial-table th, .agents-tutorial-table td {
  text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line);
}
.agents-tutorial-table thead th {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-2);
}
.agents-tutorial-table td { color: var(--muted); }

@media (max-width: 768px) {
  .proof-row { grid-template-columns: 1fr; }
  .agents-tutorial-block { padding: 22px 18px; }
}

/* ---------- Proof: stats + live latency ---------- */
.stat-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  max-width: 880px; margin: 0 auto 44px;
}
.stat-strip__item {
  text-align: center; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02); padding: 20px 18px;
}
.stat-strip__num {
  display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--green); margin-bottom: 4px;
}
.stat-strip__label { color: var(--muted); font-size: 0.86rem; line-height: 1.5; }
.demo-shell__latency {
  display: inline-flex; align-items: center; gap: 5px;
  margin-left: auto; color: var(--green-2); letter-spacing: 0.04em;
}
.demo-shell__latency[hidden] { display: none; }
.demo-shell__latency + .demo-shell__status { margin-left: 14px; }
#demo-latency { color: var(--green); font-weight: 600; }
@media (max-width: 768px) {
  .stat-strip { grid-template-columns: 1fr; }
  .demo-shell__latency { display: none; }
}

/* ---------- Legal pages ---------- */
.legal-page { padding: 80px 0 110px; }
.legal-page .container { max-width: 760px; }
.legal-page h1 { font-size: clamp(2.2rem, 4.5vw, 3rem); margin-bottom: 6px; }
.legal-updated {
  font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 38px;
}
.legal-page h2 {
  font-size: 1.25rem; margin: 38px 0 12px; padding-top: 26px;
  border-top: 1px solid var(--line);
}
.legal-page p, .legal-page li { color: var(--muted); font-size: 0.98rem; }
.legal-page strong { color: var(--text); }
.legal-page a { text-decoration: underline; text-underline-offset: 3px; }
.legal-page ul { padding-left: 22px; display: grid; gap: 8px; margin: 0 0 1em; }

/* Recommend demo: category selector + rotating product/upsell carousels */
.demo-rec-cats { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.85rem; }
.demo-rec-cat {
  cursor: pointer; padding: 0.45rem 1.1rem; border-radius: 999px;
  border: 1px solid var(--line-strong, rgba(82, 255, 168, 0.28));
  background: rgba(255, 255, 255, 0.05); color: var(--text, #eaf7ef);
  font-family: var(--font-display, system-ui, sans-serif); font-weight: 600; font-size: 0.9rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.demo-rec-cat:hover { border-color: var(--green, #2bf096); color: var(--green, #2bf096); transform: translateY(-1px); }
.demo-rec-cat.is-active {
  background: linear-gradient(120deg, var(--green, #2bf096), var(--green-2, #19e3c2));
  color: var(--green-ink, #052613); border-color: transparent;
  box-shadow: 0 6px 18px rgba(43, 240, 150, 0.28);
}
.demo-rec-section { margin-top: 1.4rem; }
.demo-rec-section__title {
  font-family: var(--font-display, system-ui, sans-serif); font-size: 1.05rem; font-weight: 700;
  margin: 0 0 0.75rem; color: var(--text, #eaf7ef);
}
.demo-rec-carousel__viewport { overflow: hidden; width: 100%; }
.demo-rec-carousel__track {
  display: flex; flex-wrap: nowrap; gap: 0.75rem;
  list-style: none; margin: 0; padding: 0; will-change: transform;
}
.demo-rec-card {
  flex: 0 0 auto; box-sizing: border-box; display: flex; flex-direction: column;
  background: var(--panel-2, rgba(255, 255, 255, 0.06));
  border: 1px solid var(--line, rgba(82, 255, 168, 0.12)); border-radius: 14px;
  padding: 0.55rem; overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.demo-rec-card--active {
  border-color: var(--green, #2bf096);
  box-shadow: 0 0 0 2px rgba(43, 240, 150, 0.25), 0 0 22px rgba(43, 240, 150, 0.2);
}
.demo-rec-card__media {
  width: 100%; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}
.demo-rec-card__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.demo-rec-card__img--empty { width: 100%; height: 100%; }
.demo-rec-card__title {
  display: block; margin-top: 0.45rem; font-size: 0.8rem; font-weight: 600; line-height: 1.3;
  color: var(--text, #eaf7ef); text-align: center;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

#demo-rec-products .demo-rec-card { cursor: pointer; }

/* AI Search Image results: shift results left and fit all matches in one row */
.demo-preview-flow .demo-preview-cols-3 {
  grid-template-columns: minmax(64px, 104px) 22px 1fr;
  gap: 8px;
}
.demo-preview-flow .demo-preview-matches {
  flex-wrap: nowrap;
  gap: 8px;
}
.demo-preview-flow .demo-preview-grid-matches .demo-preview-match-item {
  flex: 1 1 0;
  min-width: 0;
}
.demo-preview-flow .demo-preview-grid-matches .demo-preview-match-link {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 8px 6px;
  width: 100%;
}
.demo-preview-flow .demo-preview-grid-matches .demo-preview-side {
  flex-direction: column;
  gap: 6px;
  width: 100%;
  min-width: 0;
}
.demo-preview-flow .demo-preview-grid-matches .demo-preview-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}
.demo-preview-flow .demo-preview-grid-matches .demo-preview-label {
  font-size: 0.72rem;
  line-height: 1.2;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Narrow screens: the single-row image-results layout above overflows and gets
   clipped. Stack the query above the results and let the thumbnails wrap.
   Placed after the .demo-preview-flow rules so source order wins the tie. */
@media (max-width: 768px) {
  .demo-preview-flow .demo-preview-cols-3 { grid-template-columns: 1fr; }
  .demo-preview-flow .demo-preview-matches { flex-wrap: wrap; }
  .demo-preview-flow .demo-preview-grid-matches .demo-preview-match-item { flex: 1 0 84px; }
}

/* Products carousel prev/next controls (manual selection) */
.demo-rec-nav { display: flex; justify-content: center; gap: 14px; margin-top: 12px; }
.demo-rec-arrow {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong, rgba(82,255,168,0.28));
  background: rgba(255, 255, 255, 0.05); color: var(--text, #eaf7ef);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.demo-rec-arrow:hover { border-color: var(--green, #2bf096); color: var(--green, #2bf096); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.demo-rec-arrow:active { transform: translateY(0); }
