
/* ============================= TOKENS ============================= */
:root {
  --primary: #777EF5;
  --primary-hover: #6C47FF;
  --primary-pressed: #6F52E0;
  --primary-light: #A7ABF9;
  --primary-50: #F1F2FE;
  --primary-100: #E8E9FF;
  --primary-200: #E2DAFF;
  --primary-300: #C6B9FA;
  --primary-shadow: rgba(119,126,245,0.2);
  --primary-shadow-sm: rgba(119,126,245,0.1);

  --ink-900: #384157;
  --ink-700: #4C5876;
  --ink-500: #7D8AAB;
  --ink-400: #D1D4DB;
  --border: #E3E6EE;
  --border-2: #E6E9EF;
  --surface: #FFFFFF;
  --bg: #F0F2F4;

  --accent-red: #F5777D;
  --accent-green: #7AE575;

  --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.05);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 60px rgba(56,65,87,0.12);
  --shadow-primary: 0 4px 16px rgba(119,126,245,0.2);
  --shadow-primary-sm: 0 2px 8px rgba(119,126,245,0.1);
  --shadow-hero: 0 40px 80px -20px rgba(119,126,245,0.25), 0 20px 40px -15px rgba(56,65,87,0.1);

  --r-xs: 4px; --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --r-xl: 20px; --r-2xl: 24px; --r-3xl: 32px; --r-pill: 999px;

  --font: 'Montserrat', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: #fff; }
body {
  font-family: var(--font);
  color: var(--ink-900);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }
::selection { background: var(--primary-200); color: var(--ink-900); }

/* ============================= LAYOUT ============================= */
.container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }

/* ============================= BRAND MARK ============================= */
.brand-mark {
  width: 28px; height: 28px; border-radius: 50%; background: var(--primary-hover);
  position: relative; flex-shrink: 0;
}
.brand-mark::before {
  content: ''; position: absolute; inset: 4px; border-radius: 50%;
  border: 2px solid #fff;
}
.brand-mark::after {
  content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: #fff; top: 9px; left: 9px;
}
.brand-mark.lg { width: 40px; height: 40px; }
.brand-mark.lg::before { inset: 6px; border-width: 3px; }
.brand-mark.lg::after { width: 10px; height: 10px; top: 13px; left: 13px; }

/* Brand logo image (replaces brand-mark + text) */
.brand { display: inline-flex; align-items: center; }
.brand-logo {
  height: 27px; width: auto; display: block;
}
.brand-on-dark .brand-logo {
  /* Lift the purple logo on the dark footer */
  filter: brightness(1.7) saturate(1.3);
}
.brand-logo-mark {
  width: 56px; height: 56px; display: block;
  border-radius: 12px;
}

/* ============================= HEADER ============================= */
.header {
  position: sticky; top: 12px; z-index: 40;
  padding: 0 20px;
  background: transparent;
  border: none;
  pointer-events: none;
}
.header-inner {
  display: flex; align-items: center; gap: 20px; height: 56px;
  padding: 0 8px 0 18px;
  width: 100%;
  max-width: 1180px; margin: 0 auto;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 -1px 0 rgba(255,255,255,0.2) inset,
    0 6px 24px rgba(56, 65, 87, 0.08),
    0 2px 6px rgba(56, 65, 87, 0.04);
  pointer-events: auto;
}
.brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 17px; color: var(--ink-900);
  letter-spacing: -0.01em;
}
.nav { display: flex; gap: 2px; position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 12px; font-size: 14px; font-weight: 500; color: var(--ink-700);
  border-radius: 10px; cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--primary); background: var(--primary-50); }
.nav-link svg { width: 14px; height: 14px; opacity: 0.6; }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.btn {
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
  height: 40px; padding: 0 18px; font-size: 14px; font-weight: 600;
  border-radius: 12px; transition: all .15s; white-space: nowrap;
}
.btn-ghost { color: var(--ink-700); }
.btn-ghost:hover { background: var(--primary-50); color: var(--primary); }
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow-primary-sm);
}
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-primary); transform: translateY(-1px); }
.btn-secondary {
  background: #fff; color: var(--primary); border: 1.5px solid var(--primary);
}
.btn-secondary:hover { background: var(--primary-50); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; border-radius: 14px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn svg { width: 16px; height: 16px; }

/* Mega menu */
.mega-wrap {
  position: fixed; top: 78px; left: 0; right: 0;
  display: none; padding: 0 20px;
  z-index: 90;
  pointer-events: none;
}
.mega-wrap.open { display: block; }
.mega {
  max-width: 1180px; margin: 0 auto;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(40px);
  -webkit-backdrop-filter: saturate(180%) blur(40px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 -1px 0 rgba(167,171,249,0.08) inset,
    0 24px 64px rgba(56, 65, 87, 0.18),
    0 6px 20px rgba(56, 65, 87, 0.08);
  padding: 36px 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  animation: megaIn .42s cubic-bezier(.2,.75,.3,1) both;
  transform-origin: top center;
  pointer-events: auto;
  position: relative;
}
.mega--product {
  grid-template-columns: 240px 240px 1fr;
  justify-content: start;
  column-gap: 40px;
  padding-top: 36px;
  padding-bottom: 110px;
}
@keyframes megaIn {
  from { opacity: 0; transform: translateY(-14px) scale(.97); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: none; }
}
.mega h5 {
  margin: 0 0 14px; font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.mega-col ul { list-style: none; margin: 0; padding: 0; }
.mega-col li { margin-bottom: 2px; animation: itemIn .5s cubic-bezier(.2,.7,.3,1) both; }
.mega-col li:nth-child(1) { animation-delay: .03s; }
.mega-col li:nth-child(2) { animation-delay: .06s; }
.mega-col li:nth-child(3) { animation-delay: .09s; }
.mega-col li:nth-child(4) { animation-delay: .12s; }
.mega-col li:nth-child(5) { animation-delay: .15s; }
.mega-col li:nth-child(6) { animation-delay: .18s; }
.mega-col li:nth-child(7) { animation-delay: .21s; }
.mega-col li:nth-child(8) { animation-delay: .24s; }
@keyframes itemIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: none; }
}
.mega-col a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  font-size: 14px; font-weight: 500; color: var(--ink-900);
  transition: all .18s;
  text-decoration: none;
}
.mega-col a:hover {
  background: rgba(119, 126, 245, 0.12);
  color: var(--primary-hover);
  transform: translateX(3px);
}
.mega-col a svg { width: 16px; height: 16px; color: var(--ink-500); }
.mega-col a:hover svg { color: var(--primary); }

.mega-col-more {
  margin-top: 10px;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 8px 14px; border-radius: 999px;
  background: rgba(119, 126, 245, 0.1);
  color: var(--primary);
  font-size: 12px; font-weight: 600;
  border: 1px solid rgba(167, 171, 249, 0.35);
  transition: all .18s;
}
.mega-col-more:hover { background: rgba(119, 126, 245, 0.18); transform: translateX(2px); }

/* Social row in Product mega */
.mega-social-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
}
.mega-social-grid a {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 10px 6px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 11px; color: var(--ink-900); text-decoration: none;
  transition: all .22s;
}
.mega-social-grid a svg { width: 20px; height: 20px; color: var(--primary); transition: transform .22s; }
.mega-social-grid a:hover { background: rgba(119,126,245,0.15); transform: translateY(-2px); border-color: rgba(167,171,249,0.5); }
.mega-social-grid a:hover svg { transform: scale(1.15); }

/* Compact social dock in mega-menu bottom-left corner */
.mega-social-corner {
  position: absolute;
  bottom: 24px;
  left: 32px;
  display: flex;
  gap: 4px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(167, 171, 249, 0.28);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(56, 65, 87, 0.06);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mega-social-corner a {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  color: var(--primary);
  transition: all .18s;
  text-decoration: none;
}
.mega-social-corner a svg {
  width: 16px; height: 16px;
  color: currentColor;
  transition: transform .18s;
}
.mega-social-corner a:hover {
  background: rgba(119, 126, 245, 0.14);
  color: var(--primary-hover);
  transform: translateY(-1px);
}
.mega-social-corner a:hover svg { transform: scale(1.1); }

/* Bottom-right CTA bar of Product mega */
.mega-footer-bar {
  position: absolute;
  right: 32px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.mega-ctas {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.mega-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: all .18s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.mega-cta svg { width: 14px; height: 14px; }
.mega-cta--ghost {
  background: rgba(119, 126, 245, 0.08);
  color: var(--primary);
  border: 1px solid rgba(167, 171, 249, 0.35);
}
.mega-cta--ghost:hover {
  background: rgba(119, 126, 245, 0.16);
  border-color: rgba(119, 126, 245, 0.5);
  transform: translateY(-1px);
}
.mega-cta--primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  border: 1px solid var(--primary);
  box-shadow: 0 4px 12px rgba(119, 126, 245, 0.3);
}
.mega-cta--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(119, 126, 245, 0.4);
}

/* Highlighted Resources items (Contact support, Become a partner) */
.mega-col li.hl > a {
  color: var(--primary);
  font-weight: 700;
}
.mega-col li.hl > a::before {
  content: '';
  display: inline-block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 2px;
  flex-shrink: 0;
}

/* ===== Event Banner in Product mega-menu ===== */
.mega-event-banner {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(119,126,245,0.1) 0%, rgba(167,171,249,0.05) 60%, rgba(255,255,255,0.2) 100%);
  border: 1px solid rgba(167,171,249,0.3);
  border-radius: 18px;
  padding: 20px 22px 22px;
  min-height: 240px;
  display: flex; flex-direction: column; gap: 10px;
  align-self: start;
}
.event-bg-blob {
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119,126,245,0.28) 0%, transparent 70%);
  pointer-events: none;
  animation: eventBlob 7s ease-in-out infinite;
}
@keyframes eventBlob {
  0%, 100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(-15px,10px) scale(1.08); }
}
.event-voice-wave {
  position: absolute;
  bottom: -30px; left: -30px;
  width: 180px; height: 180px;
  pointer-events: none;
  opacity: 0.55;
}
.event-voice-wave span {
  position: absolute;
  top: 50%; left: 50%;
  width: 80px; height: 80px; border-radius: 50%;
  border: 1.5px solid var(--primary);
  transform: translate(-50%, -50%) scale(0.3);
  opacity: 0;
  animation: voiceRipple 2.4s cubic-bezier(.2,.6,.3,1) infinite;
}
.event-voice-wave span:nth-child(2) { animation-delay: 0.8s; }
.event-voice-wave span:nth-child(3) { animation-delay: 1.6s; }
@keyframes voiceRipple {
  0% { transform: translate(-50%, -50%) scale(0.3); opacity: 0.7; }
  80% { opacity: 0.1; }
  100% { transform: translate(-50%, -50%) scale(1.8); opacity: 0; }
}
.event-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
  padding: 4px 10px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(167,171,249,0.35);
  border-radius: 999px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary);
  position: relative; z-index: 2;
}
.event-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #FF6B9D;
  box-shadow: 0 0 0 0 rgba(255,107,157,0.7);
  animation: eventPulse 1.8s ease-out infinite;
}
@keyframes eventPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,107,157,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(255,107,157,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,107,157,0); }
}
.event-team {
  display: flex;
  margin-top: 4px;
  position: relative;
  z-index: 2;
  height: 44px;
}
.event-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  border: 2.5px solid #fff;
  box-shadow: 0 3px 10px rgba(56,65,87,0.14);
  margin-left: -10px;
  animation: avatarBob 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.18s);
  position: relative;
}
.event-avatar:first-child { margin-left: 0; }
@keyframes avatarBob {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-5px) scale(1.04); }
}
.event-title {
  margin: 6px 0 0;
  font-size: 18px; font-weight: 800;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  line-height: 1.2;
  position: relative; z-index: 2;
}
.event-subtitle {
  margin: 0;
  font-size: 12px; line-height: 1.5;
  color: var(--ink-700);
  position: relative; z-index: 2;
}
.event-cta {
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 9px 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: #fff;
  border-radius: 10px;
  font-size: 12px; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(119,126,245,0.3);
  transition: all .2s;
  position: relative; z-index: 2;
}
.event-cta svg { width: 12px; height: 12px; }
.event-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(119,126,245,0.4);
}
@media (prefers-reduced-motion: reduce) {
  .event-bg-blob, .event-voice-wave span, .event-avatar, .event-dot {
    animation: none !important;
  }
}

.mega-featured {
  background: linear-gradient(145deg, rgba(119,126,245,0.15), rgba(167,171,249,0.08));
  border: 1px solid rgba(167,171,249,0.4);
  border-radius: 18px; padding: 22px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.mega-featured::before {
  content: ''; position: absolute;
  top: -40%; right: -20%;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(119,126,245,0.35), transparent 70%);
  pointer-events: none;
}
.mega-featured .eyebrow {
  font-size: 11px; font-weight: 700; color: var(--primary);
  letter-spacing: 0.12em; text-transform: uppercase;
}
.mega-featured h4 { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink-900); line-height: 1.3; }
.mega-featured p { margin: 0; font-size: 13px; color: var(--ink-700); line-height: 1.5; }
.mega-featured .mini-cta {
  margin-top: auto; display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; font-weight: 700; color: var(--primary);
}

.menu-btn { display: none; width: 40px; height: 40px; border-radius: 10px; align-items: center; justify-content: center; color: var(--ink-900); }

