/* =========================================================
   Zuplon.ai — Design System
   Layered on top of Tailwind CDN (v3) configured in <head>.
   This file owns: tokens, base, components, animations, utilities.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #08090f;
  --bg-2: #0b0d17;
  --surface: #0e1018;
  --surface-2: #141826;
  --border: #1e2235;
  --border-strong: #2a2f4a;

  --text: #f5f7fa;
  --text-2: #c7cce0;
  --text-muted: #9099b7;
  --text-faint: #6b7390;

  --accent-1: #6366f1;    /* indigo */
  --accent-2: #22d3ee;    /* cyan */
  --accent-3: #a78bfa;    /* violet */
  --accent-grad: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
  --accent-grad-soft: linear-gradient(135deg, rgba(99,102,241,.18), rgba(34,211,238,.18));

  --success: #34d399;
  --warning: #fbbf24;
  --danger:  #f87171;

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --shadow-sm:  0 1px 2px rgba(0,0,0,.4);
  --shadow:     0 8px 24px -8px rgba(0,0,0,.6);
  --shadow-lg:  0 30px 60px -20px rgba(0,0,0,.6);
  --shadow-glow: 0 0 60px -10px rgba(99,102,241,.45);

  --ring: 0 0 0 3px rgba(99,102,241,.35);

  --container: 1200px;
}

[data-theme="light"] {
  --bg: #f7f8fb;
  --bg-2: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f3f8;
  --border: #e3e6ee;
  --border-strong: #cdd2df;
  --text: #0b0d17;
  --text-2: #2b2f43;
  --text-muted: #525872;
  --text-faint: #7a8099;
  --shadow:    0 8px 24px -8px rgba(15,18,40,.16);
  --shadow-lg: 0 30px 60px -20px rgba(15,18,40,.18);
  --shadow-glow: 0 0 60px -10px rgba(99,102,241,.3);
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'ss01','cv11';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 600;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5vw + 1rem, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 2.5vw + 1rem, 3rem); }
h3 { font-size: clamp(1.15rem, 1vw + .8rem, 1.4rem); font-weight: 600; }
p  { color: var(--text-2); margin: 0; }

::selection { background: rgba(99,102,241,.35); color: var(--text); }

