/* ==========================================================================
   ALGORIX (algorix.trade) - QUANTITATIVE ALGORITHMIC USDT TRADING DESK
   Stack: HTML5 + Bootstrap 5 + Modular Custom CSS + Vanilla JS
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ROOT VARIABLES (Colors, Fonts, Shadows, Transitions, Borders)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Typography */
  --font-heading: 'Sora', sans-serif;
  --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Theme Colors - Obsidian & Quantum Gold */
  --bg-dark: #06070a;
  --bg-surface: #0b0e15;
  --bg-card: rgba(13, 17, 26, 0.82);
  --bg-card-hover: rgba(20, 26, 40, 0.94);
  --bg-input: #080a10;

  /* Gold Palettes */
  --gold-primary: #f59e0b;
  --gold-bright: #fbbf24;
  --gold-glow: #fef08a;
  --gold-dark: #d97706;
  --gold-bronze: #92400e;
  --gold-ambient: rgba(245, 158, 11, 0.15);
  --gold-border: rgba(245, 158, 11, 0.28);
  --gold-border-glow: rgba(251, 191, 36, 0.6);

  /* Functional Accents */
  --green-profit: #10b981;
  --cyan-accent: #06b6d4;
  --danger-color: #ef4444;

  /* Text Colors - High Contrast for Dark Backgrounds */
  --text-main: #ffffff;
  --text-secondary: #e2e8f0;
  --text-muted: #cbd5e1;
  --text-dim: #94a3b8;
  --text-gold: #fbbf24;

  /* Layout & Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Transitions & Shadows */
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-gold: 0 0 25px rgba(245, 158, 11, 0.28);
  --shadow-gold-hover: 0 0 40px rgba(245, 158, 11, 0.55);
  --shadow-card: 0 15px 45px rgba(0, 0, 0, 0.7);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESETS & TYPOGRAPHY
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  letter-spacing: -0.012em;
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

img, svg, video, canvas {
  max-width: 100%;
}

::selection {
  background: rgba(245, 158, 11, 0.35);
  color: var(--gold-glow);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--gold-dark), var(--gold-bronze));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-dark));
}

/* Font Classes */
.font-heading {
  font-family: var(--font-heading);
  letter-spacing: -0.025em;
}

.font-body {
  font-family: var(--font-body);
}

.font-mono {
  font-family: var(--font-mono);
  font-feature-settings: 'tnum' on, 'zero' on;
}

/* Gold Gradient Text */
.gold-gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #fef08a 25%, #fbbf24 60%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* High-Contrast Readability Overrides (Ensures NO dark or invisible text on black bg) */
.text-muted {
  color: var(--text-muted) !important; /* #cbd5e1 - Crisp light slate */
}

.text-secondary {
  color: var(--text-secondary) !important; /* #e2e8f0 - Crisp light silver */
}

.text-dim {
  color: var(--text-dim) !important; /* #94a3b8 */
}

p {
  color: var(--text-secondary);
}

/* Background Grids & Ambient Lighting */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(245, 158, 11, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245, 158, 11, 0.035) 1px, transparent 1px);
}

.ambient-background-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.ambient-glow-gold {
  position: absolute;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.16) 0%, rgba(217, 119, 6, 0.04) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

.ambient-glow-accent {
  position: absolute;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  border-radius: 50%;
}

#particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   3. BUTTONS & UI MICRO-INTERACTIONS
   -------------------------------------------------------------------------- */
.btn-gold-glow {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  color: #050608 !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid #fef08a;
  border-radius: var(--radius-md);
  padding: 0.65rem 1.4rem;
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.42), 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-gold-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: rotate(25deg);
  transition: all 0.75s ease;
}

.btn-gold-glow:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.75), 0 6px 20px rgba(0, 0, 0, 0.6);
  transform: translateY(-2px);
  color: #000000 !important;
}

.btn-gold-glow:hover::after {
  left: 130%;
}