/* ============================= HERO ============================= */
.hero {
  position: relative;
  padding: 40px 0 40px;
  background: transparent;
  overflow: hidden;
  isolation: isolate;
  min-height: 612px;
}
/* Background video — fills the entire hero across full viewport width */
/* Global background canvas — living gradient + particles */
.page-bg-canvas {
  position: fixed; inset: 0; z-index: -3;
  width: 100vw; height: 100vh;
  pointer-events: none;
  background: #fff;
}
@media (prefers-reduced-motion: reduce) {
  .page-bg-canvas { display: none; }
}
/* Hero decorative layers disabled — the page-level canvas is the only background now */
.hero::before { display: none; }
.hero-orbs { display: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-orb { animation: none !important; }
}

.hero-top { text-align: center; margin-bottom: 17px; position: relative; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 8px 2px 3px;
  background: rgba(255,255,255,0.45);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255,255,255,0.65);
  border-radius: 999px;
  font-size: 10px; font-weight: 500; color: var(--ink-700);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.85) inset,
    0 4px 14px rgba(56, 65, 87, 0.06);
  margin-bottom: 15px;
}
.hero-pill .badge {
  background: var(--primary); color: #fff;
  padding: 2px 8px; border-radius: 999px;
  font-size: 9px; font-weight: 700; letter-spacing: 0.03em;
}
.hero-pill .arrow { color: var(--primary); display: inline-flex; }

h1.hero-title {
  margin: 0 auto; max-width: 765px;
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.025em; color: var(--ink-900);
}
h1.hero-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 60%, var(--primary-pressed) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================= STANDALONE COMPOSER (hero CTA) ============================= */
.compose-standalone {
  position: relative; z-index: 2;
  max-width: 765px; margin: 0 auto;
}
.chat-output {
  margin-top: 17px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-output:empty { display: none; }

/* Composer */
.composer-block { width: 100%; max-width: 765px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.composer {
  display: flex; gap: 8px; align-items: center;
  padding: 7px 7px 7px 19px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 15px;
  transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 -1px 0 rgba(167,171,249,0.15) inset,
    0 12px 36px rgba(56, 65, 87, 0.10),
    0 3px 10px rgba(56, 65, 87, 0.05);
}
.composer:focus-within {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(167, 171, 249, 0.8);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 0 0 4px var(--primary-shadow-sm),
    0 16px 40px rgba(119, 126, 245, 0.18);
}
.composer-input {
  flex: 1; border: 0; outline: 0;
  background: transparent; padding: 9px 3px;
  font-family: var(--font); font-size: 13px; font-weight: 500; color: var(--ink-900);
  min-width: 0;
}
.composer-input::placeholder { color: var(--ink-500); }

.launch-btn {
  display: inline-flex; align-items: center; gap: 5px;
  height: 31px; padding: 0 12px;
  border-radius: 9px;
  background: var(--ink-400); color: #fff;
  font-family: var(--font); font-size: 12px; font-weight: 600;
  cursor: not-allowed;
  flex-shrink: 0;
  transition: all .2s;
  opacity: 0.6;
}
.launch-btn svg { width: 11px; height: 11px; }
.launch-btn.active {
  background: var(--primary); cursor: pointer;
  opacity: 1;
  box-shadow: 0 6px 20px rgba(119,126,245,0.35);
  animation: launchPulse 2s ease-in-out infinite;
}
.launch-btn.active:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(119,126,245,0.45);
}
.launch-btn.active:active { transform: scale(0.97); }
@keyframes launchPulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(119,126,245,0.35); }
  50%      { box-shadow: 0 6px 20px rgba(119,126,245,0.35), 0 0 0 6px rgba(119,126,245,0.12); }
}

/* Suggest grid (3 cols) — matches composer width */
.agents-grid {
  margin: 12px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  width: 100%; max-width: 765px;
}
.agent-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 15px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 10px; text-align: left;
  font-size: 12px; font-weight: 500; color: var(--ink-900);
  transition: all .2s;
  line-height: 1.3;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.85) inset,
    0 4px 14px rgba(56, 65, 87, 0.05);
}
.agent-pill:hover {
  background: rgba(255,255,255,0.75);
  border-color: rgba(167, 171, 249, 0.6);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 10px 24px rgba(119,126,245,0.14);
}
.agent-pill.selected {
  background: rgba(119, 126, 245, 0.12);
  border-color: rgba(119, 126, 245, 0.55);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 0 0 3px var(--primary-shadow-sm),
    0 8px 20px rgba(119, 126, 245, 0.18);
  color: var(--primary-hover);
}
.agent-pill.selected .ap-icon { color: var(--primary-hover); }
.agent-pill .ap-icon {
  width: 14px; height: 14px; color: var(--primary); flex-shrink: 0;
  display: grid; place-items: center;
}
.agent-pill .ap-icon svg { width: 14px; height: 14px; }

/* ============================= SHOWCASE v2 · Linear/Vercel style ============================= */
.v2-showcase {
  padding: 30px 0 30px;
  background: #fff;
  position: relative;
}
.v2-showcase::before {
  content: ''; position: absolute; inset: 0; top: 80px; bottom: 80px;
  background-image:
    linear-gradient(rgba(56,65,87,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,65,87,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, black 20%, transparent 70%);
  pointer-events: none;
}

.v2-intro {
  text-align: center;
  max-width: 760px; margin: 0 auto 120px;
  position: relative;
}
.v2-intro-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--ink-700);
  letter-spacing: 0.04em; margin-bottom: 24px;
}
.v2-intro-kicker span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-50);
}
.v2-intro-title {
  margin: 0 0 20px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 700; line-height: 1.02;
  letter-spacing: -0.035em;
  color: var(--ink-900);
}
.v2-intro-em {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.v2-intro-lede {
  margin: 0; font-size: 18px; line-height: 1.55;
  color: var(--ink-700); max-width: 560px; margin: 0 auto;
}

.v2-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  padding: 40px 0;
  position: relative;
}
.v2-row + .v2-row {
  border-top: 1px solid rgba(227,230,238,0.6);
}
.v2-row.v2-reverse {
  grid-template-columns: 1.1fr 1fr;
}
.v2-row.v2-reverse .v2-row-text { order: 2; }
.v2-row.v2-reverse .v2-row-visual { order: 1; }

.v2-row-text {
  display: flex; flex-direction: column;
  gap: 0;
  max-width: 440px;
}
.v2-row-num {
  font-size: 13px; font-weight: 600;
  color: var(--ink-500);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
.v2-row-kicker {
  font-size: 12px; font-weight: 600;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.v2-row-title {
  margin: 0 0 20px;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700; line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink-900);
}
.v2-row-desc {
  margin: 0 0 32px;
  font-size: 16px; line-height: 1.6;
  color: var(--ink-700);
}
.v2-row-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  background: transparent;
  color: var(--ink-900);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 14px; font-weight: 600;
  transition: all .15s;
  align-self: flex-start;
  cursor: pointer;
}
.v2-row-cta svg {
  width: 14px; height: 14px;
  transition: transform .2s;
}
.v2-row-cta:hover {
  background: var(--ink-900); color: #fff;
  border-color: var(--ink-900);
}
.v2-row-cta:hover svg { transform: translateX(3px); }

/* Visual area — premium card */
.v2-row-visual {
  position: relative;
  display: grid; place-items: center;
}
.v2-row-visual::before {
  content: ''; position: absolute;
  inset: -20px; border-radius: 32px;
  background: radial-gradient(ellipse 80% 60% at 50% 50%, rgba(119,126,245,0.08), transparent);
  pointer-events: none; z-index: -1;
}

/* ——————————— Premium card base ——————————— */
.v2-card {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(227,230,238,0.8);
  border-radius: 16px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.9) inset,
    0 1px 2px rgba(56,65,87,0.04),
    0 8px 24px rgba(56,65,87,0.06),
    0 32px 64px -24px rgba(56,65,87,0.1);
  overflow: hidden;
  transition: transform .3s, box-shadow .3s;
}
.v2-row:hover .v2-card {
  transform: translateY(-4px);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.9) inset,
    0 1px 2px rgba(56,65,87,0.04),
    0 12px 32px rgba(56,65,87,0.08),
    0 40px 80px -20px rgba(56,65,87,0.14);
}
.v2-card-dark {
  background: #0c0e1a;
  border-color: rgba(255,255,255,0.08);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04) inset,
    0 8px 24px rgba(0,0,0,0.25),
    0 32px 64px -24px rgba(0,0,0,0.4);
}

/* Card head */
.v2-card-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(227,230,238,0.6);
}
.v2-card-head-dark {
  border-bottom-color: rgba(255,255,255,0.06);
}
.v2-card-head-body { flex: 1; min-width: 0; }
.v2-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700; color: #fff; font-size: 14px;
  flex-shrink: 0;
}
.v2-card-name {
  font-size: 13px; font-weight: 600;
  color: var(--ink-900); line-height: 1.2;
}
.v2-card-name-dark {
  flex: 1;
  font-size: 13px; font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-align: center;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
}
.v2-card-meta {
  font-size: 12px; color: var(--ink-500);
  display: flex; align-items: center; gap: 5px;
  margin-top: 2px;
}
.v2-status-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16,185,129,0.2);
  animation: v2pulse 2s ease-in-out infinite;
}
.v2-dot-live {
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 0 2px rgba(16,185,129,0.2);
  animation: v2pulse 2s ease-in-out infinite;
}
.v2-dot-active {
  display: inline-block;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-shadow-sm);
}
@keyframes v2pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

.v2-kbd {
  display: inline-flex; align-items: center;
  padding: 3px 7px; font-size: 11px; font-weight: 600;
  background: rgba(56,65,87,0.05);
  border: 1px solid var(--border);
  border-radius: 5px;
  color: var(--ink-700);
  font-family: ui-monospace, 'SF Mono', monospace;
}
.v2-kbd-dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.6);
}

.v2-dots { display: flex; gap: 5px; }
.v2-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.v2-dots span:nth-child(1) { background: rgba(245,119,125,0.7); }
.v2-dots span:nth-child(2) { background: rgba(251,191,36,0.7); }
.v2-dots span:nth-child(3) { background: rgba(122,229,117,0.7); }

.v2-tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  font-size: 11px; font-weight: 600;
  background: rgba(56,65,87,0.05);
  color: var(--ink-700);
  border: 1px solid rgba(56,65,87,0.06);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.v2-tag-dark {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.75);
  border-color: rgba(255,255,255,0.08);
}
.v2-tag-green {
  color: #059669;
  background: rgba(16,185,129,0.08);
  border-color: rgba(16,185,129,0.15);
}
.v2-tag-primary {
  color: var(--primary);
  background: var(--primary-50);
  border-color: var(--primary-100);
}

.v2-breadcrumb {
  flex: 1;
  font-size: 12px; color: var(--ink-500);
  font-family: ui-monospace, 'SF Mono', monospace;
}
.v2-breadcrumb b { color: var(--ink-900); font-weight: 600; }

/* ———————— 1) Chat (Sales) ———————— */
.v2-chat {
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}
.v2-bubble {
  max-width: 82%;
  padding: 10px 14px; border-radius: 14px;
  font-size: 13px; line-height: 1.4;
  animation: v2fadeIn .4s ease-out backwards;
}
.v2-bubble:nth-child(1) { animation-delay: .1s; }
.v2-bubble:nth-child(2) { animation-delay: .3s; }
.v2-bubble:nth-child(3) { animation-delay: .5s; }
.v2-bubble:nth-child(4) { animation-delay: .7s; }
.v2-bubble:nth-child(5) { animation-delay: .9s; }
@keyframes v2fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.v2-bubble.in {
  align-self: flex-start;
  background: #f1f3f8; color: var(--ink-900);
  border-top-left-radius: 4px;
}
.v2-bubble.out {
  align-self: flex-end;
  background: var(--primary); color: #fff;
  border-top-right-radius: 4px;
  box-shadow: 0 2px 8px rgba(119,126,245,0.25);
}
.v2-bubble-typing {
  padding: 12px 14px;
  display: inline-flex; gap: 4px; align-items: center;
}
.v2-bubble-typing span {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--ink-500);
  animation: v2typing 1.4s infinite;
}
.v2-bubble-typing span:nth-child(2) { animation-delay: .15s; }
.v2-bubble-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes v2typing {
  0%, 60%, 100% { opacity: .35; transform: translateY(0); }
  30% { opacity: 1; transform: translateY(-3px); }
}

.v2-chat-foot {
  display: flex; gap: 6px; padding: 12px 18px;
  border-top: 1px solid rgba(227,230,238,0.6);
  background: #fff;
}

/* ———————— 2) Voice SDK (dark card + waveform) ———————— */
.v2-wave {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; height: 160px; padding: 20px;
  background:
    radial-gradient(ellipse 60% 40% at 50% 50%, rgba(119,126,245,0.15), transparent 70%),
    #0c0e1a;
}
.v2-wave span {
  width: 4px; border-radius: 3px;
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  animation: v2wave 1.4s ease-in-out infinite;
  min-height: 12px;
  height: calc(var(--h) * 1px);
}
@keyframes v2wave {
  0%, 100% { transform: scaleY(0.3); }
  50%      { transform: scaleY(1); }
}

.v2-voice-meta {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #0c0e1a;
}
.v2-voice-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(16,185,129,0.1); color: #10B981;
  font-size: 11px; font-weight: 600;
  border: 1px solid rgba(16,185,129,0.2);
}
.v2-voice-lang {
  font-size: 12px; color: rgba(255,255,255,0.6); font-weight: 500;
  flex: 1;
}
.v2-voice-latency {
  font-size: 12px; font-weight: 700; color: var(--primary-light);
  font-family: ui-monospace, 'SF Mono', monospace;
  font-variant-numeric: tabular-nums;
}

