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

:root {
  color-scheme: dark;
  --bg: #030712;
  --bg-surface: #0c1120;
  --bg-card: #0d1425;
  --bg-card-hover: #111d35;
  --border: rgba(255, 255, 255, 0.06);
  --border-bright: rgba(139, 92, 246, 0.3);
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-glow: rgba(124, 58, 237, 0.35);
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.25);
  --amber: #f59e0b;
  --green: #10b981;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #475569;
  --radius: 12px;
  --radius-lg: 20px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

html.b-agent-marketing-root { scroll-behavior: smooth; }

body.b-agent-marketing-site {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; font-family: inherit; }
img { max-width: 100%; display: block; }

/* ===================== UTILITIES ===================== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.section { padding: 110px 0; contain: layout style; }

.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-light);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}

.section-badge .badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: pulse-dot 2s ease-in-out infinite;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
  color: var(--text);
}

.section-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.75;
}

.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================== BUTTONS ===================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--primary-glow);
  background: #8b45f5;
}
.btn-primary:hover::after { opacity: 1; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-outline:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(139, 92, 246, 0.5);
  transform: translateY(-2px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: transparent;
  color: var(--text-muted);
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,0.05); }

/* ===================== NAVBAR ===================== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.4s var(--ease), padding 0.3s var(--ease), backdrop-filter 0.4s;
  border: none;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.navbar.scrolled {
  background: rgba(3, 7, 18, 0.65);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  padding: 12px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

/* Single span so flex gap doesn't split the wordmark */
.logo-wordmark { color: var(--text); }

.navbar .logo-wordmark {
  color: #f8fafc;
}
[data-theme="light"] .navbar .logo-wordmark {
  color: #0a0a0a;
}
.navbar .navbar-logo:focus-visible .logo-wordmark {
  color: #f8fafc;
}
[data-theme="light"] .navbar .navbar-logo:focus-visible .logo-wordmark {
  color: #0a0a0a;
}

.theme-toggle {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.3);
  color: var(--primary-light);
}

[data-theme="light"] .theme-toggle {
  background: rgba(0,0,0,0.04);
  border-color: rgba(100,100,160,0.15);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.lang-toggle:hover {
  background: rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.3);
  color: var(--primary-light);
}
[data-theme="light"] .lang-toggle {
  background: rgba(0,0,0,0.04);
  border-color: rgba(100,100,160,0.15);
}

/* Match Features grid rhythm: 2px gutter + compact link padding (was 4px / 16px — felt too airy) */
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.navbar-nav a {
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.navbar-nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.navbar-actions .btn-primary { padding: 10px 22px; font-size: 14px; }

.dash-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--primary-light);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}
.dash-nav-btn:hover {
  background: rgba(124,58,237,0.18);
  border-color: rgba(124,58,237,0.4);
}
[data-theme="light"] .dash-nav-btn {
  background: rgba(124,58,237,0.08);
  border-color: rgba(124,58,237,0.2);
}

@media (max-width: 768px) {
  .dash-nav-label { display: none; }
  .dash-nav-btn { padding: 7px 8px; }
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-aurora {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  mix-blend-mode: screen;
  opacity: 0.55;
  will-change: transform;
  contain: layout style;
  backface-visibility: hidden;
}

.aurora-blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(124,58,237,0.7) 0%, transparent 70%);
  top: -15%; left: -10%;
  animation: aurora-drift-1 18s ease-in-out infinite;
}
.aurora-blob-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(6,182,212,0.6) 0%, transparent 70%);
  top: 20%; right: -5%;
  animation: aurora-drift-2 22s ease-in-out infinite;
}
.aurora-blob-3 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(79,70,229,0.5) 0%, transparent 70%);
  bottom: -20%; left: 30%;
  animation: aurora-drift-3 26s ease-in-out infinite;
}
.aurora-blob-4 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(236,72,153,0.4) 0%, transparent 70%);
  top: 40%; left: 20%;
  animation: aurora-drift-4 20s ease-in-out infinite;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.features-fluid-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  padding: 80px 0;
}

.hero-content { max-width: 580px; }

.hero-announcement {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.25);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  animation: fade-up 0.6s var(--ease) 0.1s both;
}

.hero-announcement .pill {
  padding: 3px 10px;
  background: var(--primary);
  color: white;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-announcement .arrow { color: var(--primary-light); }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  animation: fade-up 0.6s var(--ease) 0.2s both;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 500px;
  animation: fade-up 0.6s var(--ease) 0.3s both;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fade-up 0.6s var(--ease) 0.4s both;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: fade-up 0.6s var(--ease) 0.5s both;
}

.trust-avatars {
  display: flex;
}

.trust-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: white;
  margin-left: -8px;
}

.trust-avatar:first-child { margin-left: 0; }

.trust-text { font-size: 13px; color: var(--text-muted); }
.trust-text strong { color: var(--text); }

/* Hero preview card */
.hero-preview {
  animation: fade-up 0.7s var(--ease) 0.3s both;
}

.preview-window {
  background: rgba(13, 20, 37, 0.8);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(20px);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05) inset;
  position: relative;
  overflow: hidden;
}

