@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ==========================================================
   AIMAXIMUS â€” MIDNIGHT OBSIDIAN DESIGN SYSTEM v3.0
   Inspired by SecureDatalytics precision aesthetics
   ========================================================== */

:root {
  /* â”€â”€ MIDNIGHT OBSIDIAN CORE PALETTE â”€â”€ */
  --c-bg-0: #060810;
  /* Abyss â€” deepest layer            */
  --c-bg-1: #0A0D16;
  /* Midnight â€” primary bg             */
  --c-bg-2: #0F1420;
  /* Obsidian â€” surface                */
  --c-bg-3: #151C2E;
  /* Slate â€” elevated surface          */
  --c-bg-4: #1E2A42;
  /* Dusk â€” card hover                 */
  --c-bg-5: #253452;
  /* Horizon â€” accent surface          */

  /* â”€â”€ AZURE ELECTRIC ACCENT (PRIMARY) â”€â”€ */
  --c-acc-azure: #00D9FF;
  /* Primary azure CTA              */
  --c-acc-azure2: #4DF0FF;
  /* Lighter azure for text         */
  --c-acc-azure3: #A6FAFF;
  /* Soft azure for muted accents   */
  --c-acc-glow: rgba(0, 217, 255, 0.18);

  /* â”€â”€ EMERALD (SECONDARY â€” KEPT #1B4D8C AS REQUESTED) â”€â”€ */
  --c-acc-em: #1B4D8C;
  /* Emerald â€” success/trust badge  */
  --c-acc-em2: #2764B3;
  /* Lighter emerald                */
  --c-acc-em-glow: rgba(27, 77, 140, 0.18);

  /* â”€â”€ PLATINUM TEXT â”€â”€ */
  --c-txt-1: #F0F4FF;
  /* Primary â€” near-white w/ blue cast    */
  --c-txt-2: #C8D6F0;
  /* Secondary â€” medium platinum          */
  --c-txt-3: #7A90B8;
  /* Muted â€” slate blue                   */

  /* â”€â”€ MAPPED TOKENS â”€â”€ */
  --base-bg: var(--c-bg-1);
  --surface-bg: var(--c-bg-2);
  --surface-bg-hover: var(--c-bg-3);
  --surface-glass: rgba(10, 13, 22, 0.82);

  --primary-dark: var(--c-txt-1);
  --text-primary: var(--c-txt-1);
  --text-secondary: var(--c-txt-2);
  --text-muted: var(--c-txt-3);

  --accent-primary: var(--c-acc-azure);
  --accent-secondary: var(--c-acc-azure2);
  --accent-em: var(--c-acc-em);
  --accent-gradient: linear-gradient(135deg, #008CB3 0%, #00D9FF 50%, #4DF0FF 100%);
  --accent-gradient-em: linear-gradient(135deg, #0A2540 0%, #1B4D8C 100%);

  --btn-text: #FFFFFF;

  --navbar-blur: rgba(6, 8, 16, 0.88);
  --border-glass: rgba(255, 255, 255, 0.07);
  --border-accent: rgba(0, 217, 255, 0.25);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 20px -3px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 25px 50px -5px rgba(0, 0, 0, 0.8);
  --shadow-glow-azure: 0 0 30px rgba(0, 217, 255, 0.22), 0 0 60px rgba(0, 217, 255, 0.09);
  --shadow-glow-em: 0 0 20px rgba(27, 77, 140, 0.2), 0 0 40px rgba(27, 77, 140, 0.08);
  --glow-accent: var(--shadow-glow-azure);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-back: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* â”€â”€ ALTERNATE THEMES (kept for compatibility) â”€â”€ */
[data-theme="ai-dark"] {
  --base-bg: #000000;
  --surface-bg: #09090b;
  --surface-bg-hover: #18181b;
  --surface-glass: rgba(0, 0, 0, 0.85);
  --primary-dark: #ffffff;
  --text-primary: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;
  --accent-primary: #00D9FF;
  --accent-secondary: #A6FAFF;
  --accent-gradient: linear-gradient(135deg, #008CB3 0%, #00D9FF 100%);
  --btn-text: #ffffff;
  --border-glass: rgba(255, 255, 255, 0.08);
  --glow-accent: 0 0 15px rgba(0, 217, 255, 0.2);
}

[data-theme="clean-analytical"] {
  --base-bg: #f8fafc;
  --surface-bg: #ffffff;
  --surface-bg-hover: #f1f5f9;
  --surface-glass: rgba(255, 255, 255, 0.9);
  --primary-dark: #0f172a;
  --text-primary: #1e293b;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --accent-primary: #008CB3;
  --accent-secondary: #1648BE;
  --accent-gradient: linear-gradient(135deg, #1e40af 0%, #00D9FF 100%);
  --btn-text: #ffffff;
  --border-glass: rgba(15, 23, 42, 0.1);
  --glow-accent: 0 0 15px rgba(37, 99, 235, 0.1);
}

[data-theme="cyber"] {
  --base-bg: #020617;
  --surface-bg: #0f172a;
  --surface-bg-hover: #1e293b;
  --surface-glass: rgba(2, 6, 23, 0.85);
  --primary-dark: #cffafe;
  --text-primary: #ecfeff;
  --text-secondary: #a5f3fc;
  --text-muted: #67e8f9;
  --accent-primary: #06b6d4;
  --accent-secondary: #67e8f9;
  --accent-gradient: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
  --btn-text: #020617;
  --border-glass: rgba(6, 182, 212, 0.2);
  --glow-accent: 0 0 15px rgba(6, 182, 212, 0.3);
}

[data-theme="knowledge"] {
  --base-bg: #f4f4f5;
  --surface-bg: #ffffff;
  --surface-bg-hover: #e4e4e7;
  --surface-glass: rgba(255, 255, 255, 0.9);
  --primary-dark: #18181b;
  --text-primary: #27272a;
  --text-secondary: #3f3f46;
  --text-muted: #71717a;
  --accent-primary: #18181b;
  --accent-secondary: #3f3f46;
  --accent-gradient: linear-gradient(135deg, #18181b 0%, #3f3f46 100%);
  --btn-text: #ffffff;
  --border-glass: rgba(24, 24, 27, 0.1);
  --glow-accent: 0 0 15px rgba(0, 0, 0, 0.05);
}

/* ==========================================================
   GLOBAL RESET & BASE
   ========================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  background-color: var(--base-bg) !important;
  color: var(--text-primary) !important;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  line-height: 1.65;
  /* transition on body bg/color REMOVED — caused root-level recalculations */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Bootstrap variable overrides */
* {
  --bs-body-color: var(--text-primary);
  --bs-body-bg: var(--base-bg);
  --bs-heading-color: var(--primary-dark);
}

/* ==========================================================
   TYPOGRAPHY
   ========================================================== */

h1,
h2,
h3,
h4,
h5,
h6,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
  color: var(--primary-dark) !important;
  letter-spacing: -0.025em;
  font-weight: 700;
  line-height: 1.2;
}

strong,
.fw-bold {
  color: var(--primary-dark) !important;
  font-weight: 700;
}

p,
span,
div,
li,
td,
th {
  color: inherit;
}

/* Bootstrap text utilities mapped to palette */
.text-dark {
  color: var(--primary-dark) !important;
}

.text-secondary {
  color: var(--text-secondary) !important;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-white,
.text-white-50 {
  color: var(--text-primary) !important;
}

.text-primary,
.text-success,
.text-accent-blue,
.text-accent-lime,
.text-info,
.text-warning,
.text-danger {
  color: var(--accent-secondary) !important;
}

.btn-accent,
.btn-primary {
  color: var(--btn-text) !important;
}

/* â”€â”€ Gradient Text â”€â”€ */
.gradient-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  font-weight: 800;
}

/* â”€â”€ Emerald gradient text (kept accent) â”€â”€ */
.gradient-text-em {
  background: var(--accent-gradient-em);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  font-weight: 800;
}

/* â”€â”€ Overline labels â”€â”€ */
.overline-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-secondary) !important;
  margin-bottom: 0.75rem;
  display: block;
}

/* ==========================================================
   SURFACES (CARDS, BADGES, MODALS)
   ========================================================== */

.bg-light,
.bg-white,
.card,
.table,
.dropdown-menu {
  background-color: var(--surface-bg) !important;
  color: var(--text-primary) !important;
  border-color: var(--border-glass) !important;
}

.card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass) !important;
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease-expo),
    box-shadow 0.5s var(--ease-expo),
    border-color 0.5s var(--ease-expo);
  overflow: hidden;
  position: relative;
  z-index: 1;
  background: var(--surface-bg) !important;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(0, 217, 255, 0.4) 50%,
      transparent 100%);
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), var(--shadow-glow-azure);
  border-color: var(--border-accent) !important;
}

