/* ==========================================================================
   OTA CONSULTING PORTFOLIO SYSTEM
   Custom Vanilla CSS - High-End Swiss-Minimalist Editorial & Technical Theme
   ========================================================================== */

/* Google Fonts loaded in HTML head for non-blocking parallel retrieval */

:root {
  /* Royal Indigo & Champagne Gold Color Palette */
  --bg-primary: #090a10;      
  --bg-secondary: #0f111d;    /* Rich indigo slate */
  --bg-card: #141626;         
  --bg-card-hover: #1a1c31;   
  --accent-cyan: #38bdf8;     /* Electric sky cyan */
  --accent-blue: #6366f1;     /* Royal indigo brand core */
  --accent-gold: #e9d5b4;     /* Premium metallic champagne gold */
  
  --text-primary: #f8fafc;    /* Crisp luxury white */
  --text-secondary: #cbd5e1;  /* Platinum tech steel */
  --text-muted: #787f9e;      /* Soft blue-slate */
  
  --border-color: rgba(99, 102, 241, 0.15); /* Semi-transparent indigo border */
  --border-color-glow: rgba(233, 213, 180, 0.4);
  
  /* Gradients & Glass Elements */
  --gradient-accent: linear-gradient(135deg, #6366f1 0%, #38bdf8 100%);
  --gradient-dark: linear-gradient(180deg, #090a10 0%, #0f111d 100%);
  --gradient-glass: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
  --gradient-glow: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(56, 189, 248, 0.04) 50%, transparent 100%);

  /* Typography */
  --font-heading: 'Outfit', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Layout Constants */
  --container-width: 1200px;
  --header-height: 80px;
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease-in-out;
  
  /* Custom Shadows */
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
}

/* Reset & Base System */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.035) 0%, transparent 50%),
    radial-gradient(circle at 85% 45%, rgba(233, 213, 180, 0.02) 0%, transparent 50%),
    radial-gradient(circle at 50% 85%, rgba(56, 189, 248, 0.025) 0%, transparent 45%);
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.65;
  overflow-x: hidden;
}

/* Custom Scrollbar - Minimal and sharp */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}
::-webkit-scrollbar-thumb {
  background: #d1d1ca;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-primary);
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 32px;
}

section {
  position: relative;
  padding: 120px 0;
  border-bottom: 1px solid var(--border-color);
}

/* Decorative Background Glows - Disabled for clean look */
.bg-glow-orb, .bg-glow-orb-left {
  display: none !important;
}

/* Header Section - Floating Glassmorphic Navbar */
header {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: var(--container-width);
  height: 70px;
  z-index: 1000;
  background: rgba(9, 10, 16, 0.6);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px; /* Breathtaking capsule navbar */
  transition: var(--transition-smooth);
}

header.scrolled {
  top: 12px;
  height: 64px;
  background: rgba(15, 17, 29, 0.85);
  border-color: rgba(233, 213, 180, 0.2);
  border-radius: 100px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-icon {
  width: 32px;
  height: 32px;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--bg-primary);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  border-radius: 50%; /* Gorgeous round logo icon */
}

.logo-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  letter-spacing: 1px;
}

.logo-text span {
  font-weight: 300;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
  align-items: center;
  flex-shrink: 0;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: var(--transition-fast);
  position: relative;
  padding: 8px 0;
  white-space: nowrap;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--text-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after {
  width: 100%;
}

.cta-nav {
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold);
  padding: 10px 22px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 30px; /* Pill styled nav CTA */
  transition: var(--transition-fast);
  white-space: nowrap;
  display: inline-block;
}

.cta-nav:hover {
  background: var(--accent-gold);
  color: var(--bg-primary);
  box-shadow: 0 0 20px rgba(233, 213, 180, 0.4);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background-color: var(--text-primary);
  transition: var(--transition-fast);
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Typographic Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
  padding: 6px 16px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 30px;
  border-radius: 30px; /* Breathtaking pill badge */
}