.btn-gold-outline {
  background: rgba(245, 158, 11, 0.06);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--gold-bright) !important;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--radius-md);
  padding: 0.65rem 1.4rem;
  backdrop-filter: blur(10px);
  transition: all var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.btn-gold-outline:hover {
  background: rgba(245, 158, 11, 0.18);
  border-color: var(--gold-bright);
  color: #ffffff !important;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

/* Glassmorphism Surface Cards */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gold-border);
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-lg);
  transition: all var(--transition-smooth);
}

.glass-panel:hover {
  background: var(--bg-card-hover);
  border-color: var(--gold-border-glow);
  box-shadow: var(--shadow-card), 0 0 30px rgba(245, 158, 11, 0.2);
  transform: translateY(-3px);
}

/* --------------------------------------------------------------------------
   4. NAVBAR (SINGLE-LINE CLEAN HEADER)
   -------------------------------------------------------------------------- */
.algorix-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: 80px;
  background: rgba(6, 7, 10, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.15);
  transition: all var(--transition-smooth);
}

.algorix-navbar.scrolled {
  background: rgba(6, 7, 10, 0.95);
  border-bottom-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

.navbar-brand-logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, #d97706, #fbbf24, #fef08a);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
  overflow: hidden;
  transition: transform var(--transition-fast);
}

.navbar-brand:hover .navbar-brand-logo {
  transform: scale(1.06);
}

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--gold-primary);
  text-transform: uppercase;
}

.nav-link-custom {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary) !important;
  transition: color var(--transition-fast);
  padding: 0.5rem 1rem !important;
  text-decoration: none;
}

.nav-link-custom:hover {
  color: var(--gold-bright) !important;
}

@media (max-width: 991px) {
  .algorix-navbar {
    height: auto;
    min-height: 68px;
    padding: 0.65rem 0;
  }

  .algorix-navbar .container {
    height: auto !important;
  }

  .algorix-navbar nav {
    height: auto !important;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .algorix-navbar .navbar-collapse {
    background: rgba(11, 14, 21, 0.98);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-top: 0.75rem;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.9);
  }
}

/* --------------------------------------------------------------------------
   5. HERO SECTION (LEFT CONTENT, RIGHT TRADING DESK BACKGROUND)
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: 90vh;
  padding-top: 130px;
  padding-bottom: 80px;
  display: flex;
  align-items: center;
  background-image: 
    linear-gradient(90deg, #06070a 0%, rgba(6, 7, 10, 0.96) 38%, rgba(6, 7, 10, 0.68) 62%, rgba(6, 7, 10, 0.2) 85%, transparent 100%),
    linear-gradient(180deg, rgba(6, 7, 10, 0.85) 0%, transparent 22%, transparent 75%, #06070a 100%),
    url('../images/hero-desk-bg.jpg');
  background-size: cover;
  background-position: right 20% center;
  background-repeat: no-repeat;
}

@media (max-width: 991px) {
  .hero-section {
    background-image: 
      linear-gradient(180deg, rgba(6, 7, 10, 0.94) 0%, rgba(6, 7, 10, 0.86) 60%, #06070a 100%),
      url('../images/hero-desk-bg.jpg');
    background-position: center 25%;
    padding-top: 110px;
  }
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(6, 7, 10, 0.9);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.tag-badge {
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-sm);
  background: rgba(245, 158, 11, 0.2);
  color: var(--gold-glow);
  font-weight: 700;
  font-size: 0.65rem;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.hero-sub-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold-primary);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--transition-fast);
}

.hero-sub-link:hover {
  color: var(--gold-bright);
}

.hero-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 1.25rem 0;
}

.hero-sub-desc {
  color: var(--text-secondary);
  font-size: clamp(0.95rem, 1.8vw, 1.12rem);
  line-height: 1.65;
  max-width: 580px;
  margin-bottom: 1.75rem;
}

.hero-divider {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin: 2rem 0 1.5rem 0;
  max-width: 650px;
}

.hero-feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius-pill);
  background: rgba(12, 15, 23, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.24);
  backdrop-filter: blur(12px);
  transition: all var(--transition-smooth);
}

.hero-feature-pill:hover {
  background: rgba(20, 26, 40, 0.9);
  border-color: var(--gold-bright);
  transform: translateY(-2px);
}

.pill-icon-box {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(245, 158, 11, 0.2);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   6. TICKER SECTION (REAL-TIME ARBITRAGE & PRICE MARQUEE)
   -------------------------------------------------------------------------- */