.card:hover::before {
  opacity: 1;
}

/* Special Surfaces */
.bg-primary {
  background-color: var(--accent-primary) !important;
  color: var(--btn-text) !important;
}

.bg-primary *,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary p,
.bg-primary i {
  color: var(--btn-text) !important;
}

/* Subtle badge surfaces */
.bg-primary-subtle,
.bg-success-subtle,
.badge-soft {
  background-color: rgba(0, 217, 255, 0.08) !important;
  color: var(--accent-secondary) !important;
  border: 1px solid rgba(0, 217, 255, 0.18) !important;
  border-left-color: var(--accent-primary) !important;
  border-left-width: 3px !important;
}

/* â”€â”€ Emerald badge (the "#1B4D8C accent kept") â”€â”€ */
.badge-em,
.badge-success-em {
  background: rgba(27, 77, 140, 0.1) !important;
  color: var(--c-acc-em) !important;
  border: 1px solid rgba(27, 77, 140, 0.2) !important;
  border-radius: 20px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* Borders */
.border,
.border-start,
.border-bottom,
.border-top,
.border-end {
  border-color: var(--border-glass) !important;
}

/* ==========================================================
   NAVIGATION
   ========================================================== */

.navbar-blur {
  background: var(--navbar-blur) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-glass);
  transition: background 0.4s var(--ease-expo), box-shadow 0.4s var(--ease-expo), border-color 0.4s var(--ease-expo);
  will-change: transform;
}