/* ———————— 3) Phone ———————— */
.v2-phone-wrap { display: grid; place-items: center; padding: 20px; }
.v2-phone {
  width: 260px; aspect-ratio: 9/18;
  background: linear-gradient(180deg, #1a1a2e, #0c0e1a);
  border-radius: 42px;
  padding: 10px;
  position: relative;
  box-shadow:
    0 0 0 2px #2d2d44,
    0 30px 60px -15px rgba(0,0,0,0.35),
    inset 0 2px 0 rgba(255,255,255,0.08);
}
.v2-phone-notch {
  position: absolute; top: 18px; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 22px;
  background: #0c0e1a; border-radius: 20px;
}
.v2-phone-screen {
  width: 100%; height: 100%;
  background: linear-gradient(180deg, #f1f3f8, #e3e6ee);
  border-radius: 34px;
  padding: 36px 20px 20px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.v2-phone-status {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px; font-weight: 600; color: var(--ink-900);
  padding: 0 4px;
}
.v2-phone-status-icons { display: flex; gap: 6px; font-size: 9px; }
.v2-phone-calling {
  text-align: center;
  font-size: 10px; font-weight: 700; color: var(--ink-500);
  letter-spacing: 0.1em; margin-top: 12px;
}
.v2-phone-avatar {
  width: 80px; height: 80px; border-radius: 50%;
  background: linear-gradient(135deg, #A7ABF9, #6C47FF);
  display: grid; place-items: center;
  color: #fff; font-size: 30px; font-weight: 700;
  margin: 6px auto 4px;
  box-shadow: 0 10px 24px rgba(119,126,245,0.35);
}
.v2-phone-name {
  text-align: center;
  font-size: 15px; font-weight: 700; color: var(--ink-900);
}
.v2-phone-connected {
  text-align: center;
  font-size: 11px; font-weight: 600; color: #10B981;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  margin-bottom: 8px;
}
.v2-phone-transcript {
  background: #fff; border-radius: 14px;
  padding: 10px 12px; margin-top: auto;
  box-shadow: 0 4px 12px rgba(56,65,87,0.06);
}
.v2-phone-line {
  font-size: 11px; line-height: 1.45; color: var(--ink-900);
}
.v2-phone-controls {
  display: flex; justify-content: space-around; margin-top: 8px;
}
.v2-phone-btn {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(56,65,87,0.08);
  display: grid; place-items: center;
  font-size: 14px; color: var(--ink-900);
}
.v2-phone-btn-end {
  background: #F5777D; color: #fff;
  box-shadow: 0 4px 12px rgba(245,119,125,0.35);
}

/* ———————— 4) Code (dark) ———————— */
.v2-code {
  padding: 18px 0;
  background: #0c0e1a;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: 12.5px; line-height: 1.8;
  color: rgba(255,255,255,0.9);
}
.v2-code-line {
  display: flex; padding: 0 18px;
  animation: v2codeline .3s ease-out backwards;
}
.v2-code-line:nth-child(1) { animation-delay: .1s; }
.v2-code-line:nth-child(2) { animation-delay: .2s; }
.v2-code-line:nth-child(3) { animation-delay: .3s; }
.v2-code-line:nth-child(4) { animation-delay: .4s; }
.v2-code-line:nth-child(5) { animation-delay: .5s; }
.v2-code-line:nth-child(6) { animation-delay: .6s; }
.v2-code-line:nth-child(7) { animation-delay: .7s; }
.v2-code-line:nth-child(8) { animation-delay: .8s; }
.v2-code-line:nth-child(9) { animation-delay: .9s; }
@keyframes v2codeline {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}
.v2-code-line-new { background: rgba(119,126,245,0.08); }
.v2-ln {
  width: 28px; flex-shrink: 0;
  color: rgba(255,255,255,0.25);
  text-align: right; padding-right: 14px;
  user-select: none;
}
.v2-code .k { color: #C6B9FA; }
.v2-code .s { color: #7AE575; }
.v2-code .c { color: rgba(255,255,255,0.35); font-style: italic; }
.v2-code .t { color: #A7ABF9; }
.v2-code .f { color: #FBBF24; }
.v2-code .cursor {
  display: inline-block;
  width: 2px; height: 14px;
  background: var(--primary-light);
  animation: v2blink 1s step-end infinite;
  vertical-align: middle;
}
@keyframes v2blink {
  50% { opacity: 0; }
}
.v2-code-foot {
  display: flex; gap: 6px;
  padding: 12px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: #0c0e1a;
}

/* ———————— 5) Dashboard ———————— */
.v2-kpi-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(227,230,238,0.6);
  border-bottom: 1px solid rgba(227,230,238,0.6);
}
.v2-kpi {
  padding: 20px; background: #fff;
}
.v2-kpi-label {
  font-size: 11px; font-weight: 600; color: var(--ink-500);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 8px;
}
.v2-kpi-value {
  font-size: 26px; font-weight: 700; color: var(--ink-900);
  letter-spacing: -0.02em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.v2-kpi-delta {
  margin-top: 6px;
  font-size: 12px; font-weight: 600; color: #10B981;
  font-variant-numeric: tabular-nums;
}

.v2-chart-wrap {
  padding: 18px;
  background: linear-gradient(180deg, #fafbff 0%, #fff 100%);
}
.v2-chart-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px;
  font-size: 12px; font-weight: 600; color: var(--ink-700);
}
.v2-chart {
  display: flex; align-items: flex-end; gap: 5px;
  height: 120px;
}
.v2-bar {
  flex: 1; min-width: 0;
  height: var(--h); min-height: 6px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  opacity: 0.9;
  animation: v2rise .8s ease-out backwards;
}
.v2-bar:nth-child(1)  { animation-delay: .05s; }
.v2-bar:nth-child(2)  { animation-delay: .08s; }
.v2-bar:nth-child(3)  { animation-delay: .11s; }
.v2-bar:nth-child(4)  { animation-delay: .14s; }
.v2-bar:nth-child(5)  { animation-delay: .17s; }
.v2-bar:nth-child(6)  { animation-delay: .2s;  }
.v2-bar:nth-child(7)  { animation-delay: .23s; }
.v2-bar:nth-child(8)  { animation-delay: .26s; }
.v2-bar:nth-child(9)  { animation-delay: .29s; }
.v2-bar:nth-child(10) { animation-delay: .32s; }
.v2-bar:nth-child(11) { animation-delay: .35s; }
.v2-bar:nth-child(12) { animation-delay: .38s; }
.v2-bar:nth-child(13) { animation-delay: .41s; }
.v2-bar:nth-child(14) { animation-delay: .44s; }
.v2-bar:nth-child(15) { animation-delay: .47s; opacity: 1; }
@keyframes v2rise {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); }
}

/* ———————— 6) Funnel ———————— */
.v2-funnel {
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 10px;
}
.v2-funnel-row {
  display: flex; align-items: center; gap: 12px;
}
.v2-funnel-label {
  width: 80px; font-size: 12px; font-weight: 600; color: var(--ink-700);
}
.v2-funnel-bar {
  flex: 1; height: 28px; border-radius: 6px;
  background: rgba(56,65,87,0.05);
  position: relative; overflow: hidden;
}
.v2-funnel-bar::after {
  content: ''; position: absolute; inset: 0;
  width: var(--w);
  background: linear-gradient(90deg, var(--primary-light), var(--primary));
  border-radius: 6px;
  transform: scaleX(0);
  transform-origin: left;
}
.v2-row.in-view .v2-funnel-bar::after {
  animation: v2grow 1.1s cubic-bezier(.2,.7,.3,1) forwards;
}
.v2-row.in-view .v2-funnel-row:nth-child(1) .v2-funnel-bar::after { animation-delay: .08s; }
.v2-row.in-view .v2-funnel-row:nth-child(2) .v2-funnel-bar::after { animation-delay: .20s; }
.v2-row.in-view .v2-funnel-row:nth-child(3) .v2-funnel-bar::after { animation-delay: .32s; }
.v2-row.in-view .v2-funnel-row:nth-child(4) .v2-funnel-bar::after { animation-delay: .44s; }
.v2-row.in-view .v2-funnel-row:nth-child(5) .v2-funnel-bar::after { animation-delay: .56s; }
.v2-funnel-bar-hero::after {
  background: linear-gradient(90deg, var(--primary), var(--primary-hover));
  box-shadow: 0 0 0 1px var(--primary-hover) inset;
}
@keyframes v2grow {
  from { transform: scaleX(0); transform-origin: left; }
  to   { transform: scaleX(1); }
}
.v2-funnel-val {
  width: 64px; text-align: right;
  font-size: 13px; font-weight: 700; color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}
.v2-funnel-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px;
  border-top: 1px solid rgba(227,230,238,0.6);
  background: #fafbff;
  font-size: 12px; color: var(--ink-700);
}
.v2-funnel-foot b { color: var(--ink-900); }

/* ———————— 7) Sequence ———————— */
.v2-sequence {
  padding: 18px;
  display: flex; flex-direction: column; gap: 0;
  position: relative;
}
.v2-seq-step {
  display: flex; gap: 14px; padding: 14px 0;
  position: relative;
}
.v2-seq-step:not(:last-child)::before {
  content: ''; position: absolute;
  left: 15px; top: 42px; bottom: -14px;
  width: 2px; background: rgba(227,230,238,0.8);
}
.v2-seq-step.v2-seq-done:not(:last-child)::before {
  background: var(--primary);
}
.v2-seq-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(56,65,87,0.06);
  color: var(--ink-500);
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  flex-shrink: 0; z-index: 1;
}
.v2-seq-done .v2-seq-icon {
  background: var(--primary); color: #fff;
}
.v2-seq-active .v2-seq-icon {
  background: var(--primary-50);
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: 0 0 0 4px var(--primary-50);
}
.v2-seq-pulse {
  display: block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary);
  animation: v2seqpulse 1.5s ease-in-out infinite;
}
@keyframes v2seqpulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.4); opacity: 0.5; }
}
.v2-seq-body { flex: 1; padding-top: 4px; }
.v2-seq-title {
  font-size: 13px; font-weight: 600; color: var(--ink-900);
  line-height: 1.3;
}
.v2-seq-meta {
  font-size: 11px; color: var(--ink-500);
  margin-top: 2px;
}
.v2-seq-active .v2-seq-title { color: var(--primary-hover); }

/* ———————— 8) Slides ———————— */
.v2-slides-wrap {
  position: relative; width: 100%;
  aspect-ratio: 16/10;
  display: grid; place-items: center;
}
.v2-slide {
  position: absolute;
  aspect-ratio: 4/3;
  background: #fff; border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
}
.v2-slide-back {
  width: 50%;
  box-shadow: 0 10px 30px rgba(56,65,87,0.1);
}
.v2-slide-1 {
  left: 6%; top: 14%;
  transform: rotate(-5deg);
  z-index: 1;
  opacity: 0.8;
}
.v2-slide-3 {
  right: 6%; top: 14%;
  transform: rotate(5deg);
  z-index: 1;
  opacity: 0.8;
}
.v2-slide-main {
  width: 62%;
  z-index: 2;
  box-shadow:
    0 20px 50px rgba(56,65,87,0.12),
    0 40px 80px -20px rgba(119,126,245,0.15);
  border-color: rgba(119,126,245,0.2);
}
.v2-slide-eyebrow {
  font-size: 11px; font-weight: 700; color: var(--primary);
  letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 10px;
}
.v2-slide-title {
  font-size: 20px; font-weight: 700; color: var(--ink-900);
  line-height: 1.1; letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.v2-slide-chart {
  display: flex; align-items: flex-end; gap: 4px;
  height: 50px; margin-bottom: 6px;
}
.v2-sbar {
  flex: 1; height: var(--h); min-height: 4px;
  background: linear-gradient(180deg, var(--primary-light), var(--primary));
  border-radius: 2px 2px 0 0;
  animation: v2rise .7s ease-out backwards;
}
.v2-sbar:nth-child(1) { animation-delay: .1s; }
.v2-sbar:nth-child(2) { animation-delay: .15s; }
.v2-sbar:nth-child(3) { animation-delay: .2s; }
.v2-sbar:nth-child(4) { animation-delay: .25s; }
.v2-sbar:nth-child(5) { animation-delay: .3s; }
.v2-sbar:nth-child(6) { animation-delay: .35s; }
.v2-slide-caption {
  font-size: 10px; color: var(--ink-500);
  font-weight: 500;
}
.v2-slide-bar {
  width: 40%; height: 6px; border-radius: 3px;
  background: var(--primary); margin-bottom: 10px;
}
.v2-slide-line {
  width: 70%; height: 3px; border-radius: 2px;
  background: rgba(56,65,87,0.1); margin-bottom: 6px;
}
.v2-slide-line.short { width: 50%; }
.v2-slide-counter {
  position: absolute; bottom: 4%; right: 6%;
  padding: 5px 10px; border-radius: 999px;
  background: var(--ink-900); color: #fff;
  font-size: 11px; font-weight: 600;
  font-variant-numeric: tabular-nums;
  z-index: 3;
}

/* ———————— 9) Browser (Website) ———————— */
.v2-browser {
  background: #fff; border-radius: 12px;
  border: 1px solid rgba(227,230,238,0.8);
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(56,65,87,0.04),
    0 20px 50px -10px rgba(56,65,87,0.1);
}
.v2-browser-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: #fafbff;
  border-bottom: 1px solid rgba(227,230,238,0.6);
}
.v2-url {
  flex: 1; padding: 6px 12px;
  background: #fff;
  border: 1px solid rgba(227,230,238,0.8);
  border-radius: 999px;
  font-size: 11px; color: var(--ink-700);
  font-weight: 500;
  text-align: center;
  font-family: ui-monospace, 'SF Mono', monospace;
}
.v2-url-secure {
  color: var(--ink-500);
  margin-right: 4px;
  font-family: var(--font);
}
.v2-browser-body { padding: 0; }
.v2-site-nav {
  display: flex; align-items: center; gap: 20px;
  padding: 16px 24px;
  border-bottom: 1px solid rgba(227,230,238,0.6);
  font-size: 11px; color: var(--ink-700); font-weight: 500;
}
.v2-site-logo { font-size: 13px; font-weight: 700; color: var(--ink-900); letter-spacing: -0.01em; }
.v2-site-links { flex: 1; display: flex; gap: 16px; }
.v2-site-cta {
  padding: 5px 12px; border-radius: 6px;
  background: var(--ink-900); color: #fff;
  font-size: 11px; font-weight: 600;
}
.v2-site-hero {
  padding: 32px 24px 28px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(119,126,245,0.08), transparent);
}
.v2-site-title {
  font-size: 22px; font-weight: 700; line-height: 1.05;
  letter-spacing: -0.025em; color: var(--ink-900);
  margin-bottom: 10px;
}
.v2-site-title-em {
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.v2-site-sub {
  font-size: 11px; color: var(--ink-700);
  margin-bottom: 14px;
}
.v2-site-buttons {
  display: flex; justify-content: center; gap: 8px;
}
.v2-site-primary {
  padding: 7px 14px; border-radius: 8px;
  background: var(--primary); color: #fff;
  font-size: 11px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(119,126,245,0.2);
}
.v2-site-secondary {
  padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 11px; font-weight: 600; color: var(--ink-900);
}
.v2-site-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; padding: 18px 24px 24px;
}
.v2-site-card {
  aspect-ratio: 4/3; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border: 1px solid rgba(227,230,238,0.6);
  position: relative; overflow: hidden;
}
.v2-site-card::before {
  content: ''; position: absolute;
  top: 30%; left: 20%; right: 20%; height: 4px;
  background: var(--primary); border-radius: 2px;
}
.v2-site-card::after {
  content: ''; position: absolute;
  top: 46%; left: 20%; width: 50%; height: 3px;
  background: var(--ink-400); border-radius: 2px; opacity: 0.4;
}

