/* Google Fonts loaded via <link> in HTML head: Inter + Space Grotesk */

/* --- DESIGN SYSTEM & CSS VARIABLES --- */
:root {
  --font-heading: 'Space Grotesk', 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Colors */
  --bg-primary: #080809;
  --bg-secondary: #0f0f12;
  --bg-card: rgba(22, 22, 26, 0.7);
  --bg-card-hover: rgba(30, 30, 36, 0.85);

  --accent-cobalt: #2a52be;
  --accent-cobalt-glow: rgba(42, 82, 190, 0.35);
  --accent-crimson: #2a52be;
  --accent-crimson-glow: rgba(42, 82, 190, 0.25);
  
  --text-primary: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;

  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(42, 82, 190, 0.4);

  /* Transitions */
  --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease;
}

/* --- RESET & BASIC STYLES --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Background Grids & Ambient Glows */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 10% 20%, rgba(42, 82, 190, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(42, 82, 190, 0.05) 0%, transparent 40%),
    linear-gradient(rgba(255, 255, 255, 0.003) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.003) 1px, transparent 1px) 0 0 / 40px 40px;
  z-index: -3;
  pointer-events: none;
}

#liquid-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

section, footer {
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

/* --- REUSABLE UTILITIES & COMPONENTS --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Glassmorphism Card styling */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2.5rem;
  will-change: transform, box-shadow, border-color;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 10px 30px -10px var(--accent-cobalt-glow);
  transform: translateY(-4px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.75rem;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cobalt), #1e3a8a);
  color: var(--text-primary);
  box-shadow: 0 4px 20px var(--accent-cobalt-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(42, 82, 190, 0.5);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

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

/* Section Header */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff; /* Solid white for absolute contrast and visibility on mobile */
  background: rgba(42, 82, 190, 0.2);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(42, 82, 190, 0.4);
  margin-bottom: 1rem;
}

.text-cobalt {
  background: none !important;
  -webkit-text-fill-color: var(--accent-cobalt) !important;
  color: var(--accent-cobalt) !important;
}

/* --- HEADER / NAVIGATION --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(8, 8, 9, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo span {
  color: var(--accent-cobalt);
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 2.5rem;
}

nav a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

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

/* --- HERO SECTION --- */
.hero {
  padding: 180px 0 100px 0;
  position: relative;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: start;
}

.hero-content h1 {
  font-size: 3.8rem;
  line-height: 1.05;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 40%, #a5b4fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-ctas {
  display: flex;
  gap: 1.25rem;
}

/* --- PHONE/WHATSAPP SIMULATOR --- */
.phone-wrapper {
  perspective: 1000px;
  overflow: hidden; /* Clips GPU layer drawing to bounds */
}

.phone-container {
  width: 100%;
  max-width: 400px;
  height: 660px;
  margin: 0 auto;
  background: #000;
  border-radius: 36px;
  border: 6px solid #1f1f23;
  box-shadow: 
    0 25px 50px -12px rgba(0, 0, 0, 0.6),
    0 0 30px rgba(42, 82, 190, 0.2);
  overflow: hidden;
  position: relative;
  font-family: 'Inter', sans-serif;
  display: flex;
  flex-direction: column;
  opacity: 0.99; /* Forces compositor layering to prevent occlusion bugs */
}

/* Phone Screen UI */
.phone-header {
  background: #1f2c34; /* WhatsApp Web Dark Header */
  color: #e9edef;
  padding: 2.2rem 1.25rem 1.4rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-cobalt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-family: var(--font-heading);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-info .name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e9edef;
}

.contact-info .status {
  font-size: 0.75rem;
  color: #8696a0;
  transition: var(--transition-fast);
}

.chat-area {
  flex: 1;
  background: #0b141a; /* WhatsApp Web Dark Chat BG */
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Chat Messages */
.message {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.45;
  position: relative;
  animation: messageEnter 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28) both;
}

.message.incoming {
  align-self: flex-start;
  background: #202c33; /* Dark Incoming Bubble */
  color: #e9edef;
  border-top-left-radius: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.message.outgoing {
  align-self: flex-end;
  background: #005c4b; /* Dark Outgoing Green Bubble */
  color: #e9edef;
  border-top-right-radius: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.message-time {
  font-size: 0.65rem;
  color: #8696a0;
  text-align: right;
  margin-top: 0.35rem;
  display: block;
}

/* Typing Indicator */
.typing-indicator {
  display: none;
  align-self: flex-start;
  background: #202c33;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  border-top-left-radius: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.typing-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #8696a0;
  border-radius: 50%;
  animation: typingGlow 1s infinite alternate;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

/* Phone Footer Input */
.phone-footer {
  height: 64px;
  background: #1f2c34;
  padding: 0.65rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.phone-input {
  flex: 1;
  height: 40px;
  background: #2a3942;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0 1.15rem;
  font-size: 0.85rem;
  color: #e9edef;
  pointer-events: none;
}

.phone-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #00a884; /* WhatsApp Teal Send Button */
  border: none;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Simulator controls */
.simulator-controls {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.sim-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.8rem 1.25rem;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  transition: var(--transition-fast);
}

.sim-btn:hover {
  background: rgba(42, 82, 190, 0.1);
  color: var(--text-primary);
  border-color: var(--accent-cobalt);
  box-shadow: 0 0 15px var(--accent-cobalt-glow);
}

/* --- THE PAIN POINT SECTION --- */
.pain-section {
  padding: 100px 0;
  position: relative;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2.5rem;
}

.stat-card {
  text-align: center;
}

.stat-number {
  font-size: 4rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--accent-crimson);
  margin-bottom: 0.5rem;
  text-shadow: 0 0 20px var(--accent-crimson-glow);
}

.stat-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

/* --- SOLUTIONS SECTION --- */
.solutions-section {
  padding: 120px 0; /* More top/bottom padding */
  background: transparent;
  position: relative;
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2x2 grid on desktop */
  gap: 3rem; /* Expanded gap for breathing room */
  max-width: 1100px;
  margin: 0 auto;
}

.solutions-card {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 3rem !important; /* Forced wider card padding */
}

.solution-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: rgba(42, 82, 190, 0.1);
  border: 1px solid rgba(42, 82, 190, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: var(--accent-cobalt);
  margin-bottom: 0.25rem;
}

.solutions-card h3 {
  font-size: 1.5rem;
  font-family: var(--font-heading);
}

.solutions-card p {
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.solutions-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* Expanded bullet point gap */
  margin-top: 0.25rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.solutions-card li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  line-height: 1.5;
}

.solutions-card li::before {
  content: '✓';
  color: var(--accent-cobalt);
  font-weight: bold;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* --- PROCESS TIMELINE SECTION --- */
.process-section {
  padding: 120px 0;
  background: transparent;
  position: relative;
}

.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 5rem auto 0;
  padding: 2rem 0;
}

/* Vertical track line */
.timeline-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(-50%);
  z-index: 1;
  overflow: hidden;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%; /* Keep height static */
  transform: scaleY(0); /* Animate scaleY instead of height to prevent browser layout reflows */
  transform-origin: top; /* Pivot scale from top down */
  background: linear-gradient(to bottom, var(--accent-cobalt), #00d2ff);
  box-shadow: 0 0 15px var(--accent-cobalt-glow);
}

/* Timeline Item Rows */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 2rem;
  z-index: 2;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Alternate Left */
.timeline-item.alternate-left {
  left: 0;
  padding-right: 4.5rem;
}

/* Alternate Right */
.timeline-item.alternate-right {
  left: 50%;
  padding-left: 4.5rem;
}

/* Markers on center line */
.timeline-marker {
  position: absolute;
  top: 4.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #080809;
  border: 2px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-secondary);
  z-index: 3;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.timeline-item.alternate-left .timeline-marker {
  right: 0;
  transform: translate(50%, 0);
}

.timeline-item.alternate-right .timeline-marker {
  left: 0;
  transform: translate(-50%, 0);
}

/* Marker active state (when card reveals) */
.timeline-item.active .timeline-marker {
  border-color: var(--accent-cobalt);
  color: #fff;
  background: var(--accent-cobalt);
  box-shadow: 
    0 0 15px var(--accent-cobalt-glow),
    0 0 0 6px rgba(42, 82, 190, 0.15);
}

/* Timeline Card elements */
.timeline-card {
  padding: 2.2rem !important;
}

.timeline-days {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cobalt);
  background: rgba(42, 82, 190, 0.1);
  border: 1px solid rgba(42, 82, 190, 0.25);
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.timeline-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.timeline-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: 0.98rem;
}

/* Stagger reveal translations based on alternate alignments */
.timeline-item.alternate-left.reveal {
  transform: translateX(-30px);
  opacity: 0;
}

.timeline-item.alternate-right.reveal {
  transform: translateX(30px);
  opacity: 0;
}

.timeline-item.reveal.active {
  transform: translateX(0);
  opacity: 1;
}

/* Responsive Timeline mobile rules */
@media (max-width: 768px) {
  .timeline-line {
    left: 20px;
    transform: none;
  }
  
  .timeline-item {
    width: 100%;
    padding-left: 3.5rem !important;
    padding-right: 0 !important;
  }
  
  .timeline-item.alternate-left {
    left: 0;
  }
  
  .timeline-item.alternate-right {
    left: 0;
  }
  
  .timeline-item.alternate-left.reveal {
    transform: translateY(20px);
  }

  .timeline-item.alternate-right.reveal {
    transform: translateY(20px);
  }
  
  .timeline-item.reveal.active {
    transform: translateY(0);
  }
  
  .timeline-item.alternate-left .timeline-marker,
  .timeline-item.alternate-right .timeline-marker {
    left: 20px;
    transform: translate(-50%, 0);
    top: 4.2rem;
  }
}

/* --- GUARANTEE & PRICING --- */
.pricing {
  padding: 100px 0;
}

.pricing-wrapper {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}

.pricing-wrapper::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, rgba(209, 26, 42, 0.05) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.price-box {
  text-align: center;
}

.price-tag {
  font-size: 3rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-primary);
  margin: 1.5rem 0;
}

.price-tag span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

.pricing-features {
  margin: 2.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
}

.pricing-features li::before {
  content: '✦';
  color: var(--accent-cobalt);
}

/* Pulsing Double Guarantee card */
.guarantee-box {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: 12px;
  background: rgba(209, 26, 42, 0.05);
  border: 1px solid rgba(209, 26, 42, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.guarantee-box h4 {
  color: var(--accent-crimson);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- CALENDAR INTEGRATION --- */
.calendar-section {
  padding: 100px 0;
  background: transparent;
}

.calendar-frame {
  width: 100%;
  height: 700px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  overflow: hidden;
}

/* --- FOOTER --- */
footer {
  background: transparent;
  border-top: 1px solid var(--border-color);
  padding: 5rem 0 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-links h4 {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- KEYFRAME ANIMATIONS --- */
@keyframes messageEnter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes typingGlow {
  from { opacity: 0.2; }
  to { opacity: 1; }
}

/* Responsive Scaling */
@media (max-width: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .hero-content {
    text-align: center;
  }
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-ctas {
    justify-content: center;
  }
  .stats-grid, .solutions-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .roi-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* --- ROI CALCULATOR --- */
.roi-section {
  padding: 100px 0;
}

.roi-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.input-group {
  margin-bottom: 2rem;
}

.input-group:last-child {
  margin-bottom: 0;
}

.input-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-weight: 500;
}

.input-header label {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.input-header span {
  color: var(--accent-cobalt);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--accent-cobalt) 0%, var(--accent-cobalt) var(--value, 50%), rgba(255, 255, 255, 0.08) var(--value, 50%), rgba(255, 255, 255, 0.08) 100%);
  outline: none;
  transition: background 0.15s ease;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--accent-cobalt);
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent-cobalt-glow);
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.15s, border-color 0.15s;
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.25);
  background: var(--accent-cobalt);
  border-color: #ffffff;
}

/* Firefox Support */
.slider::-moz-range-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
}

.slider::-moz-range-progress {
  height: 6px;
  background: var(--accent-cobalt);
  border-radius: 3px;
}

.slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #ffffff;
  border: 4px solid var(--accent-cobalt);
  cursor: pointer;
  box-shadow: 0 0 12px var(--accent-cobalt-glow);
  transition: transform 0.15s;
}

.slider::-moz-range-thumb:hover {
  transform: scale(1.25);
}

.roi-outputs-card {
  border-color: rgba(42, 82, 190, 0.3);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.output-block h3 {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.output-value {
  font-size: 2.25rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--text-primary);
}

.highlighted-output {
  padding: 1.5rem;
  background: rgba(42, 82, 190, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(42, 82, 190, 0.1);
  box-shadow: 0 4px 20px rgba(42, 82, 190, 0.05);
}

.highlighted-output .output-value {
  color: var(--accent-cobalt);
  text-shadow: 0 0 15px var(--accent-cobalt-glow);
}

/* --- SPECIFIC CARD HOVER UPGRADES --- */
.stat-card:hover, .solutions-card:hover, .roi-inputs-card:hover, .roi-outputs-card:hover {
  border-color: rgba(42, 82, 190, 0.4);
  box-shadow: 0 10px 35px -10px var(--accent-cobalt-glow);
  transform: translateY(-6px) scale(1.015);
}

/* --- SCROLL-TRIGGERED REVEAL ANIMATIONS --- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered Delay Utilities for Grid Childs */
.reveal-stagger > .reveal:nth-child(1) { transition-delay: 0.03s; }
.reveal-stagger > .reveal:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger > .reveal:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger > .reveal:nth-child(4) { transition-delay: 0.21s; }


/* --- BORDER GLOW INTERACTION SYSTEM --- */
.border-glow {
  --edge-proximity: 0;
  --cursor-angle: 45deg;
  --edge-sensitivity: 25;
  --color-sensitivity: calc(var(--edge-sensitivity) + 20);
  --border-radius: 24px;
  --glow-padding: 30px;
  --cone-spread: 25;
  --fill-opacity: 0.12; /* Softened inner fill opacity */

  position: relative;
  border-radius: var(--border-radius);
  isolation: isolate;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  overflow: visible;
  transition: border-color 0.3s, transform 0.3s;
}

/* Ensure card contents sit above the overlay border gradient */
.border-glow > *:not(.glow-edge) {
  position: relative;
  z-index: 3;
}

/* Base values for glow colors (Cobalt Blue HSL is 224, 76%, 50%) */
.border-glow {
  --glow-color: hsl(224deg 76% 50% / 100%);
  --glow-color-60: hsl(224deg 76% 50% / 60%);
  --glow-color-50: hsl(224deg 76% 50% / 50%);
  --glow-color-40: hsl(224deg 76% 50% / 40%);
  --glow-color-30: hsl(224deg 76% 50% / 30%);
  --glow-color-20: hsl(224deg 76% 50% / 20%);
  --glow-color-10: hsl(224deg 76% 50% / 10%);

  /* Mesh gradient colors: Cobalt Blue, Neon Cyan, Deep Blue */
  --gradient-one: radial-gradient(at 80% 55%, #2a52be 0px, transparent 50%);
  --gradient-two: radial-gradient(at 69% 34%, #00d2ff 0px, transparent 50%);
  --gradient-three: radial-gradient(at 8% 6%, #1d4ed8 0px, transparent 50%);
  --gradient-four: radial-gradient(at 41% 38%, #2a52be 0px, transparent 50%);
  --gradient-five: radial-gradient(at 86% 85%, #00d2ff 0px, transparent 50%);
  --gradient-six: radial-gradient(at 82% 18%, #1d4ed8 0px, transparent 50%);
  --gradient-seven: radial-gradient(at 51% 4%, #2a52be 0px, transparent 50%);
  --gradient-base: linear-gradient(#2a52be 0 100%);
}

.border-glow::before,
.border-glow::after,
.border-glow > .glow-edge {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity 0.3s ease-out;
  z-index: -1;
}

.border-glow:not(:hover)::before,
.border-glow:not(:hover)::after,
.border-glow:not(:hover) > .glow-edge {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

/* Colored border gradient on hover, masked to cursor angle */
.border-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  background:
    linear-gradient(var(--bg-card) 0 100%) padding-box,
    linear-gradient(rgba(255, 255, 255, 0) 0% 100%) border-box,
    var(--gradient-one) border-box,
    var(--gradient-two) border-box,
    var(--gradient-three) border-box,
    var(--gradient-four) border-box,
    var(--gradient-five) border-box,
    var(--gradient-six) border-box,
    var(--gradient-seven) border-box,
    var(--gradient-base) border-box;

  opacity: calc((var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  z-index: 2;
  pointer-events: none;

  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
  -webkit-mask-image:
    conic-gradient(
      from var(--cursor-angle) at center,
      black calc(var(--cone-spread) * 1%),
      transparent calc((var(--cone-spread) + 15) * 1%),
      transparent calc((100 - var(--cone-spread) - 15) * 1%),
      black calc((100 - var(--cone-spread)) * 1%)
    );
}

/* Colored mesh-gradient background fill near edges */
.border-glow::after {
  background:
    var(--gradient-one) padding-box,
    var(--gradient-two) padding-box,
    var(--gradient-three) padding-box,
    var(--gradient-four) padding-box,
    var(--gradient-five) padding-box,
    var(--gradient-six) padding-box,
    var(--gradient-seven) padding-box,
    var(--gradient-base) padding-box;

  mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);
  -webkit-mask-image:
    linear-gradient(to bottom, black, black),
    radial-gradient(ellipse at 50% 50%, black 40%, transparent 65%),
    radial-gradient(ellipse at 66% 66%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 66% 33%, black 5%, transparent 40%),
    radial-gradient(ellipse at 33% 66%, black 5%, transparent 40%),
    conic-gradient(from var(--cursor-angle) at center, transparent 5%, black 15%, black 85%, transparent 95%);

  mask-composite: subtract, add, add, add, add, add;
  -webkit-mask-composite: source-out, destination-over, destination-over, destination-over, destination-over, destination-over;
  opacity: calc(var(--fill-opacity) * (var(--edge-proximity) - var(--color-sensitivity)) / (100 - var(--color-sensitivity)));
  mix-blend-mode: soft-light;
}

/* Outer glow layer */
.border-glow > .glow-edge {
  inset: calc(var(--glow-padding) * -1);
  pointer-events: none;
  z-index: 1;

  mask-image:
    conic-gradient(
      from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%
    );
  -webkit-mask-image:
    conic-gradient(
      from var(--cursor-angle) at center, black 2.5%, transparent 10%, transparent 90%, black 97.5%
    );

  opacity: calc((var(--edge-proximity) - var(--edge-sensitivity)) / (100 - var(--edge-sensitivity)));
  mix-blend-mode: plus-lighter;
}

.border-glow > .glow-edge::before {
  content: "";
  position: absolute;
  inset: var(--glow-padding);
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--glow-color),
    inset 0 0 1px 0 var(--glow-color-60),
    inset 0 0 3px 0 var(--glow-color-50),
    inset 0 0 6px 0 var(--glow-color-40),
    inset 0 0 15px 0 var(--glow-color-30),
    inset 0 0 25px 2px var(--glow-color-20),
    inset 0 0 50px 2px var(--glow-color-10),
    0 0 1px 0 var(--glow-color-60),
    0 0 3px 0 var(--glow-color-50),
    0 0 6px 0 var(--glow-color-40),
    0 0 15px 0 var(--glow-color-30),
    0 0 25px 2px var(--glow-color-20),
    0 0 50px 2px var(--glow-color-10);
}

.border-glow-inner {
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: auto;
  z-index: 1;
}

/* --- MOBILE UI/UX OPTIMIZATION OVERRIDES --- */
@media (max-width: 768px) {
  /* Navigation: hide text links, show hamburger */
  nav {
    display: none;
  }
  
  .hamburger {
    display: flex !important;
  }
  
  /* Hero section scaling: shrink the heading so it fits mobile screens elegantly */
  .hero {
    padding: 165px 0 60px 0 !important;
  }
  
  .hero-content h1 {
    font-size: 2.3rem !important;
    line-height: 1.2 !important;
    margin-top: 1.25rem !important;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1.05rem;
    margin-bottom: 1.8rem;
  }
  
  /* Stack buttons on smaller viewports */
  .hero-ctas {
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
  }
  
  .hero-ctas .btn {
    width: 100%;
    text-align: center;
  }
  
  /* Section padding reductions for compact mobile spacing */
  section {
    padding: 60px 0 !important;
  }
  
  /* Tighten spacing on title headings */
  .section-header h2 {
    font-size: 2rem !important;
    line-height: 1.2;
  }
  
  /* Ensure grids have clean margins and padding on mobile */
  .container {
    padding: 0 1.25rem;
  }

  /* Stack the ROI Calculator elements into a single column on mobile */
  .roi-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  /* Extra scale downs for very narrow mobile screens */
  .logo {
    font-size: 1.5rem;
  }
  nav ul li a.btn {
    padding: 0.5rem 1rem !important;
    font-size: 0.85rem !important;
  }
}

/* --- HAMBURGER BUTTON --- */
.hamburger {
  display: none; /* Hidden on desktop */
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  z-index: 1001;
  transition: border-color 0.3s ease;
}

.hamburger:hover {
  border-color: var(--accent-cobalt);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Hamburger X animation when active */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- MOBILE NAV OVERLAY --- */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(8, 10, 21, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.mobile-nav-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-overlay a {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.mobile-nav-overlay a:hover {
  color: var(--accent-cobalt);
}

.mobile-nav-overlay .btn {
  font-size: 1.1rem !important;
  padding: 0.85rem 2.5rem !important;
  margin-top: 1rem;
}