.navbar-blur.scrolled {
  background: rgba(6, 8, 16, 0.95) !important;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.6),
    0 1px 0 rgba(0, 217, 255, 0.15);
  border-bottom: 1px solid rgba(0, 217, 255, 0.15);
}

.navbar-brand strong {
  color: var(--primary-dark) !important;
  letter-spacing: -0.03em;
}

/* Logo Prisma 2026 en navbar — alto fijo en desktop, cap responsive para no desbordar en movil */
.logo-main {
  height: 52px !important;
  width: auto !important;
  max-width: min(72vw, 380px);
}

@media (max-width: 575.98px) {
  .logo-main {
    height: 38px !important;
  }
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.3s ease;
  letter-spacing: 0.01em;
}

.nav-link:hover {
  color: var(--text-primary) !important;
}

/* Desktop navbar */
@media (min-width: 992px) {
  .navbar-nav {
    align-items: center;
  }

  .navbar-nav .nav-item {
    position: relative;
    display: flex;
    align-items: center;
  }

  /* Elegant separator */
  .navbar-nav .nav-item:not(:last-child):not(.ms-lg-2)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 16px;
    width: 1px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.15) 50%,
        transparent 100%);
    pointer-events: none;
    z-index: 2;
  }

  .navbar-nav .nav-link {
    padding-left: 1.2rem !important;
    padding-right: 1.2rem !important;
    font-size: 0.85rem;
    transition: color 0.3s ease;
    position: relative;
  }

  .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 2px;
    transition: transform 0.3s var(--ease-expo);
  }

  .navbar-nav .nav-link:hover::after,
  .navbar-nav .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
  }

  .navbar-nav .nav-link:hover {
    background-color: transparent !important;
    color: var(--text-primary) !important;
  }
}

