/* ==========================================================================
   BIZE GROWTH — EXECUTIVE DARK-MODE REVENUE ENGINEERING DESIGN SYSTEM
   Division of Bize Studios (ABN 51 767 627 987) | https://bizegrowth.com
   ========================================================================== */

:root {
  --bg-obsidian: #07090E;
  --bg-surface: #0F141F;
  --bg-surface-elevated: #151C2C;
  --bg-surface-hover: #1A2336;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-highlight: rgba(255, 255, 255, 0.16);
  --border-emerald: rgba(16, 185, 129, 0.35);
  --border-indigo: rgba(59, 130, 246, 0.35);

  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --accent-emerald: #10B981;
  --accent-emerald-glow: rgba(16, 185, 129, 0.15);
  --accent-indigo: #3B82F6;
  --accent-indigo-glow: rgba(59, 130, 246, 0.15);
  --accent-cyan: #06B6D4;
  --accent-amber: #F59E0B;
  --accent-rose: #F43F5E;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.65);
  --shadow-emerald: 0 0 30px -5px rgba(16, 185, 129, 0.25);
  --shadow-indigo: 0 0 30px -5px rgba(59, 130, 246, 0.25);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Grid & Radial Glows */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

.ambient-glow-emerald {
  position: absolute;
  width: 540px;
  height: 540px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.11) 0%, rgba(16, 185, 129, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

.ambient-glow-indigo {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.11) 0%, rgba(6, 182, 212, 0) 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(45px);
}

/* Typography Utilities */
.font-mono-code {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.text-gradient-emerald {
  background: linear-gradient(135deg, #34D399 0%, #10B981 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-indigo {
  background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 50%, #06B6D4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient-executive {
  background: linear-gradient(180deg, #FFFFFF 0%, #CBD5E1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Surface Cards & Glassmorphism */
.surface-card {
  background: linear-gradient(180deg, rgba(21, 28, 44, 0.75) 0%, rgba(15, 20, 31, 0.92) 100%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease, box-shadow 0.25s ease;
}

.surface-card-interactive:hover {
  transform: translateY(-3px);
  border-color: var(--border-highlight);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.8), 0 0 25px -5px rgba(59, 130, 246, 0.14);
}

.surface-card-emerald {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 20, 31, 0.95) 100%);
  border: 1px solid var(--border-emerald);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-emerald);
}

.surface-card-indigo {
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.09) 0%, rgba(15, 20, 31, 0.95) 100%);
  border: 1px solid var(--border-indigo);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-indigo);
}

.terminal-window {
  background: #06080D;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.85);
  overflow: hidden;
}

.terminal-header {
  background: #0B0F17;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.75rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 9, 14, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-link {
  position: relative;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, background-color 0.2s ease;
  text-decoration: none;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: #FFFFFF;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 20%;
  right: 20%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-indigo), var(--accent-emerald));
  border-radius: 2px;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #2563EB 0%, #06B6D4 100%);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 25px -6px rgba(37, 99, 235, 0.55);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -5px rgba(6, 182, 212, 0.65);
  filter: brightness(1.08);
}

.btn-emerald {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, #059669 0%, #10B981 100%);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 25px -6px rgba(16, 185, 129, 0.5);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-emerald:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px -5px rgba(16, 185, 129, 0.7);
  filter: brightness(1.08);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.925rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}

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

/* Status Pulse Indicator */
.pulse-dot {
  position: relative;
  display: inline-flex;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
}

.pulse-dot::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  opacity: 0.45;
  animation: pulse-ring 2s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.7);
    opacity: 0.65;
  }
  70%, 100% {
    transform: scale(1.85);
    opacity: 0;
  }
}

/* Custom Range Sliders */
input[type="range"].exec-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: #1A2336;
  border-radius: 999px;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
}

input[type="range"].exec-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #06B6D4);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.7);
  cursor: pointer;
  transition: transform 0.15s ease;
}

input[type="range"].exec-slider::-webkit-slider-thumb:hover {
  transform: scale(1.12);
}

input[type="range"].exec-slider::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #06B6D4);
  border: 2px solid #FFFFFF;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.7);
  cursor: pointer;
  transition: transform 0.15s ease;
}

/* Form Controls */
.exec-input,
.exec-select,
.exec-textarea {
  width: 100%;
  background-color: #090D15;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.exec-input:focus,
.exec-select:focus,
.exec-textarea:focus {
  outline: none;
  border-color: var(--accent-indigo);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.exec-input::placeholder,
.exec-textarea::placeholder {
  color: #475569;
}

/* Interactive Tabs & Pills */
.tab-pill {
  background: rgba(15, 20, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-pill:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
}

.tab-pill.active {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(16, 185, 129, 0.14));
  color: #FFFFFF;
  border-color: var(--accent-emerald);
  box-shadow: 0 0 20px -5px rgba(16, 185, 129, 0.3);
}

/* Toast Notification */
#bize-toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 380px;
}

.bize-toast {
  background: #0F141F;
  border: 1px solid var(--accent-emerald);
  border-left: 4px solid var(--accent-emerald);
  color: #F8FAFC;
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(4, 6, 10, 0.82);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop.open {
  display: flex;
}

/* Mobile Menu Drawer */
.mobile-drawer {
  display: none;
  background: #0B0F19;
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 1.25rem 1.5rem;
}

.mobile-drawer.open {
  display: block;
}

/* Scrollbar Polish */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #07090E;
}
::-webkit-scrollbar-thumb {
  background: #1E293B;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #334155;
}