.badge-cyan {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.section-title-wrap {
  text-align: center;
  max-width: 750px;
  margin: 0 auto 72px auto;
  position: relative;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.section-title span {
  font-style: italic;
  font-weight: 400;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.7;
}

/* Hero Section - Centered Editorial Masterpiece */
.hero {
  min-height: 105vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 160px;
  padding-bottom: 100px;
  background: transparent;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  max-width: 800px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 4rem;
  line-height: 1.15;
  font-weight: 500;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-title span {
  font-style: italic;
  font-weight: 400;
}

.hero-title .italic-gold {
  font-family: var(--font-heading);
  font-weight: 400;
  font-style: italic;
  color: var(--accent-gold);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 40px;
  max-width: 640px;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: var(--gradient-accent);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 16px 36px;
  border: 1px solid transparent;
  border-radius: 50px; /* Gorgeous pill-shaped buttons */
  transition: var(--transition-smooth);
  cursor: pointer;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  background: transparent;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 16px 36px;
  border-radius: 50px; /* Gorgeous pill-shaped buttons */
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--bg-secondary);
  border-color: var(--text-primary);
}

.pulse-glow {
  animation: none;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Minimalist XML Console styling */
.xml-console {
  background: rgba(20, 23, 44, 0.7);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  width: 100%;
  max-width: 520px;
  overflow: hidden;
  font-family: var(--font-mono);
  margin: 0 auto;
  text-align: left;
  box-shadow: var(--shadow-glass);
}

.xml-header {
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 20px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.xml-dots {
  display: flex;
  gap: 6px;
}

.xml-dots span {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-block;
  background: transparent;
}

.xml-dots span:nth-child(1) { background: #ef4444; border: none; }
.xml-dots span:nth-child(2) { background: #f59e0b; border: none; }
.xml-dots span:nth-child(3) { background: #10b981; border: none; }

.xml-title {
  font-size: 0.75rem;
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.xml-status {
  font-size: 0.65rem;
  font-weight: 600;
  color: #38bdf8;
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.xml-body {
  padding: 24px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.7;
  background: transparent;
  overflow-x: auto;
}

.xml-comment {
  color: var(--text-muted);
  font-style: italic;
  display: block;
  margin-bottom: 12px;
}

.xml-line {
  white-space: nowrap;
}

.xml-tag { color: var(--accent-blue); font-weight: 500; }
.xml-attr { color: var(--accent-gold); }
.xml-str { color: var(--accent-cyan); font-weight: 400; }

.indent-1 { padding-left: 20px; }
.indent-2 { padding-left: 40px; }
.indent-3 { padding-left: 60px; }
.indent-4 { padding-left: 80px; }

.xml-footer {
  background: rgba(255, 255, 255, 0.02);
  padding: 14px 20px;
  border-top: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-item {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.hud-item span {
  display: block;
  font-size: 0.6rem;
  text-transform: uppercase;
  margin-bottom: 2px;
  letter-spacing: 0.5px;
  color: var(--text-muted);
}

.hud-item strong {
  font-family: var(--font-body);
  color: var(--text-primary);
  font-weight: 600;
}

.hud-item strong.text-green {
  color: #38bdf8;
}

/* Stats Section */
.stats {
  background: var(--bg-secondary);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-item {
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -15px;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-color);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 12px;
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Problem Section / "The Confusion" */
.confusion {
  background: transparent;
}

.confusion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.confusion-card {
  background: rgba(20, 23, 44, 0.6);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 48px;
  position: relative;
  border-radius: 16px; /* Smooth rounded corners for cards */
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 24px;
  box-shadow: var(--shadow-glass);
}

.confusion-card:hover {
  border-color: var(--accent-cyan);
  background: rgba(26, 28, 49, 0.8);
  box-shadow: var(--shadow-glass), var(--shadow-glow);
  transform: translateY(-4px);
}

.confusion-num {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--accent-gold);
  position: absolute;
  top: 28px;
  right: 32px;
  transition: var(--transition-smooth);
}

.confusion-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-color);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: var(--bg-secondary);
  border-radius: 8px; /* Elegant rounded square */
}

.confusion-card:hover .confusion-icon {
  background: var(--bg-card);
  border-color: var(--accent-cyan);
  color: #ffffff;
}

.confusion-card h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 10px;
}

.confusion-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  font-weight: 300;
}

/* Revenue Leak Calculator Widget */
.calculator-card {
  background: rgba(20, 23, 44, 0.6);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 56px;
  margin-top: 72px;
  position: relative;
  border-radius: 24px; /* Premium smooth card shape */
  box-shadow: var(--shadow-glass);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: center;
  position: relative;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.calc-slider-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.calc-slider-label {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calc-slider-label span:nth-child(2) {
  color: var(--accent-gold);
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.calc-range {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.calc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 22px;
  background: var(--accent-cyan);
  cursor: pointer;
  transition: var(--transition-fast);
}

.calc-range::-webkit-slider-thumb:hover {
  background: var(--accent-gold);
}

.calc-results {
  background: rgba(15, 17, 29, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 44px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
  border-radius: 16px; /* Smooth card inner-pane */
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-glass);
}

.calc-results.leak-warning {
  border-color: #ef4444;
}

/* Calculator Risk Methodology Modal Popup */
.calc-info-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
  margin-top: -8px;
  margin-bottom: 4px;
}

.calc-info-trigger:hover {
  color: var(--accent-cyan);
}

.calc-modal {
  position: absolute;
  inset: 0;
  background: rgba(9, 10, 16, 0.5);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.calc-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.calc-modal-content {
  background: rgba(20, 23, 44, 0.95);
  border: 1px solid rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-glass);
  padding: 40px;
  max-width: 580px;
  width: 100%;
  position: relative;
  border-radius: 20px; /* Refined pop-up modal borders */
  transform: scale(0.95);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  display: flex;
  flex-direction: column;
}

.calc-modal.active .calc-modal-content {
  transform: scale(1);
}

.calc-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  line-height: 1;
}

.calc-modal-close:hover {
  color: var(--text-primary);
}

.modal-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 16px 0 8px 0;
  color: var(--text-primary);
  line-height: 1.3;
}

.modal-intro {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 24px;
  font-weight: 350;
}

.modal-sections {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modal-sec-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.modal-sec-text h5 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.modal-sec-text p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 300;
}

/* Modal Responsive Settings */
@media (max-width: 768px) {
  .calc-modal {
    padding: 20px;
  }
  
  .calc-modal-content {
    padding: 28px 20px;
  }
  
  .modal-title {
    font-size: 1.3rem;
    margin-top: 12px;
  }
  
  .modal-intro {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }
  
  .modal-sections {
    gap: 16px;
  }
  
  .modal-sec-item {
    gap: 12px;
  }
  
  .modal-sec-icon {
    width: 32px !important;
    height: 32px !important;
    font-size: 0.95rem !important;
  }
  
  .modal-sec-text h5 {
    font-size: 0.8rem;
    margin-bottom: 4px;
  }
  
  .modal-sec-text p {
    font-size: 0.8rem;
    line-height: 1.4;
  }
}

.calc-leak-badge {
  color: var(--text-primary);
  border: 1px solid var(--text-primary);
  background: transparent;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 14px;
  align-self: center;
}

.calc-leak-amount {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1;
}

.calc-leak-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
}

/* Professional Data Standards Banner */
.standards-banner {
  background: rgba(12, 13, 21, 0.4);
  border-bottom: 1px solid var(--border-color);
  padding: 64px 0;
  position: relative;
}

.standards-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  align-items: center;
}

.standards-left h3 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-gold);
  margin-bottom: 12px;
}

.standards-left h4 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.25;
  color: var(--text-primary);
}

.standards-right p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
  border-left: 2px solid var(--accent-cyan);
  padding-left: 32px;
}

/* Interactive Solution Section / "The Solver" */
.solver {
  background: transparent;
}

.solver-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: flex-start;
}