.preview-window::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.5), transparent);
}

.preview-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.preview-dots { display: flex; gap: 6px; }
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-dot.red { background: #ff5f57; }
.preview-dot.yellow { background: #febc2e; }
.preview-dot.green { background: #28c840; }

.preview-title {
  flex: 1;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
  font-weight: 500;
}

.preview-live {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--green);
  font-weight: 600;
}

.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 1.5s ease-in-out infinite;
}

.preview-agents { display: flex; flex-direction: column; gap: 12px; }

button.preview-agent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: background 0.2s;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

button.preview-agent-row:hover { background: rgba(124,58,237,0.06); }

button.preview-agent-row:focus-visible {
  outline: 2px solid rgba(124,58,237,0.6);
  outline-offset: 2px;
}

.agent-icon-sm {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.agent-info { flex: 1; min-width: 0; }

.agent-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.agent-bar-track {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.agent-bar-fill {
  height: 100%;
  border-radius: 2px;
  animation: bar-grow 1.5s var(--ease) both;
}

.agent-stat {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  flex-shrink: 0;
}

.preview-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.metric-box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  text-align: center;
}

.metric-value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.metric-label {
  font-size: 10px;
  color: var(--text-dim);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===================== LOGOBAR ===================== */
.logobar {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.logobar-label {
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
  margin-bottom: 28px;
}

.logobar-track {
  display: flex;
  align-items: center;
  gap: 56px;
  animation: logo-scroll 30s linear infinite;
  width: max-content;
  will-change: transform;
  backface-visibility: hidden;
}

.logobar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
  opacity: 0.5;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.logobar-item:hover { opacity: 0.9; }
.logobar-item svg { flex-shrink: 0; }

/* ===================== COMPANY STATS ===================== */
.company-stats {
  padding: 48px 0 56px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, transparent 0%, rgba(124, 58, 237, 0.04) 50%, transparent 100%);
}

.company-stats-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.company-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  flex: 1 1 520px;
}

.company-stat-card {
  text-align: center;
  padding: 20px 12px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.company-stat-value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text) 0%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.company-stat-label {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.company-stats-partner {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.company-stats-partner img {
  display: block;
  width: min(100%, 280px);
  height: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .company-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .company-stats-partner {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .company-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .company-stat-card {
    padding: 16px 10px;
  }
}

[data-theme="light"] .company-stat-card,
[data-theme="light"] .company-stats-partner {
  box-shadow: 0 2px 12px rgba(100, 100, 160, 0.08);
}

/* ===================== PRODUCTS ===================== */
.products { background: transparent; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  will-change: transform;
  contain: layout style;
}

a.product-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--card-glow, rgba(124,58,237,0.08)) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.product-card.bagent-agent-explore:focus-visible {
  outline: 2px solid rgba(124,58,237,0.55);
  outline-offset: 3px;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.product-card:hover::before { opacity: 1; }

.product-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.product-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.product-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tag-popular { background: rgba(124,58,237,0.2); color: var(--primary-light); }
.tag-new { background: rgba(6,182,212,0.15); color: var(--cyan); }
.tag-beta { background: rgba(245,158,11,0.15); color: var(--amber); }

.product-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.product-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.product-feats {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 24px;
}

.product-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.feat-check {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(16,185,129,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 9px;
  color: var(--green);
}

.product-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary-light);
  transition: gap 0.2s;
}

.product-card:hover .product-link { gap: 10px; }

/* ===================== CASE STUDIES ===================== */
.case-studies {
  background: var(--bg-surface);
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.case-study-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 0;
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  will-change: transform;
  display: flex;
  flex-direction: column;
}

a.case-study-card {
  text-decoration: none;
  color: inherit;
}

.case-study-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
}

.case-study-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}

.case-study-card:hover .case-study-thumb {
  transform: scale(1.04);
}

.case-study-card-body {
  padding: 24px 28px 28px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.case-study-card .product-feats {
  flex: 1;
}

.case-study-card .product-link {
  margin-top: 4px;
}

.case-study-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--card-glow, rgba(124,58,237,0.08)) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.case-study-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-bright);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.case-study-card:hover::before { opacity: 1; }

.case-study-card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.case-study-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  padding-top: 2px;
}

.case-study-client {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.case-study-sector {
  font-size: 13px;
  color: var(--primary-light);
  font-weight: 600;
}

.case-study-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.case-study-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.solution-page {
  padding-top: 72px;
}

.solution-visual-section {
  padding: 72px 0 40px;
  background: var(--bg);
}

.solution-visual-frame {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  position: relative;
}

.solution-visual-img {
  width: 100%;
  height: auto;
  display: block;
}

.solution-visual-caption {
  padding: 14px 20px 18px;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
}

.solution-other-section {
  padding: 48px 0 96px;
  background: var(--bg-surface);
}

.solution-other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.solution-other-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: inherit;
  text-decoration: none;
  transition: transform 0.25s var(--ease), border-color 0.25s, box-shadow 0.25s;
}

.solution-other-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

.solution-other-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.solution-other-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
}

.agent-highlights-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.agent-highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.agent-highlight-icon {
  font-size: 22px;
  margin-bottom: 12px;
}