/* Floating badge (index mockup) */
.floating-badge {
  color: #1e293b !important;
}

.dropdown-menu {
  box-shadow: var(--shadow-lg);
  background: var(--c-bg-3) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: var(--radius-md);
  backdrop-filter: blur(20px);
}

.dropdown-item {
  color: var(--text-secondary) !important;
  transition: background-color 0.2s ease, color 0.2s ease;
  border-radius: 6px;
  margin: 2px 4px;
}

.dropdown-item:hover {
  background-color: rgba(0, 217, 255, 0.1) !important;
  color: var(--text-primary) !important;
}

.dropdown-divider {
  border-color: var(--border-glass) !important;
}

/* ==========================================================
   BUTTONS
   ========================================================== */

/* PRIMARY â€” Azure precision */
.btn-accent,
.btn-primary {
  background: var(--accent-gradient) !important;
  border: none !important;
  color: var(--btn-text) !important;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
  transition: all 0.4s var(--ease-expo);
  position: relative;
  overflow: hidden;
}

.btn-accent::before,
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.15) 50%,
      transparent 100%);
  transition: left 0.5s ease;
}

.btn-accent:hover::before,
.btn-primary:hover::before {
  left: 100%;
}

.btn-accent:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 217, 255, 0.45),
    0 0 60px rgba(0, 217, 255, 0.1);
  filter: brightness(1.08);
  color: var(--btn-text) !important;
}

/* SECONDARY â€” Ghost/outline */
.btn-outline-secondary,
.btn-outline-light,
.btn-outline-primary {
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: var(--text-secondary) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.4s var(--ease-expo);
}

.btn-outline-secondary:hover,
.btn-outline-light:hover,
.btn-outline-primary:hover {
  border-color: rgba(0, 217, 255, 0.35) !important;
  color: var(--text-primary) !important;
  background: rgba(0, 217, 255, 0.08) !important;
  box-shadow: 0 0 20px rgba(0, 217, 255, 0.1);
}

/* EMERALD CTA (special accent, kept #1B4D8C) */
.btn-em {
  background: var(--accent-gradient-em) !important;
  border: none !important;
  color: #000 !important;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(27, 77, 140, 0.3);
  transition: all 0.4s var(--ease-expo);
}

.btn-em:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(27, 77, 140, 0.45);
  filter: brightness(1.05);
}

/* ==========================================================
   FORMS & INPUTS
   ========================================================== */

.form-control,
.form-select,
textarea.form-control {
  background-color: var(--c-bg-3) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.2rem;
  transition: all 0.35s ease;
  font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
  background-color: var(--c-bg-4) !important;
  color: var(--text-primary) !important;
  border-color: rgba(0, 217, 255, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.12),
    0 0 20px rgba(0, 217, 255, 0.08) !important;
  outline: none;
}

/* Placeholder */
::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.6 !important;
}

::-webkit-input-placeholder {
  color: var(--text-muted) !important;
  opacity: 0.6 !important;
}

:-ms-input-placeholder {
  color: var(--text-muted) !important;
  opacity: 0.6 !important;
}

::-moz-placeholder {
  color: var(--text-muted) !important;
  opacity: 0.6 !important;
}

/* ==========================================================
   HERO & SECTIONS
   ========================================================== */

.hero {
  padding: 160px 0 110px;
  background:
    radial-gradient(ellipse 80% 60% at 20% 0%,
      rgba(0, 217, 255, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%,
      rgba(27, 77, 140, 0.05) 0%, transparent 50%),
    var(--base-bg);
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle 1px at 50% 50%, rgba(0, 217, 255, 0.6) 0%, transparent 0%);
  background-size: 60px 60px;
  opacity: 0.06;
  pointer-events: none;
}

.section-title {
  margin-bottom: 2.5rem;
  color: var(--primary-dark) !important;
}