.solver-menu {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-color);
}

.solver-tab {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  padding: 24px 16px;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
}

.solver-tab:hover {
  background: rgba(255, 255, 255, 0.02);
}

.solver-tab.active {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-left: 3px solid var(--accent-cyan);
  padding-left: 13px; /* Keeps layout aligned with 3px border */
}

.tab-icon-wrapper {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1.1rem;
  border-radius: 8px; /* Elegant rounded tab icon */
  transition: var(--transition-fast);
  background: var(--bg-card);
}

.solver-tab.active .tab-icon-wrapper {
  background: var(--gradient-accent);
  color: var(--bg-primary);
  border-color: var(--accent-cyan);
}

.tab-text h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: var(--transition-fast);
  letter-spacing: 0.5px;
}

.solver-tab.active .tab-text h4 {
  color: var(--text-primary);
}

.tab-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.solver-display {
  background: rgba(18, 19, 31, 0.6);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 56px;
  min-height: 480px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 20px; /* Gorgeous display card corners */
  box-shadow: var(--shadow-glass);
}

.solver-pane {
  display: none;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.solver-pane.active {
  display: flex;
  flex-direction: column;
  gap: 24px;
  opacity: 1;
  transform: translateY(0);
}

.pane-badge {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  background: transparent;
  padding: 4px 12px;
  text-transform: uppercase;
}

.solver-pane h3 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--text-primary);
}