/* ---------- Layout primitives ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 500;
  color: var(--text-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: .12em;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2);
}

.gradient-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede {
  font-size: clamp(1rem, .6vw + .9rem, 1.2rem);
  color: var(--text-muted);
  max-width: 60ch;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 500; font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.btn-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.btn-primary:hover { background: #ffffff; transform: translateY(-1px); }

.btn-accent {
  background: var(--accent-grad);
  color: #06070d;
  border-color: transparent;
  position: relative;
  isolation: isolate;
}
.btn-accent::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: var(--accent-grad);
  filter: blur(18px); opacity: .55; z-index: -1;
  transition: opacity .2s ease;
}
.btn-accent:hover { transform: translateY(-1px); }
.btn-accent:hover::after { opacity: .8; }

.btn-outline {
  background: rgba(255,255,255,.03);
  border-color: var(--border-strong);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-outline:hover { background: rgba(255,255,255,.06); border-color: var(--text-muted); }

.btn-ghost { color: var(--text-2); padding-left: 0; padding-right: 0; }
.btn-ghost:hover { color: var(--text); }

.btn-sm { padding: 8px 14px; font-size: .85rem; }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 14px 0;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8,9,15,.78);
  border-bottom-color: var(--border);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
[data-theme="light"] .nav.scrolled {
  background: rgba(255,255,255,.85);
}
.nav-inner {
  display: flex; align-items: center; gap: 28px;
}
.nav-brand {
  display: inline-flex; align-items: baseline; gap: 2px;
  font-weight: 700; font-size: 1.15rem; letter-spacing: -.02em;
  color: var(--text);
}
.nav-brand .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-grad);
  box-shadow: 0 0 12px var(--accent-1);
  margin: 0 2px;
  align-self: center;
}
.nav-brand .ai {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links {
  display: flex; align-items: center; gap: 6px;
  margin-left: 12px;
}
.nav-links a {
  position: relative;
  font-size: .92rem;
  color: var(--text-2);
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,.04); }
.nav-cta { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.theme-toggle, .menu-btn {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, border-color .2s ease;
}
.theme-toggle:hover, .menu-btn:hover { background: rgba(255,255,255,.08); }
.menu-btn { display: none; }

.cross-switch {
  display: inline-flex; align-items: center;
  font-size: .8rem; color: var(--text-faint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 12px;
  background: var(--surface);
}
.cross-switch a {
  padding: 4px 10px; border-radius: 999px;
  color: var(--text-faint);
  transition: color .2s, background .2s;
}
.cross-switch a.is-active { background: var(--surface-2); color: var(--text); }
.cross-switch a:hover { color: var(--text); }

.mobile-menu {
  position: fixed; inset: 64px 0 0 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 24px;
  z-index: 49;
  transform: translateY(-110%);
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 4px;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 1.1rem;
  color: var(--text);
  display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu .btn { margin-top: 16px; justify-content: center; }

@media (max-width: 960px) {
  .nav-links, .cross-switch, .nav-cta .btn:not(.theme-toggle) { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(120px, 14vw, 180px) 0 clamp(80px, 10vw, 120px);
  overflow: hidden;
  isolation: isolate;
}
.hero-grid {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(120,128,180,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,128,180,.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,1) 0%, rgba(0,0,0,.6) 50%, rgba(0,0,0,0) 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, rgba(0,0,0,1) 0%, rgba(0,0,0,.6) 50%, rgba(0,0,0,0) 80%);
}
.hero-glow {
  position: absolute; inset: -10% 0 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40rem 30rem at 20% 10%, rgba(99,102,241,.25), transparent 60%),
    radial-gradient(36rem 28rem at 80% 0%, rgba(34,211,238,.22), transparent 65%),
    radial-gradient(30rem 24rem at 50% 110%, rgba(167,139,250,.18), transparent 70%);
  filter: blur(20px);
}
.hero-content { text-align: center; max-width: 880px; margin: 0 auto; }
.hero h1 { margin-bottom: 24px; }
.hero .lede { margin: 0 auto 36px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-meta {
  margin-top: 56px; display: flex; flex-wrap: wrap; gap: 40px 48px;
  justify-content: center; color: var(--text-muted); font-size: .85rem;
}
.hero-meta strong { color: var(--text); font-weight: 600; display: block; font-size: 1.5rem; letter-spacing: -.01em; }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
  position: relative;
  overflow: hidden;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-grad-soft);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--accent-2);
}
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: .95rem; }
.card .card-link {
  display: inline-flex; gap: 6px; align-items: center;
  margin-top: 18px;
  color: var(--text); font-size: .9rem; font-weight: 500;
}
.card .card-link svg { transition: transform .25s ease; }
.card:hover .card-link svg { transform: translateX(4px); }

.card-grad {
  position: relative;
}
.card-grad::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(99,102,241,.55), rgba(34,211,238,.0) 50%, rgba(167,139,250,.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: .8;
}

.grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Section headers ---------- */
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--text-muted); }

/* ---------- Logo strip ---------- */
.logo-strip {
  display: flex; flex-wrap: wrap;
  gap: 32px 56px;
  justify-content: center; align-items: center;
  padding: 40px 0 24px;
}
.logo-strip a {
  display: inline-flex; align-items: center;
  padding: 8px 4px;
  text-decoration: none;
  outline: none;
  transition: transform .25s ease;
}
.logo-strip a:hover { transform: translateY(-2px); }

/* Brand-asset logos (colored partner badges from media kit).
   Show natural color, lightly dimmed by default, full on hover. */
.logo-strip .brand-logo {
  height: 56px;
  width: auto;
  max-width: 220px;
  opacity: .85;
  transition: opacity .25s ease;
  flex-shrink: 0;
  display: block;
}
.logo-strip a:hover .brand-logo,
.logo-strip .brand-logo:hover { opacity: 1; }

/* Text wordmarks (typographic placeholders).
   Monochrome treatment so they sit alongside the colored badges
   without competing for attention. */
.logo-strip .text-logo {
  height: 38px;
  width: auto;
  max-width: 220px;
  color: var(--text-muted);
  opacity: .7;
  transition: opacity .25s ease, color .25s ease;
  flex-shrink: 0;
  display: block;
}
.logo-strip a:hover .text-logo,
.logo-strip .text-logo:hover {
  opacity: 1;
  color: var(--text);
}
.logo-strip a:focus-visible .brand-logo,
.logo-strip a:focus-visible .text-logo {
  opacity: 1; color: var(--text);
}

