/* ChatWind — Light purple SaaS theme */

:root {
  --purple: #7c3aed;
  --purple-dark: #6d28d9;
  --purple-light: #a78bfa;
  --pink: #db2777;
  --gradient: linear-gradient(135deg, #7c3aed 0%, #c026d3 50%, #db2777 100%);
  --gradient-text: linear-gradient(135deg, #7c3aed 0%, #c026d3 45%, #db2777 100%);

  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --bg-purple: #f5f3ff;
  --text: #111827;
  --body: #4b5563;
  --muted: #6b7280;
  --dim: #9ca3af;
  --border: #e5e7eb;
  --border-light: #f3f4f6;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(124,58,237,0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --max: 1180px;
  --font: "Inter", system-ui, sans-serif;
  --header-h: 72px;

  /* Layout spacing — use across all pages */
  --space-container-x: 24px;
  --space-container-x-sm: 16px;
  --space-section-y: 80px;
  --space-section-y-sm: 56px;
  --space-page-y: 80px;
  --space-page-y-sm: 56px;
  --space-hero-bottom: 48px;
  --space-block: 48px;
  --space-block-sm: 32px;
  --space-card: 24px;
  --space-grid: 24px;
  --space-footer-top: 64px;
  --content-narrow: 760px;
  --content-wide: 960px;
  --content-team: 1040px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

main {
  flex: 1;
  min-width: 0;
  max-width: 100%;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space-container-x);
  min-width: 0;
}

.narrow { max-width: 720px; }

h1, h2, h3, h4 { color: var(--text); font-weight: 700; line-height: 1.2; }

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

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  white-space: nowrap;
}

.btn-lg { padding: 14px 28px; font-size: 0.95rem; }
.btn.full { width: 100%; }

.btn-dark {
  background: #111827;
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-dark:hover {
  background: #1f2937;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-outline {
  background: #fff;
  color: var(--text);
  border: 1.5px solid var(--border);
}
.btn-outline:hover {
  border-color: #d1d5db;
  background: var(--bg-alt);
}

.btn-white {
  background: #fff;
  color: var(--purple-dark);
  box-shadow: var(--shadow);
}
.btn-white:hover { transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.25); }

.btn.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* ─── Header ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
}

.site-header .logo-img {
  height: 44px;
  max-height: calc(var(--header-h) - 28px);
  max-width: 200px;
  object-position: left center;
}

.footer-brand .logo-img {
  height: 40px;
  margin-bottom: 4px;
}

.logo-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body);
  transition: color 0.2s;
}

.nav-desktop a:hover { color: var(--text); }
.chev { font-size: 0.65rem; opacity: 0.5; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-login {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body);
  display: none;
}
.nav-login:hover { color: var(--text); }

.menu-toggle {
  display: flex;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 12px 24px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: 12px 0;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
}
.nav-mobile .btn { margin-top: 12px; justify-content: center; }

@media (min-width: 960px) {
  .nav-desktop { display: flex; }
  .nav-login { display: block; }
  .menu-toggle { display: none; }
}

@media (max-width: 959px) {
  .header-actions .btn-dark { display: none; }
}

/* ─── Hero ─── */
.hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, #fff 0%, #faf9ff 100%);
}

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero { padding: 72px 0 48px; }
}

.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.lead {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-note {
  font-size: 0.8rem;
  color: var(--dim);
  margin-bottom: 28px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.pill-logo {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Hero scene — animated hub diagram */
.hero-visual {
  width: 100%;
  min-width: 0;
}

.hero-scene {
  position: relative;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  min-height: 420px;
  padding: 28px 20px 36px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 40%, rgba(243, 232, 255, 0.5) 0%, transparent 70%),
    linear-gradient(180deg, #ffffff 0%, #faf9ff 100%);
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 24px 64px rgba(124, 58, 237, 0.1);
  overflow: hidden;
}

.scene-glow {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.14) 0%, transparent 68%);
  pointer-events: none;
  animation: hubGlow 4s ease-in-out infinite;
}

@keyframes hubGlow {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}

.scene-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.scene-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(20px);
  animation: orbDrift 6s ease-in-out infinite;
}

.orb-blue {
  width: 48px; height: 48px;
  background: rgba(59, 130, 246, 0.35);
  bottom: 18%;
  left: 22%;
  animation-delay: 0s;
}

.orb-orange {
  width: 40px; height: 40px;
  background: rgba(249, 115, 22, 0.35);
  bottom: 22%;
  right: 20%;
  animation-delay: -3s;
}

@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, -12px); }
}