.solver-pane p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  font-weight: 300;
}

.pane-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.pane-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

.pane-feature i {
  color: var(--accent-gold);
  font-size: 0.95rem;
}

/* Process Section / "How We Work" */
.process {
  background: var(--bg-primary);
}

.process-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 45px;
  left: 5%;
  right: 5%;
  height: 1px;
  background: var(--border-color);
  z-index: 1;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 90px;
  height: 90px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--accent-cyan);
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 400;
  font-style: italic;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px auto;
  position: relative;
  border-radius: 50%; /* Perfect circles for timeline steps */
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-glass);
}

.process-step:hover .step-number {
  background: var(--gradient-accent);
  border-color: var(--accent-cyan);
  color: var(--bg-primary);
  box-shadow: 0 0 25px rgba(56, 189, 248, 0.3);
}

.process-step h4 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.process-step p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  font-weight: 300;
}

/* About / Credentials Section */
.about {
  background: transparent;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 72px;
  align-items: center;
}

.about-graphic {
  display: flex;
  justify-content: center;
  position: relative;
}

.about-console {
  background: rgba(20, 23, 44, 0.8);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  font-family: var(--font-mono);
  border-radius: 16px; /* Smooth rounded corners for terminal console mockup */
  box-shadow: var(--shadow-glass);
}