.logo-strip-label {
  color: var(--text-faint);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .22em;
  text-align: center;
  margin-bottom: 12px;
  font-weight: 500;
}

@media (max-width: 720px) {
  .logo-strip { gap: 22px 32px; padding: 28px 0 18px; }
  .logo-strip .brand-logo { height: 42px; }
  .logo-strip .text-logo  { height: 28px; max-width: 160px; }
}

/* ---------- Code / diagram look ---------- */
.code-window {
  background: linear-gradient(180deg, #0b0d17 0%, #080910 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .82rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.code-header {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.code-header .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-strong);
}
.code-header .dot.r { background: #f87171; }
.code-header .dot.y { background: #fbbf24; }
.code-header .dot.g { background: #34d399; }
.code-header span { color: var(--text-faint); font-size: .75rem; margin-left: 8px; }
.code-body { padding: 20px 22px; overflow-x: auto; }
.code-body .k  { color: #c4b5fd; }
.code-body .s  { color: #6ee7b7; }
.code-body .c  { color: var(--text-faint); font-style: italic; }
.code-body .n  { color: #93c5fd; }
.code-body .o  { color: #f0abfc; }
.code-body pre { margin: 0; color: var(--text-2); font-family: inherit; line-height: 1.7; }

/* ---------- Diagram card ---------- */
.diagram {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  background:
    radial-gradient(60rem 30rem at 50% -20%, rgba(99,102,241,.16), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  overflow: hidden;
}
.diagram::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(120,128,180,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,128,180,.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 100%);
}
.node {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .85rem;
  color: var(--text-2);
  display: inline-flex; align-items: center; gap: 8px;
  position: relative; z-index: 1;
}
.node .pulse {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent-2);
  box-shadow: 0 0 12px var(--accent-2);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: .5; }
}

/* ---------- Metrics ---------- */
.metric {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
}
.metric .v {
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(1.6rem, 2vw + 1rem, 2.4rem);
  font-weight: 600;
  letter-spacing: -.02em;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}
.metric .l { color: var(--text-muted); font-size: .85rem; }

/* ---------- Process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step {
  display: grid; grid-template-columns: 56px 1fr; gap: 20px; align-items: start;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.05rem; font-weight: 600;
  color: var(--accent-2);
  background: var(--surface-2);
  border-radius: 10px;
  display: grid; place-items: center;
  height: 56px;
  border: 1px solid var(--border);
}
.step h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step p  { font-size: .92rem; color: var(--text-muted); }

/* ---------- FAQ ---------- */
.faq-item {
  border-top: 1px solid var(--border);
  padding: 22px 0;
}
.faq-item:last-of-type { border-bottom: 1px solid var(--border); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  width: 100%; background: transparent; border: 0; padding: 0;
  color: var(--text); font-size: 1.05rem; font-weight: 500;
  text-align: left;
}
.faq-q .ico {
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-left: 14px;
  transition: transform .25s ease, background .25s ease;
}
.faq-item.open .faq-q .ico { transform: rotate(45deg); background: var(--accent-grad); color: #06070d; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq-a-inner { padding-top: 14px; color: var(--text-muted); font-size: .95rem; }
.faq-item.open .faq-a { max-height: 600px; }

/* ---------- Trust band ---------- */
.trust-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  background: var(--surface);
}
.trust-cell {
  padding: 16px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,0));
  border: 1px solid var(--border);
}
.trust-cell .badge {
  font-family: 'JetBrains Mono', monospace;
  font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 8px;
}
.trust-cell strong { color: var(--text); display: block; font-size: 1rem; margin-bottom: 4px; }
.trust-cell span { color: var(--text-muted); font-size: .82rem; }
@media (max-width: 900px) { .trust-band { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .trust-band { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
footer.site-footer {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(99,102,241,.04), transparent 200px), var(--bg);
  padding: 80px 0 32px;
}
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 40px;
  margin-bottom: 56px;
}
.foot-grid h4 {
  color: var(--text-faint); font-size: .75rem; letter-spacing: .15em;
  text-transform: uppercase; margin-bottom: 16px; font-weight: 500;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--text-2); font-size: .92rem; transition: color .2s; }
.foot-grid a:hover { color: var(--text); }
.foot-cta p { color: var(--text-muted); margin-bottom: 14px; font-size: .92rem; }
.foot-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-top: 28px; border-top: 1px solid var(--border);
  font-size: .82rem; color: var(--text-faint);
  flex-wrap: wrap;
}
.foot-bottom .compliance {
  display: flex; gap: 14px; align-items: center;
}
.foot-bottom .compliance span {
  font-family: 'JetBrains Mono', monospace;
  font-size: .7rem; padding: 4px 8px;
  border: 1px solid var(--border); border-radius: 6px;
  color: var(--text-2);
}
@media (max-width: 980px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Chatbot widget ---------- */
.chatbot-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-grad);
  color: #06070d;
  border: 0;
  display: grid; place-items: center;
  box-shadow: 0 12px 40px -8px rgba(99,102,241,.55);
  transition: transform .25s ease;
}
.chatbot-launcher:hover { transform: translateY(-3px) scale(1.04); }
.chatbot-panel {
  position: fixed; right: 22px; bottom: 88px; z-index: 60;
  width: min(380px, calc(100vw - 28px));
  height: 540px; max-height: calc(100vh - 110px);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: none; flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: scaleIn .25s ease;
}
.chatbot-panel.open { display: flex; }
@keyframes scaleIn { from { opacity: 0; transform: scale(.92) translateY(8px); } to { opacity: 1; transform: scale(1); } }

.chatbot-head {
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.02);
}
.chatbot-head .avatar {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--accent-grad);
  display: grid; place-items: center;
  color: #06070d; font-weight: 700; font-family: 'JetBrains Mono', monospace;
}
.chatbot-head h4 { font-size: .95rem; margin-bottom: 2px; }
.chatbot-head p  { font-size: .75rem; color: var(--text-muted); }
.chatbot-head .close {
  margin-left: auto;
  background: transparent; border: 0; color: var(--text-muted);
}
.chatbot-body {
  flex: 1; overflow-y: auto; padding: 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .9rem;
  line-height: 1.5;
}
.msg.bot {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.msg.user {
  align-self: flex-end;
  background: var(--accent-grad);
  color: #06070d;
  border-bottom-right-radius: 4px;
}
.msg-suggestions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.msg-suggestions button {
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-2);
  padding: 6px 10px; border-radius: 999px; font-size: .78rem;
  transition: background .2s, color .2s;
}
.msg-suggestions button:hover { background: var(--surface); color: var(--text); }