/* Section dividers with glow */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(0, 217, 255, 0.3) 40%,
      rgba(27, 77, 140, 0.2) 60%,
      transparent 100%);
  margin: 4rem 0;
  border: none;
}

/* ==========================================================
   TABLES
   ========================================================== */

.table {
  color: var(--text-secondary) !important;
  --bs-table-bg: transparent;
}

.table thead th {
  border-bottom: 1px solid rgba(0, 217, 255, 0.2) !important;
  color: var(--accent-secondary) !important;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem;
}

tbody tr {
  background-color: var(--surface-bg) !important;
  transition: background-color 0.2s ease;
}

tbody tr:hover {
  background-color: var(--c-bg-3) !important;
}

tbody td {
  color: var(--text-primary) !important;
  border-color: var(--border-glass) !important;
  padding: 0.875rem 1rem;
}

tbody tr:hover td {
  background-color: transparent !important;
}

/* ==========================================================
   PREMIUM DARK BLOCK ("Â¿Listo para escalar?")
   ========================================================== */

.bg-premium-dark {
  background:
    linear-gradient(135deg, var(--c-bg-3) 0%, var(--c-bg-5) 100%) !important;
  border: 1px solid var(--border-accent) !important;
  position: relative;
  overflow: hidden;
  color: var(--text-primary) !important;
}

.bg-premium-dark::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle,
      rgba(0, 217, 255, 0.12) 0%,
      transparent 70%);
  pointer-events: none;
}

.bg-premium-dark::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 40%;
  height: 80%;
  background: radial-gradient(circle,
      rgba(27, 77, 140, 0.07) 0%,
      transparent 70%);
  pointer-events: none;
}

.bg-premium-dark h1,
.bg-premium-dark h2,
.bg-premium-dark h3,
.bg-premium-dark h4,
.bg-premium-dark p,
.bg-premium-dark li,
.bg-premium-dark * {
  color: var(--text-primary) !important;
}

.bg-premium-dark h3 {
  color: var(--primary-dark) !important;
}

/* ==========================================================
   FOOTER
   ========================================================== */

.footer {
  background: linear-gradient(180deg,
      var(--c-bg-2) 0%,
      var(--c-bg-1) 100%) !important;
  border-top: 1px solid var(--border-glass) !important;
  padding: 5rem 0 3rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(0, 217, 255, 0.3) 30%,
      rgba(27, 77, 140, 0.2) 70%,
      transparent 100%);
}

.footer a,
.footer p,
.footer .small,
.footer div,
.footer span {
  color: var(--text-muted) !important;
  transition: color 0.25s ease;
}

.footer strong,
.footer h6,
.footer h4 {
  color: var(--primary-dark) !important;
}

.footer a:hover {
  color: var(--accent-secondary) !important;
}

/* ==========================================================
   WIDGETS (Browser Mockup, BackToTop, ThemeSwitcher)
   ========================================================== */

.browser-frame {
  background-color: var(--surface-bg) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.browser-header {
  background: var(--c-bg-3);
  border-bottom: 1px solid var(--border-glass) !important;
  padding: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.browser-header .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c-bg-5);
}

/* Back-to-top */
.back-to-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 20px;
  bottom: 20px;
  z-index: 996;
  background: var(--c-bg-3);
  border: 1px solid var(--border-accent);
  color: var(--accent-secondary) !important;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  transition: all 0.4s var(--ease-expo);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  display: flex;
  backdrop-filter: blur(10px);
}

.back-to-top i {
  color: inherit;
  font-size: 22px;
  margin: auto;
}

.back-to-top.active {
  visibility: visible;
  opacity: 1;
}

.back-to-top:hover {
  transform: translateY(-4px);
  background: rgba(0, 217, 255, 0.15);
  box-shadow: var(--shadow-glow-azure);
  color: var(--text-primary) !important;
}

/* Theme Switcher */
.theme-switcher {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  background: var(--c-bg-3);
  backdrop-filter: blur(20px) saturate(180%);
  padding: 10px;
  border-radius: 30px;
  border: 1px solid var(--border-glass);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1000;
  box-shadow: var(--shadow-lg);
  transition: opacity 0.3s;
}