/* ———————— 10) Video ———————— */
.v2-video {
  position: relative;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a2e 0%, #6C47FF 100%);
  display: grid; place-items: center;
  overflow: hidden;
}
.v2-video-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle 200px at 30% 30%, rgba(199,185,250,0.4), transparent),
    radial-gradient(circle 160px at 70% 70%, rgba(167,171,249,0.3), transparent);
}
.v2-video-play {
  position: relative; z-index: 1;
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(255,255,255,0.95);
  display: grid; place-items: center;
  color: #1a1a2e;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  backdrop-filter: blur(10px);
  transition: transform .2s;
}
.v2-video-play svg { width: 24px; height: 24px; margin-left: 3px; }
.v2-row:hover .v2-video-play { transform: scale(1.08); }
.v2-video-overlay {
  position: absolute; bottom: 28px; left: 24px; right: 24px;
  z-index: 1;
}
.v2-video-caption {
  display: inline-block;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  color: #fff; font-size: 12px; font-weight: 500;
  border: 1px solid rgba(255,255,255,0.2);
}
.v2-video-bar {
  position: absolute; left: 16px; right: 16px; bottom: 14px;
  height: 3px; border-radius: 2px;
  background: rgba(255,255,255,0.25);
  overflow: hidden;
  z-index: 1;
}
.v2-video-progress {
  width: 56%; height: 100%;
  background: #fff; border-radius: 2px;
}
.v2-video-time {
  position: absolute; right: 16px; bottom: 22px;
  font-size: 10px; color: rgba(255,255,255,0.8); font-weight: 600;
  z-index: 1;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, monospace;
}
.v2-card-foot {
  display: flex; gap: 6px; flex-wrap: wrap;
  padding: 14px 18px;
}

/* ———————— 11) Digital Twin ———————— */
.v2-twin-head {
  display: flex; gap: 16px;
  padding: 24px 20px 20px;
  border-bottom: 1px solid rgba(227,230,238,0.6);
  background:
    radial-gradient(circle 200px at 20% 20%, rgba(119,126,245,0.08), transparent);
}
.v2-twin-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, #C6B9FA, #6C47FF);
  color: #fff; font-size: 26px; font-weight: 700;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(119,126,245,0.3);
  position: relative;
}
.v2-twin-avatar::after {
  content: ''; position: absolute;
  bottom: 2px; right: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #10B981;
  border: 3px solid #fff;
}
.v2-twin-body { flex: 1; padding-top: 2px; }
.v2-twin-name {
  font-size: 17px; font-weight: 700; color: var(--ink-900);
  letter-spacing: -0.01em;
}
.v2-twin-meta {
  font-size: 12px; color: var(--ink-500); margin: 2px 0 10px;
}
.v2-twin-pills { display: flex; gap: 5px; flex-wrap: wrap; }

.v2-twin-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: rgba(227,230,238,0.6);
  border-bottom: 1px solid rgba(227,230,238,0.6);
}
.v2-twin-stat {
  padding: 16px; background: #fff;
}
.v2-twin-stat-label {
  font-size: 11px; font-weight: 600; color: var(--ink-500);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 6px;
}
.v2-twin-stat-value {
  font-size: 22px; font-weight: 700; color: var(--ink-900);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.v2-twin-activity {
  padding: 14px 20px;
}
.v2-twin-act {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 0;
  font-size: 12px; color: var(--ink-700);
}

/* ———————— 12) Design Tokens ———————— */
.v2-tokens-group {
  padding: 18px 20px;
}
.v2-tokens-group + .v2-tokens-group {
  border-top: 1px solid rgba(227,230,238,0.6);
}
.v2-tokens-label {
  font-size: 11px; font-weight: 600; color: var(--ink-500);
  letter-spacing: 0.04em; text-transform: uppercase;
  margin-bottom: 12px;
}
.v2-tokens-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.v2-token {
  height: 54px; border-radius: 10px;
  display: flex; align-items: flex-end;
  padding: 8px;
  color: #fff; font-size: 10px; font-weight: 600;
  font-family: ui-monospace, monospace;
  position: relative;
  overflow: hidden;
}
.v2-token::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.1), transparent 50%);
}
.v2-token span { position: relative; z-index: 1; }

.v2-type-scale {
  display: flex; flex-direction: column; gap: 12px;
}
.v2-type-item {
  display: flex; align-items: baseline; gap: 14px;
}
.v2-type-item > span:first-child {
  color: var(--ink-900);
  min-width: 40px;
}
.v2-type-meta {
  font-size: 11px; color: var(--ink-500);
  font-family: ui-monospace, monospace;
}

/* ———————— Responsive ———————— */
@media (max-width: 960px) {
  .v2-showcase { padding: 80px 0 60px; }
  .v2-intro { margin-bottom: 60px; }
  .v2-row {
    grid-template-columns: 1fr !important;
    gap: 32px; padding: 56px 0;
  }
  .v2-row.v2-reverse .v2-row-text { order: 1; }
  .v2-row.v2-reverse .v2-row-visual { order: 2; }
  .v2-row-text { max-width: 100%; }
  .v2-row-num { margin-bottom: 16px; }
}
@media (max-width: 640px) {
  .v2-showcase { padding: 60px 0 40px; }
  .v2-intro-title { font-size: 36px; }
  .v2-row { padding: 40px 0; gap: 24px; }
  .v2-row-title { font-size: 24px; }
  .v2-slide-title { font-size: 16px; }
  .v2-kpi-value, .v2-twin-stat-value { font-size: 20px; }
  .v2-phone { width: 220px; }
}

/* ============================= SECTION BASE ============================= */
.section { padding: 100px 0; position: relative; }
.section.alt { background: rgba(247,248,252,0.85); backdrop-filter: blur(2px); }
.section-head { text-align: center; margin-bottom: 56px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--primary-50); color: var(--primary);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.section-title {
  margin: 0 auto 16px; max-width: 720px;
  font-size: clamp(24px, 3vw, 37px);
  font-weight: 700; line-height: 1.15;
  letter-spacing: -0.02em; color: var(--ink-900);
}
.section-title em {
  font-style: normal;
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.section-sub {
  margin: 0 auto; max-width: 620px;
  font-size: 17px; line-height: 1.55; color: var(--ink-700);
}

/* ============================= CHANNELS — LIQUID GLASS GRID ============================= */
.ch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  perspective: 1200px;
}
.ch-card {
  position: relative;
  border-radius: 20px;
  padding: 2px;                /* acts as the glass frame */
  transition: transform .4s cubic-bezier(.2,.7,.3,1);
  transform-style: preserve-3d;
  will-change: transform;
}
.ch-card::before {
  /* animated rainbow ring revealed on hover */
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--ang, 0deg), transparent 0%, var(--brand-tint, rgba(119,126,245,0.6)) 20%, transparent 40%, transparent 60%, var(--brand-tint, rgba(119,126,245,0.4)) 80%, transparent 100%);
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
          mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s;
}
.ch-card:hover::before { opacity: 1; animation: chRotate 5s linear infinite; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes chRotate { to { --ang: 360deg; } }

.ch-card-inner {
  position: relative;
  display: flex; flex-direction: column; gap: 12px;
  padding: 26px 20px 20px;
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 -1px 0 rgba(167,171,249,0.08) inset,
    0 10px 30px rgba(56, 65, 87, 0.06),
    0 3px 10px rgba(56, 65, 87, 0.04);
  overflow: hidden;
  isolation: isolate;
  min-height: 220px;
  transition: box-shadow .4s, transform .4s cubic-bezier(.2,.7,.3,1);
}
.ch-card:hover .ch-card-inner {
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 20px 52px rgba(119, 126, 245, 0.16),
    0 6px 18px rgba(56, 65, 87, 0.08);
  transform: translateY(-4px);
}

/* Brand icon — floating 3D glass image, no background tile */
.ch-brand {
  position: relative;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  transition: transform .45s cubic-bezier(.2,.7,.3,1);
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(56,65,87,0.12));
}
.ch-card:hover .ch-brand {
  transform: translateY(-2px) scale(1.06) rotate(-2deg);
  filter: drop-shadow(0 10px 22px rgba(119,126,245,0.22));
}
.ch-brand img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