.agent-highlight-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.agent-highlight-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.agent-subdomain-box {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.agent-subdomain-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.agent-subdomain-text {
  flex: 1;
  min-width: 200px;
}

.agent-subdomain-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.agent-subdomain-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.agent-subdomain-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .solution-other-grid,
  .agent-highlights-grid {
    grid-template-columns: 1fr;
  }
}

/* ===================== FEATURES ===================== */
.features {
  background: var(--bg-surface);
  position: relative;
  overflow: hidden;
  min-height: 520px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-cell {
  background: var(--bg-card);
  padding: 36px 32px;
  transition: background 0.3s;
  position: relative;
}

.feature-cell:hover { background: var(--bg-card-hover); }

.feature-cell::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(180deg, var(--primary), var(--cyan));
  transition: height 0.3s;
}

.feature-cell:hover::after { height: 100%; }

.feature-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.15);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ===================== HOW IT WORKS ===================== */
.howitworks { background: var(--bg); }

.steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}

.steps-container::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  opacity: 0.25;
  border-radius: 1px;
}

.step {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.step:hover {
  border-color: var(--border-bright);
  box-shadow: 0 0 32px rgba(124,58,237,0.08);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.step-number {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  color: var(--primary-light);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--primary-glow);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: -1;
}

.step:hover .step-number::after { opacity: 1; }

.step-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-light);
}

.step-content {
  flex: 1;
}

.step-icon {
  font-size: 32px;
  margin-bottom: 14px;
  line-height: 1;
}

.step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===================== STATS ===================== */
.stats {
  background: var(--bg-surface);
  padding: 80px 0;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 90% 65% at 12% 22%, rgba(124, 58, 237, 0.16), transparent 58%),
    radial-gradient(ellipse 80% 60% at 92% 78%, rgba(6, 182, 212, 0.12), transparent 55%);
  opacity: 0.85;
  animation: section-ambient-shift 16s ease-in-out infinite;
}

.stats .container { position: relative; z-index: 1; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-box {
  background: var(--bg-card);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.stat-box::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  transform: scaleX(0);
  transition: transform 0.4s var(--ease);
}

.stat-box:hover::before { transform: scaleX(1); }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* ===================== TESTIMONIALS ===================== */
.testimonials { background: var(--bg); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s var(--ease), border-color 0.3s;
  display: flex;
  flex-direction: column;
  gap: 20px;
  will-change: transform;
  contain: layout style;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,0.12);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  color: var(--amber);
  font-size: 14px;
}

.testimonial-quote {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.author-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.author-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.author-role {
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 2px;
}

/* ===================== PRICING ===================== */
.pricing {
  background: var(--bg-surface);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.pricing::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 55% at 78% 18%, rgba(6, 182, 212, 0.14), transparent 52%),
    radial-gradient(ellipse 85% 70% at 20% 85%, rgba(124, 58, 237, 0.12), transparent 58%);
  opacity: 0.88;
  animation: section-ambient-shift 18s ease-in-out infinite;
  animation-delay: -6s;
}

.pricing .container { position: relative; z-index: 1; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.3s var(--ease);
  position: relative;
  will-change: transform;
  contain: layout style;
}

.pricing-card.popular {
  border-color: var(--border-bright);
  background: linear-gradient(145deg, #0f1729, #130e2a);
  transform: translateY(-8px);
  box-shadow: 0 0 60px rgba(124,58,237,0.15);
}

.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.popular:hover { transform: translateY(-12px); }

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.pricing-tier { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 6px;
}

.price-currency { font-size: 20px; font-weight: 600; color: var(--text); padding-top: 6px; }

.price-amount {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.price-period { font-size: 14px; color: var(--text-dim); }

.pricing-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; line-height: 1.6; }

.pricing-divider { height: 1px; background: var(--border); margin: 24px 0; }

.pricing-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }

.pricing-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.pricing-check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--green);
  flex-shrink: 0;
}

.pricing-feat.dim { color: var(--text-dim); }
.pricing-feat.dim .pricing-check { background: rgba(255,255,255,0.03); border-color: var(--border); color: var(--text-dim); }

/* ===================== CONTACT ===================== */
.contact {
  background: var(--bg);
}

.contact-form {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-grid label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-grid label span {
  font-size: 13px;
  color: var(--text-muted);
}

.contact-grid input,
.contact-grid textarea,
.contact-grid select {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--font);
}

.contact-message {
  grid-column: 1 / -1;
}

.contact-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 14px 0 18px;
  color: var(--text-muted);
  font-size: 13px;
}

/* ===================== LEGAL PAGE ===================== */
.legal-page {
  min-height: 100vh;
  padding-top: 112px;
  padding-bottom: 72px;
  background: var(--bg);
}

.legal-topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.legal-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.legal-tabs a {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
}

.legal-tabs a.active {
  border-color: var(--border-bright);
  color: var(--primary-light);
  background: rgba(124,58,237,0.12);
}