.chatbot-foot {
  padding: 12px 14px; border-top: 1px solid var(--border);
  background: rgba(255,255,255,.02);
  display: flex; gap: 8px; align-items: center;
}
.chatbot-foot input {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit; font-size: .9rem;
}
.chatbot-foot input:focus { outline: none; border-color: var(--accent-1); }
.chatbot-foot button {
  background: var(--accent-grad);
  color: #06070d;
  border: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: .8rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .1em; font-weight: 500;
}
.field input, .field textarea, .field select {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--accent-1); box-shadow: var(--ring);
}
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Tabs / pills ---------- */
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  padding: 6px 12px; border-radius: 999px;
  font-size: .8rem;
}
.pill.is-active { background: var(--accent-grad); color: #06070d; border-color: transparent; }

/* ---------- Case study card ---------- */
.case-card {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.case-card-media {
  background:
    radial-gradient(40rem 24rem at 30% 30%, rgba(99,102,241,.35), transparent 60%),
    radial-gradient(36rem 22rem at 70% 70%, rgba(34,211,238,.28), transparent 70%),
    linear-gradient(180deg, #11142a, #0a0c18);
  padding: 40px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 360px;
  border-right: 1px solid var(--border);
}
.case-card-media .industry {
  display: inline-flex; align-self: flex-start;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  font-size: .75rem; color: var(--text); font-family: 'JetBrains Mono', monospace;
  letter-spacing: .04em;
}
.case-card-media .metrics { display: flex; gap: 24px; flex-wrap: wrap; }
.case-card-media .metrics div .v {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.6rem; font-weight: 600;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.case-card-media .metrics div .l { color: var(--text-muted); font-size: .78rem; }
.case-card-body { padding: 36px; display: flex; flex-direction: column; gap: 14px; }
.case-card-body h3 { font-size: 1.5rem; }
.case-card-body p { color: var(--text-muted); }
@media (max-width: 880px) {
  .case-card { grid-template-columns: 1fr; }
  .case-card-media { border-right: 0; border-bottom: 1px solid var(--border); }
}

/* ---------- Assessment ---------- */
.assess-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}
.assess-progress {
  height: 4px; background: var(--surface-2); border-radius: 999px;
  overflow: hidden; margin-bottom: 24px;
}
.assess-progress span {
  display: block; height: 100%;
  background: var(--accent-grad);
  width: 0; transition: width .35s ease;
}
.assess-question { margin-bottom: 22px; }
.assess-question h3 { font-size: 1.25rem; margin-bottom: 8px; }
.assess-question p  { color: var(--text-muted); font-size: .92rem; }
.assess-options { display: grid; gap: 10px; }
.assess-option {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-2);
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .15s;
}
.assess-option:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.assess-option.is-selected { border-color: var(--accent-1); background: rgba(99,102,241,.08); }
.assess-option .dot {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border-strong); flex-shrink: 0;
  display: grid; place-items: center;
}
.assess-option.is-selected .dot { border-color: var(--accent-1); }
.assess-option.is-selected .dot::after {
  content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-1);
}