.ticker-section {
  padding: 0.85rem 0;
  border-top: 1px solid rgba(245, 158, 11, 0.2);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  background: rgba(11, 14, 21, 0.92);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerSlide 32s linear infinite;
  align-items: center;
  gap: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.ticker-track:hover {
  animation-play-state: paused;
}

@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.pulse-amber-dot {
  animation: pulseAmber 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulseAmber {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7);
  }
  50% {
    opacity: 0.8;
    transform: scale(1.15);
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0);
  }
}

/* --------------------------------------------------------------------------
   7. 4-STEP RUNNING PROCESS PIPELINE ENGINE
   -------------------------------------------------------------------------- */
.pipeline-section {
  padding: 6rem 0;
  position: relative;
}

.pipeline-card {
  position: relative;
  background: rgba(12, 15, 23, 0.82);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-lg);
  padding: 1.85rem 1.6rem;
  transition: all var(--transition-smooth);
  cursor: pointer;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pipeline-card:hover {
  border-color: rgba(245, 158, 11, 0.55);
  transform: translateY(-4px);
}

/* Active running state */
.pipeline-card.active-running {
  background: rgba(18, 23, 36, 0.96);
  border-color: var(--gold-bright);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.42), inset 0 0 25px rgba(245, 158, 11, 0.08);
  transform: translateY(-6px) scale(1.02);
}

.pipeline-card.active-running .step-number {
  color: var(--gold-bright);
  text-shadow: 0 0 15px rgba(251, 191, 36, 0.6);
}

.pipeline-card.active-running .step-icon-box {
  background: var(--gold-primary);
  color: #050608;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.6);
  transform: scale(1.1);
}

.pipeline-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24, #ffffff);
  box-shadow: 0 0 10px #fbbf24;
}

.pipeline-card.active-running .pipeline-progress-bar {
  animation: runProgress 3.8s linear forwards;
}

@keyframes runProgress {
  0% { width: 0%; }
  100% { width: 100%; }
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: rgba(251, 191, 36, 0.7);
  transition: color var(--transition-smooth);
}

.step-icon-box {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--gold-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  transition: all var(--transition-smooth);
}

.step-card-title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.6rem;
}

.step-card-desc {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.6;
}

.pipeline-connector-line {
  position: absolute;
  top: 45%;
  left: 4%;
  right: 4%;
  height: 2px;
  background: rgba(245, 158, 11, 0.18);
  z-index: 1;
}