.legal-title {
  font-family: var(--font-display);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.legal-content {
  white-space: pre-wrap;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 14px;
}

/* ===================== FAQ ===================== */
.faq { background: var(--bg); }

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.faq-intro .section-subtitle { max-width: 100%; }

.faq-cta-block {
  margin-top: 36px;
  padding: 24px;
  background: rgba(124,58,237,0.06);
  border: 1px solid rgba(124,58,237,0.15);
  border-radius: var(--radius);
}

.faq-cta-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.faq-cta-sub { font-size: 13px; color: var(--text-muted); margin-bottom: 16px; }

.faq-list { display: flex; flex-direction: column; gap: 2px; }

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.open { border-color: rgba(124,58,237,0.3); }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  background: transparent;
  width: 100%;
  text-align: left;
  transition: background 0.2s;
}

.faq-question:hover { background: rgba(255,255,255,0.02); }

.faq-chevron {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.25s, background 0.2s;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); background: rgba(124,58,237,0.2); color: var(--primary-light); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s var(--ease);
}

.faq-item.open .faq-answer { max-height: min(1200px, 80vh); }

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ===================== CTA ===================== */
.cta-section {
  padding: 120px 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.15), transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: cta-glow-breathe 20s ease-in-out infinite;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 30% 40%, rgba(6, 182, 212, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 70% 60%, rgba(236, 72, 153, 0.06), transparent 50%);
  opacity: 0.9;
  animation: section-ambient-shift 22s ease-in-out infinite;
  animation-delay: -10s;
}

.cta-section .container { position: relative; z-index: 1; }

.cta-box {
  position: relative;
  background: linear-gradient(145deg, rgba(124,58,237,0.12), rgba(6,182,212,0.05));
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 28px;
  padding: 72px 64px;
  text-align: center;
  overflow: hidden;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,0.6), rgba(6,182,212,0.4), transparent);
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 20px;
}

.cta-sub {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

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

.cta-note { margin-top: 20px; font-size: 13px; color: var(--text-dim); }

/* ===================== FOOTER ===================== */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}

.footer-brand {}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.footer-logo span,
.footer-logo .logo-wordmark {
  color: #f8fafc;
}
[data-theme="light"] .footer-logo span,
[data-theme="light"] .footer-logo .logo-wordmark {
  color: #0a0a0a;
}

.footer-brand-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 24px;
}

.footer-social {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--text-muted);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.social-btn:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.3);
  color: var(--primary-light);
}

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

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.footer-links li a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links li a:hover { color: var(--text); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy { font-size: 13px; color: var(--text-dim); }

.footer-legal {
  display: flex;
  gap: 24px;
  list-style: none;
}

.footer-legal li a { font-size: 13px; color: var(--text-dim); transition: color 0.2s; }
.footer-legal li a:hover { color: var(--text-muted); }
/* ===================== ANIMATIONS ===================== */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes section-ambient-shift {
  0%, 100% { opacity: 0.72; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.03); }
}

@keyframes cta-glow-breathe {
  0%, 100% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.82; transform: translate(calc(-50% + 1.5%), calc(-50% - 1%)) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .stats::before,
  .pricing::before,
  .cta-section::before,
  .cta-glow {
    animation: none !important;
  }
}

@keyframes aurora-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(60px, 40px) scale(1.1); }
  66% { transform: translate(-30px, 60px) scale(0.95); }
}

@keyframes aurora-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-80px, -30px) scale(1.05); }
  66% { transform: translate(40px, -60px) scale(1.1); }
}

@keyframes aurora-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-50px, 50px) scale(0.9); }
  66% { transform: translate(70px, -40px) scale(1.1); }
}

@keyframes aurora-drift-4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, -50px) scale(1.15); }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

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

@keyframes bar-grow {
  from { width: 0 !important; }
}
/* ===================== SCROLL REVEAL ===================== */
.section-header {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
  will-change: opacity, transform;
}
.section-header.in-view {
  opacity: 1;
  transform: translateY(0);
}

.products-grid,
.case-studies-grid,
.features-grid,
.steps-container,
.testimonials-grid,
.pricing-grid,
.faq-grid {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
  transition-delay: 0.12s;
  will-change: opacity, transform;
}
.products-grid.in-view,
.case-studies-grid.in-view,
.features-grid.in-view,
.steps-container.in-view,
.testimonials-grid.in-view,
.pricing-grid.in-view,
.faq-grid.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children inside grids */
.products-grid.in-view .product-card { opacity: 1; transform: translateY(0); }
.products-grid .product-card {
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s, opacity 0.55s var(--ease);
}
.products-grid.in-view .product-card { transition-delay: 0s; }
.products-grid.in-view .product-card:nth-child(2) { transition-delay: 0.07s; }
.products-grid.in-view .product-card:nth-child(3) { transition-delay: 0.14s; }
.products-grid.in-view .product-card:nth-child(4) { transition-delay: 0.21s; }
.products-grid.in-view .product-card:nth-child(5) { transition-delay: 0.28s; }
.products-grid.in-view .product-card:nth-child(6) { transition-delay: 0.35s; }
.products-grid.in-view .product-card:nth-child(7) { transition-delay: 0.42s; }
.products-grid.in-view .product-card:nth-child(8) { transition-delay: 0.49s; }
.products-grid.in-view .product-card:nth-child(9) { transition-delay: 0.56s; }
/* Keep hover working on in-view cards */
.products-grid.in-view .product-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--border-bright);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.case-studies-grid.in-view .case-study-card { opacity: 1; transform: translateY(0); }
.case-studies-grid .case-study-card {
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s, opacity 0.55s var(--ease);
}
.case-studies-grid.in-view .case-study-card:nth-child(2) { transition-delay: 0.08s; }
.case-studies-grid.in-view .case-study-card:nth-child(3) { transition-delay: 0.16s; }
.case-studies-grid.in-view .case-study-card:nth-child(4) { transition-delay: 0.24s; }
.case-studies-grid.in-view .case-study-card:hover {
  transform: translateY(-4px) !important;
  border-color: var(--border-bright);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.testimonials-grid.in-view .testimonial-card { opacity: 1; transform: translateY(0); }
.testimonials-grid .testimonial-card {
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease), border-color 0.3s, opacity 0.55s var(--ease);
}
.testimonials-grid.in-view .testimonial-card:nth-child(2) { transition-delay: 0.1s; }
.testimonials-grid.in-view .testimonial-card:nth-child(3) { transition-delay: 0.2s; }
.testimonials-grid.in-view .testimonial-card:hover { transform: translateY(-4px) !important; }