.ch-name {
  font-size: 15px; font-weight: 700; color: var(--ink-900);
  line-height: 1.25; margin: 2px 0 0;
  letter-spacing: -0.01em;
}
.ch-desc {
  font-size: 13px; line-height: 1.45; color: var(--ink-500);
  margin: 0; flex: 1;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.ch-feats {
  font-size: 11px; font-weight: 600; color: var(--primary);
  letter-spacing: 0.01em;
  padding-top: 10px;
  border-top: 1px solid rgba(167,171,249,0.25);
}
.ch-arrow {
  position: absolute; top: 20px; right: 20px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  color: var(--ink-500);
  background: rgba(255,255,255,0.5);
  border: 1px solid rgba(255,255,255,0.7);
  opacity: 0; transform: translate(6px, -4px);
  transition: all .35s cubic-bezier(.2,.7,.3,1);
  backdrop-filter: blur(8px);
}
.ch-arrow svg { width: 14px; height: 14px; }
.ch-card:hover .ch-arrow {
  opacity: 1; transform: translate(0, 0);
  color: var(--primary);
  background: rgba(255,255,255,0.85);
  border-color: rgba(167, 171, 249, 0.6);
}

/* Entrance animation — stagger fade+rise, triggered once when grid comes into view */
.ch-grid.ch-in .ch-card {
  animation: chEnter .65s cubic-bezier(.2,.7,.3,1) both;
}
.ch-grid.ch-in .ch-card:nth-child(1)  { animation-delay: .00s; }
.ch-grid.ch-in .ch-card:nth-child(2)  { animation-delay: .04s; }
.ch-grid.ch-in .ch-card:nth-child(3)  { animation-delay: .08s; }
.ch-grid.ch-in .ch-card:nth-child(4)  { animation-delay: .12s; }
.ch-grid.ch-in .ch-card:nth-child(5)  { animation-delay: .16s; }
.ch-grid.ch-in .ch-card:nth-child(6)  { animation-delay: .20s; }
.ch-grid.ch-in .ch-card:nth-child(7)  { animation-delay: .24s; }
.ch-grid.ch-in .ch-card:nth-child(8)  { animation-delay: .28s; }
.ch-grid.ch-in .ch-card:nth-child(9)  { animation-delay: .32s; }
.ch-grid.ch-in .ch-card:nth-child(10) { animation-delay: .36s; }
.ch-grid.ch-in .ch-card:nth-child(11) { animation-delay: .40s; }
.ch-grid.ch-in .ch-card:nth-child(12) { animation-delay: .44s; }
.ch-grid.ch-in .ch-card:nth-child(13) { animation-delay: .48s; }
.ch-grid.ch-in .ch-card:nth-child(14) { animation-delay: .52s; }
.ch-grid.ch-in .ch-card:nth-child(15) { animation-delay: .56s; }
.ch-grid.ch-in .ch-card:nth-child(16) { animation-delay: .60s; }
.ch-grid.ch-in .ch-card:nth-child(17) { animation-delay: .64s; }
.ch-grid.ch-in .ch-card:nth-child(18) { animation-delay: .68s; }
.ch-grid.ch-in .ch-card:nth-child(19) { animation-delay: .72s; }
.ch-grid.ch-in .ch-card:nth-child(20) { animation-delay: .76s; }
@keyframes chEnter {
  from { opacity: 0; transform: translateY(22px) scale(.96); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

@media (max-width: 1100px) { .ch-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 780px)  { .ch-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px)  {
  .ch-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .ch-card-inner { padding: 16px 14px 14px; min-height: 200px; }
  .ch-brand { width: 48px; height: 48px; }
  .ch-brand-icon { width: 26px; height: 26px; }
  .ch-name { font-size: 13px; }
  .ch-desc { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ch-card, .ch-card-inner, .ch-brand, .ch-card::before { animation: none !important; transition: none !important; }
}

/* ============================= AGENT TEMPLATES ============================= */
.tpl-agent-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.tpl-agent-filters {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.tpl-filter-pill {
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px; font-weight: 500;
  color: #4c5876;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.tpl-filter-pill:hover { border-color: var(--primary-light); }
.tpl-filter-pill.active {
  border-color: #a7abf9;
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 600;
}
.tpl-agent-search {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  height: 40px; min-width: 320px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  flex: 1; max-width: 620px;
}
.tpl-agent-search svg { width: 18px; height: 18px; color: var(--ink-700); flex-shrink: 0; }
.tpl-agent-search input {
  flex: 1;
  border: 0; outline: none; background: transparent;
  font-size: 15px; color: var(--ink-900);
  font-family: inherit;
}
.tpl-agent-search input::placeholder { color: #7d8aab; }

.tpl-agent-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.tpl-agent-card {
  background: #fff;
  border: 1px solid #e3e6ee;
  border-radius: 16px;
  padding: 8px;
  display: flex; flex-direction: column; gap: 12px;
  transition: all .2s ease;
  overflow: hidden;
}
.tpl-agent-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-light);
  box-shadow: 0 12px 32px rgba(56,65,87,0.1);
}
.tpl-agent-img {
  position: relative;
  width: 100%;
  aspect-ratio: 287 / 168;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 4px 14px rgba(56, 65, 87, 0.08);
}
.tpl-agent-img::after {
  /* subtle glass sheen overlay on top of the image */
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 40%, rgba(255,255,255,0) 60%, rgba(255,255,255,0.1) 100%);
  pointer-events: none;
  mix-blend-mode: overlay;
}
.tpl-agent-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.tpl-agent-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 65%;
  background: linear-gradient(180deg, rgba(119,126,245,0) 0%, rgba(119,126,245,0.75) 100%);
  pointer-events: none;
}
.tpl-agent-body {
  padding: 0 8px 8px;
  display: flex; flex-direction: column; gap: 6px;
}
.tpl-agent-title {
  font-size: 14px; font-weight: 500;
  color: #384157; line-height: 1.4;
}
.tpl-agent-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.tpl-agent-tag {
  padding: 2px 8px 3px;
  border: 1px solid #f1f2fe;
  border-radius: 14px;
  font-size: 12px; font-weight: 500;
  color: #a7abf9;
  line-height: 1.4;
  white-space: nowrap;
}
.tpl-agent-desc {
  margin: 0;
  font-size: 12px; font-weight: 400;
  color: #7d8aab;
  line-height: 1.4;
}
.tpl-agent-card.hidden { display: none; }

.tpl-agent-loadmore-wrap {
  display: flex; justify-content: center;
  margin-top: 24px;
}
.tpl-agent-loadmore {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px;
  background: #e8e9ff;
  border: 0; border-radius: 10px;
  font-size: 13px; font-weight: 500;
  color: var(--primary);
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.tpl-agent-loadmore:hover { background: #dadcff; }
.tpl-agent-loadmore svg { width: 16px; height: 16px; }

@media (max-width: 1200px) {
  .tpl-agent-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .tpl-agent-grid { grid-template-columns: repeat(3, 1fr); }
  .tpl-agent-search { min-width: 0; width: 100%; }
}
@media (max-width: 640px) {
  .tpl-agent-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tpl-filter-pill { padding: 6px 10px; font-size: 12px; }
}

/* ============================= AI TEAM ============================= */
.team-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px 28px;
  margin-bottom: 20px;
}
.team-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.team-panel-title {
  margin: 0;
  font-size: 20px; font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.team-toolbar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
}
.team-filters {
  display: flex; gap: 10px; flex-wrap: wrap;
}
.team-pill {
  padding: 6px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px; font-weight: 500;
  color: #4c5876;
  cursor: pointer;
  transition: all .15s;
  font-family: inherit;
}
.team-pill:hover { border-color: var(--primary-light); }
.team-pill.active {
  border-color: #a7abf9;
  background: var(--primary-50);
  color: var(--primary);
  font-weight: 600;
}
.team-search {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px;
  height: 40px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  flex: 1; min-width: 260px; max-width: 560px;
}
.team-search svg { width: 18px; height: 18px; color: #7d8aab; flex-shrink: 0; }
.team-search input {
  flex: 1;
  border: 0; outline: none; background: transparent;
  font-size: 15px; color: var(--ink-900);
  font-family: inherit;
}
.team-search input::placeholder { color: #7d8aab; }
.team-select {
  appearance: none; -webkit-appearance: none;
  padding: 0 36px 0 14px;
  height: 40px;
  background: #fff url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'><path d='M3 4.5L6 7.5L9 4.5' stroke='%237d8aab' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 12px center;
  border: 1px solid var(--border);
  border-radius: 16px;
  font-size: 15px; color: var(--ink-900);
  font-family: inherit;
  min-width: 200px;
  cursor: pointer;
}
.team-select:disabled { cursor: default; color: var(--ink-900); }

/* Agent cards grid — 5 in a row on desktop */
.agents-team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.agent-card {
  background: #fff;
  border: 1px solid #e3e6ee;
  border-radius: 16px;
  padding: 12px;
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 136px;
  transition: all .15s;
  overflow: hidden;
}
.agent-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 6px 20px rgba(56,65,87,0.06);
}
.agent-card.hidden { display: none; }
.agent-body { display: flex; flex-direction: column; gap: 12px; }
.agent-top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.agent-avatar {
  width: 44px; height: 44px; border-radius: 12px;
  overflow: hidden; flex-shrink: 0;
  position: relative;
  background: #f1f2fe;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 3px 10px rgba(119,126,245,0.12);
  transition: transform .3s cubic-bezier(.2,.7,.3,1);
}
.agent-avatar::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 45%);
  pointer-events: none;
  z-index: 2;
}
.agent-card:hover .agent-avatar { transform: scale(1.06) rotate(-2deg); }
.agent-avatar img {
  display: block; width: 100%; height: 100%; object-fit: cover;
}
.agent-info { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.agent-name {
  font-size: 14px; font-weight: 500;
  color: #384157;
  line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.agent-role {
  font-size: 12px; font-weight: 400;
  color: #7d8aab;
  line-height: 1.4;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.agent-mid {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px;
}
.agent-pill-cat {
  padding: 2px 8px 3px;
  border-radius: 14px;
  font-size: 12px; font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.agent-status {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 2px 8px 3px;
  font-size: 12px; font-weight: 500;
  color: #4c5876;
  line-height: 1.4;
}
.agent-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: #7AE575;
  flex-shrink: 0;
}
.agent-divider {
  height: 1px; background: #e3e6ee;
  margin: 0;
}
.agent-foot {
  display: flex; align-items: center; gap: 4px;
  font-size: 12px; font-weight: 400;
  color: #7d8aab;
  line-height: 1.4;
  padding-top: 8px;
}
.agent-foot-ic { width: 14px; height: 14px; color: #a7abf9; flex-shrink: 0; }

/* Skills grid — Figma: card w=279, h=160, gap=12 */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.skill-card {
  background: #fff;
  border: 1px solid #e3e6ee;
  border-radius: 16px;
  padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
  min-height: 160px;
  transition: all .15s;
}
.skill-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 6px 20px rgba(56,65,87,0.06);
}
.skill-card.hidden { display: none; }
.skill-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 -1px 0 rgba(119,126,245,0.08) inset,
    0 4px 12px rgba(119,126,245,0.10);
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 2px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s;
}
.skill-icon::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(167,171,249,0.25), rgba(119,126,245,0.12) 50%, transparent 100%);
  pointer-events: none;
}
.skill-card:hover .skill-icon {
  transform: scale(1.08) rotate(-3deg);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 8px 20px rgba(119,126,245,0.22);
}
.skill-icon svg { width: 20px; height: 20px; position: relative; z-index: 1; }
.skill-name {
  font-size: 14px; font-weight: 500;
  color: #384157;
  line-height: 1.4;
}
.skill-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.skill-tag {
  padding: 2px 8px 3px;
  border: 1px solid #f1f2fe;
  border-radius: 14px;
  font-size: 12px; font-weight: 500;
  color: #a7abf9;
  line-height: 1.4;
  white-space: nowrap;
}
.skill-desc {
  margin: auto 0 0;
  font-size: 12px; font-weight: 400;
  color: #7d8aab;
  line-height: 1.45;
}

@media (max-width: 1400px) {
  .agents-team-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .skills-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .agents-team-grid, .skills-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .agents-team-grid, .skills-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .team-panel { padding: 20px; }
}
@media (max-width: 720px) {
  .agents-team-grid, .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-search { min-width: 0; width: 100%; }
  .team-panel { padding: 16px; }
}
/* Stay on 2 columns on phones — single column looks lost */

/* ============================= CAPABILITIES ============================= */
.capabilities-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.cap-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: all .2s;
}
.cap-card:hover {
  border-color: var(--primary-light);
  box-shadow: 0 6px 20px rgba(56,65,87,0.05);
  transform: translateY(-2px);
}
.cap-header { display: flex; align-items: center; gap: 12px; }
.cap-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--primary-50); color: var(--primary-hover);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.cap-icon svg { width: 22px; height: 22px; }
.cap-title { font-size: 17px; font-weight: 700; color: var(--ink-900); margin: 0; }
.cap-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.cap-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--ink-700);
}
.cap-list li::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%;
  background: var(--primary-50);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 20 20' fill='none'><path d='M16.67 5L7.5 14.17L3.33 10' stroke='%23777EF5' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat; background-position: center;
  flex-shrink: 0;
}

/* ============================= TEMPLATES ============================= */
.templates-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.tpl-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  transition: all .2s;
  display: flex; flex-direction: column;
}
.tpl-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(56,65,87,0.08);
}
.tpl-cover {
  aspect-ratio: 16/10; position: relative;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  display: grid; place-items: center;
  overflow: hidden;
}
.tpl-cover svg {
  width: 56px; height: 56px; color: var(--primary-hover); opacity: 0.4;
  filter: drop-shadow(0 4px 12px rgba(119,126,245,0.3));
  position: relative; z-index: 1;
}
.tpl-cover::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle 120px at 80% 20%, rgba(255,255,255,0.8), transparent),
    radial-gradient(circle 100px at 20% 80%, rgba(119,126,245,0.2), transparent);
}
.tpl-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tpl-meta { display: flex; gap: 6px; flex-wrap: wrap; }
.tpl-chan {
  padding: 3px 8px; border-radius: 999px;
  background: var(--primary-50); color: var(--primary);
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; border: 1px solid var(--primary-100);
}
.tpl-chan.gray { background: #f5f6fa; color: var(--ink-700); border-color: var(--border); }
.tpl-title { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink-900); line-height: 1.35; }
.tpl-desc { margin: 0; font-size: 13px; line-height: 1.5; color: var(--ink-700); }
.tpl-foot {
  margin-top: auto; padding-top: 8px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--ink-500);
}