.pipeline-laser-pulse {
  position: absolute;
  top: -2px;
  height: 6px;
  width: 120px;
  background: linear-gradient(90deg, transparent, #fbbf24, #ffffff, transparent);
  box-shadow: 0 0 15px #fbbf24;
  border-radius: var(--radius-pill);
  animation: laserTravel 15.2s linear infinite;
  z-index: 2;
}

@keyframes laserTravel {
  0% { left: 0%; opacity: 0; }
  5% { opacity: 1; }
  95% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

@media (max-width: 991px) {
  .pipeline-connector-line,
  .pipeline-laser-pulse {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   8. CALCULATOR SECTION
   -------------------------------------------------------------------------- */
.calculator-section {
  padding: 6rem 0;
  position: relative;
}

.calc-input-custom {
  background: var(--bg-input);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--gold-bright);
  font-family: var(--font-mono);
  font-weight: 700;
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.8rem;
  width: 150px;
  text-align: right;
  outline: none;
}

.calc-input-custom:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.strategy-select-btn {
  background: rgba(12, 15, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 0.9rem;
  text-align: left;
  transition: all var(--transition-fast);
  width: 100%;
}

.strategy-select-btn:hover {
  border-color: rgba(245, 158, 11, 0.5);
}

.strategy-select-btn.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--gold-bright);
}

.period-select-btn {
  background: rgba(12, 15, 23, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.5rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  width: 100%;
  transition: all var(--transition-fast);
}

.period-select-btn.active {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

/* Range input styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(245, 158, 11, 0.2);
  border-radius: 4px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold-primary);
  border: 3px solid #fef08a;
  box-shadow: 0 0 15px var(--gold-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 25px var(--gold-bright);
}

/* --------------------------------------------------------------------------
   9. FAQ & ACCORDION
   -------------------------------------------------------------------------- */
.faq-item-custom {
  background: var(--bg-card);
  border: 1px solid rgba(245, 158, 11, 0.2);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-header-btn {
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  outline: none;
}

.faq-header-btn:hover {
  color: var(--gold-bright);
}

.faq-icon-rotator {
  transition: transform 0.3s ease;
  color: var(--gold-primary);
}

.faq-header-btn[aria-expanded="true"] .faq-icon-rotator {
  transform: rotate(180deg);
}

.faq-body-content {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   10. CONTACT SECTION & FORMS (STRICTLY info@algorix.trade ONLY)
   -------------------------------------------------------------------------- */
.contact-section {
  padding: 6rem 0;
  position: relative;
  background: rgba(11, 14, 21, 0.6);
}

.form-control-custom {
  background: rgba(6, 7, 10, 0.85);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: var(--radius-md);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  width: 100%;
}

.form-control-custom:focus {
  background: rgba(6, 7, 10, 0.95);
  border-color: var(--gold-bright);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
  color: #ffffff;
  outline: none;
}

.form-control-custom::placeholder {
  color: #94a3b8;
}

.form-control-custom option {
  background-color: #0b0e15;
  color: #ffffff;
}

.form-label-custom {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
  display: block;
}

/* Toast Notice */
.toast-notice {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: rgba(15, 19, 28, 0.95);
  border: 1px solid rgba(245, 158, 11, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transform: translateY(120px);
  opacity: 0;
  transition: all var(--transition-smooth);
  z-index: 9999;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* --------------------------------------------------------------------------
   11. FOOTER & NEWSLETTER / DIRECT DESK EMAIL
   -------------------------------------------------------------------------- */
.footer-section {
  border-top: 1px solid rgba(245, 158, 11, 0.25);
  background: var(--bg-dark);
  padding-top: 5rem;
  padding-bottom: 3.5rem;
  position: relative;
  z-index: 10;
}

.footer-newsletter-card {
  background: rgba(14, 18, 27, 0.92);
  border: 1px solid rgba(245, 158, 11, 0.38);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 4rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 35px rgba(245, 158, 11, 0.15);
}

.footer-input-group {
  display: flex;
  align-items: center;
  background: #06070a;
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: var(--radius-md);
  padding: 0.35rem 0.4rem;
  transition: all var(--transition-smooth);
}

.footer-input-group:focus-within {
  border-color: var(--gold-bright);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.4);
}

.footer-input-group input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-family: var(--font-mono);
  width: 100%;
}

.footer-input-group input::placeholder {
  color: #94a3b8;
}

@media (max-width: 575px) {
  .footer-newsletter-card {
    padding: 1.5rem 1.25rem;
    margin-bottom: 2.5rem;
  }
  .footer-input-group {
    flex-direction: column;
    gap: 0.65rem;
    background: transparent;
    border: none;
    padding: 0;
  }
  .footer-input-group input {
    background: #06070a;
    border: 1px solid rgba(245, 158, 11, 0.45);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    width: 100%;
  }
  .footer-input-group button {
    width: 100%;
    justify-content: center;
  }
}

.footer-nav-link {
  color: #e2e8f0;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-nav-link:hover {
  color: var(--gold-bright);
  transform: translateX(4px);
}

.footer-spec-row {
  background: rgba(13, 17, 26, 0.8);
  border: 1px solid rgba(245, 158, 11, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.footer-spec-label {
  color: #f1f5f9;
  font-weight: 500;
}

.footer-spec-val {
  color: var(--gold-bright);
  font-weight: 700;
}

/* Step Card Footer */
.step-card-footer {
  padding-top: 0.9rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(245, 158, 11, 0.22);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
}

.step-card-footer .step-footer-text {
  color: #f8fafc;
}

/* Contact Card Elements */
.contact-meta-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--gold-bright);
  letter-spacing: 0.08em;
  font-weight: 700;
  display: block;
}

.contact-check-item {
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* ==========================================================================
   11. COMPREHENSIVE MOBILE RESPONSIVE ENGINE (< 576px)
   Eliminates all horizontal overflow, fixes text sizes, buttons, cards
   ========================================================================== */
@media (max-width: 575px) {
  /* Container & Layout */
  .container {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    max-width: 100% !important;
  }

  /* Header Branding */
  .navbar-brand-logo {
    width: 36px;
    height: 36px;
  }

  .brand-title {
    font-size: 1.22rem;
  }

  .brand-subtitle {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  /* Hero Section Typography & Sizing */
  .hero-section {
    padding-top: 100px;
    padding-bottom: 45px;
    min-height: auto;
  }

  .hero-pill-badge {
    padding: 0.35rem 0.65rem;
    font-size: 0.68rem;
    max-width: 100%;
    white-space: normal;
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    line-height: 1.3;
  }

  .hero-sub-link {
    font-size: 0.72rem;
    max-width: 100%;
    display: inline-flex;
    flex-wrap: wrap;
    line-height: 1.3;
  }

  .hero-main-title {
    font-size: clamp(1.85rem, 8.5vw, 2.35rem);
    line-height: 1.15;
    margin: 0.85rem 0;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .hero-sub-desc {
    font-size: 0.88rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
  }

  /* Full-width Stacked CTAs for Thumb-friendly Tap */
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem !important;
  }

  .hero-cta-group .btn-gold-glow,
  .hero-cta-group .btn-gold-outline {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.82rem;
  }

  /* Hero Feature Badges Grid */
  .hero-divider {
    margin: 1.25rem 0 1rem 0;
  }

  .hero-feature-pill {
    padding: 0.45rem 0.5rem;
    gap: 0.4rem;
  }

  .hero-feature-pill .pill-icon-box {
    width: 24px;
    height: 24px;
  }

  .hero-feature-pill span {
    font-size: 0.7rem !important;
  }

  /* Headings & Display Typography across Sections */
  .display-5 {
    font-size: 1.85rem !important;
    line-height: 1.2;
  }

  /* Cards & Panels */
  .glass-panel {
    padding: 1.25rem !important;
    border-radius: var(--radius-md);
  }

  .pipeline-card {
    padding: 1.35rem 1.15rem;
    border-radius: var(--radius-md);
  }

  .step-card-title {
    font-size: 1.05rem;
  }

  .step-number {
    font-size: 1.7rem;
  }

  /* Telemetry Console */
  #pipeline-console-msg {
    font-size: 0.78rem !important;
    word-break: break-word;
  }

  #pipeline-console-metric {
    font-size: 0.7rem !important;
    word-break: break-word;
  }

  /* Calculator Section */
  .calc-input-custom {
    width: 100px;
    font-size: 0.85rem;
  }

  .period-select-btn {
    font-size: 0.72rem;
    padding: 0.45rem 0.2rem;
  }

  /* Mobile Toast Notice */
  .toast-notice {
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: calc(100% - 2rem);
    padding: 0.75rem 1rem;
  }

  /* Mobile Footer */
  .footer-section {
    padding-top: 3.5rem;
    padding-bottom: 2.5rem;
  }

  .footer-newsletter-card {
    padding: 1.35rem 1.1rem;
    margin-bottom: 2.5rem;
  }
}