.theme-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-back),
    border-color 0.25s ease;
  padding: 0;
}

.theme-btn:hover {
  transform: scale(1.25);
}

.theme-btn.active {
  border-color: var(--primary-dark);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.3);
}

.theme-btn[data-set-theme="default"] {
  background: linear-gradient(135deg, #00D9FF, #1648BE);
}

.theme-btn[data-set-theme="ai-dark"] {
  background: linear-gradient(135deg, #1B4D8C, #0A2540);
}

.theme-btn[data-set-theme="clean-analytical"] {
  background: linear-gradient(135deg, #f8fafc, #e2e8f0);
  border-color: #cbd5e1;
}

.theme-btn[data-set-theme="cyber"] {
  background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.theme-btn[data-set-theme="knowledge"] {
  background: linear-gradient(135deg, #d4d4d8, #a1a1aa);
  border-color: #52525b;
}

/* ==========================================================
   EXHAUSTIVE OVERRIDES (ALERTS, INLINE STYLES)
   ========================================================== */

.alert,
.alert-light,
.provider-card,
.premium-card,
.banner-provider {
  background: var(--surface-bg) !important;
  background-color: var(--surface-bg) !important;
  border-color: var(--border-glass) !important;
}

.alert p,
.alert span,
.alert div {
  color: var(--text-secondary) !important;
}

.alert .fw-bold,
.alert strong,
.alert h4,
.alert h5 {
  color: var(--primary-dark) !important;
}

.provider-card *,
.premium-card *,
.banner-provider * {
  color: var(--text-primary) !important;
}

.provider-card h5,
.premium-card h5,
.banner-provider h5 {
  color: var(--primary-dark) !important;
}

.provider-card.deepseek,
.provider-card.ollama,
.provider-card.openai {
  background: var(--surface-bg) !important;
  background-color: var(--surface-bg) !important;
  border-color: var(--border-glass) !important;
}

/* Eradicate hardcoded pastel backgrounds */
[style*="#f8f9fa"],
[style*="#f1f5f9"],
[style*="#f8fafc"],
[style*="#eff6ff"],
[style*="#f0f7ff"],
[style*="#fdf2f2"],
[style*="#fffbeb"],
[style*="#fef2f2"],
[style*="#ecfdf5"] {
  background: var(--surface-bg) !important;
  background-color: var(--surface-bg) !important;
  background-image: none !important;
}

/* ==========================================================
   ICON BLOBS
   ========================================================== */

.icon-blob {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.5rem;
  flex-shrink: 0;
  background: rgba(0, 217, 255, 0.08) !important;
  border: 1px solid rgba(0, 217, 255, 0.15) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.4s var(--ease-back);
  color: var(--accent-secondary);
}

.icon-blob:hover {
  transform: scale(1.12) rotate(6deg);
  border-color: rgba(0, 217, 255, 0.4) !important;
  background: rgba(0, 217, 255, 0.15) !important;
  box-shadow: 0 8px 25px rgba(0, 217, 255, 0.2);
}

.icon-blob i {
  color: inherit !important;
}

/* â”€â”€ Emerald icon blobs (kept accent) â”€â”€ */
.icon-blob-em {
  background: rgba(27, 77, 140, 0.08) !important;
  border: 1px solid rgba(27, 77, 140, 0.18) !important;
  color: var(--c-acc-em) !important;
}

.icon-blob-em:hover {
  border-color: rgba(27, 77, 140, 0.35) !important;
  background: rgba(27, 77, 140, 0.15) !important;
  box-shadow: 0 8px 25px rgba(27, 77, 140, 0.2);
}

/* ==========================================================
   SECTION BACKGROUND OVERRIDES
   ========================================================== */

section[style*="background"] {
  background: var(--base-bg) !important;
  background-image: none !important;
}

/* ==========================================================
   TIME BADGE
   ========================================================== */

.time-badge {
  background: var(--c-bg-3) !important;
  color: var(--text-secondary) !important;
  border: 1px solid var(--border-glass) !important;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.2rem 0.65rem;
}

/* ==========================================================
   REVEAL ANIMATIONS (Scroll-triggered)
   ========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-expo),
    transform 0.7s var(--ease-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.7s var(--ease-expo),
    transform 0.7s var(--ease-expo);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ==========================================================
   AZURE GLOW DIVIDER & ACCENT LINE UTILITIES
   ========================================================== */

.accent-line {
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent-gradient);
  margin: 0.75rem 0 1.5rem;
}

.accent-line-em {
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent-gradient-em);
  margin: 0.75rem 0 1.5rem;
}

/* ==========================================================
   GLASSMORPHISM PANEL
   ========================================================== */

.glass-panel {
  background: rgba(15, 20, 32, 0.7) !important;
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--border-glass) !important;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */

@media (max-width: 991px) {
  .hero {
    padding: 120px 0 80px;
  }

  .theme-switcher {
    display: none;
  }
}

@media (max-width: 767px) {
  .hero {
    padding: 100px 0 60px;
  }

  h1,
  .display-4,
  .display-5 {
    letter-spacing: -0.015em;
  }
}

/* ==========================================================
   BOOTSTRAP PRECISION OVERRIDES
   Force azure blue as Bootstrap primary across all contexts
   ========================================================== */

/* Override Bootstrap's native --bs-primary-rgb (green) with azure */
:root {
  --bs-primary: #00D9FF !important;
  --bs-primary-rgb: 59, 130, 246 !important;
  --bs-success: #1B4D8C !important;
  --bs-success-rgb: 27, 77, 140 !important;
  --bs-link-color: var(--accent-secondary) !important;
  --bs-link-hover-color: var(--text-primary) !important;
}

/* bg-primary forcefully azure */
.bg-primary {
  background: linear-gradient(135deg, #1648BE 0%, #00D9FF 100%) !important;
  background-color: #00D9FF !important;
  color: #ffffff !important;
}

.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.bg-primary p,
.bg-primary span,
.bg-primary li,
.bg-primary i,
.bg-primary * {
  color: #ffffff !important;
}

/* Bootstrap badge bg-primary */
.badge.bg-primary {
  background: rgba(0, 217, 255, 0.2) !important;
  color: var(--accent-secondary) !important;
  border: 1px solid rgba(0, 217, 255, 0.3) !important;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Icon link hover color */
.icon-link,
.icon-link-hover {
  color: var(--accent-secondary) !important;
  text-decoration: none;
  transition: color 0.25s ease;
}

.icon-link:hover,
.icon-link-hover:hover {
  color: var(--text-primary) !important;
}

/* â”€â”€ Override any remaining green Bootstrap defaults â”€â”€ */

/* text-success â†’ emerald kept intentionally */
.text-success,
.text-success-emphasis {
  color: var(--c-acc-em) !important;
}

/* bi icons in check/success contexts â†’ emerald kept */
.bi-check-circle-fill.text-success,
.bi-check-lg.text-success {
  color: var(--c-acc-em) !important;
}

/* Remove Bootstrap green from border-success */
.border-success {
  border-color: var(--c-acc-em) !important;
}

/* bg-success-subtle â†’ keep emerald with dark bg */
.bg-success-subtle {
  background: rgba(27, 77, 140, 0.06) !important;
  border-color: rgba(27, 77, 140, 0.2) !important;
}

/* text-success-emphasis (inside ROI block) */
.text-success-emphasis {
  color: var(--c-acc-em2) !important;
}

/* â”€â”€ Number metric display containers â”€â”€ */
.text-accent-lime {
  color: var(--c-acc-em) !important;
}

.text-accent-blue {
  color: var(--accent-secondary) !important;
}

/* Fix Bootstrap linkedin / twitter icon colors in footer */
.bi-linkedin {
  color: var(--accent-secondary) !important;
}

.bi-twitter-x {
  color: var(--text-muted) !important;
}