/* ============================= BLOG CAROUSEL ============================= */
.blog-carousel-wrap {
  position: relative;
}
.blog-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 2px 24px;
  margin: 0 -4px;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-light) transparent;
}
.blog-carousel::-webkit-scrollbar { height: 8px; }
.blog-carousel::-webkit-scrollbar-track { background: transparent; }
.blog-carousel::-webkit-scrollbar-thumb {
  background: var(--primary-light); border-radius: 4px;
}
.blog-carousel .blog-card {
  flex: 0 0 340px;
  scroll-snap-align: start;
}
.blog-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border);
  display: grid; place-items: center;
  cursor: pointer;
  color: var(--ink-900);
  box-shadow: 0 6px 20px rgba(56,65,87,0.08);
  z-index: 2;
  transition: all .15s;
}
.blog-arrow:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-50%) scale(1.05); }
.blog-arrow.prev { left: -22px; }
.blog-arrow.next { right: -22px; }
.blog-arrow svg { width: 22px; height: 22px; }
.blog-cover.c1 { background: linear-gradient(135deg, #777EF5 0%, #A7ABF9 100%); }
.blog-cover.c2 { background: linear-gradient(135deg, #384157 0%, #6C47FF 100%); }
.blog-cover.c3 { background: linear-gradient(135deg, #F1F2FE 0%, #C6B9FA 100%); }
.blog-cover.c4 { background: linear-gradient(135deg, #25d366 0%, #128c7e 100%); }
.blog-cover.c5 { background: linear-gradient(135deg, #2CB07A 0%, #777EF5 100%); }
.blog-cover.c6 { background: linear-gradient(135deg, #F97316 0%, #EA6F94 100%); }
.blog-cover.c7 { background: linear-gradient(135deg, #229ED9 0%, #384157 100%); }
@media (max-width: 640px) {
  .blog-carousel .blog-card { flex-basis: 280px; }
  .blog-arrow { display: none; }
}

/* ============================= BLOG (legacy grid CSS preserved for card internals) ============================= */
.blog-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 20px;
}
.blog-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .2s;
}
.blog-card:hover {
  border-color: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(56,65,87,0.08);
}
.blog-cover {
  aspect-ratio: 16/10; position: relative; overflow: hidden;
}
.blog-cover.featured { aspect-ratio: 16/11; }
.blog-cover.c1 { background: linear-gradient(135deg, #777EF5 0%, #A7ABF9 100%); }
.blog-cover.c2 { background: linear-gradient(135deg, #384157 0%, #6C47FF 100%); }
.blog-cover.c3 { background: linear-gradient(135deg, #F1F2FE 0%, #C6B9FA 100%); }
.blog-cover::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle 200px at 80% 20%, rgba(255,255,255,0.25), transparent),
    radial-gradient(circle 150px at 20% 90%, rgba(0,0,0,0.1), transparent);
}
.blog-cover-deco {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.blog-cover-deco svg.cover-mock {
  width: 82%;
  max-width: 300px;
  height: auto;
  display: block;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,0.12));
}
.cover-img { width: 100%; height: 100%; object-fit: cover; display: block; position: absolute; inset: 0; z-index: 1; }
.blog-cover, .news-cover { isolation: isolate; }

.blog-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-meta { display: flex; gap: 8px; align-items: center; font-size: 12px; color: var(--ink-500); font-weight: 500; }
.blog-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-500); }
.blog-meta .cat { color: var(--primary); font-weight: 600; }
.blog-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--ink-900); line-height: 1.3; letter-spacing: -0.01em; }
.blog-title.small { font-size: 16px; }
.blog-excerpt { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-700); }
.blog-author { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 8px; }
.blog-author .avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #C6B9FA, #A7ABF9);
}
.blog-author .name { font-size: 13px; font-weight: 600; color: var(--ink-900); }

/* ============================= GLOBAL ANIMATIONS ============================= */

/* Entrance for filterable cards — runs once on initial render, plus again on filter switch */
.tpl-agent-card, .agent-card, .skill-card {
  animation: cardIn .45s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
/* When user switches filter, container gets .is-filtering which replays the animation on visible cards */
.is-filtering .tpl-agent-card:not(.hidden),
.is-filtering .agent-card:not(.hidden),
.is-filtering .skill-card:not(.hidden) {
  animation: cardIn .4s cubic-bezier(.2,.7,.3,1) both;
}
/* Hidden cards should not take up space */
.tpl-agent-card.hidden, .agent-card.hidden, .skill-card.hidden { display: none; }

/* Active filter pill subtle pulse */
.tpl-filter-pill.active, .team-pill.active {
  animation: pillPulse .45s ease-out;
}
@keyframes pillPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
/* Reveal on scroll — elements fade + slide up when they enter the viewport */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1);
  will-change: opacity, transform;
}
[data-reveal].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Typewriter cursor */
.typewriter-cursor {
  display: inline-block;
  width: 2px; height: 1em;
  background: currentColor;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* Voice wave — pulse bars */
.voice-wave { display: inline-flex; gap: 3px; align-items: flex-end; height: 24px; }
.voice-wave span {
  display: block; width: 3px; border-radius: 2px;
  background: currentColor;
  animation: voiceBar 1.2s ease-in-out infinite;
}
.voice-wave span:nth-child(1) { height: 40%; animation-delay: -0.2s; }
.voice-wave span:nth-child(2) { height: 80%; animation-delay: -0.4s; }
.voice-wave span:nth-child(3) { height: 60%; animation-delay: -0.1s; }
.voice-wave span:nth-child(4) { height: 90%; animation-delay: -0.3s; }
.voice-wave span:nth-child(5) { height: 50%; animation-delay: -0.5s; }
.voice-wave span:nth-child(6) { height: 70%; animation-delay: 0s; }
.voice-wave span:nth-child(7) { height: 45%; animation-delay: -0.2s; }
@keyframes voiceBar {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1.1); }
}

/* Animated chart — recalculated at section-reveal time via CSS only */
.chart-anim { position: relative; height: 80px; display: flex; align-items: flex-end; gap: 6px; }
.chart-anim .bar {
  flex: 1; background: linear-gradient(180deg, var(--primary), var(--primary-hover));
  border-radius: 4px 4px 0 0;
  transform: scaleY(0); transform-origin: bottom;
  animation: barGrow 1.2s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes barGrow { to { transform: scaleY(1); } }

/* Chart line (SVG) stroke-dasharray reveal */
.chart-line-path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 2s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes drawLine { to { stroke-dashoffset: 0; } }

/* Floating metric number — counts up effect via CSS transitions isn't possible, but a subtle float is nice */
.metric-float { animation: floaty 4s ease-in-out infinite; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .voice-wave span, .chart-anim .bar, .chart-line-path, .metric-float,
  .typewriter-cursor { animation: none; }
}

/* ============================= SHOWCASE LIVE ANIMATIONS ============================= */
/* Every v2-row visual has specialised "alive" animations that run in loop or on reveal */

/* --- 01 Sales: chat bubbles stagger in --- */
.v2-row.in-view .v2-chat .v2-bubble {
  opacity: 0;
  transform: translateY(8px);
  animation: bubbleIn .5s cubic-bezier(.2,.7,.3,1) forwards;
}
.v2-row.in-view .v2-chat .v2-bubble:nth-child(1) { animation-delay: .15s; }
.v2-row.in-view .v2-chat .v2-bubble:nth-child(2) { animation-delay: .55s; }
.v2-row.in-view .v2-chat .v2-bubble:nth-child(3) { animation-delay: .95s; }
.v2-row.in-view .v2-chat .v2-bubble:nth-child(4) { animation-delay: 1.35s; }
.v2-row.in-view .v2-chat .v2-bubble:nth-child(5) { animation-delay: 1.85s; }
@keyframes bubbleIn {
  to { opacity: 1; transform: none; }
}

/* --- 03 Phone "CALLING" ring pulse + timer --- */
.v2-phone .v2-phone-avatar {
  position: relative;
}
.v2-phone .v2-phone-avatar::after {
  content: '';
  position: absolute; inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(119,126,245,0.5);
  animation: ringPulse 2s ease-out infinite;
}
.v2-phone .v2-phone-avatar::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(119,126,245,0.35);
  animation: ringPulse 2s ease-out infinite .5s;
}
@keyframes ringPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* --- 04 Code: cursor blink after last line --- */
.v2-code::after {
  content: '_';
  color: #fff;
  font-weight: 300;
  animation: blink 1s step-end infinite;
}

/* --- 05 Overview dashboard: number count-up look (scale slight) + bars grow --- */
.v2-row.in-view .v2-metric-value, .v2-row.in-view .v2-kpi-value {
  animation: metricPop .8s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes metricPop {
  0% { opacity: 0; transform: translateY(8px) scale(.94); }
  100% { opacity: 1; transform: none; }
}
.v2-row.in-view .v2-chart .v2-bar, .v2-row.in-view .v2-bars .v2-bars-bar {
  transform-origin: bottom;
  animation: barGrowY 1s cubic-bezier(.2,.7,.3,1) both;
}
.v2-row.in-view .v2-chart .v2-bar:nth-child(1),  .v2-row.in-view .v2-bars .v2-bars-bar:nth-child(1)  { animation-delay: .05s; }
.v2-row.in-view .v2-chart .v2-bar:nth-child(2),  .v2-row.in-view .v2-bars .v2-bars-bar:nth-child(2)  { animation-delay: .10s; }
.v2-row.in-view .v2-chart .v2-bar:nth-child(3),  .v2-row.in-view .v2-bars .v2-bars-bar:nth-child(3)  { animation-delay: .15s; }
.v2-row.in-view .v2-chart .v2-bar:nth-child(4),  .v2-row.in-view .v2-bars .v2-bars-bar:nth-child(4)  { animation-delay: .20s; }
.v2-row.in-view .v2-chart .v2-bar:nth-child(5),  .v2-row.in-view .v2-bars .v2-bars-bar:nth-child(5)  { animation-delay: .25s; }
.v2-row.in-view .v2-chart .v2-bar:nth-child(6),  .v2-row.in-view .v2-bars .v2-bars-bar:nth-child(6)  { animation-delay: .30s; }
.v2-row.in-view .v2-chart .v2-bar:nth-child(7),  .v2-row.in-view .v2-bars .v2-bars-bar:nth-child(7)  { animation-delay: .35s; }
.v2-row.in-view .v2-chart .v2-bar:nth-child(8),  .v2-row.in-view .v2-bars .v2-bars-bar:nth-child(8)  { animation-delay: .40s; }
.v2-row.in-view .v2-chart .v2-bar:nth-child(9),  .v2-row.in-view .v2-bars .v2-bars-bar:nth-child(9)  { animation-delay: .45s; }
.v2-row.in-view .v2-chart .v2-bar:nth-child(10), .v2-row.in-view .v2-bars .v2-bars-bar:nth-child(10) { animation-delay: .50s; }
.v2-row.in-view .v2-chart .v2-bar:nth-child(11), .v2-row.in-view .v2-bars .v2-bars-bar:nth-child(11) { animation-delay: .55s; }
.v2-row.in-view .v2-chart .v2-bar:nth-child(12), .v2-row.in-view .v2-bars .v2-bars-bar:nth-child(12) { animation-delay: .60s; }
.v2-row.in-view .v2-chart .v2-bar:nth-child(13), .v2-row.in-view .v2-bars .v2-bars-bar:nth-child(13) { animation-delay: .65s; }
.v2-row.in-view .v2-chart .v2-bar:nth-child(14), .v2-row.in-view .v2-bars .v2-bars-bar:nth-child(14) { animation-delay: .70s; }
.v2-row.in-view .v2-chart .v2-bar:nth-child(15) { animation-delay: .75s; }
@keyframes barGrowY {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* --- 06 Funnel horizontal bars fill in --- */
.v2-row.in-view .v2-funnel-fill {
  transform-origin: left;
  animation: funnelFill 1.1s cubic-bezier(.2,.7,.3,1) both;
}
.v2-row.in-view .v2-funnel-row:nth-child(1) .v2-funnel-fill { animation-delay: .1s; }
.v2-row.in-view .v2-funnel-row:nth-child(2) .v2-funnel-fill { animation-delay: .25s; }
.v2-row.in-view .v2-funnel-row:nth-child(3) .v2-funnel-fill { animation-delay: .40s; }
.v2-row.in-view .v2-funnel-row:nth-child(4) .v2-funnel-fill { animation-delay: .55s; }
.v2-row.in-view .v2-funnel-row:nth-child(5) .v2-funnel-fill { animation-delay: .70s; }
@keyframes funnelFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* --- 08 Slide deck bars grow --- */
.v2-row.in-view .v2-slide .v2-slide-bar {
  transform-origin: bottom;
  animation: barGrowY .9s cubic-bezier(.2,.7,.3,1) both;
}
.v2-row.in-view .v2-slide .v2-slide-bar:nth-child(1) { animation-delay: .10s; }
.v2-row.in-view .v2-slide .v2-slide-bar:nth-child(2) { animation-delay: .20s; }
.v2-row.in-view .v2-slide .v2-slide-bar:nth-child(3) { animation-delay: .30s; }
.v2-row.in-view .v2-slide .v2-slide-bar:nth-child(4) { animation-delay: .40s; }
.v2-row.in-view .v2-slide .v2-slide-bar:nth-child(5) { animation-delay: .50s; }
.v2-row.in-view .v2-slide .v2-slide-bar:nth-child(6) { animation-delay: .60s; }

/* --- 09 Website browser: cards fade up --- */
.v2-row.in-view .v2-site-grid > * {
  opacity: 0;
  animation: fadeUp .7s cubic-bezier(.2,.7,.3,1) forwards;
}
.v2-row.in-view .v2-site-grid > *:nth-child(1) { animation-delay: .25s; }
.v2-row.in-view .v2-site-grid > *:nth-child(2) { animation-delay: .40s; }
.v2-row.in-view .v2-site-grid > *:nth-child(3) { animation-delay: .55s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* --- 10 Video: progress bar loops + play button gentle pulse --- */
.v2-video-progress {
  position: relative;
  background: rgba(255,255,255,0.22);
  border-radius: 2px;
  overflow: hidden;
  height: 3px;
}
.v2-video-progress::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 56%;
  background: #fff;
  border-radius: 2px;
  animation: vidProgress 6s ease-in-out infinite;
}
@keyframes vidProgress {
  0%   { width: 10%; }
  50%  { width: 85%; }
  100% { width: 10%; }
}
.v2-video-play {
  animation: playPulse 2.4s ease-in-out infinite;
}
@keyframes playPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 40px rgba(0,0,0,0.25); }
  50% { transform: scale(1.07); box-shadow: 0 16px 50px rgba(0,0,0,0.32); }
}

/* --- 11 Digital twin: avatar ring pulse + status dot --- */
.v2-twin-avatar {
  position: relative;
}
.v2-twin-avatar::after {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(119,126,245,0.45);
  animation: ringPulse 2.2s ease-out infinite;
}

/* --- 12 Design tokens swatches: cascade in --- */
.v2-row.in-view .v2-tokens-grid > * {
  opacity: 0;
  animation: tokenPop .55s cubic-bezier(.2,.7,.3,1) forwards;
}
.v2-row.in-view .v2-tokens-grid > *:nth-child(1) { animation-delay: .05s; }
.v2-row.in-view .v2-tokens-grid > *:nth-child(2) { animation-delay: .12s; }
.v2-row.in-view .v2-tokens-grid > *:nth-child(3) { animation-delay: .19s; }
.v2-row.in-view .v2-tokens-grid > *:nth-child(4) { animation-delay: .26s; }
.v2-row.in-view .v2-tokens-grid > *:nth-child(5) { animation-delay: .33s; }
.v2-row.in-view .v2-tokens-grid > *:nth-child(6) { animation-delay: .40s; }
@keyframes tokenPop {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: none; }
}

/* --- All v2-card: lift subtly into view --- */
.v2-row .v2-card {
  transform: translateY(14px) scale(.98);
  opacity: 0;
  transition: opacity .8s cubic-bezier(.2,.7,.3,1), transform .8s cubic-bezier(.2,.7,.3,1);
}
.v2-row.in-view .v2-card {
  transform: none;
  opacity: 1;
}

/* Online/live status dots pulse everywhere */
.v2-status-dot, .v2-dot-live, .agent-dot, .v2-phone-status-dot {
  position: relative;
}
.v2-status-dot::after, .v2-dot-live::after, .agent-dot::after, .v2-phone-status-dot::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: currentColor;
  opacity: .6;
  animation: livePulse 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes livePulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* Hover: cards scale subtly */
.tpl-agent-card, .agent-card, .skill-card, .channel-card, .blog-card {
  will-change: transform;
}
.tpl-agent-card:hover, .agent-card:hover, .skill-card:hover,
.channel-card:hover, .blog-card:hover {
  transform: translateY(-3px);
}

/* Floating hero orbs — ensure they keep floating subtly */
.hero-orb.o1 { animation: orbFloat 14s ease-in-out infinite alternate; }
.hero-orb.o2 { animation: orbFloat 18s ease-in-out infinite alternate-reverse; }
.hero-orb.o3 { animation: orbFloat 12s ease-in-out infinite alternate; }
@keyframes orbFloat {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, -30px) scale(1.08); }
}

/* Headings with em — gradient that shimmers on reveal */
.section-title em, .hero-title em, .v2-intro-em, .v2-row-title em,
.v2-site-title-em, .cta-inner em {
  background: linear-gradient(90deg, var(--primary), var(--primary-hover), #A7ABF9, var(--primary));
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientShift 10s linear infinite;
  display: inline-block;
  padding-right: 0.12em;
  margin-right: -0.06em;
}
@keyframes gradientShift {
  from { background-position: 0% 50%; }
  to   { background-position: 300% 50%; }
}

@media (prefers-reduced-motion: reduce) {
  .v2-row .v2-card, .v2-row.in-view .v2-chat .v2-bubble,
  .v2-row.in-view .v2-bars .v2-bars-bar, .v2-row.in-view .v2-funnel-fill,
  .v2-row.in-view .v2-slide .v2-slide-bar, .v2-row.in-view .v2-site-cards > *,
  .v2-row.in-view .v2-tokens-grid > *, .v2-row.in-view .v2-metric-value {
    animation: none; opacity: 1; transform: none;
  }
  .hero-orb.o1, .hero-orb.o2, .hero-orb.o3,
  .section-title em, .hero-title em, .v2-video-progress::after,
  .v2-video-play, .v2-twin-avatar::after,
  .v2-status-dot::after, .v2-dot-live::after, .agent-dot::after,
  .v2-phone-status-dot::after, .v2-phone .v2-phone-avatar::after,
  .v2-phone .v2-phone-avatar::before, .v2-code::after { animation: none; }
}

/* ============================= CORPORATE FORM ============================= */
.corporate-section { background: rgba(247,248,252,0.85); backdrop-filter: blur(2px); }
.corporate-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.corporate-info .section-title { max-width: none; text-align: left; }
.corporate-info .section-sub { text-align: left; margin-left: 0; margin-right: 0; }
.corporate-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.corporate-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; color: var(--ink-700);
  font-weight: 500;
}
.corporate-list li svg {
  width: 18px; height: 18px;
  color: var(--primary);
  background: var(--primary-50);
  padding: 3px; border-radius: 50%;
  box-sizing: content-box;
  flex-shrink: 0;
}
.corporate-form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  box-shadow: 0 6px 24px rgba(56,65,87,0.04);
}
.corp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.corp-field { display: flex; flex-direction: column; gap: 6px; }
.corp-field > span {
  font-size: 13px; font-weight: 600;
  color: var(--ink-900);
}
.corp-field input, .corp-field select, .corp-field textarea {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink-900);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%; box-sizing: border-box;
}
.corp-field input:focus, .corp-field select:focus, .corp-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-shadow-sm);
}
.corp-field textarea { resize: vertical; min-height: 96px; font-family: inherit; }
.corp-field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'><path d='M3 4.5L6 7.5L9 4.5' stroke='%237d8aab' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}
.corp-consent {
  font-size: 13px; color: var(--ink-700);
  display: flex; align-items: flex-start; gap: 8px;
}
.corp-consent label {
  display: flex; align-items: flex-start; gap: 8px;
  cursor: pointer; line-height: 1.5;
}
.corp-consent input[type="checkbox"] {
  margin-top: 2px;
  width: 16px; height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}
