/* BioScript Design System - Dark Premium Mode */

:root {
  --bg-primary: #0b1220;
  --bg-secondary: #0f172a;
  --card-bg: #162033;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --accent: #6366f1;
  --accent-hover: #4f46e5;
  --accent-glow: rgba(99, 102, 241, 0.35);
  --border-color: rgba(255, 255, 255, 0.1);
  --danger: #ef4444;
  --success: #10b981;
  --warning: #f59e0b;
  --bg-surface: #0b1220;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --brand-500: #6366f1;
  --brand-400: #818cf8;
  --button-bg: #6366f1;
  --auto-text: #ffffff;
  
  /* Typography Scale */
  --typo-h1: 2.5rem;
  --typo-h2: 1.75rem;
  --typo-p: 1rem;
  --typo-sm: 0.875rem;
}

/* Complex Background Readability */
.has-complex-bg.contrast-light {
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.has-complex-bg.contrast-dark {
    text-shadow: 0 1px 2px rgba(255,255,255,0.1);
}

.readability-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    transition: opacity 0.5s;
}

.contrast-light .readability-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), transparent);
}

.contrast-dark .readability-overlay {
    background: linear-gradient(to bottom, rgba(255,255,255,0.1), transparent);
}

body.ui-admin {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

.bio-card {
  background: var(--card-bg, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--border-color, rgba(255, 255, 255, 0.1));
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.bio-hover-lift:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: var(--button-bg, var(--accent));
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  background: var(--card-bg-hover, rgba(255, 255, 255, 0.08));
}

.bio-btn {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bio-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.bio-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Hero Typography System with Ultra-Specificity */
#hero-section.contrast-dark .hero-title,
.contrast-dark .hero-title {
  color: #0f172a !important;
}

#hero-section.contrast-dark .hero-subtitle,
.contrast-dark .hero-subtitle {
  color: rgba(15, 23, 42, 0.8) !important;
}

#hero-section.contrast-light .hero-title,
.contrast-light .hero-title {
  color: #ffffff !important;
}

#hero-section.contrast-light .hero-subtitle,
.contrast-light .hero-subtitle {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Button System */
.btn-primary {
  background-color: var(--accent) !important;
  color: var(--auto-text) !important;
  padding: 0.6rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-primary:hover {
  background-color: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 10px 15px -3px var(--accent-glow) !important;
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--text-primary) !important;
  padding: 0.6rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
  transition: all 0.2s;
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-success {
  background-color: var(--success);
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
}

.btn-danger {
  background-color: var(--danger);
  color: white;
  padding: 0.6rem 1.25rem;
  border-radius: 12px;
  font-weight: 600;
}

/* Sidebar Specifics */
.sidebar-active {
  background-color: rgba(99, 102, 241, 0.1);
  color: var(--accent);
  border-left: 4px solid var(--accent);
}

/* Custom Scrollbar for Dark Mode */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Bento UI Utilities */
.bento-glow {
  position: relative;
  z-index: 1;
}

.bento-glow::after {
  content: "";
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, var(--accent) 0%, transparent 40%, transparent 60%, var(--accent) 100%);
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.5s;
}

.bento-glow:hover::after {
  opacity: 0.15;
}

@keyframes shimmer {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(100%);
  }
}

/* ──────────────────────────────────────────────────────────────────────────────
   HERO SPLIT LAYOUT — Micro Funnel Mode v2
   Responsive 2-column grid that collapses to a single column on mobile.
   No external deps. Uses Tailwind-compatible classes for the grid-cols logic,
   but the base layout is pure CSS so it works even without Tailwind CDN.
────────────────────────────────────────────────────────────────────────────── */
.hero-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-split__left,
.hero-split__right {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* ──────────────────────────────────────────────────────────────────────────────
   SECTION WRAPPER — spacing system for funnel sections
────────────────────────────────────────────────────────────────────────────── */
.section-wrapper {
  position: relative;
}

.section-wrapper+.section-wrapper {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}