/**
 * Light, bright theme with Tribble blue gradient tint.
 * One smooth white → blue gradient, predominantly white; no hard lines between sections.
 */
:root {
  --tribble-blue: #2563eb;
  --tribble-blue-light: #3b82f6;
  --tribble-indigo: #4f46e5;
  --page-bg: #ffffff;
  --page-bg-alt: #f1f5f9;
  --section-bg: #ffffff;
  --section-bg-tint: rgba(241, 245, 253, 0.8);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --border-blue: rgba(37, 99, 235, 0.2);
  --card-bg: #ffffff;
}

/* One continuous background: white base with soft blue radial tints, no bands or hard lines */
body.light-theme {
  background-color: #ffffff !important;
  background-image:
    radial-gradient(ellipse 160% 100% at 50% -20%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse 120% 80% at 100% 30%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse 100% 70% at 0% 70%, rgba(59, 130, 246, 0.035) 0%, transparent 50%),
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(147, 197, 253, 0.04) 0%, transparent 55%);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary) !important;
  min-height: 100vh;
}

/* Sections: transparent so body gradient shows through (no hard lines) */
body.light-theme .bg-\[\#0c1220\],
body.light-theme .bg-\[\#080c14\],
body.light-theme .bg-\[\#141c2e\]\/50,
body.light-theme .bg-\[\#141c2e\]\/60,
body.light-theme .bg-\[\#141c2e\]\/40,
body.light-theme .bg-\[\#334155\]\/80 {
  background: transparent !important;
}

/* Nav */
nav.bg-\[\#0c1220\]\/95,
nav[class*="bg-[#0c1220]"] {
  background: rgba(255,255,255,0.92) !important;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
nav a:not(.text-\[#60a5fa\]) { color: var(--text-secondary) !important; }
nav a:hover { color: var(--text-primary) !important; }
nav .text-\[#60a5fa\] { color: var(--tribble-blue-light) !important; }
nav img.brightness-0.invert { filter: none; }
body.light-theme .nav-dropdown-trigger { color: var(--text-secondary); }
body.light-theme .nav-dropdown-trigger:hover { color: var(--text-primary); }
body.light-theme .nav-dropdown-trigger.active { color: var(--tribble-blue-light); }
body.light-theme .nav-dropdown-menu { background: #fff; border-color: var(--border); box-shadow: 0 10px 40px rgba(0,0,0,0.08); }
body.light-theme .nav-dropdown-menu a { color: var(--text-secondary); }
body.light-theme .nav-dropdown-menu a:hover { color: var(--text-primary); background: var(--page-bg-alt); }
body.light-theme .nav-dropdown-menu a.active { color: var(--tribble-blue-light); }

/* Hero: no solid block, soft blue wash that blends into page gradient */
body.light-theme .hero-bg {
  background: transparent !important;
  border-bottom: none;
}
body.light-theme .hero-bg::before {
  background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(59, 130, 246, 0.06) 0%, transparent 60%) !important;
}

/* Cards */
.dark-card {
  background: var(--card-bg) !important;
  border: 1px solid var(--border) !important;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.dark-card:hover {
  border-color: var(--border-blue) !important;
  box-shadow:
    0 0 0 1px rgba(59, 130, 246, 0.06),
    0 2px 8px -2px rgba(59, 130, 246, 0.32),
    0 8px 20px -4px rgba(99, 102, 241, 0.22),
    0 16px 40px -8px rgba(59, 130, 246, 0.12),
    -4px 12px 28px -6px rgba(59, 130, 246, 0.18),
    6px 6px 24px -4px rgba(99, 102, 241, 0.14);
}

/* Footer: blends into page gradient, no hard line */
body.light-theme footer.bg-\[\#080c14\] {
  background: transparent !important;
  border-top: 1px solid var(--border);
}
footer .text-\[#94a3b8\] { color: var(--text-muted) !important; }
footer a:hover { color: var(--text-primary) !important; }

/* ========== LIGHT THEME COMPONENT OVERRIDES ========== */
body.light-theme .page-heading {
  color: var(--text-primary);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 600;
  margin-bottom: 2rem;
}
body.light-theme .page-subheading {
  color: var(--text-primary);
  font-size: 1.0625rem;
  font-weight: 600;
}
body.light-theme .feature-z-content .feature-z-title {
  color: var(--tribble-blue);
  font-size: 1.5rem;
  font-weight: 700;
}
body.light-theme .key-metric-box {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06) 0%, var(--card-bg) 35%, var(--card-bg) 100%);
  border: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
}
body.light-theme .key-metric-box:hover { border-color: var(--border-blue); }
body.light-theme .key-metric-box .metric-value {
  font-size: clamp(2.25rem, 5.5vw, 2.875rem);
  font-weight: 700;
  background: linear-gradient(135deg, var(--tribble-blue-light), var(--tribble-indigo));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.light-theme .key-metric-box .metric-label {
  font-size: clamp(0.8125rem, 1.5vw, 0.9375rem);
  color: var(--text-primary);
}
body.light-theme .key-metric-caption { color: var(--text-muted); }
body.light-theme .problem-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
}
body.light-theme .problem-card:hover { border-color: var(--border-blue); }
body.light-theme .problem-card .problem-title { color: var(--text-primary); }
body.light-theme .problem-card .problem-body { color: var(--text-secondary); }
body.light-theme .splash-placeholder {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
  border: none;
  color: #1e40af;
}
body.light-theme .splash-placeholder strong { color: #1e40af; }
body.light-theme .splash-dashboard-wrap {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 50%, #bfdbfe 100%);
  border: none;
}
body.light-theme .customer-example-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
}
body.light-theme .customer-example-card::before {
  background: rgba(0,0,0,0.04);
  border-color: var(--border);
}
body.light-theme .customer-example-card:hover { border-color: var(--border-blue); }
body.light-theme .customer-example-card .company-name { color: var(--tribble-blue-light); }
body.light-theme .customer-example-card .stat-line { color: var(--text-primary); }
body.light-theme .customer-example-card .stat-line strong { color: #0f172a; }
body.light-theme .customer-example-card .description { color: var(--text-secondary); }
body.light-theme .customer-example-card .description strong { color: #0f172a; }
body.light-theme .customer-quote-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--tribble-blue-light);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
body.light-theme .customer-quote-block .quote-text { color: var(--text-primary); }
body.light-theme .customer-quote-block .quote-attribution { color: var(--text-muted); }

/* Customer Success page: metric card (with logo) = white + navy border; quote = standard quote style */
body.light-theme.page-customer-success .customer-spotlight .customer-example-card {
  background: #ffffff;
  border: 1px solid #1e3a8a;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
body.light-theme.page-customer-success .customer-spotlight .customer-example-card:hover {
  border-color: #1e40af;
  box-shadow: 0 2px 8px rgba(30, 64, 175, 0.12);
}
body.light-theme.page-customer-success .customer-spotlight .customer-example-card .company-name {
  color: var(--tribble-blue-light);
}
body.light-theme.page-customer-success .customer-spotlight .customer-example-card .stat-line,
body.light-theme.page-customer-success .customer-spotlight .customer-example-card .description strong {
  color: var(--text-primary);
}
body.light-theme.page-customer-success .customer-spotlight .customer-example-card .description {
  color: var(--text-secondary);
}
/* Quote card in spotlight: standard color as other quotes (no dark gradient) */
body.light-theme.page-customer-success .customer-spotlight .customer-quote-block {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-left: 4px solid var(--tribble-blue-light);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
body.light-theme.page-customer-success .customer-spotlight .customer-quote-block .quote-text {
  color: var(--text-primary);
}
body.light-theme.page-customer-success .customer-spotlight .customer-quote-block .quote-attribution {
  color: var(--text-muted);
}
body.light-theme.page-customer-success .customer-spotlight .spotlight-use-case {
  background: linear-gradient(to right, #1e40af 0%, #1e3a8a 100%);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.95);
}
body.light-theme.page-customer-success .customer-spotlight .spotlight-use-case strong {
  color: #ffffff;
}
/* Spotlight section headings (UiPath, Clari, Abridge): dark text + normal logo so no white artefact between blocks */
body.light-theme.page-customer-success section:has(.customer-spotlight) .mb-16 > h3 {
  color: var(--text-primary);
}
body.light-theme.page-customer-success section:has(.customer-spotlight) .mb-16 > h3 img {
  filter: none;
  opacity: 0.9;
}
body.light-theme .logo-strip-label,
body.light-theme .logo-strip-logos { color: var(--text-muted); }
body.light-theme .logo-strip-row img {
  filter: none;
  opacity: 0.7;
}
body.light-theme .different-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
}
body.light-theme .different-item:hover { border-color: var(--border-blue); }
body.light-theme .different-item .different-title { color: var(--text-primary); }
body.light-theme .different-item .different-body { color: var(--text-secondary); }
body.light-theme .feature-z-content .feature-z-body,
body.light-theme .content-list { color: var(--text-secondary); }
body.light-theme .content-intro,
body.light-theme .content-subtitle { color: var(--text-secondary); }
body.light-theme .cta-demo-section {
  background: transparent !important;
  border-top: 1px solid var(--border);
}
body.light-theme .cta-demo-section .cta-heading {
  color: var(--text-primary);
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  font-weight: 600;
}
body.light-theme .cta-demo-section .cta-sub { color: var(--text-muted); }
body.light-theme .feature-list-section .feature-title { color: var(--text-primary); }
body.light-theme .feature-list-section ul { color: var(--text-secondary); }
body.light-theme .feature-z-row { border-bottom-color: var(--border); }

/* Engage page: body text black (not grey) in problem cards and Z-section lists */
body.light-theme.page-engage .problem-card .problem-body,
body.light-theme.page-engage .feature-z-content .feature-z-list,
body.light-theme.page-engage .feature-z-content .feature-z-body {
  color: var(--text-primary) !important;
}

/* Hero: simple, clear typography (no big bubbly) */
body.light-theme .page-hero h1 {
  color: var(--text-primary);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
body.light-theme .page-hero p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.55;
}
body.light-theme .page-hero .text-xl,
body.light-theme .page-hero .text-2xl { font-size: 1.125rem !important; }
body.light-theme .page-hero .text-lg { font-size: 1rem !important; }

/* FAQ accordion (light theme) */
body.light-theme .faq-section .faq-heading { color: var(--text-primary); }
body.light-theme .faq-accordion .faq-item {
  background: var(--card-bg);
  border-color: var(--border);
}
body.light-theme .faq-accordion .faq-item summary { color: var(--text-primary); }
body.light-theme .faq-accordion .faq-item summary:hover { background: var(--page-bg-alt); }
body.light-theme .faq-accordion .faq-item .faq-chevron { color: var(--text-muted); }
body.light-theme .faq-accordion .faq-item .faq-answer { color: var(--text-secondary); border-top-color: var(--border); }