.assess-result { display: none; }
.assess-result.show { display: block; }
.score-ring {
  --p: 0;
  --color: var(--accent-1);
  width: 180px; height: 180px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background:
    conic-gradient(var(--color) calc(var(--p) * 1%), var(--surface-2) 0);
  display: grid; place-items: center;
  position: relative;
}
.score-ring::before {
  content: ''; position: absolute; inset: 12px;
  border-radius: 50%; background: var(--surface);
}
.score-ring .score-text {
  position: relative; z-index: 1; text-align: center;
}
.score-ring .score-text .num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2.6rem; font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.score-ring .score-text .lab { color: var(--text-muted); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; }

/* ---------- Utility ---------- */
.divider { height: 1px; background: var(--border); margin: 0; border: 0; }
.center { text-align: center; }
.hide-mobile { display: revert; }
.show-mobile { display: none; }
@media (max-width: 700px) {
  .hide-mobile { display: none; }
  .show-mobile { display: revert; }
}

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

/* ---------- Focus ring on inputs/buttons ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none; box-shadow: var(--ring); border-radius: 8px;
}

/* ---------- Print ---------- */
@media print { .nav, .site-footer, .chatbot-launcher, .chatbot-panel { display: none !important; } }

/* =============================================================
   Showcase marquee — auto-scrolling "From the Lab" strip on home
   ============================================================= */
.showcase-section { isolation: isolate; }

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 4px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 80px, #000 calc(100% - 80px), transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: marquee-scroll 60s linear infinite;
  will-change: transform;
}

.marquee:hover .marquee-track,
.marquee:focus-within .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .showcase-card { scroll-snap-align: start; }
}

/* ---- Showcase card ---- */
.showcase-card {
  flex-shrink: 0;
  width: 320px;
  min-height: 220px;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0)),
    var(--surface);
  text-align: left;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease, background .3s ease;
  font: inherit;
}
.showcase-card:hover,
.showcase-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 18px 40px -16px rgba(99,102,241,.35);
  background:
    linear-gradient(180deg, rgba(99,102,241,.06), rgba(34,211,238,.02)),
    var(--surface);
  outline: none;
}

.showcase-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--text);
  margin: 0;
}
.showcase-card > p {
  font-size: .88rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.showcase-tag {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin: 0 !important;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .65rem !important;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-2) !important;
  line-height: 1;
  white-space: nowrap;
}
.showcase-tag .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.showcase-tag[data-kind="demo"]     .dot { background: #22d3ee; box-shadow: 0 0 8px #22d3ee; }
.showcase-tag[data-kind="tool"]     .dot { background: #6366f1; box-shadow: 0 0 8px #6366f1; }
.showcase-tag[data-kind="oss"]      .dot { background: #34d399; box-shadow: 0 0 8px #34d399; }
.showcase-tag[data-kind="case"]     .dot { background: #a78bfa; box-shadow: 0 0 8px #a78bfa; }
.showcase-tag[data-kind="playbook"] .dot { background: #fbbf24; box-shadow: 0 0 8px #fbbf24; }

.showcase-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 10px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
}
.showcase-link svg { transition: transform .25s ease; }
.showcase-card:hover .showcase-link svg { transform: translateX(4px); }

@media (max-width: 720px) {
  .showcase-card { width: 280px; padding: 20px; min-height: 200px; }
  .marquee-track { animation-duration: 45s; gap: 14px; }
  .marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 40px, #000 calc(100% - 40px), transparent 100%);
  }
}