.corp-consent a { color: var(--primary); text-decoration: underline; }
.corp-submit { width: 100%; margin-top: 4px; }
.corp-success {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  background: #d1fae5; color: #065f46;
  border-radius: 12px;
  font-size: 14px; font-weight: 500;
  animation: fadeIn .3s ease-out;
}
.corp-success svg { width: 20px; height: 20px; flex-shrink: 0; }
@media (max-width: 900px) {
  .corporate-wrap { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .corp-row { grid-template-columns: 1fr; }
  .corporate-form { padding: 24px 20px; }
}
.cta-band {
  background:
    radial-gradient(ellipse 60% 100% at 0% 50%, rgba(119,126,245,0.12), transparent),
    radial-gradient(ellipse 60% 100% at 100% 50%, rgba(167,171,249,0.15), transparent),
    #fff;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  padding: 80px 0;
}
.cta-inner {
  max-width: 900px; margin: 0 auto; text-align: center;
}
.cta-inner h2 {
  margin: 0 0 16px; font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.15; color: var(--ink-900);
}
.cta-inner p {
  margin: 0 auto 32px; max-width: 560px;
  font-size: 17px; line-height: 1.55; color: var(--ink-700);
}
.cta-buttons {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}

/* ============================= FOOTER ============================= */
.footer {
  background: rgba(15, 18, 32, 0.92);
  backdrop-filter: blur(4px);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 32px;
  position: relative;
}
.footer-top {
  display: grid; grid-template-columns: 1.6fr repeat(5, 1fr); gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; }
.footer-brand p {
  margin: 0; font-size: 14px; line-height: 1.6; color: rgba(255,255,255,0.6);
  max-width: 340px;
}
.footer-social { display: flex; gap: 8px; margin-top: 8px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 10px;
  background: rgba(255,255,255,0.05); color: #fff;
  display: grid; place-items: center;
  transition: background .15s;
}
.footer-social a:hover { background: var(--primary); }
.footer-social svg { width: 18px; height: 18px; }
.footer-col h5 {
  margin: 0 0 20px; font-size: 13px; font-weight: 700;
  color: #fff; letter-spacing: 0.04em;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  padding-top: 28px; display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: rgba(255,255,255,0.4); flex-wrap: wrap; gap: 12px;
}
.footer-bottom-links { display: flex; gap: 20px; }

/* ============================= AUTH MODAL ============================= */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(15,18,32,0.5);
  backdrop-filter: blur(6px);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  animation: fadeIn .25s ease-out;
}
.modal-overlay.open { display: flex; }
.modal {
  background: #fff; border-radius: 24px;
  width: min(440px, 100%);
  padding: 40px 32px 32px;
  box-shadow: 0 20px 60px rgba(56,65,87,0.25);
  position: relative;
  animation: modalIn .3s ease-out;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: 10px;
  color: var(--ink-500); display: grid; place-items: center;
  background: transparent; border: 0; cursor: pointer;
}
.modal-close:hover { background: var(--primary-50); color: var(--primary); }
.modal-close svg { width: 20px; height: 20px; }
.modal-brand {
  display: flex; justify-content: center;
  margin: 0 auto 20px;
}
.modal h3 {
  margin: 0 0 8px; text-align: center;
  font-size: 22px; font-weight: 700; color: var(--ink-900);
  letter-spacing: -0.01em;
}
.modal .modal-sub {
  margin: 0 0 24px; text-align: center;
  font-size: 14px; line-height: 1.5; color: var(--ink-700);
}
.modal .context-preview {
  margin-bottom: 24px; padding: 12px 14px;
  background: var(--primary-50); border: 1px solid var(--primary-100);
  border-radius: 12px;
  display: flex; align-items: center; gap: 10px;
}
.context-preview .cp-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.context-preview .cp-icon svg { width: 14px; height: 14px; }
.context-preview .cp-text { font-size: 13px; color: var(--ink-900); }
.context-preview .cp-text b { color: var(--primary); }
.auth-methods { display: flex; flex-direction: column; gap: 10px; }
.auth-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 48px; border-radius: 12px;
  font-size: 14px; font-weight: 600;
  transition: all .15s;
  border: 0; cursor: pointer;
}
.auth-btn.google {
  background: #fff; border: 1.5px solid var(--border); color: var(--ink-900);
}
.auth-btn.google:hover { border-color: var(--ink-500); }
.auth-btn.email {
  background: var(--primary); color: #fff;
}
.auth-btn.email:hover { background: var(--primary-hover); }
.auth-btn svg { width: 18px; height: 18px; }
.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0;
  font-size: 12px; color: var(--ink-500); font-weight: 500;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-foot {
  margin-top: 24px; text-align: center;
  font-size: 13px; color: var(--ink-700);
}
.auth-foot a { color: var(--primary); font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================= MOBILE MENU ============================= */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  visibility: hidden; opacity: 0;
  transition: opacity .28s ease, visibility .28s;
  pointer-events: none;
}
.mobile-menu.open {
  visibility: visible; opacity: 1;
  pointer-events: auto;
}
.mobile-menu-backdrop {
  position: absolute; inset: 0;
  background: rgba(56, 65, 87, 0.42);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mobile-menu-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(380px, 92vw);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(32px);
  -webkit-backdrop-filter: saturate(180%) blur(32px);
  border-left: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    -20px 0 60px rgba(56, 65, 87, 0.22);
  transform: translateX(20px);
  transition: transform .32s cubic-bezier(.2,.7,.3,1);
  display: flex; flex-direction: column;
  padding: 20px 18px 24px;
  gap: 16px;
}
.mobile-menu.open .mobile-menu-panel {
  transform: translateX(0);
}
.mobile-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 2px 4px 12px;
  border-bottom: 1px solid rgba(227, 230, 238, 0.6);
}
.mobile-menu-head .brand { font-size: 17px; }
.mobile-menu-close {
  width: 36px; height: 36px; border-radius: 999px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--ink-900); cursor: pointer;
  transition: all .15s;
}
.mobile-menu-close:hover { background: rgba(255, 255, 255, 0.7); color: var(--primary); }
.mobile-menu-nav {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; gap: 6px;
  padding-right: 2px;
}
.mm-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset, 0 2px 8px rgba(56, 65, 87, 0.03);
  color: var(--ink-900);
  transition: all .18s;
  width: 100%;
  text-align: left;
  cursor: pointer;
}
.mm-link:hover, .mm-link:active {
  background: rgba(119, 126, 245, 0.08);
  border-color: rgba(167, 171, 249, 0.5);
}
.mm-ic {
  flex-shrink: 0;
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--primary-50);
  color: var(--primary);
}
.mm-ic svg { width: 18px; height: 18px; }
.mm-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.mm-title { font-size: 15px; font-weight: 600; color: var(--ink-900); line-height: 1.25; }
.mm-sub { font-size: 12px; color: var(--ink-500); line-height: 1.3; }
.mm-chev {
  flex-shrink: 0; color: var(--ink-500);
  transition: transform .2s;
}
.mm-group.open > .mm-link .mm-chev { transform: rotate(90deg); color: var(--primary); }
.mm-group.open > .mm-link {
  background: rgba(119, 126, 245, 0.08);
  border-color: rgba(167, 171, 249, 0.5);
}
.mm-submenu {
  max-height: 0; overflow: hidden;
  transition: max-height .35s cubic-bezier(.2,.7,.3,1);
  padding: 0 4px;
}
.mm-group.open > .mm-submenu {
  max-height: 800px;
}
.mm-subgroup {
  margin: 8px 0 6px;
}
.mm-subgroup-title {
  font-size: 11px; font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 6px 12px 4px;
}
.mm-sublink {
  display: block;
  padding: 9px 12px;
  font-size: 14px; color: var(--ink-700);
  border-radius: 8px;
  transition: all .15s;
}
.mm-sublink:hover, .mm-sublink:active {
  background: rgba(119, 126, 245, 0.1);
  color: var(--primary);
  padding-left: 16px;
}
.mm-featured {
  margin-top: 10px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(119, 126, 245, 0.1), rgba(167, 171, 249, 0.15));
  border: 1px solid rgba(167, 171, 249, 0.35);
}
.mm-featured-eyebrow {
  font-size: 10px; font-weight: 700;
  color: var(--primary); letter-spacing: 0.08em; text-transform: uppercase;
  margin-bottom: 4px;
}
.mm-featured-title { font-size: 14px; font-weight: 600; color: var(--ink-900); margin-bottom: 4px; }
.mm-featured-body { font-size: 12px; color: var(--ink-500); line-height: 1.4; margin-bottom: 6px; }
.mm-featured-cta { font-size: 12px; font-weight: 600; color: var(--primary); }
.mobile-menu-foot {
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(227, 230, 238, 0.6);
}
.mm-btn-ghost, .mm-btn-primary {
  width: 100%; height: 42px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
}
.mm-btn-ghost {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.6);
  color: var(--ink-900);
}
.mm-btn-primary {
  background: linear-gradient(180deg, rgba(143, 150, 248, 0.98), rgba(119, 126, 245, 0.98));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 1px 0 rgba(255,255,255,0.35) inset, 0 8px 22px rgba(119,126,245,0.4);
}