.console-header {
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 18px;
  border-bottom: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dots span {
  width: 8px;
  height: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: inline-block;
  background: transparent;
}

.console-dots span:nth-child(1) { background: #ef4444; border: none; }
.console-dots span:nth-child(2) { background: #f59e0b; border: none; }
.console-dots span:nth-child(3) { background: #10b981; border: none; }

.console-title {
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
}

.console-body {
  padding: 24px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.console-body p {
  margin-bottom: 8px;
}

.console-body .text-cyan { color: var(--accent-cyan); font-weight: 500; }
.console-body .text-gold { color: var(--accent-gold); }
.console-body .text-white { color: var(--text-primary); }
.console-body .text-gray { color: var(--text-muted); font-style: italic; }

.about-content h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 400;
  margin-bottom: 24px;
  line-height: 1.2;
}

.about-content h2 span {
  font-style: italic;
  font-weight: 400;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-weight: 300;
  line-height: 1.7;
}

.credentials-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 36px;
  border-top: 1px solid var(--border-color);
  padding-top: 36px;
}

.credential-item {
  background: rgba(20, 23, 44, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  border-radius: 12px; /* Smooth card inner layout */
  transition: var(--transition-fast);
  box-shadow: var(--shadow-glass);
}

.credential-item:hover {
  border-color: var(--accent-cyan);
}

.cred-icon {
  color: var(--accent-gold);
  font-size: 1.3rem;
}

.cred-text h5 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cred-text p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Contact / Dynamic Audit Section */
.contact {
  background: var(--bg-primary);
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 72px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-info h2 {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 400;
  margin-bottom: 24px;
}

.contact-info h2 span {
  font-style: italic;
  font-weight: 400;
}

.contact-info p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 44px;
  max-width: 480px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-detail-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(20, 23, 44, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 20px 24px;
  max-width: 420px;
  border-radius: 12px; /* Soft round detail card */
  transition: var(--transition-fast);
  box-shadow: var(--shadow-glass);
}

.contact-detail-card:hover {
  border-color: var(--accent-cyan);
}

.detail-icon {
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  font-size: 1.15rem;
  background: var(--bg-secondary);
  border-radius: 8px; /* Subtle icon roundness */
}

.detail-text span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 2px;
}

.detail-text a, .detail-text p {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

.detail-text a:hover {
  color: var(--accent-gold);
}

/* Premium Form Styles */
.contact-form-container {
  background: rgba(20, 23, 44, 0.6);
  backdrop-filter: blur(30px) saturate(190%);
  -webkit-backdrop-filter: blur(30px) saturate(190%);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 48px;
  border-radius: 20px; /* Gorgeous form panel borders */
  box-shadow: var(--shadow-glass);
}

.audit-form-step {
  display: none;
}

.audit-form-step.active {
  display: flex;
  flex-direction: column;
  gap: 24px;
  animation: fade-in 0.4s ease;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.step-indicator::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border-color);
  z-index: 1;
}

.indicator-dot {
  width: 32px;
  height: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  border-radius: 50%; /* Perfect circles for dots */
  transition: var(--transition-smooth);
}

.indicator-dot.active {
  border-color: var(--accent-cyan);
  color: var(--bg-primary);
  background: var(--gradient-accent);
  font-weight: 700;
}

.indicator-dot.completed {
  background: var(--gradient-accent);
  border-color: var(--accent-cyan);
  color: var(--bg-primary);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group label {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-primary);
}

.form-control {
  background: transparent !important;
  border: none !important;
  border-bottom: 1px solid var(--border-color) !important;
  padding: 12px 0 !important;
  color: var(--text-primary) !important;
  font-family: var(--font-body) !important;
  font-size: 0.95rem !important;
  transition: var(--transition-fast) !important;
}

.form-control:focus {
  outline: none !important;
  border-bottom: 1px solid var(--text-primary) !important;
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23cbd5e1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 4px center !important;
  background-size: 14px !important;
  padding-right: 28px !important;
}

select.form-control option {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.checkbox-pill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}

.checkbox-pill {
  position: relative;
}

.checkbox-pill input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.checkbox-pill-label {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 12px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: center;
}

.checkbox-pill input:checked + .checkbox-pill-label {
  background: var(--gradient-accent);
  border-color: var(--accent-cyan);
  color: var(--bg-primary);
  font-weight: 600;
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 36px;
}

.form-navigation button {
  padding: 14px 28px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-form-prev {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-form-prev:hover {
  background: var(--bg-secondary);
  border-color: var(--text-primary);
}

.btn-form-next {
  background: var(--gradient-accent);
  color: #ffffff;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-glow);
}

.btn-form-next:hover {
  background: transparent;
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 30px rgba(56, 189, 248, 0.3);
}

/* Footer Section */
footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 48px 0;
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-primary);
}

/* Animations */
@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    background: rgba(15, 17, 29, 0.96);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
    padding: 30px 24px;
    flex-direction: column;
    gap: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.02);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .hamburger {
    display: flex;
  }
  
  .cta-nav {
    display: none;
  }

  .hero-grid, .solver-layout, .about-grid, .contact-layout, .calc-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  /* Solver Horizontal Scrolling Pills UX for Mobile & Tablets */
  .solver-menu {
    flex-direction: row;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border-top: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
    gap: 12px;
    width: 100%;
  }

  .solver-tab {
    border-bottom: none !important;
    border: 1px solid var(--border-color);
    padding: 12px 20px;
    flex-shrink: 0;
    width: auto;
  }

  .solver-tab.active {
    border-left: none;
    border: 1px solid var(--accent-cyan);
    background: var(--gradient-accent);
    color: var(--bg-primary);
  }

  .solver-tab.active .tab-icon-wrapper {
    background: var(--bg-primary);
    color: var(--accent-cyan);
    border-color: var(--accent-cyan);
  }

  .solver-tab.active .tab-text h4 {
    color: var(--bg-primary);
    font-weight: 700;
  }

  .solver-tab .tab-text p {
    display: none;
  }

  .solver-display {
    padding: 32px 24px;
    min-height: auto;
  }

  .pane-features {
    grid-template-columns: 1fr;
  }
  
  .hero {
    padding-top: 120px;
    padding-bottom: 60px;
  }
  
  .hero-grid {
    text-align: center;
  }
  
  .hero-content {
    text-align: center;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .hero-desc {
    margin: 0 auto 36px auto;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-visual {
    margin-top: 36px;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  
  .stat-item:nth-child(2)::after {
    display: none;
  }
  
  .confusion-grid {
    grid-template-columns: 1fr;
  }
  
  .process-timeline {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
  }
  
  .process-timeline::before {
    display: none;
  }
  
  .about-graphic {
    order: 2;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2.2rem;
  }
  
  .process-timeline {
    grid-template-columns: 1fr;
  }
  
  .checkbox-pill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .form-group-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form-container {
    padding: 32px 24px;
  }

  /* Optimized Mobile Calculator Padding & Font Sizing */
  .calculator-card {
    padding: 32px 20px;
    margin-top: 48px;
  }

  .calc-results {
    padding: 28px 16px;
    gap: 16px;
  }

  .calc-leak-amount {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .stat-item::after {
    display: none;
  }
  
  .checkbox-pill-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-layout {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
