:root {
  --aiml-gradient: linear-gradient(135deg, #2563eb 0%, #7c3aed 55%, #a855f7 100%);
  --aiml-glow: 0 18px 55px rgba(79, 70, 229, 0.35);
}

[data-bs-theme="dark"] body {
  background: radial-gradient(1200px 600px at 10% -10%, rgba(124, 58, 237, 0.22), transparent),
    radial-gradient(900px 500px at 90% 0%, rgba(37, 99, 235, 0.18), transparent),
    #0b1020;
}

.hero-gradient {
  background: var(--aiml-gradient);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero-gradient::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.25), transparent 45%),
    radial-gradient(circle at 70% 40%, rgba(255, 255, 255, 0.18), transparent 50%);
  opacity: 0.35;
  pointer-events: none;
}

.glass-card {
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

[data-bs-theme="light"] .glass-card {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(15, 23, 42, 0.07);
}

.stat-number {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-title {
  letter-spacing: -0.03em;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.sidebar {
  min-height: calc(100vh - 0px);
  border-right: 1px solid rgba(148, 163, 184, 0.18);
}

[data-bs-theme="dark"] .sidebar {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.92));
}

[data-bs-theme="light"] .sidebar {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.brand-wordmark {
  font-weight: 800;
  letter-spacing: -0.04em;
}

.tag-snippet {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.85rem;
}

/* --- Marketing / home --- */
.home-hero-img {
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.35);
}

[data-bs-theme="light"] .home-hero-img {
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 28px 70px rgba(37, 99, 235, 0.12);
}

.home-float-card {
  max-width: 220px;
  backdrop-filter: blur(14px);
}

.home-section-intro {
  max-width: 720px;
}

.home-img-soft {
  border-radius: 1.25rem;
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.14);
}

[data-bs-theme="dark"] .home-img-soft {
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
}

.home-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
}

[data-bs-theme="dark"] .home-feature-icon {
  background: rgba(129, 140, 248, 0.14);
  color: #a5b4fc;
}

.home-trust-chip {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  color: inherit;
  opacity: 0.85;
}

.home-format-visual {
  height: 132px;
  border-radius: 0.85rem;
  background: var(--aiml-gradient);
}

.fmt-banner {
  background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
}

.fmt-native {
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
}

.fmt-pop {
  background: linear-gradient(135deg, #ea580c 0%, #f97316 100%);
}

.fmt-video {
  background: linear-gradient(135deg, #0f172a 0%, #475569 100%);
}

.fmt-interstitial {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

.fmt-rich {
  background: linear-gradient(135deg, #4338ca 0%, #7e22ce 50%, #ec4899 100%);
}

.home-banner-section {
  position: relative;
  min-height: 340px;
  border-radius: 1.5rem;
  overflow: hidden;
}

.home-banner-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(15, 23, 42, 0.92) 0%, rgba(15, 23, 42, 0.55) 48%, rgba(124, 58, 237, 0.35) 100%);
}

[data-bs-theme="light"] .home-banner-overlay {
  background: linear-gradient(105deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.72) 45%, rgba(79, 70, 229, 0.45) 100%);
}

.home-step-num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.15);
  color: #2563eb;
}

[data-bs-theme="dark"] .home-step-num {
  background: rgba(165, 180, 252, 0.12);
  color: #c7d2fe;
}

.home-stat-badge {
  font-variant-numeric: tabular-nums;
}