/* Prevent body scroll when menu open */
body.menu-open { overflow: hidden; }

@media (max-width: 1024px) {
  .nav { display: none; }
  .menu-btn { display: grid; }
  .agents-showcase, .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .channels-grid { grid-template-columns: repeat(3, 1fr); }
  .industries-grid { grid-template-columns: repeat(3, 1fr); }
  .templates-strip { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .flow-meta { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  /* keep 3 per row on mobile — slightly denser padding */
  .agents-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .agent-pill { padding: 12px 10px; font-size: 12px; gap: 6px; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 72px; }
  .composer { padding: 6px 6px 6px 14px; gap: 6px; }
  .composer-input { font-size: 14px; padding: 10px 4px; }
  .launch-btn { height: 40px; padding: 0 14px; font-size: 13px; }
  .launch-btn svg { width: 14px; height: 14px; }
  .agents-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; margin-bottom: 24px; }
  .agent-pill { padding: 12px 10px; font-size: 12px; gap: 6px; }
  .agent-pill .ap-icon { width: 14px; height: 14px; }
  .agent-pill .ap-icon svg { width: 14px; height: 14px; }
  .hero-orb { filter: blur(60px); }
  .hero-orb.o1 { width: 280px; height: 280px; }
  .hero-orb.o2 { width: 320px; height: 320px; }
  .hero-orb.o3 { width: 220px; height: 220px; }
  .agents-showcase, .capabilities-grid, .channels-grid, .industries-grid, .templates-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .header-inner { gap: 8px; padding: 0 6px 0 14px; }
  .header-actions .btn-secondary { display: none; }
  .header-actions .btn-ghost { display: none; }
  .menu-btn { flex-shrink: 0; }
  .blocks-wrap { padding: 28px 20px; border-radius: 24px; }
  .flow-arrow { width: 20px; }
  .flow-block { padding: 10px 12px; font-size: 13px; }
  .footer-top { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; padding-bottom: 40px; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 8px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .modal { padding: 32px 20px 24px; }
}
@media (max-width: 420px) {
  /* On tiny screens keep 3 cols but shrink text so labels still fit */
  .agent-pill { padding: 10px 6px; font-size: 11px; gap: 4px; line-height: 1.2; }
  .agent-pill .ap-icon { display: none; }
}
/* ============================= APPLE LIQUID GLASS OVERRIDES ============================= */

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 2px 8px rgba(56, 65, 87, 0.04);
  font-size: 13px; font-weight: 600; color: var(--ink-700);
  cursor: pointer;
  transition: all .2s;
}
.lang-btn:hover { background: rgba(255, 255, 255, 0.6); color: var(--primary); }
.lang-btn svg { color: currentColor; }
.lang-btn .lang-label { letter-spacing: 0.03em; }
.lang-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 18px 44px rgba(56, 65, 87, 0.16);
  padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97);
  transition: all .25s cubic-bezier(.2,.7,.3,1);
  pointer-events: none;
  z-index: 95;
}
.lang-switch.open .lang-menu {
  opacity: 1; visibility: visible; transform: none;
  pointer-events: auto;
}
.lang-menu a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 10px;
  font-size: 13px; font-weight: 500; color: var(--ink-900);
  text-decoration: none;
  transition: background .15s;
}

.lang-menu a:hover { background: rgba(119, 126, 245, 0.1); color: var(--primary); }
.lang-flag { font-size: 16px; }
.lang-meta {
  margin-left: auto; font-size: 10px; font-weight: 700;
  color: var(--ink-500); letter-spacing: 0.08em;
}

/* Get demo button (outlined pill) */
.btn-demo {
  height: 36px; padding: 0 16px;
  border-radius: 999px;
  background: transparent;
  border: 1.5px solid rgba(119, 126, 245, 0.5);
  color: var(--primary);
  font-size: 14px; font-weight: 600;
  backdrop-filter: saturate(180%) blur(14px);
  transition: all .2s;
}
.btn-demo:hover {
  background: rgba(119, 126, 245, 0.1);
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Brand logo — gradient mark */
.brand-logo-mark {
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  flex-shrink: 0;
}
.brand-logo-mark svg { width: 100%; height: 100%; }
.brand-text {
  background: linear-gradient(135deg, var(--primary-hover), var(--primary));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-weight: 800; letter-spacing: -0.02em;
}

/* Footer lang grid */
.footer-lang { margin-top: 18px; }
.footer-lang-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  font-size: 12px; color: rgba(255,255,255,0.55);
}
.footer-lang-grid span { padding: 2px 0; }

/* Header-specific glass buttons */
.header-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 2px 8px rgba(56, 65, 87, 0.04);
  height: 36px; padding: 0 14px;
  border-radius: 999px;
  transition: all .2s;
}
.header-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.6);
  color: var(--primary);
  border-color: rgba(167, 171, 249, 0.5);
}
.header-actions .btn-primary {
  height: 36px; padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(143, 150, 248, 0.95), rgba(119, 126, 245, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 -1px 0 rgba(0,0,0,0.05) inset,
    0 6px 20px rgba(119, 126, 245, 0.35);
}
.header-actions .btn-primary:hover {
  background: linear-gradient(180deg, rgba(119, 126, 245, 1), rgba(100, 110, 240, 1));
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.4) inset,
    0 10px 28px rgba(119, 126, 245, 0.5);
}

/* Nav link hover → glass chip instead of flat tint */
.nav-link:hover, .nav-link[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.7) inset;
}

/* Mega menu (if shown) — glass panel */
.mega-menu {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: saturate(180%) blur(28px);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 20px 60px rgba(56, 65, 87, 0.18) !important;
}

/* Mobile menu button → glass pill */
.menu-btn {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset;
  border-radius: 999px !important;
}

/* Core "floating" surfaces adopt the same glass treatment: translucent white background,
   heavy backdrop-filter, thin highlight border, inner highlight + soft drop shadow. */
.tpl-agent-card,
.agent-card,
.skill-card,
.blog-card,
.channel-card,
.team-panel,
.corporate-form,
.v2-card {
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 -1px 0 rgba(167,171,249,0.10) inset,
    0 10px 34px rgba(56, 65, 87, 0.08),
    0 3px 10px rgba(56, 65, 87, 0.04) !important;
}
.tpl-agent-card:hover,
.agent-card:hover,
.skill-card:hover,
.blog-card:hover,
.channel-card:hover,
.v2-card:hover {
  background: rgba(255, 255, 255, 0.72) !important;
  border-color: rgba(167, 171, 249, 0.45) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 18px 48px rgba(119, 126, 245, 0.14),
    0 6px 18px rgba(56, 65, 87, 0.06) !important;
  transform: translateY(-3px);
}

/* Dark v2 code card: smoky glass instead of solid black */
.v2-card.v2-card-dark {
  background: rgba(20, 22, 40, 0.78) !important;
  backdrop-filter: saturate(160%) blur(22px);
  -webkit-backdrop-filter: saturate(160%) blur(22px);
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.08) inset,
    0 10px 40px rgba(0,0,0,0.3) !important;
}

/* Primary CTA buttons get a subtle glassy sheen on top */
.btn-primary {
  position: relative; overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.22), rgba(255,255,255,0) 45%);
  pointer-events: none;
}

/* Secondary buttons → glass */
.btn-secondary {
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(119, 126, 245, 0.5);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 4px 14px rgba(56, 65, 87, 0.06);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.75);
}

/* Filter pills / team pills / tpl-filter pills → glass chips */
.tpl-filter-pill,
.team-pill {
  background: rgba(255, 255, 255, 0.45) !important;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid rgba(255,255,255,0.6) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 2px 8px rgba(56, 65, 87, 0.04) !important;
}
.tpl-filter-pill:hover,
.team-pill:hover {
  background: rgba(255, 255, 255, 0.75) !important;
}
.tpl-filter-pill.active,
.team-pill.active {
  background: rgba(119, 126, 245, 0.15) !important;
  border-color: rgba(119, 126, 245, 0.5) !important;
  color: var(--primary-hover) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 4px 16px rgba(119, 126, 245, 0.2) !important;
}

/* Search inputs in filter toolbars */
.tpl-agent-search,
.team-search {
  background: rgba(255, 255, 255, 0.5) !important;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255,255,255,0.6) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 2px 8px rgba(56, 65, 87, 0.04);
}

/* Blog carousel arrows */
.blog-arrow {
  background: rgba(255, 255, 255, 0.65) !important;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border: 1px solid rgba(255,255,255,0.7) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 8px 24px rgba(56, 65, 87, 0.12) !important;
}

/* Sections that were solid panels go translucent so the grid matrix shows through */
.section.alt,
.corporate-section {
  background: transparent !important;
  backdrop-filter: none !important;
}

/* Auth modal also glass */
.modal {
  background: rgba(255, 255, 255, 0.85) !important;
  backdrop-filter: saturate(180%) blur(30px);
  -webkit-backdrop-filter: saturate(180%) blur(30px);
  border: 1px solid rgba(255,255,255,0.7) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.95) inset,
    0 30px 80px rgba(56, 65, 87, 0.2) !important;
}

/* Footer retains dark but gets glass-like top highlight */
.footer {
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 -1px 0 rgba(255,255,255,0.08) inset;
}

/* Safari fallback: if backdrop-filter unsupported, darken bg slightly so glass reads */
@supports not ((backdrop-filter: blur(20px)) or (-webkit-backdrop-filter: blur(20px))) {
  .tpl-agent-card, .agent-card, .skill-card, .blog-card, .channel-card,
  .team-panel, .corporate-form, .v2-card, .composer, .agent-pill,
  .hero-pill, .header-inner, .btn-secondary, .modal,
  .tpl-filter-pill, .team-pill, .tpl-agent-search, .team-search, .blog-arrow {
    background: rgba(255, 255, 255, 0.92) !important;
  }
}


/* === MOBILE: заголовки/підзаголовки + компактна шапка (Claude v4) === */
@media (max-width: 768px) {
  /* H1 — більший (помітний головний заголовок) */
  h1.hero-title, h1.hero-title[style], h1.hero-title * {
    font-size: 31px !important; line-height: 1.12 !important; letter-spacing: -0.02em !important;
  }
  /* Підзаголовок hero (в т.ч. доданий через адмінку) — помітно менший за H1 */
  .hero .hero-top > p, .hero-top > p,
  p.hero-sub, p.hero-sub[style], .hero-sub {
    font-size: 15px !important; line-height: 1.5 !important; font-weight: 400 !important;
  }
  /* секційні заголовки */
  h2.section-title, h2.section-title[style], h2.section-title * {
    font-size: 18px !important; line-height: 1.2 !important;
  }
  .v2-intro-title, .v2-intro-title[style], .v2-intro-title * {
    font-size: 20px !important; line-height: 1.2 !important;
  }
  .v2-row-title, .v2-row-title[style], .v2-row-title * {
    font-size: 16px !important; line-height: 1.25 !important;
  }
  p.section-sub, p.section-sub[style], .section-sub * {
    font-size: 14px !important; line-height: 1.5 !important;
  }
  /* ШАПКА: менші кнопки щоб бургер не вилазив за екран */
  .header-inner { gap: 6px !important; padding: 0 10px !important; }
  .brand-logo { height: 24px !important; }
  .header-actions { gap: 5px !important; }
  .header-actions .btn { padding: 7px 12px !important; font-size: 12px !important; min-height: 0 !important; height: auto !important; }
  .lang-btn { padding: 5px 7px !important; font-size: 12px !important; }
  .lang-btn .lang-label { font-size: 12px !important; }
  .menu-btn { width: 34px !important; height: 34px !important; flex-shrink: 0 !important; }
}
@media (max-width: 420px) {
  /* дуже вузькі екрани — ще щільніше, щоб бургер точно влазив */
  h1.hero-title, h1.hero-title[style], h1.hero-title * { font-size: 27px !important; }
  .header-actions .btn { padding: 6px 9px !important; font-size: 11px !important; }
  .lang-btn { padding: 4px 5px !important; font-size: 11px !important; }
  .lang-btn .lang-label { font-size: 11px !important; }
  .header-inner { gap: 4px !important; padding: 0 8px !important; }
  .brand-logo { height: 21px !important; }
  .menu-btn { width: 30px !important; height: 30px !important; }
}