.pricing-grid.in-view .pricing-card { opacity: 1; transform: translateY(0); }
.pricing-grid .pricing-card {
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.3s var(--ease), opacity 0.55s var(--ease);
}
.pricing-grid.in-view .pricing-card.popular { transform: translateY(-8px); }
.pricing-grid.in-view .pricing-card:nth-child(2) { transition-delay: 0.1s; }
.pricing-grid.in-view .pricing-card:nth-child(3) { transition-delay: 0.2s; }
.pricing-grid.in-view .pricing-card:hover { transform: translateY(-4px) !important; }
.pricing-grid.in-view .pricing-card.popular:hover { transform: translateY(-12px) !important; }

.cta-box {
  opacity: 0;
  transform: translateY(32px) scale(0.98);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  will-change: opacity, transform;
}
.cta-box.in-view {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .section-header,
  .products-grid,
  .case-studies-grid,
  .features-grid,
  .steps-container,
  .testimonials-grid,
  .pricing-grid,
  .faq-grid,
  .cta-box {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .products-grid .product-card,
  .case-studies-grid .case-study-card,
  .testimonials-grid .testimonial-card,
  .pricing-grid .pricing-card {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Features section – content always visible (canvas is decorative bg) */
.features .section-header,
.features .features-grid {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ===================== FEATURES SECTION CANVAS BG ===================== */
.features .features-content {
  position: relative;
  z-index: 1;
}

.features .features-grid {
  position: relative;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-content { max-width: 100%; }
  .hero-preview { max-width: 480px; margin: 0 auto; }
  .products-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .navbar-nav { display: none; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .case-studies-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .steps-container { grid-template-columns: 1fr; gap: 20px; }
  .steps-container::before { display: none; }
  .step { padding: 24px 22px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.popular { transform: none; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { padding: 48px 28px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .products-grid { grid-template-columns: 1fr; }
}

/* ===================== LIGHT MODE (theme toggle) ===================== */
[data-theme="light"] {
  color-scheme: light;
  --bg: #f0f4ff;
  --bg-surface: #e8edf8;
  --bg-card: #ffffff;
  --bg-card-hover: #f5f7ff;
  --border: rgba(100, 100, 160, 0.12);
  --border-bright: rgba(124, 58, 237, 0.35);
  --primary-glow: rgba(124, 58, 237, 0.2);
  --cyan-glow: rgba(6, 182, 212, 0.15);
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
}

[data-theme="light"] body.b-agent-marketing-site {
  background: var(--bg);
  color: var(--text);
}

[data-theme="light"] .navbar { background: transparent; }
[data-theme="light"] .navbar.scrolled { background: rgba(240, 244, 255, 0.72); }
[data-theme="light"] .aurora-blob { mix-blend-mode: multiply; opacity: 0.35; }
[data-theme="light"] .product-card,
[data-theme="light"] .case-study-card,
[data-theme="light"] .testimonial-card,
[data-theme="light"] .pricing-card { box-shadow: 0 2px 16px rgba(100, 100, 160, 0.08); }
[data-theme="light"] .product-card:hover,
[data-theme="light"] .case-study-card:hover,
[data-theme="light"] .testimonial-card:hover { box-shadow: 0 12px 40px rgba(100, 100, 160, 0.14); }
[data-theme="light"] .preview-window {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(100, 100, 160, 0.18);
  box-shadow: 0 32px 80px rgba(80, 80, 140, 0.15), 0 0 0 1px rgba(255,255,255,0.8) inset;
}
[data-theme="light"] .logobar { border-color: var(--border); background: var(--bg-surface); }
[data-theme="light"] .features-grid { background: rgba(100,100,160,0.1); }
[data-theme="light"] .feature-cell { background: #ffffff; }
[data-theme="light"] .feature-cell:hover { background: #fafbff; }
[data-theme="light"] .stats { background: var(--bg-surface); }
[data-theme="light"] .stats-grid { background: rgba(100,100,160,0.1); }
[data-theme="light"] .stat-box { background: #ffffff; }
[data-theme="light"] .testimonials .spiral-bg {
  opacity: 0.14 !important;
  filter: hue-rotate(220deg) saturate(1.4) brightness(1.05) !important;
}
[data-theme="light"] .cta-section { background: var(--bg); }
[data-theme="light"] .cta-box {
  background: linear-gradient(145deg, rgba(124,58,237,0.07), rgba(6,182,212,0.04));
  border-color: rgba(124,58,237,0.2);
}
[data-theme="light"] .footer { background: var(--bg-surface); border-top-color: var(--border); }
[data-theme="light"] .faq-item { background: #ffffff; }
[data-theme="light"] .faq-cta-block { background: rgba(124,58,237,0.04); }
[data-theme="light"] .pricing-card.popular { background: linear-gradient(145deg, #f5f0ff, #eef5ff); }
[data-theme="light"] .btn-ghost { color: var(--text-muted); }
[data-theme="light"] .btn-ghost:hover { background: rgba(100,100,160,0.08); color: var(--text); }

/* Nav user (optional) */
.nav-user-btn { display: inline-flex !important; align-items: center !important; gap: 8px !important; }
.nav-user-btn--icon-only { gap: 0 !important; padding: 4px 6px !important; }
.nav-user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}

/* Testimonials decorative background (same spiral asset as React; parallax in landing.js) */
.testimonials .spiral-bg {
  position: absolute;
  inset: -15%;
  z-index: 0;
  background-image:
    url('../img/spiral.svg'),
    radial-gradient(ellipse 90% 55% at 35% 35%, rgba(124, 58, 237, 0.22), transparent 58%),
    radial-gradient(ellipse 70% 50% at 75% 55%, rgba(6, 182, 212, 0.14), transparent 52%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(236, 72, 153, 0.08), transparent 50%),
    conic-gradient(from 200deg at 50% 50%, rgba(124, 58, 237, 0.06), transparent 35%, rgba(6, 182, 212, 0.05), transparent 70%);
  background-size: cover, auto, auto, auto, auto;
  background-position: center, center, center, center, center;
  background-repeat: no-repeat;
  opacity: 0.95;
  pointer-events: none;
  transform: perspective(900px) rotateY(0deg) rotateX(0deg) scale(1);
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ===================== AUTH MODAL (same as React AuthModal) ===================== */
.auth-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  animation: fadeIn 0.2s ease;
}

.auth-overlay.is-open {
  display: flex;
}

.auth-modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  position: relative;
  animation: slideUp 0.3s var(--ease);
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.auth-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 16px;
}

.auth-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.auth-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-submit {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 15px;
  margin-top: 4px;
  text-decoration: none;
}

.auth-or {
  text-align: center;
  margin: 1rem 0;
  opacity: 0.7;
  font-size: 14px;
  color: var(--text-muted);
}

.auth-entra-note {
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

[data-theme="light"] .auth-overlay {
  background: rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .auth-modal {
  box-shadow: 0 20px 60px rgba(100, 100, 160, 0.2);
}

[data-theme="light"] .auth-close:hover {
  background: rgba(0, 0, 0, 0.04);
}

@media (max-width: 640px) {
  .auth-modal { padding: 32px 24px; }
}

/* Turkish: avoid broken CSS uppercase on small labels */
:lang(tr) .hero-announcement .pill,
:lang(tr) .metric-label,
:lang(tr) .logobar-label,
:lang(tr) .product-tag,
:lang(tr) .step-label,
:lang(tr) .popular-badge,
:lang(tr) .pricing-tier,
:lang(tr) .agent-section-eyebrow,
:lang(tr) .footer-col-title,
:lang(tr) .dash-status,
:lang(tr) .dash-coming-soon-label,
:lang(tr) .dashboard-user-plan,
:lang(tr) .dash-time-label {
  text-transform: none;
}

/* ===================== AGENT DETAIL PAGE (/law, /hr, …) ===================== */
.bagent-agent-detail { padding-top: 96px; }

.agent-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.agent-breadcrumb a { color: var(--text-muted); text-decoration: none; }
.agent-breadcrumb a:hover { color: var(--text); }

.agent-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--card-glow, transparent) 0%, transparent 60%),
    var(--bg-card);
}
.agent-hero-icon { width: 64px; height: 64px; font-size: 2rem; flex: 0 0 auto; }
.agent-hero-text { flex: 1 1 320px; min-width: 0; }
.agent-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin: 0 0 12px;
}
.agent-hero-desc {
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 62ch;
  margin: 12px 0 24px;
}
.agent-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.agent-soon {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px dashed var(--border-bright);
  border-radius: var(--radius);
  color: var(--text-dim);
  font-size: 0.9375rem;
}

.agent-feats, .agent-other { margin-top: 56px; }
.agent-feats-title { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin-bottom: 20px; text-align: left; }
.agent-feats-list { max-width: 720px; }

.agent-other-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.agent-other-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.agent-other-card:hover { border-color: var(--border-bright); background: var(--bg-card-hover); }
.agent-other-card .product-icon { width: 36px; height: 36px; font-size: 1.125rem; }
.agent-other-name { font-size: 0.9375rem; font-weight: 500; }

@media (max-width: 640px) {
  .bagent-agent-detail { padding-top: 72px; }
  .agent-hero { padding: 22px; }
}

/* ---- agent detail: fluid canvas + scroll reveal ---- */
.agent-hero { position: relative; overflow: hidden; }
.agent-hero-fluid { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.9; }
/* Keep content above the canvas */
.agent-hero-icon, .agent-hero-text { position: relative; z-index: 1; }

.agent-breadcrumb,
.agent-hero,
.agent-feats,
.agent-other {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
  will-change: opacity, transform;
}
.agent-breadcrumb.in-view,
.agent-hero.in-view,
.agent-feats.in-view,
.agent-other.in-view {
  opacity: 1;
  transform: translateY(0);
}
.agent-hero.in-view { transition-delay: 0.06s; }
.agent-feats.in-view { transition-delay: 0.1s; }
.agent-other.in-view { transition-delay: 0.14s; }

/* Stagger the feature rows */
.agent-feats-list .product-feat {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.agent-feats.in-view .agent-feats-list .product-feat { opacity: 1; transform: translateY(0); }
.agent-feats.in-view .agent-feats-list .product-feat:nth-child(2) { transition-delay: 0.08s; }
.agent-feats.in-view .agent-feats-list .product-feat:nth-child(3) { transition-delay: 0.16s; }
.agent-feats.in-view .agent-feats-list .product-feat:nth-child(4) { transition-delay: 0.24s; }
.agent-feats.in-view .agent-feats-list .product-feat:nth-child(5) { transition-delay: 0.32s; }

/* Stagger the other-agent cards */
.agent-other-list .agent-other-card {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease), transform 0.35s var(--ease), border-color 0.3s, background 0.3s;
}
.agent-other.in-view .agent-other-list .agent-other-card { opacity: 1; transform: translateY(0); }
.agent-other.in-view .agent-other-list .agent-other-card:nth-child(2) { transition-delay: 0.05s; }
.agent-other.in-view .agent-other-list .agent-other-card:nth-child(3) { transition-delay: 0.10s; }
.agent-other.in-view .agent-other-list .agent-other-card:nth-child(4) { transition-delay: 0.15s; }
.agent-other.in-view .agent-other-list .agent-other-card:nth-child(5) { transition-delay: 0.20s; }
.agent-other.in-view .agent-other-list .agent-other-card:nth-child(6) { transition-delay: 0.25s; }
.agent-other.in-view .agent-other-list .agent-other-card:nth-child(7) { transition-delay: 0.30s; }
.agent-other.in-view .agent-other-list .agent-other-card:nth-child(8) { transition-delay: 0.35s; }
.agent-other-card:hover { transform: translateY(-2px); }

/* Respect the OS setting: no motion, no hidden content */
@media (prefers-reduced-motion: reduce) {
  .agent-breadcrumb, .agent-hero, .agent-feats, .agent-other,
  .agent-feats-list .product-feat, .agent-other-list .agent-other-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .agent-hero-fluid { display: none; }
}

/* ===================== ÖRNEK SENARYOLAR ===================== */

/* CTA at the foot of the Kurumsal Çözümler section */
.case-studies-cta { display: flex; justify-content: center; margin-top: 40px; }
.case-studies-cta-btn { display: inline-flex; align-items: center; gap: 10px; text-align: center; }

.bagent-scenarios, .bagent-scenario-detail { padding-top: 96px; }
.bagent-scenarios .section-header { margin-bottom: 44px; }

.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.scenario-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 0% 0%, var(--card-glow, transparent) 0%, transparent 60%),
    var(--bg-card);
  transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.scenario-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-bright);
  box-shadow: 0 18px 40px -24px rgba(0,0,0,0.55);
}
.scenario-card-top { display: flex; align-items: center; gap: 12px; }
.scenario-sector {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.scenario-title {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  line-height: 1.4;
  margin: 0;
}
.scenario-summary {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
  margin: 0;
  flex: 1 1 auto;
}
.scenario-view {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.scenarios-footer-cta { display: flex; justify-content: center; margin-top: 48px; }

/* Detail page */
.scenario-hero .scenario-sector { display: block; margin-bottom: 10px; position: relative; z-index: 1; }
.scenario-body { margin-top: 8px; }
.scenario-block { margin-top: 48px; }
.scenario-para {
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 72ch;
  margin: 0;
}
.scenario-more { margin-top: 56px; }

/* Reveal — same observer and cadence as the product grid */
.scenarios-grid {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.72s var(--ease), transform 0.72s var(--ease);
  transition-delay: 0.1s;
}
.scenarios-grid.in-view { opacity: 1; transform: translateY(0); }
.scenarios-grid .scenario-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s var(--ease), transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.scenarios-grid.in-view .scenario-card { opacity: 1; transform: translateY(0); }
.scenarios-grid.in-view .scenario-card:nth-child(2) { transition-delay: 0.07s; }
.scenarios-grid.in-view .scenario-card:nth-child(3) { transition-delay: 0.14s; }
.scenarios-grid.in-view .scenario-card:nth-child(4) { transition-delay: 0.21s; }
.scenarios-grid.in-view .scenario-card:nth-child(5) { transition-delay: 0.28s; }
.scenarios-grid.in-view .scenario-card:nth-child(6) { transition-delay: 0.35s; }
.scenarios-grid.in-view .scenario-card:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  .scenarios-grid, .scenarios-grid .scenario-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .bagent-scenarios, .bagent-scenario-detail { padding-top: 72px; }
  .scenario-card { padding: 20px; }
  .case-studies-cta-btn { width: 100%; justify-content: center; }
}

/* ---- scenario images + expanded detail ---- */
.scenario-card { padding: 0; overflow: hidden; text-decoration: none; color: inherit; }
.scenario-card-media { display: block; position: relative; aspect-ratio: 1200 / 630; overflow: hidden; background: var(--bg-surface); }
.scenario-thumb { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.scenario-card:hover .scenario-thumb { transform: scale(1.04); }
.scenario-card-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(to bottom, transparent, var(--bg-card));
  pointer-events: none;
}
.scenario-card-body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; }
.scenario-card .scenario-title { display: block; }
.scenario-card .scenario-summary { display: block; }
.scenario-card .scenario-view { margin-top: 4px; }

.scenario-cover {
  margin: 0 0 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  line-height: 0;
}
.scenario-cover img { width: 100%; height: auto; display: block; }

/* At-a-glance metric tiles */
.scenario-metrics { margin-top: 44px; }
.scenario-metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.scenario-metric {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.scenario-metric-value {
  font-family: var(--font-display);
  font-size: clamp(1.375rem, 3vw, 1.875rem);
  line-height: 1.1;
  background: linear-gradient(135deg, #a78bfa 0%, #06b6d4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.scenario-metric-label { margin-top: 8px; color: var(--text-muted); font-size: 0.875rem; line-height: 1.55; }

/* Delivery steps */
.scenario-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; max-width: 820px; }
.scenario-step { display: flex; gap: 16px; align-items: flex-start; }
.scenario-step-no {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 0.875rem;
  color: var(--primary-light);
  padding: 6px 10px;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.scenario-step-text { display: flex; flex-direction: column; gap: 4px; }
.scenario-step-text strong { font-weight: 600; }
.scenario-step-text span { color: var(--text-muted); line-height: 1.7; }

/* Technology chips */
.scenario-stack { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.scenario-chip {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.875rem;
}

@media (max-width: 640px) {
  .scenario-card-body { padding: 18px 18px 20px; }
  .scenario-step { gap: 12px; }
}

/* ---- photographic scenario images on a dark theme ----
   The photos are real stock, so their brightness varies wildly (a white glass facade next to a
   dark server room). A shared tint + gradient keeps the six cards reading as one set instead of
   a patchwork, and keeps the card text legible over the image. */
.scenario-thumb,
.scenario-cover img {
  filter: saturate(0.82) contrast(1.04) brightness(0.92);
}
.scenario-card-media::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(11,13,23,0.30) 0%, rgba(11,13,23,0.05) 45%, rgba(11,13,23,0.85) 100%),
    radial-gradient(120% 120% at 0% 0%, var(--card-glow, transparent) 0%, transparent 55%);
  pointer-events: none;
}
/* keep the existing bottom fade above the tint */
.scenario-card-media::after { z-index: 2; }

.scenario-cover { position: relative; }
.scenario-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,13,23,0.22) 0%, rgba(11,13,23,0.02) 40%, rgba(11,13,23,0.55) 100%);
  pointer-events: none;
}

/* Light theme: photos need far less darkening */
:root[data-theme='light'] .scenario-thumb,
:root[data-theme='light'] .scenario-cover img {
  filter: saturate(0.9) contrast(1.02);
}
:root[data-theme='light'] .scenario-card-media::before,
:root[data-theme='light'] .scenario-cover::after {
  background: linear-gradient(180deg, rgba(255,255,255,0.05) 0%, transparent 50%, rgba(0,0,0,0.18) 100%);
}

/* Illustrative-scenario note: these pages describe what could be built, not delivered projects. */
.scenarios-disclaimer,
.scenario-disclaimer {
  margin: 14px auto 0;
  max-width: 66ch;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-dim);
}
.scenario-disclaimer { margin: 16px 0 0; text-align: left; }

/* Scenario CTA: invite the visitor's own scenario rather than just a sales link. */
.scenarios-footer-cta { flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.scenarios-cta-prompt {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  line-height: 1.3;
}
.scenarios-cta-sub { margin: 0 0 14px; color: var(--text-muted); font-size: 0.9375rem; }

/* Contact form: honeypot stays out of sight of people but reachable to bots. */
.contact-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-status { margin: 10px 0 0; min-height: 1.25em; font-size: 0.9375rem; }
.contact-status.is-pending { color: var(--text-muted); }
.contact-status.is-ok { color: var(--green); }
.contact-status.is-error { color: #f87171; }
.contact-form { position: relative; }
