:root {
  /* Brand Palette - Electric Indigo & Energetic Amber "Buzz" */
  --brand-primary: #4f46e5;
  --brand-primary-light: #6366f1;
  --brand-primary-hover: #4338ca;
  --brand-accent: #f59e0b;
  --brand-accent-hover: #d97706;
  --brand-accent-glow: rgba(245, 158, 11, 0.25);
  
  /* Light theme variables */
  --page-bg: #f8fafc;
  --surface-bg: #ffffff;
  --surface-bg-alt: #f1f5f9;
  --surface-card: #ffffff;
  --border-color: #e2e8f0;
  --border-subtle: #cbd5e1;
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --text-heading: #0f172a;
  
  --hero-bg: radial-gradient(ellipse at top, #1e1b4b 0%, #0f172a 100%);
  --hero-text: #ffffff;
  --hero-subtitle: #cbd5e1;
  
  --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --card-hover-shadow: 0 20px 30px -10px rgba(79, 70, 229, 0.15);
  --video-frame-glow: 0 0 50px -10px rgba(99, 102, 241, 0.4);
  --announcement-bg: linear-gradient(90deg, #312e81 0%, #4338ca 50%, #b45309 100%);
  --announcement-text: #ffffff;
  --logo-badge-bg: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  --logo-badge-text: #ffffff;
  --logo-badge-shadow: 0 4px 10px rgba(245, 158, 11, 0.35);
  --cta-band-bg: radial-gradient(ellipse at center, #1e1b4b 0%, #0f172a 100%);
  --cta-band-text: #ffffff;
}

[data-bs-theme="dark"] {
  /* Dark theme overrides */
  --page-bg: #0b0f19;
  --surface-bg: #111827;
  --surface-bg-alt: #1f2937;
  --surface-card: #131b2e;
  --border-color: #1f293d;
  --border-subtle: #334155;
  --text-primary: #f8fafc;
  --text-muted: #94a3b8;
  --text-heading: #ffffff;
  
  --hero-bg: radial-gradient(ellipse at top, #1e1b4b 0%, #090d16 100%);
  --hero-text: #ffffff;
  --hero-subtitle: #94a3b8;
  
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --card-hover-shadow: 0 20px 35px -10px rgba(99, 102, 241, 0.25);
  --video-frame-glow: 0 0 60px -5px rgba(99, 102, 241, 0.45);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--page-bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

.row > [class*="col-"] {
  min-width: 0;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.text-accent {
  color: var(--brand-accent) !important;
}

.text-indigo {
  color: var(--brand-primary-light) !important;
}

.bg-surface {
  background-color: var(--surface-card) !important;
}

.bg-surface-alt {
  background-color: var(--surface-bg-alt) !important;
}

/* Navbar */
.navbar {
  background-color: var(--surface-bg) !important;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  color: var(--text-heading);
}

.nav-link {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-primary-light);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-light) 100%);
  border: none;
  color: #ffffff !important;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--brand-primary-hover) 0%, var(--brand-primary) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
}

.btn-accent {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  border: none;
  color: #0f172a !important;
  font-weight: 700;
  padding: 0.65rem 1.4rem;
  border-radius: 0.5rem;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(245, 158, 11, 0.45);
}

.btn-outline-primary {
  border: 1.5px solid var(--brand-primary-light);
  color: var(--brand-primary-light);
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.65rem 1.4rem;
  transition: all 0.2s ease;
}

.btn-outline-primary:hover {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 4.5rem 0 5rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-color);
}

.hero-section::before {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(245, 158, 11, 0.08) 50%, transparent 70%);
  pointer-events: none;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: #ffffff;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--hero-subtitle);
  max-width: 680px;
}

/* Video Player Frame */
.video-player-container {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--video-frame-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #000;
}

.video-player-container video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 1rem;
}

/* Badge styles */
.badge-buzz {
  background: rgba(245, 158, 11, 0.15);
  color: var(--brand-accent);
  border: 1px solid rgba(245, 158, 11, 0.35);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.85rem;
}

.badge-indigo {
  background: rgba(99, 102, 241, 0.15);
  color: var(--brand-primary-light);
  border: 1px solid rgba(99, 102, 241, 0.35);
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.85rem;
}

/* Cards */
.buzz-card {
  background-color: var(--surface-card);
  border: 1px solid var(--border-color);
  border-radius: 1rem;
  box-shadow: var(--card-shadow);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  position: relative;
}

.buzz-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-hover-shadow);
  border-color: rgba(99, 102, 241, 0.4);
}

/* Quick Answer Vidmail Card */
.vidmail-card {
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.vidmail-card .play-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.vidmail-card:hover .play-badge {
  transform: scale(1.12);
}

/* Case study thumbnails */
.case-study-thumb {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  background-color: #000;
  aspect-ratio: 16 / 9;
}

.case-study-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-study-thumb:hover img {
  transform: scale(1.05);
}

.case-study-thumb .overlay-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.75);
  border: 2px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  backdrop-filter: blur(4px);
  transition: all 0.25s ease;
}

.case-study-thumb:hover .overlay-play {
  background: var(--brand-primary);
  border-color: var(--brand-accent);
  transform: translate(-50%, -50%) scale(1.15);
}

/* Omnichannel Channel Pills */
.channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--surface-card);
  border: 1px solid var(--border-color);
  padding: 0.6rem 1.1rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
  transition: all 0.2s ease;
}

.channel-pill:hover {
  border-color: var(--brand-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(79, 70, 229, 0.15);
  color: var(--brand-primary-light);
}

/* Pricing Cards */
.pricing-card {
  border-radius: 1.25rem;
  background-color: var(--surface-card);
  border: 1.5px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.pricing-card.featured {
  border-color: var(--brand-primary-light);
  box-shadow: 0 15px 35px -5px rgba(79, 70, 229, 0.25);
  position: relative;
}

.featured-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand-accent) 0%, #fbbf24 100%);
  color: #0f172a;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.3rem 1.2rem;
  border-radius: 2rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

.feature-check {
  color: #10b981;
  font-size: 1.2rem;
  margin-right: 0.6rem;
  flex-shrink: 0;
}

/* Modal video container */
.video-modal-body {
  padding: 0;
  background: #000;
  position: relative;
  aspect-ratio: 16 / 9;
}

.video-modal-body iframe, .video-modal-body video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Footer */
footer {
  background-color: var(--surface-bg);
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
}

.announcement-bar {
  background: var(--announcement-bg);
  color: var(--announcement-text);
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--logo-badge-bg);
  color: var(--logo-badge-text);
  box-shadow: var(--logo-badge-shadow);
}

.logo-badge-sm { width: 32px; height: 32px; }
.logo-badge-md { width: 36px; height: 36px; font-size: 1.1rem; }
.logo-badge-lg { width: 40px; height: 40px; font-size: 1.25rem; }

.cta-band {
  background: var(--cta-band-bg);
  color: var(--cta-band-text);
}

.hero-proof,
.account-tagline {
  color: var(--hero-subtitle);
}

button.vidmail-card,
button.case-study-thumb {
  appearance: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  width: 100%;
  cursor: pointer;
}

button.case-study-thumb {
  display: block;
  padding: 0;
}

.inquiry-form {
  position: relative;
}

.inquiry-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.vidmail-card:focus-visible,
.case-study-thumb:focus-visible,
#themeToggle:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 2px;
}