.scene-floor {
  position: absolute;
  bottom: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 55%;
  height: 24px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.scene-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.flow-line {
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 8 6;
  animation: flowDash 1.6s linear infinite;
  filter: url(#flowGlow);
}

.flow-in { stroke: url(#flowIn); opacity: 0.85; }
.flow-out { stroke: url(#flowOut); opacity: 0.85; }

.delay-1 { animation-delay: -0.15s; }
.delay-2 { animation-delay: -0.3s; }
.delay-3 { animation-delay: -0.45s; }
.delay-4 { animation-delay: -0.6s; }
.delay-5 { animation-delay: -0.75s; }
.delay-6 { animation-delay: -0.9s; }

@keyframes flowDash {
  to { stroke-dashoffset: -24; }
}

.scene-stage {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 360px;
  padding: 0 2px;
}

.scene-panel {
  width: 152px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 18px;
  padding: 16px 14px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 12px 36px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(236, 238, 242, 0.95);
  backdrop-filter: blur(10px);
}

.panel-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--dim);
  margin-bottom: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  font-weight: 600;
  color: #374151;
  padding: 7px 8px;
  margin: 0 -4px;
  border-radius: 9px;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.panel-list li:hover {
  background: rgba(249, 250, 251, 0.95);
}

.ico {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  flex-shrink: 0;
  background-size: 15px 15px;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.ico-web { background-color: #dbeafe; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"); }
.ico-pdf { background-color: #fee2e2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc2626'%3E%3Cpath d='M6 2h8l4 4v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.ico-notion {
  background-color: #fff;
  background-image: url("../notion-logo.png");
  background-size: 15px 15px;
}
.ico-notion::after { content: none; }
.ico-help { background-color: #dbeafe; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E"); }
.ico-yt { background-color: #fee2e2; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc2626'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E"); }
.ico-api { background-color: #f3f4f6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E"); }
.ico-db { background-color: #ede9fe; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2'%3E%3Cellipse cx='12' cy='5' rx='9' ry='3'/%3E%3Cpath d='M3 5v14c0 1.66 4.03 3 9 3s9-1.34 9-3V5'/%3E%3Cpath d='M3 12c0 1.66 4.03 3 9 3s9-1.34 9-3'/%3E%3C/svg%3E"); }
.ico-chat { background-color: #ede9fe; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237c3aed'%3E%3Cpath d='M20 2H4a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2z'/%3E%3C/svg%3E"); }
.ico-voice { background-color: #dbeafe; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2'%3E%3Cpath d='M12 1a3 3 0 0 0-3 3v8a3 3 0 0 0 6 0V4a3 3 0 0 0-3-3z'/%3E%3Cpath d='M19 10v2a7 7 0 0 1-14 0v-2M12 19v4M8 23h8'/%3E%3C/svg%3E"); }
.ico-wa { background-color: #dcfce7; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2316a34a'%3E%3Cpath d='M12 2C6.48 2 2 6.03 2 11c0 1.85.58 3.57 1.58 5L2 22l6.2-1.62A9.8 9.8 0 0 0 12 20c5.52 0 10-4.03 10-9s-4.48-9-10-9z'/%3E%3C/svg%3E"); }
.ico-slack { background-color: #f3f4f6; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23e01e5a' d='M6 14a2 2 0 1 1-4 0 2 2 0 0 1 4 0'/%3E%3Cpath fill='%2336c5f0' d='M10 6a2 2 0 1 1 0-4 2 2 0 0 1 0 4'/%3E%3Cpath fill='%232eb67d' d='M14 18a2 2 0 1 1 0 4 2 2 0 0 1 0-4'/%3E%3Cpath fill='%23ecb22e' d='M18 10a2 2 0 1 1 4 0 2 2 0 0 1-4 0'/%3E%3C/svg%3E"); }
.ico-mail { background-color: #dbeafe; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M22 6l-10 7L2 6'/%3E%3C/svg%3E"); }
.ico-sms { background-color: #ffedd5; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ea580c'%3E%3Cpath d='M20 2H4a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2z'/%3E%3C/svg%3E"); }
.ico-store { background-color: #fef9c3; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ca8a04' stroke-width='2'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3C/svg%3E"); }

.scene-hub {
  position: relative;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 150px;
  margin-top: -12px;
}

.scene-hub::before {
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.scene-hub .hub-cube {
  position: relative;
  z-index: 3;
  width: 136px;
  padding: 11px;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(196, 181, 253, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.9) inset,
    0 20px 48px rgba(124, 58, 237, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.06);
}

.hub-screen {
  width: 100%;
  background: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  min-height: 76px;
}

.hub-brand-img {
  width: 100%;
  max-width: 118px;
  height: auto;
  max-height: 58px;
  object-fit: contain;
  display: block;
}

.hub-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 50%, #22d3ee 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 0 24px rgba(124, 58, 237, 0.5);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.4); transform: scale(1); }
  50% { box-shadow: 0 0 32px rgba(124, 58, 237, 0.65); transform: scale(1.05); }
}

.hub-name {
  font-size: 0.62rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.02em;
}

.podium {
  position: relative;
  width: 130px;
  height: 40px;
  margin-top: -4px;
  z-index: 1;
}

.podium-ring {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #ede9fe 100%);
  border: 1px solid rgba(196, 181, 253, 0.25);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.08);
}

.ring-1 { width: 96px; height: 15px; bottom: 0; }
.ring-2 { width: 114px; height: 13px; bottom: 9px; opacity: 0.92; }
.ring-3 { width: 132px; height: 11px; bottom: 18px; opacity: 0.82; }

.anim-float-left {
  animation: floatPanel 5s ease-in-out infinite;
}

.anim-float-right {
  animation: floatPanel 5s ease-in-out infinite -2.5s;
}

.anim-float-hub {
  animation: floatHub 4s ease-in-out infinite -1s;
}

@keyframes floatPanel {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes floatHub {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .flow-line,
  .anim-float-left,
  .anim-float-right,
  .anim-float-hub,
  .hub-logo,
  .scene-orb,
  .scene-glow {
    animation: none;
  }
}

/* Logo bar */
.logo-bar {
  padding: 32px 0 48px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: #fafafa;
}

.logo-bar p {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 28px;
}

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px 40px;
}

.brand-logo {
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: 0.92;
  filter: none;
  transition: opacity 0.2s ease;
}

.brand-shopify { height: 32px; max-width: 110px; }
.brand-wordpress { height: 30px; max-width: 130px; }
.brand-notion { height: 26px; max-width: 100px; }

.brand-logo:hover {
  opacity: 1;
}

/* ─── Sections ─── */
.section {
  padding: var(--space-section-y) 0;
  max-width: 100%;
  overflow-x: clip;
}
.section-alt { background: var(--bg-alt); }

.section-head.center { text-align: center; margin-bottom: var(--space-hero-bottom); }
.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-desc {
  color: var(--muted);
  margin-top: 12px;
  line-height: 1.7;
}

.section-desc.max { max-width: 560px; margin-left: auto; margin-right: auto; }

.split {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .split { grid-template-columns: 1fr 1.1fr; gap: 56px; }
}

.split-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.check-list {
  list-style: none;
  margin: 24px 0 28px;
}

.check-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 0.9rem;
  color: var(--body);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 700;
}

/* Factory feature highlights */
.factory-highlights {
  width: 100%;
  min-width: 0;
}

.factory-lead {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--body);
  margin-bottom: 24px;
}

.factory-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

@media (min-width: 640px) {
  .factory-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.factory-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.factory-card:hover {
  border-color: #e9d5ff;
  box-shadow: 0 8px 28px rgba(124, 58, 237, 0.1);
}

.factory-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 1.1rem;
  margin-bottom: 12px;
}

.factory-icon.purple { background: #f5f3ff; }
.factory-icon.blue { background: #eff6ff; }
.factory-icon.green { background: #ecfdf5; }
.factory-icon.pink { background: #fdf2f8; }

.factory-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text);
}

.factory-card p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}

.factory-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 20px;
  background: var(--bg-purple);
  border: 1px solid #e9d5ff;
  border-radius: var(--radius);
}

.factory-stats li {
  text-align: center;
}

.factory-stats strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--purple);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.factory-stats span {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.3;
}

@media (max-width: 479px) {
  .factory-stats {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* Dashboard mockup */
.dashboard-mock {
  width: 100%;
  min-width: 0;
}

.dash-window {
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow:
    0 24px 64px rgba(124, 58, 237, 0.14),
    0 8px 24px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  background: #fff;
}

.dash-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 12px 16px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.dash-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.dot.r { background: #ff5f57; }
.dot.y { background: #febc2e; }
.dot.g { background: #28c840; }

.dash-title {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  text-align: center;
}

.dash-top-spacer {
  width: 52px;
}

.dash-body {
  display: grid;
  grid-template-columns: minmax(108px, 22%) 1fr minmax(168px, 34%);
  min-height: 320px;
}

.dash-sidebar {
  padding: 16px 12px;
  border-right: 1px solid var(--border);
  background: #fff;
}

.dash-nav-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dash-nav {
  font-size: 0.78rem;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.2;
}

.dash-nav.active {
  background: #f3e8ff;
  color: var(--purple);
  font-weight: 700;
}

.dash-main {
  padding: 20px 18px;
  background: #fff;
  border-right: 1px solid var(--border);
}

.dash-field { margin-bottom: 16px; }
.dash-field:last-child { margin-bottom: 0; }

.dash-field label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dash-input {
  width: 100%;
  font-family: var(--font);
  font-size: 0.82rem;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  line-height: 1.45;
}

.dash-textarea {
  min-height: 72px;
  resize: none;
}

.dash-tags { display: flex; flex-wrap: wrap; gap: 8px; }

.dash-tags span {
  font-size: 0.72rem;
  padding: 6px 12px;
  background: #f3e8ff;
  color: #7c3aed;
  border-radius: 999px;
  font-weight: 600;
}

.dash-chat {
  padding: 18px 16px;
  background: #fafafa;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.dash-chat-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.dash-chat-feed {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
  justify-content: flex-start;
}

.dash-bubble {
  font-size: 0.76rem;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.45;
  max-width: 92%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.dash-bubble.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dash-bubble.user {
  align-self: flex-end;
  background: linear-gradient(135deg, #7c3aed 0%, #c026d3 55%, #db2777 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
  transform: translateX(12px);
}

.dash-bubble.user.is-visible {
  transform: translateX(0);
}

.dash-bubble.ai {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
  transform: translateX(-12px);
}

.dash-bubble.ai.is-visible {
  transform: translateX(0);
}

.dash-typing {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.dash-typing.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.dash-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c4b5fd;
  animation: dashTypingDot 1.2s ease-in-out infinite;
}

.dash-typing span:nth-child(2) { animation-delay: 0.15s; }
.dash-typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes dashTypingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.45; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.dashboard-mock.is-playing .chat-msg.is-visible.is-hiding {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Channel grid */
.channel-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

@media (min-width: 768px) {
  .channel-grid { grid-template-columns: repeat(7, 1fr); }
}

.channel-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 14px;
  text-align: center;
  transition: box-shadow 0.2s, transform 0.2s;
}

.channel-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.channel-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin: 0 auto 12px;
}

.channel-icon.purple { background: #ede9fe; }
.channel-icon.blue { background: #dbeafe; }
.channel-icon.green { background: #dcfce7; }
.channel-icon.indigo { background: #e0e7ff; }
.channel-icon.orange { background: #ffedd5; }
.channel-icon.pink { background: #fce7f3; }
.channel-icon.violet { background: #f3e8ff; }

.channel-card h3 {
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.channel-card p {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Feature panels */
.feature-panel {
  border-radius: 32px;
  border: 1px solid var(--border);
  padding: 48px 40px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
  min-width: 0;
  max-width: 100%;
}

.knowledge-panel {
  background: #fff;
}

.actions-panel {
  background: linear-gradient(135deg, #fff7ed 0%, #fff 45%, #fef3f2 100%);
  padding: 56px 40px;
}

/* Knowledge section */
.knowledge-layout {
  display: grid;
  gap: 40px;
  align-items: center;
  min-width: 0;
}

.knowledge-copy {
  min-width: 0;
  max-width: 100%;
}

@media (min-width: 960px) {
  .knowledge-layout {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
  }
}

.knowledge-copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}

.source-cards {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
  min-width: 0;
}

.source-cards::-webkit-scrollbar { height: 4px; }
.source-cards::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

@media (min-width: 1100px) {
  .source-cards {
    flex-wrap: wrap;
    overflow-x: visible;
  }
}

.source-card {
  flex: 0 0 130px;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.source-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.source-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin-bottom: 12px;
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
}

.si-blue { background-color: #dbeafe; }
.si-orange { background-color: #ffedd5; }
.si-dark { background-color: #f3f4f6; }
.si-purple { background-color: #ede9fe; }
.si-red { background-color: #fee2e2; }
.si-teal { background-color: #ccfbf1; }
.si-gray { background-color: #f3f4f6; }

.si-web { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"); }
.si-pdf { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ea580c'%3E%3Cpath d='M6 2h8l4 4v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.si-notion { background-color: #fff; background-image: url("../notion-logo.png"); background-size: 18px 18px; }
.si-help { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2'%3E%3Cpath d='M3 11h3a4 4 0 0 1 4 4v1a4 4 0 0 0 4 4h0a4 4 0 0 0 4-4v-2a6 6 0 0 0-6-6H7'/%3E%3Cpath d='M3 11V7a4 4 0 0 1 4-4h1'/%3E%3C/svg%3E"); }
.si-yt { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc2626'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E"); }
.si-api { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='2'%3E%3Cpath d='M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71'/%3E%3Cpath d='M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71'/%3E%3C/svg%3E"); }
.si-more { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.5'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E"); }

.source-card h3 {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.source-card p {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Knowledge 3D hub visual */
.knowledge-visual {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 85% 70% at 50% 72%, rgba(237, 233, 254, 0.55) 0%, transparent 68%),
    linear-gradient(180deg, #fafafa 0%, #f5f3ff 100%);
  border-radius: 24px;
  overflow: hidden;
}

.hub-scene {
  position: relative;
  width: min(100%, 380px);
  height: 380px;
}

/* Floor platform — concentric rings */
.hub-platform {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 140px;
  pointer-events: none;
}

.platform-ring {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1.5px solid rgba(196, 181, 253, 0.35);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(245, 243, 255, 0.75) 100%);
  box-shadow:
    inset 0 2px 6px rgba(255, 255, 255, 0.9),
    0 4px 16px rgba(124, 58, 237, 0.06);
}

.platform-r1 { width: 300px; height: 36px; bottom: 0; opacity: 0.45; }
.platform-r2 { width: 250px; height: 30px; bottom: 18px; opacity: 0.6; }
.platform-r3 { width: 200px; height: 24px; bottom: 34px; opacity: 0.75; }
.platform-r4 { width: 150px; height: 18px; bottom: 48px; opacity: 0.9; }

.platform-disc {
  position: absolute;
  left: 50%;
  bottom: 58px;
  transform: translateX(-50%);
  width: 110px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff 0%, #ede9fe 100%);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.12);
}

/* Orbital paths */
.hub-orbit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.hub-orbit {
  fill: none;
  stroke: #c4b5fd;
  stroke-width: 1.8;
  stroke-dasharray: 7 6;
  opacity: 0.85;
  animation: hubOrbitDash 3s linear infinite;
}

.hub-orbit-2 { animation-delay: -1s; opacity: 0.7; }
.hub-orbit-3 { animation-delay: -2s; opacity: 0.55; }

@keyframes hubOrbitDash {
  to { stroke-dashoffset: -26; }
}

.hub-spark {
  fill: #fff;
  opacity: 0.9;
}

.hub-spark-glow {
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.9));
  animation: sparkPulse 2.5s ease-in-out infinite;
}

@keyframes sparkPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* Central 3D cube (knowledge visual only) */
.hub-scene .hub-cube {
  position: absolute;
  top: 32%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  width: 108px;
  height: 108px;
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.hub-scene .hub-cube-body {
  position: relative;
  width: 108px;
  height: 108px;
  border-radius: 28px;
  background: linear-gradient(145deg, #a855f7 0%, #9333ea 35%, #7c3aed 70%, #6d28d9 100%);
  box-shadow:
    0 28px 56px rgba(109, 40, 217, 0.38),
    0 8px 16px rgba(109, 40, 217, 0.2),
    inset 0 2px 0 rgba(255, 255, 255, 0.28),
    inset 0 -6px 12px rgba(91, 33, 182, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hub-scene .hub-cube-body::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, transparent 45%);
  pointer-events: none;
}

.hub-scene .hub-cube-body::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 10px;
  right: 10px;
  height: 14px;
  border-radius: 0 0 22px 22px;
  background: linear-gradient(180deg, #5b21b6 0%, #4c1d95 100%);
  transform: perspective(120px) rotateX(55deg);
  z-index: -1;
  opacity: 0.85;
}

.hub-scene .hub-mark-img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  object-position: left center;
  border-radius: 10px;
  position: relative;
  z-index: 1;
  background: #fff;
}

.hub-scene .hub-cube-shadow {
  position: absolute;
  bottom: -38px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(109, 40, 217, 0.22) 0%, transparent 70%);
  filter: blur(4px);
}

.hub-scene .anim-cube-float {
  animation: hubCubeFloat 4.5s ease-in-out infinite;
}

@keyframes hubCubeFloat {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

/* Orbiting integration tiles (knowledge visual only) */
.hub-scene .hub-tile {
  position: absolute;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(145deg, #fff 0%, #f9fafb 100%);
  border: 1px solid rgba(229, 231, 235, 0.9);
  box-shadow:
    0 8px 24px rgba(0, 0, 0, 0.08),
    0 2px 6px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.hub-scene .hub-tile span {
  width: 26px;
  height: 26px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  display: block;
}

.oi-notion { background-image: url("../notion-logo.png"); background-size: contain; }
.oi-pdf { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f3f4f6' stroke='%23d1d5db' stroke-width='0.5' d='M6 2h8l4 4v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2z'/%3E%3Crect x='7' y='14' width='10' height='4' rx='1' fill='%23dc2626'/%3E%3Ctext x='8.5' y='17.2' fill='white' font-size='3.5' font-weight='700' font-family='system-ui'%3EPDF%3C/text%3E%3C/svg%3E"); }
.oi-yt { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23dc2626'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E"); }
.oi-web { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='1.8'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18'/%3E%3C/svg%3E"); }

.hub-scene .hub-tile-1 { top: 20%; left: 6%; }
.hub-scene .hub-tile-2 { top: 8%; left: 42%; }
.hub-scene .hub-tile-3 { top: 16%; right: 6%; }
.hub-scene .hub-tile-4 { bottom: 34%; right: 8%; }

.anim-orbit-1 { animation: hubTileFloat1 5s ease-in-out infinite; }
.anim-orbit-2 { animation: hubTileFloat2 5s ease-in-out infinite -1.2s; }
.anim-orbit-3 { animation: hubTileFloat3 5s ease-in-out infinite -2.4s; }
.anim-orbit-4 { animation: hubTileFloat4 5s ease-in-out infinite -3.6s; }

@keyframes hubTileFloat1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(5px, -7px); }
}
@keyframes hubTileFloat2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-4px, 6px); }
}
@keyframes hubTileFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(6px, 5px); }
}
@keyframes hubTileFloat4 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-5px, -5px); }
}

/* Actions / Workflow */
.actions-panel .section-head {
  margin-bottom: 40px;
}

.actions-panel .section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.workflow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 36px;
}

.workflow-step {
  text-align: center;
  padding: 20px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  min-width: 110px;
  max-width: 130px;
  flex: 1 1 110px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.anim-step {
  animation: stepFadeIn 0.6s ease both;
  animation-delay: calc(var(--i) * 0.12s);
}

@keyframes stepFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.wf-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.wf-blue { background: #dbeafe; }
.wf-purple { background: #ede9fe; }
.wf-teal { background: #ccfbf1; }
.wf-sky { background: #e0f2fe; }
.wf-green { background: #dcfce7; }

.wf-svg {
  width: 22px;
  height: 22px;
  display: block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.wf-chat { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232563eb'%3E%3Cpath d='M20 2H4a2 2 0 0 0-2 2v18l4-4h14a2 2 0 0 0 2-2V4a2 2 0 0 0-2-2z'/%3E%3C/svg%3E"); }
.wf-bot { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2'%3E%3Crect x='4' y='8' width='16' height='12' rx='2'/%3E%3Cpath d='M9 12h.01M15 12h.01M8 8V6a4 4 0 0 1 8 0v2'/%3E%3C/svg%3E"); }
.wf-bolt { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2314b8a6'%3E%3Cpath d='M13 2L3 14h9l-1 8 10-12h-9l1-8z'/%3E%3C/svg%3E"); }
.wf-db { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230ea5e9' stroke-width='2'%3E%3Cellipse cx='12' cy='5' rx='9' ry='3'/%3E%3Cpath d='M3 5v14c0 1.66 4.03 3 9 3s9-1.34 9-3V5'/%3E%3Cpath d='M3 12c0 1.66 4.03 3 9 3s9-1.34 9-3'/%3E%3C/svg%3E"); }
.wf-check { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322c55e' stroke-width='2.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E"); }

.workflow-step p {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--body);
  line-height: 1.45;
}

.workflow-arrow {
  color: #d1d5db;
  font-size: 1.1rem;
  font-weight: 400;
  flex-shrink: 0;
  padding: 0 2px;
}

.action-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--body);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.pill:hover {
  border-color: var(--purple-light);
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.1);
}

.pill-ico {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  background-size: 14px 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.pi-blue { background-color: #dbeafe; }
.pi-teal { background-color: #ccfbf1; }
.pi-purple { background-color: #ede9fe; }
.pi-sky { background-color: #e0f2fe; }
.pi-gray { background-color: #f3f4f6; }

.pi-order { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2'%3E%3Cpath d='M9 5H7a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2h-2'/%3E%3Crect x='9' y='3' width='6' height='4' rx='1'/%3E%3C/svg%3E"); }
.pi-cart { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314b8a6' stroke-width='2'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E"); }
.pi-coupon { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2'%3E%3Cpath d='M20 12v6a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-6'/%3E%3Cpath d='M4 8h16v4H4zM9 12v6M15 12v6'/%3E%3C/svg%3E"); }
.pi-mail { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M22 6l-10 7L2 6'/%3E%3C/svg%3E"); }
.pi-crm { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2'%3E%3Cpath d='M17 21v-2a4 4 0 0 0-4-4H5a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M23 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.pi-cal { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
.pi-ticket { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230ea5e9' stroke-width='2'%3E%3Cpath d='M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2z'/%3E%3C/svg%3E"); }
.pi-bell { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='M18 8A6 6 0 0 0 6 8c0 7-3 9-3 9h18s-3-2-3-9M13.73 21a2 2 0 0 1-3.46 0'/%3E%3C/svg%3E"); }

@media (prefers-reduced-motion: reduce) {
  .orbit-path,
  .hub-orbit,
  .anim-cube-float,
  .anim-orbit-1, .anim-orbit-2, .anim-orbit-3, .anim-orbit-4,
  .anim-step,
  .anim-blob, .anim-blob-delay,
  .hub-spark-glow {
    animation: none;
  }

  .anim-tile, .anim-metric {
    opacity: 1;
    transform: none;
  }

  .insights-grid.in-view .chart-line {
    stroke-dashoffset: 0;
    animation: none;
  }

  .insights-grid.in-view .chart-area,
  .insights-grid.in-view .chart-dot {
    opacity: 1;
    animation: none;
  }

  .dash-bubble,
  .dash-typing {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Templates + Analytics */
.insights-grid {
  display: grid;
  gap: 28px;
}

@media (min-width: 960px) {
  .insights-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
  }
}

.templates-panel {
  background: #fff;
}

.analytics-panel {
  background: var(--bg-alt);
}

.feature-panel h2 {
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.feature-panel .section-desc {
  font-size: 0.9rem;
  margin-top: 0;
  margin-bottom: 28px;
  max-width: 420px;
}

.template-cards-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (min-width: 1100px) {
  .template-cards-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.template-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.template-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124, 58, 237, 0.1);
}

.tpl-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.tpl-green { background: #dcfce7; }
.tpl-purple { background: #ede9fe; }
.tpl-blue { background: #dbeafe; }
.tpl-yellow { background: #fef9c3; }

.tpl-svg {
  display: block;
  width: 22px;
  height: 22px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.tpl-cart { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='2'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E"); }
.tpl-headset { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c3aed' stroke-width='2'%3E%3Cpath d='M3 18v-6a9 9 0 0 1 18 0v6'/%3E%3Cpath d='M21 19a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3zM3 19a2 2 0 0 0 2 2h1a2 2 0 0 0 2-2v-3a2 2 0 0 0-2-2H3z'/%3E%3C/svg%3E"); }
.tpl-cal { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E"); }
.tpl-user { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ca8a04' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }

.template-tile h4 {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.3;
}

.template-tile p {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.browse-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--purple);
  transition: gap 0.2s ease, color 0.2s ease;
}

.browse-link:hover {
  color: var(--purple-dark);
  gap: 8px;
}

.metrics-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

@media (min-width: 640px) {
  .metrics-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.metric-label {
  display: block;
  font-size: 0.68rem;
  color: var(--dim);
  margin-bottom: 4px;
  line-height: 1.3;
}

.metric-value {
  display: block;
  font-size: clamp(0.95rem, 2vw, 1.15rem);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.metric-change {
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 600;
}

.up-green { color: #16a34a; }
.up-blue { color: #2563eb; }
.up-teal { color: #0d9488; }

.chart-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 12px 8px;
  overflow: hidden;
}

.analytics-chart {
  width: 100%;
  height: auto;
  display: block;
}

.chart-line {
  fill: none;
  stroke: var(--purple);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
}

.chart-area {
  opacity: 0;
}

.chart-dot {
  fill: #fff;
  stroke: var(--purple);
  stroke-width: 2.5;
  opacity: 0;
  transform-origin: center;
}

.chart-label {
  font-size: 10px;
  fill: var(--dim);
  text-anchor: middle;
  font-family: var(--font);
}

.insights-grid.in-view .chart-line {
  animation: drawChartLine 1.6s ease forwards;
}

.insights-grid.in-view .chart-area {
  animation: fadeChartArea 0.7s ease 0.9s forwards;
}

.insights-grid.in-view .chart-dot:nth-child(4) { animation: popChartDot 0.35s ease 0.4s forwards; }
.insights-grid.in-view .chart-dot:nth-child(5) { animation: popChartDot 0.35s ease 0.55s forwards; }
.insights-grid.in-view .chart-dot:nth-child(6) { animation: popChartDot 0.35s ease 0.7s forwards; }
.insights-grid.in-view .chart-dot:nth-child(7) { animation: popChartDot 0.35s ease 0.85s forwards; }
.insights-grid.in-view .chart-dot:nth-child(8) { animation: popChartDot 0.35s ease 1s forwards; }
.insights-grid.in-view .chart-dot:nth-child(9) { animation: popChartDot 0.35s ease 1.15s forwards; }
.insights-grid.in-view .chart-dot:nth-child(10) { animation: popChartDot 0.35s ease 1.3s forwards; }

@keyframes drawChartLine {
  to { stroke-dashoffset: 0; }
}

@keyframes fadeChartArea {
  to { opacity: 1; }
}

@keyframes popChartDot {
  from { opacity: 0; transform: scale(0); }
  to { opacity: 1; transform: scale(1); }
}

.anim-tile,
.anim-metric {
  opacity: 0;
  transform: translateY(16px);
}

.insights-grid.in-view .anim-tile,
.insights-grid.in-view .anim-metric {
  animation: revealUp 0.55s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.08s + 0.1s);
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Legacy panel helpers (pricing / FAQ) */
.panel {
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
}

.panel-alt { background: var(--bg-alt); }

.panel h2 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 8px;
}

/* Pricing */
.pricing-cards {
  display: grid;
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .pricing-cards { grid-template-columns: repeat(3, 1fr); }
}

.price-card {
  position: relative;
  padding: 32px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.price-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }

.price-card.featured {
  border-color: var(--purple-light);
  box-shadow: var(--shadow-lg);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--gradient);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
}

.price-card h3 { font-size: 1.15rem; margin-bottom: 4px; }
.price-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 16px; }

.price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.price span { font-size: 1rem; font-weight: 500; color: var(--dim); }
.price.coming { font-size: 1.5rem; color: var(--purple); }

.price-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 28px;
}

.price-card ul li {
  padding: 8px 0;
  padding-left: 22px;
  position: relative;
  font-size: 0.85rem;
  color: var(--body);
  border-bottom: 1px solid var(--border-light);
}

.price-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 700;
}

.price-card.soon { opacity: 0.85; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--text);
}

.faq-q span {
  color: var(--purple);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
  padding: 0 20px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
}

.faq-item.open .faq-a {
  max-height: 200px;
  padding: 0 20px 18px;
}

/* CTA Banner */
.cta-banner {
  padding: 0 0 48px;
}

.cta-panel {
  position: relative;
  border-radius: 28px;
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 35%, #c026d3 65%, #db2777 100%);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(124, 58, 237, 0.28);
}

.cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
}

.cta-blob-left {
  width: 180px;
  height: 180px;
  left: -40px;
  bottom: -50px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.35), rgba(219,39,119,0.5) 60%, rgba(124,58,237,0.3));
  box-shadow: inset -8px -8px 24px rgba(0,0,0,0.08);
}

.cta-blob-right {
  width: 160px;
  height: 160px;
  right: -30px;
  top: -40px;
  background: radial-gradient(circle at 60% 40%, rgba(255,255,255,0.4), rgba(192,38,211,0.45) 55%, rgba(124,58,237,0.25));
  box-shadow: inset 6px 6px 20px rgba(255,255,255,0.15);
}

.anim-blob {
  animation: ctaBlobFloat 6s ease-in-out infinite;
}

.anim-blob-delay {
  animation: ctaBlobFloat 6s ease-in-out infinite -3s;
}

@keyframes ctaBlobFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.04); }
}

.cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 72px 32px;
  color: #fff;
}

.cta-inner h2 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.cta-inner p {
  font-size: 1.05rem;
  opacity: 0.92;
  max-width: 520px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.cta-inner .btn-white {
  color: var(--text);
  font-weight: 700;
}

.cta-inner .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cta-inner .btn-ghost:hover {
  transform: translateY(-2px);
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: var(--space-footer-top) 0 0;
}

.footer-grid {
  display: grid;
  gap: var(--space-block);
  padding-bottom: var(--space-block);
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr repeat(3, 1fr); }
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 280px;
}

.footer-brand h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin: 16px 0 10px;
}

.footer-rahish {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 16px;
  margin-bottom: 4px;
}

.footer-rahish strong {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.footer-billing {
  font-size: 0.8rem;
  color: var(--dim);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--dim);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s; }
.footer-col a:hover { color: var(--purple); }

.footer-bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--dim);
}

/* ─── Mobile ─── */
@media (max-width: 767px) {
  :root { --header-h: 64px; }

  body.menu-open { overflow: hidden; }

  .container { padding: 0 var(--space-container-x-sm); }
  .section { padding: var(--space-section-y-sm) 0; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .hero-scene {
    min-height: auto;
    padding: 20px 12px 24px;
    border-radius: 22px;
    overflow: visible;
  }

  .scene-svg { display: none; }

  .scene-stage {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: auto;
    gap: 16px;
    width: 100%;
    padding: 0;
  }

  .scene-panel {
    width: 100%;
    max-width: none;
    flex-shrink: 1;
    min-width: 0;
    padding: 16px 14px;
    align-self: stretch;
  }

  .panel-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 10px;
  }

  .panel-list li {
    font-size: 0.78rem;
    padding: 6px 4px;
    margin: 0;
    min-width: 0;
  }

  .scene-hub {
    order: -1;
    margin: 0 auto 4px;
    width: 100%;
    max-width: 200px;
  }

  .scene-hub .hub-cube {
    width: 100%;
    max-width: 180px;
    height: auto;
    padding: 12px;
    margin: 0 auto;
  }

  .scene-hub .hub-brand-img {
    max-width: 100%;
    max-height: 56px;
  }

  .scene-hub .podium {
    width: 100%;
    max-width: 130px;
    margin: 0 auto;
  }

  .anim-float-left,
  .anim-float-right,
  .anim-float-hub {
    animation: none;
  }

  .scene-orbs { display: none; }

  .dash-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .dash-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 12px;
  }

  .dash-nav-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .dash-nav {
    padding: 8px 12px;
    font-size: 0.72rem;
  }

  .dash-main {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .dash-chat {
    min-height: 220px;
  }

  .workflow-arrow { display: none; }
  .workflow-step { flex: 1 1 calc(50% - 8px); min-width: 0; }

  .feature-panel {
    padding: 28px 16px;
    border-radius: 24px;
  }

  .actions-panel {
    padding: 32px 16px;
  }

  .knowledge-layout {
    grid-template-columns: 1fr;
  }

  .source-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow-x: visible;
    padding-bottom: 0;
    scroll-snap-type: none;
  }

  .source-card {
    flex: none;
    width: auto;
  }

  .channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .hero-copy {
    min-width: 0;
  }

  .panel-list li {
    white-space: normal;
  }

  .hero-visual {
    width: 100%;
    min-width: 0;
  }

  .knowledge-visual {
    min-height: 300px;
    border-radius: 20px;
  }

  .hub-scene {
    width: min(100%, 300px);
    height: 300px;
    transform: scale(0.92);
    transform-origin: center center;
  }

  .hub-scene .hub-tile {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .hub-scene .hub-tile span {
    width: 22px;
    height: 22px;
  }

  .hub-scene .hub-cube {
    width: 92px;
    height: 92px;
  }

  .hub-scene .hub-cube-body {
    width: 92px;
    height: 92px;
    border-radius: 24px;
  }

  .hub-scene .hub-mark-img {
    width: 44px;
    height: 44px;
  }

  .cta-banner { padding: 0 0 32px; }
  .cta-inner { padding: 48px 20px; }
  .cta-actions { flex-direction: column; align-items: stretch; }
  .cta-blob-left { width: 120px; height: 120px; }
  .cta-blob-right { width: 100px; height: 100px; }

  .template-cards-row {
    grid-template-columns: 1fr 1fr;
  }

  .metrics-row {
    grid-template-columns: 1fr 1fr;
  }

  .nav-mobile {
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    z-index: 199;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .site-header { position: sticky; }

  .logo-img { height: 30px; max-width: 140px; object-fit: contain; object-position: left center; }

  .site-header .logo-img {
    height: 36px;
    max-width: 168px;
  }

  .footer-bottom { flex-direction: column; }

  .brand-logo {
    height: 24px;
    max-width: 120px;
  }

  .logo-row { gap: 16px 28px; }
}

@media (max-width: 959px) {
  .header-actions .btn-dark { display: none; }
}

/* ─── Floating chat widget ─── */
.cw-widget {
  position: fixed;
  bottom: max(24px, env(safe-area-inset-bottom, 0px));
  right: max(24px, env(safe-area-inset-right, 0px));
  left: auto;
  top: auto;
  z-index: 9999;
  font-family: var(--font);
  width: auto;
  max-width: min(380px, calc(100vw - 32px));
  pointer-events: none;
}

.cw-widget > * {
  pointer-events: auto;
}

.cw-launcher-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  position: relative;
  width: auto;
}

.cw-teaser {
  max-width: min(280px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid #e9d5ff;
  border-radius: 16px;
  padding: 12px 36px 12px 12px;
  box-shadow:
    0 12px 40px rgba(124, 58, 237, 0.16),
    0 4px 12px rgba(0, 0, 0, 0.06);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition:
    opacity 0.4s ease,
    transform 0.45s cubic-bezier(0.34, 1.4, 0.64, 1),
    visibility 0.4s;
  cursor: pointer;
  position: relative;
  order: -1;
}

.cw-teaser::after {
  content: "";
  position: absolute;
  bottom: -7px;
  right: 24px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-right: 1px solid #e9d5ff;
  border-bottom: 1px solid #e9d5ff;
  transform: rotate(45deg);
}

.cw-teaser.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cw-teaser.is-visible .cw-teaser-body {
  animation: cwTeaserFloat 4s ease-in-out infinite;
}

.cw-teaser.is-hidden {
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  animation: none;
  pointer-events: none;
}

@keyframes cwTeaserFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.cw-teaser-body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cw-teaser-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border);
  box-shadow: 0 2px 6px rgba(124, 58, 237, 0.12);
  display: flex;
  align-items: center;
}

.cw-teaser-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
}

.cw-teaser-line {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  min-height: 2.9em;
}

.cw-teaser-text {
  background: linear-gradient(135deg, #7c3aed 0%, #c026d3 50%, #db2777 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cw-teaser-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--purple);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cwCursorBlink 0.9s step-end infinite;
}

.cw-teaser-cursor.is-paused {
  animation: none;
  opacity: 0;
}

@keyframes cwCursorBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.cw-teaser-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--dim);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.cw-teaser-close:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.cw-launcher {
  position: relative;
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 12px 32px rgba(124, 58, 237, 0.4),
    0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cw-launcher:hover {
  transform: translateY(-3px) scale(1.04);
  box-shadow:
    0 16px 40px rgba(124, 58, 237, 0.45),
    0 6px 16px rgba(0, 0, 0, 0.12);
}

.cw-launcher.is-open {
  transform: rotate(0);
  background: #fff;
  color: var(--purple);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.cw-launcher-inner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  overflow: hidden;
  flex-shrink: 0;
}

.cw-launcher-inner[hidden],
.cw-launcher-icon[hidden] {
  display: none !important;
}

.cw-launcher-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  border-radius: 50%;
  background: transparent;
  flex-shrink: 0;
  transform: scale(1.08);
}

.cw-launcher.is-open .cw-launcher-inner { display: none; }

.cw-launcher-icon {
  display: none;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.cw-launcher.is-open .cw-launcher-icon {
  display: flex;
}

.cw-launcher-pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(124, 58, 237, 0.35);
  animation: cwPulse 2.5s ease-out infinite;
  pointer-events: none;
}

.cw-launcher.is-open .cw-launcher-pulse,
.cw-launcher.no-badge .cw-launcher-pulse {
  animation: none;
  opacity: 0;
}

@keyframes cwPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.35); opacity: 0; }
}

.cw-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  animation: cwBadgePop 0.4s ease;
}

.cw-badge.is-hidden { display: none; }

@keyframes cwBadgePop {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

.cw-panel {
  position: fixed;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  right: max(24px, env(safe-area-inset-right, 0px));
  left: auto;
  top: auto;
  width: 380px;
  max-width: calc(100vw - 32px);
  max-height: min(620px, calc(100dvh - 120px));
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow:
    0 24px 64px rgba(124, 58, 237, 0.18),
    0 12px 32px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(0.96);
  transform-origin: bottom right;
  transition:
    opacity 0.3s ease,
    transform 0.3s cubic-bezier(0.34, 1.4, 0.64, 1),
    visibility 0.3s;
}

.cw-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.cw-widget:has(.cw-teaser.is-visible) .cw-panel {
  bottom: calc(175px + env(safe-area-inset-bottom, 0px));
}

.cw-widget:has(.cw-panel.is-open) .cw-teaser {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cw-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: var(--gradient);
  color: #fff;
}

.cw-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.cw-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
}

.cw-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.cw-header strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
}

.cw-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  opacity: 0.92;
  margin-top: 2px;
}

.cw-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.25);
  animation: cwStatusBlink 2s ease-in-out infinite;
}

@keyframes cwStatusBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

.cw-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.cw-close:hover { background: rgba(255, 255, 255, 0.28); }

.cw-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 10px 14px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.cw-mode {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.cw-mode:hover {
  border-color: #ddd6fe;
  color: var(--purple);
}

.cw-mode.active {
  background: #f3e8ff;
  border-color: #c4b5fd;
  color: var(--purple);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.12);
}

.cw-text-panel {
  background: #fff;
}

.cw-voice-panel {
  padding: 20px 18px 8px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(243, 232, 255, 0.7) 0%, transparent 70%),
    #fff;
  text-align: center;
}

.cw-voice-visual {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cw-voice-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(196, 181, 253, 0.45);
  opacity: 0;
  transform: scale(0.85);
}

.cw-voice-ring-2 {
  inset: -8px;
}

.cw-voice-visual.is-listening .cw-voice-ring {
  animation: cwVoiceRing 1.8s ease-out infinite;
}

.cw-voice-visual.is-listening .cw-voice-ring-2 {
  animation: cwVoiceRing 1.8s ease-out infinite 0.4s;
}

.cw-voice-visual.is-speaking .cw-voice-ring {
  animation: cwVoiceRing 2.2s ease-out infinite;
  border-color: rgba(219, 39, 119, 0.4);
}

@keyframes cwVoiceRing {
  0% { opacity: 0.7; transform: scale(0.85); }
  100% { opacity: 0; transform: scale(1.25); }
}

.cw-voice-mic {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border: none;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 12px 32px rgba(124, 58, 237, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cw-voice-mic:hover {
  transform: scale(1.05);
}

.cw-voice-mic.is-listening {
  background: linear-gradient(135deg, #ef4444 0%, #db2777 100%);
  animation: cwMicPulse 1.2s ease-in-out infinite;
}

.cw-voice-mic.is-speaking {
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
}

@keyframes cwMicPulse {
  0%, 100% { box-shadow: 0 12px 32px rgba(239, 68, 68, 0.35); }
  50% { box-shadow: 0 12px 40px rgba(239, 68, 68, 0.55); }
}

.cw-stop-icon { display: none; }
.cw-voice-mic.is-listening .cw-mic-icon { display: none; }
.cw-voice-mic.is-listening .cw-stop-icon { display: block; }

.cw-voice-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 28px;
  margin-bottom: 10px;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cw-voice-bars.is-active {
  opacity: 1;
}

.cw-voice-bars span {
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--gradient);
  animation: cwVoiceBar 0.9s ease-in-out infinite;
}

.cw-voice-bars span:nth-child(1) { animation-delay: 0s; }
.cw-voice-bars span:nth-child(2) { animation-delay: 0.1s; }
.cw-voice-bars span:nth-child(3) { animation-delay: 0.2s; }
.cw-voice-bars span:nth-child(4) { animation-delay: 0.3s; }
.cw-voice-bars span:nth-child(5) { animation-delay: 0.4s; }

@keyframes cwVoiceBar {
  0%, 100% { height: 8px; opacity: 0.45; }
  50% { height: 24px; opacity: 1; }
}

.cw-voice-status {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
}

.cw-speak-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  user-select: none;
  margin-bottom: 8px;
}

.cw-speak-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cw-speak-track {
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: var(--border);
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.cw-speak-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.cw-speak-toggle input:checked + .cw-speak-track {
  background: var(--purple);
}

.cw-speak-toggle input:checked + .cw-speak-track .cw-speak-thumb {
  transform: translateX(16px);
}

.cw-voice-hint {
  font-size: 0.72rem;
  color: var(--dim);
  min-height: 1.2em;
  margin-top: 4px;
}

.cw-panel.is-voice-mode .cw-messages {
  max-height: 200px;
  min-height: 100px;
}

.cw-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(245, 243, 255, 0.6) 0%, transparent 70%),
    #fafafa;
  scroll-behavior: smooth;
}

.cw-msg {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  animation: cwMsgIn 0.35s ease forwards;
}

.cw-msg.user {
  flex-direction: row-reverse;
}

@keyframes cwMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cw-msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient);
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.25);
}

.cw-msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #fff;
  padding: 2px;
  box-sizing: border-box;
}

.cw-msg-bubble {
  max-width: 78%;
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 0.84rem;
  line-height: 1.55;
}

.cw-msg.bot .cw-msg-bubble {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.cw-msg.user .cw-msg-bubble {
  background: var(--gradient);
  color: #fff;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.25);
}

.cw-msg-bubble p { margin: 0; }
.cw-msg-bubble p + p { margin-top: 8px; }

.cw-typing {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}

.cw-typing span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c4b5fd;
  animation: dashTypingDot 1.2s ease-in-out infinite;
}

.cw-typing span:nth-child(2) { animation-delay: 0.15s; }
.cw-typing span:nth-child(3) { animation-delay: 0.3s; }

.cw-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
  background: #fafafa;
}

.cw-chips button {
  font-family: var(--font);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid #e9d5ff;
  background: #fff;
  color: var(--purple);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.cw-chips button:hover {
  background: #f3e8ff;
  border-color: #c4b5fd;
  transform: translateY(-1px);
}

.cw-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.cw-input-row input {
  flex: 1;
  font-family: var(--font);
  font-size: 0.88rem;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-alt);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cw-input-row input:focus {
  border-color: #c4b5fd;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
  background: #fff;
}

.cw-send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 12px;
  background: var(--gradient);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cw-send:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.35);
}

.cw-powered {
  text-align: center;
  font-size: 0.68rem;
  color: var(--dim);
  padding: 8px 12px 12px;
  background: #fff;
}

.cw-powered a {
  color: inherit;
  text-decoration: none;
}

.cw-powered a:hover strong {
  color: var(--purple-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cw-powered strong { color: var(--purple); font-weight: 700; }

@media (max-width: 767px) {
  .cw-widget {
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    left: auto;
    max-width: calc(100vw - 32px);
  }

  .cw-launcher-wrap {
    flex-direction: column;
    align-items: flex-end;
  }

  .cw-teaser {
    max-width: min(300px, calc(100vw - 32px));
    border-radius: 16px;
  }

  .cw-widget:has(.cw-teaser.is-visible) .cw-panel {
    bottom: calc(190px + env(safe-area-inset-bottom, 0px));
  }

  .cw-panel {
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    right: max(16px, env(safe-area-inset-right, 0px));
    left: auto;
    width: min(380px, calc(100vw - 32px));
    max-height: calc(100dvh - 96px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cw-launcher-pulse,
  .cw-status-dot,
  .cw-msg,
  .cw-voice-ring,
  .cw-voice-mic.is-listening,
  .cw-voice-bars span,
  .cw-teaser.is-visible .cw-teaser-body {
    animation: none;
  }

  .cw-teaser-cursor {
    animation: none;
    opacity: 1;
  }
}

::selection {
  background: rgba(124, 58, 237, 0.15);
  color: var(--text);
}
