/* ==========================================================================
   APEX STUDIO — ULTRA-PREMIUM FUTURISTIC STYLESHEET
   Niche: Roofing, Construction & Artisan Web Design Agency (Lagos, Nigeria)
   Theme: Dark Glassmorphic (#0a0a0f base with #00d4aa glowing teal accents)
   ========================================================================== */

/* 1. DESIGN TOKENS & ROOT VARIABLES */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-tertiary: #1a1a24;
  
  --accent-primary: #00d4aa;
  --accent-secondary: #00b894;
  --accent-glow: rgba(0, 212, 170, 0.3);
  --accent-glow-strong: rgba(0, 212, 170, 0.6);
  
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-muted: #6b6b7b;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-active: rgba(0, 212, 170, 0.4);
  
  --success: #00d4aa;
  --warning: #f39c12;
  --danger: #ff4757;
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  
  --radius-card: 16px;
  --radius-btn: 12px;
  --radius-sm: 8px;
  --radius-pill: 50px;
  
  --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-normal: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  
  --container-max: 1200px;
}

/* 2. BASE RESET & ACCESSIBILITY */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* CYBER CANVAS BACKGROUND LAYER */
#cyber-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

ul { list-style: none; }
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
img, svg { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* 3. LAYOUT CONTAINERS & FLUID TYPOGRAPHY */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 768px) {
  section { padding: 80px 0; }
  .container { padding: 0 16px; }
}

.text-center { text-align: center; }
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-danger-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--danger) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-danger { color: var(--danger); }
.hidden { display: none !important; }

/* Eyebrows & Section Titles */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-primary);
  background: rgba(0, 212, 170, 0.08);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 212, 170, 0.2);
  margin-bottom: 20px;
}

.eyebrow-danger {
  color: var(--danger);
  background: rgba(255, 71, 87, 0.08);
  border-color: rgba(255, 71, 87, 0.2);
}

.eyebrow-accent { color: #38ef7d; }

.section-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.section-subtitle {
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 60px auto;
}

/* Improve contrast for section subtitle on dark background */
.section-subtitle {
  color: rgba(255, 255, 255, 0.8);
}

/* Improve contrast for hero subheadline */
.hero-subheadline {
  color: rgba(255, 255, 255, 0.85);
}

/* 4. BUTTONS & FUTURISTIC SHIMMER EFFECTS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  border-radius: var(--radius-btn);
  transition: all var(--transition-normal);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

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

.btn:hover::after {
  left: 130%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
  color: #050508;
  padding: 16px 32px;
  font-size: 16px;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow-strong);
  filter: brightness(1.08);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 16px 32px;
  font-size: 16px;
}

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

.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 17px; }
.btn-xl { padding: 22px 44px; font-size: 18px; font-weight: 700; }
.btn-block { width: 100%; }

.glow-pulse {
  animation: pulse-glow-anim 3s infinite;
}

@keyframes pulse-glow-anim {
  0%, 100% {
    box-shadow: 0 0 20px rgba(0, 212, 170, 0.2), 0 0 40px rgba(0, 212, 170, 0.1);
  }
  50% {
    box-shadow: 0 0 35px rgba(0, 212, 170, 0.5), 0 0 70px rgba(0, 212, 170, 0.25);
  }
}

.btn-text {
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}
.btn-text:hover { text-decoration: underline; }

/* Add focus visible styles */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Ensure buttons have visible focus states */
.btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* 5. GLASSMORPHISM CARDS & SCROLL REVEALS */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  transition: all var(--transition-normal);
  position: relative;
}

.glass-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 25px var(--accent-glow);
}

.reveal-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.reveal-init.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* 6. HEADER & MOBILE DRAWER NAVIGATION */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(10, 10, 15, 0.94);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-subtle);
}

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

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}

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

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Improve nav link contrast */
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--accent-primary);
}

/* Add focus visible styles */
:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Ensure buttons have visible focus states */
.btn:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Improve contrast for secondary text in certain contexts */
.glass-card .text-secondary,
.problem-item p,
.card-desc,
.value-item-name,
.footer-col a,
.toast-text {
  /* Slightly increase opacity/lightness for better contrast on dark backgrounds */
  color: rgba(255, 255, 255, 0.7);
}

/* Improve form placeholder contrast */
input::placeholder,
select::placeholder,
textarea::placeholder {
  color: rgba(255, 255, 255, 0.4) !important;
  opacity: 0.4;
}

/* Improve contrast for muted text */
.text-muted {
  color: rgba(255, 255, 255, 0.5);
}

/* Improve contrast for footer links */
.footer-col a:hover,
.footer-col a:focus-visible {
  color: var(--accent-primary);
}

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

.mobile-drawer-cta {
  display: none !important;
}

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
}

.mobile-toggle .bar {
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-fast);
}

.mobile-toggle.open .bar:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-toggle.open .bar:nth-child(2) { opacity: 0; }
.mobile-toggle.open .bar:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 992px) {
  .nav-menu {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 75px);
    background: rgba(10, 10, 15, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    padding: 40px 24px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    z-index: 999;
  }
  .nav-menu.active {
    display: flex;
  }
  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }
  .nav-link {
    font-size: 22px;
    font-weight: 700;
  }
  .mobile-drawer-cta {
    display: block !important;
    margin-top: auto;
    padding-top: 20px;
  }
  .mobile-toggle {
    display: flex;
  }
  .header-desktop-cta {
    display: none !important;
  }
}

/* 7. HERO SECTION & NICHE SWITCHER */
.hero-section {
  padding-top: 180px;
  padding-bottom: 120px;
  overflow: hidden;
  contain: layout paint;
}

.hero-bg-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: min(850px, 100%);
  height: min(550px, 70vw);
  background: radial-gradient(circle, rgba(0, 212, 170, 0.18) 0%, rgba(10, 10, 15, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content {
  min-width: 0; /* prevents grid blowout */
  width: 100%;
}

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding-top: 120px;
    padding-bottom: 80px;
  }
  .hero-container {
    gap: 32px;
  }
  .mobile-frame {
    display: none;
  }
  .floating-badge {
    display: none;
  }
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.25);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent-primary);
  margin-bottom: 24px;
  /* Mobile: allow text to wrap and badge to stay within bounds */
  max-width: 100%;
  white-space: normal;
  text-align: left;
  flex-shrink: 1;
  word-break: break-word;
}

@media (max-width: 768px) {
  .eyebrow-badge {
    font-size: 11px;
    padding: 6px 14px;
    letter-spacing: 0.03em;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 6px;
    width: 100%;
    max-width: 100%;
  }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-primary);
  animation: pulse-dot-anim 2s infinite;
}

@keyframes pulse-dot-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-headline {
  font-size: clamp(1.45rem, 5.5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  /* Prevent text from overflowing the container */
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-subheadline {
  font-size: clamp(0.9rem, 2.5vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 36px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.hero-cta-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

@media (max-width: 500px) {
  .hero-cta-buttons {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}

.trust-bar {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
}

.trust-rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.stars { color: #f1c40f; letter-spacing: 2px; font-size: 18px; }
.rating-score { font-weight: 700; font-size: 16px; }
.rating-count { color: var(--text-muted); font-size: 14px; }

.trust-clients {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; font-weight: 600; }
.client-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.client-tag {
  font-size: 12px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
}

/* HERO MOCKUP VISUAL & NICHE SWITCHER PILLS */
.hero-visual {
  position: relative;
  width: 100%;
  min-width: 0;
}

.hero-niche-switcher {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  overflow-x: auto;
  padding-bottom: 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hero-niche-switcher::-webkit-scrollbar {
  display: none;
}

.hero-niche-pill {
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.hero-niche-pill.active, .hero-niche-pill:hover {
  background: var(--accent-primary);
  color: #050508;
  border-color: var(--accent-primary);
}

.device-mockup-wrapper {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.desktop-frame {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(0, 212, 170, 0.1);
  width: 100%;
  max-width: 100%;
}

.desktop-header-bar {
  background: #181822;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.desktop-header-bar .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.browser-url {
  background: rgba(0, 0, 0, 0.4);
  color: var(--text-muted);
  font-size: 12px;
  padding: 4px 16px;
  border-radius: 4px;
  margin-left: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

.desktop-screen {
  padding: 24px;
  background: #0f121a;
  min-height: 280px;
  transition: opacity 0.2s ease;
}

@media (max-width: 480px) {
  .desktop-screen {
    padding: 16px;
    min-height: 240px;
  }
}

.mockup-header-sample {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 12px;
  margin-bottom: 20px;
  gap: 10px;
}
.mock-logo { font-weight: 700; font-size: clamp(11px, 1.8vw, 14px); color: var(--accent-primary); }
.mock-btn { background: var(--accent-primary); color: #000; font-size: clamp(9px, 1.2vw, 11px); font-weight: 700; padding: 4px 10px; border-radius: 4px; flex-shrink: 0; }

.mock-tag { font-size: clamp(8px, 1.2vw, 10px); color: var(--accent-primary); font-weight: 700; text-transform: uppercase; margin-bottom: 6px; }
.mock-title { font-size: clamp(14px, 2.2vw, 18px); font-weight: 800; margin-bottom: 8px; line-height: 1.3; }
.mock-p { font-size: clamp(10px, 1.5vw, 12px); color: var(--text-muted); margin-bottom: 16px; }
.mock-stats { display: flex; gap: clamp(8px, 2vw, 20px); font-size: clamp(9px, 1.3vw, 11px); border-top: 1px solid rgba(255,255,255,0.05); padding-top: 12px; flex-wrap: wrap; }

.mobile-frame {
  position: absolute;
  bottom: -15px;
  right: 0px;
  width: 170px;
  background: #111;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.8);
}

@media (max-width: 640px) {
  .mobile-frame { display: none; }
}

.phone-notch {
  height: 12px;
  width: 80px;
  background: #000;
  margin: 0 auto;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.phone-screen {
  padding: 12px;
  background: #0d121c;
  transition: opacity 0.2s ease;
}
.phone-header { display: flex; justify-content: space-between; font-size: 10px; font-weight: 700; margin-bottom: 10px; }
.wa-badge { background: #25D366; color: #fff; padding: 2px 6px; border-radius: 4px; font-size: 8px; }
.phone-card { background: rgba(255,255,255,0.05); padding: 8px; border-radius: 8px; }
.phone-img-placeholder { background: rgba(0, 212, 170, 0.15); color: var(--accent-primary); font-size: 9px; padding: 16px 8px; text-align: center; border-radius: 6px; margin-bottom: 6px; }
.phone-text { font-size: 10px; font-weight: 600; margin-bottom: 6px; }
.phone-cta { background: #25D366; color: #fff; text-align: center; font-size: 9px; font-weight: 700; padding: 6px; border-radius: 4px; }

.floating-badge {
  position: absolute;
  background: rgba(17, 17, 24, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  padding: 10px 16px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.floating-badge .icon { font-size: 20px; }
.floating-badge strong { display: block; font-size: 13px; color: var(--text-primary); }
.floating-badge small { font-size: 11px; color: var(--text-muted); }

.badge-1 { top: -20px; left: 0px; }
.badge-2 { bottom: 20px; left: 0px; }

@media (max-width: 768px) {
  .badge-1, .badge-2 { display: none; }
}

/* 8. PROBLEM / PAIN POINT SECTION */
.problem-section {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 992px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

.problem-card-heading {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}

.problem-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.problem-item {
  display: flex;
  gap: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 20px;
  border-radius: var(--radius-card);
}

.problem-icon {
  font-size: 20px;
  line-height: 1;
}

.problem-item strong {
  display: block;
  font-size: 16px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.problem-item p {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Comparison Interactive Box */
.comparison-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.comparison-header { margin-bottom: 20px; }
.comparison-header h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; }

.comparison-tabs {
  display: flex;
  gap: 10px;
  background: rgba(0,0,0,0.3);
  padding: 4px;
  border-radius: 8px;
}

.comp-tab {
  flex: 1;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all var(--transition-fast);
}

.comp-tab.active {
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.comparison-view { display: none; }
.comparison-view.active { display: block; }

.google-search-result {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.google-search-result.success { border-left: 4px solid var(--accent-primary); }
.google-search-result.failure { border-left: 4px solid var(--danger); }

.search-url { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.verified-badge { color: var(--accent-primary); font-weight: 600; margin-left: 8px; }
.search-title { font-size: 18px; font-weight: 700; color: #8ab4f8; margin-bottom: 8px; }
.search-title.danger { color: var(--danger); }
.search-snippet { font-size: 13px; color: var(--text-secondary); margin-bottom: 12px; }
.search-snippet.muted { color: var(--text-muted); }

.search-meta { display: flex; gap: 12px; font-size: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.star-rating { color: #f1c40f; font-weight: 700; }
.status-badge { font-weight: 600; }
.status-badge.green { color: var(--accent-primary); }
.status-badge.red { color: var(--danger); }

.result-action {
  background: rgba(0, 212, 170, 0.08);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
}
.result-action.danger {
  background: rgba(255, 71, 87, 0.08);
  color: var(--danger);
}

.comparison-cta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.comparison-cta p { font-size: 14px; font-weight: 600; }

/* 9. FEATURES / WHY APEX */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 992px) {
  .features-grid { grid-template-columns: 1fr; }
}

.feature-card {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 212, 170, 0.08);
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.card-title { font-size: 22px; font-weight: 700; margin-bottom: 16px; }
.card-desc { font-size: 15px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 24px; flex: 1; }

.card-footer-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary);
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
}

/* 10. HOW IT WORKS (PROCESS) */
.process-section { background: var(--bg-secondary); }

.timeline-wrapper { position: relative; margin-top: 60px; }

.timeline-line {
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, rgba(0,212,170,0.1) 0%, var(--accent-primary) 50%, rgba(0,212,170,0.1) 100%);
  z-index: 0;
}

@media (max-width: 992px) {
  .timeline-line { display: none; }
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
  z-index: 1;
}

@media (max-width: 992px) {
  .timeline-grid { grid-template-columns: 1fr; gap: 40px; }
}

.timeline-step { display: flex; flex-direction: column; align-items: center; }

.step-number-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 24px;
}

.step-number {
  font-size: 44px;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.1);
  -webkit-text-stroke: 1px var(--accent-primary);
  line-height: 1;
  margin-bottom: 8px;
}

.step-dot {
  width: 16px;
  height: 16px;
  background: var(--bg-primary);
  border: 3px solid var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--accent-primary);
}

.step-card { padding: 32px 24px; width: 100%; text-align: left; }
.step-badge { display: inline-block; font-size: 11px; font-weight: 700; color: var(--accent-primary); background: rgba(0,212,170,0.1); padding: 4px 10px; border-radius: 4px; margin-bottom: 12px; }
.step-title { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.step-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.step-highlight { display: block; font-size: 13px; font-weight: 700; color: var(--accent-primary); }

/* 11. PRICING & ROI CALCULATOR */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  align-items: center;
  margin-bottom: 60px;
}

@media (max-width: 992px) {
  .pricing-grid { grid-template-columns: 1fr; gap: 40px; }
}

.pricing-card { padding: 40px 32px; position: relative; }
.pricing-card.featured {
  background: rgba(0, 212, 170, 0.04);
  border: 2px solid var(--accent-primary);
  transform: scale(1.04);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 0 30px rgba(0, 212, 170, 0.2);
}

@media (max-width: 992px) {
  .pricing-card.featured { transform: none; }
}

.popular-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-primary);
  color: #050508;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 16px;
  border-radius: var(--radius-pill);
}

.pricing-badge { font-size: 12px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.05em; margin-bottom: 8px; }
.pricing-badge.accent { color: var(--accent-primary); }
.pricing-title { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.pricing-desc { font-size: 14px; color: var(--text-secondary); min-height: 44px; margin-bottom: 24px; }
.pricing-price { margin-bottom: 16px; }
.pricing-price .amount { font-size: 36px; font-weight: 900; color: var(--text-primary); }
.pricing-price .range { font-size: 16px; color: var(--text-muted); font-weight: 500; }

/* SCARCITY BAR */
.scarcity-bar {
  background: rgba(255, 200, 50, 0.06);
  border: 1px solid rgba(255, 200, 50, 0.2);
  border-radius: 10px;
  padding: 14px 24px;
  margin-bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-secondary);
  position: relative;
}

.scarcity-pulse {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: #f1c40f;
  border-radius: 50%;
  box-shadow: 0 0 10px #f1c40f;
  animation: pulse-dot-anim 1.5s infinite;
  flex-shrink: 0;
}

.scarcity-highlight {
  color: #f1c40f;
  font-weight: 700;
}

/* PACKAGE EYEBROW */
.pricing-package-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pricing-package-eyebrow.accent-eyebrow {
  color: var(--accent-primary);
}

/* PRICE YOU PAY LABEL */
.price-you-pay-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

/* VALUE STACK */
.value-stack {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

.value-stack-featured {
  background: rgba(0, 212, 170, 0.04);
  border-color: rgba(0, 212, 170, 0.2);
}

.value-stack-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.value-stack-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 12px;
}

.value-stack-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
}

.value-item-name {
  color: var(--text-secondary);
  flex: 1;
}

.value-item-price {
  color: var(--accent-primary);
  font-weight: 700;
  white-space: nowrap;
  font-size: 12px;
}

.value-stack-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
}

.value-total-crossed {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 800;
}

.value-total-crossed s {
  text-decoration: line-through;
  opacity: 0.7;
}

/* BONUS BLOCK */
.bonus-block {
  background: rgba(255, 165, 0, 0.04);
  border: 1px dashed rgba(255, 165, 0, 0.3);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.bonus-block-featured {
  background: rgba(0, 212, 170, 0.05);
  border-color: rgba(0, 212, 170, 0.3);
}

.bonus-label {
  font-size: 11px;
  font-weight: 800;
  color: #f39c12;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.bonus-block-featured .bonus-label {
  color: var(--accent-primary);
}

.bonus-item {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 5px;
  line-height: 1.4;
}

.bonus-total-value {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border-subtle);
}

/* CARD MICRO NOTE */
.card-micro-note {
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* GUARANTEE BLOCK */
.guarantee-block {
  margin: 60px 0 40px 0;
}

.guarantee-inner {
  background: rgba(0, 212, 170, 0.04);
  border: 2px solid rgba(0, 212, 170, 0.25);
  border-radius: var(--radius-card);
  padding: 50px 40px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: 0 0 40px rgba(0, 212, 170, 0.08);
}

.guarantee-badge-icon {
  font-size: 52px;
  margin-bottom: 16px;
  display: block;
}

.guarantee-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.guarantee-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 580px;
  margin: 0 auto 28px auto;
}

.guarantee-chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.g-chip {
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid rgba(0, 212, 170, 0.25);
  color: var(--accent-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

@media (max-width: 768px) {
  .guarantee-inner { padding: 32px 20px; }
  .guarantee-title { font-size: 1.3rem; }
  .value-stack-list li { flex-direction: column; gap: 2px; }
  .value-item-price { font-size: 11px; }
}


.delivery-time {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--accent-primary);
  font-weight: 600;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.pricing-features { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; font-size: 14px; }
.pricing-features li { display: flex; align-items: flex-start; gap: 10px; color: var(--text-secondary); }
.pricing-features .check { color: var(--accent-primary); font-weight: 800; }

/* INTERACTIVE ROI CALCULATOR WIDGET */
.roi-calculator-box {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-active);
  border-radius: var(--radius-card);
  padding: 40px;
  max-width: 900px;
  margin: 0 auto 40px auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6), 0 0 30px var(--accent-glow);
}

.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

@media (max-width: 768px) {
  .calc-grid { grid-template-columns: 1fr; gap: 30px; }
  .roi-calculator-box { padding: 24px; }
}

.calc-inputs { display: flex; flex-direction: column; gap: 20px; text-align: left; }
.calc-label-header { display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.calc-val { color: var(--accent-primary); font-weight: 800; }

.calc-range-slider {
  width: 100%;
  accent-color: var(--accent-primary);
  cursor: pointer;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
}

.calc-outputs {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.calc-out-item { margin-bottom: 16px; text-align: left; }
.calc-out-item label { display: block; font-size: 12px; color: var(--text-muted); text-transform: uppercase; font-weight: 700; }
.calc-out-item h4 { font-size: 28px; font-weight: 900; color: var(--accent-primary); }

.payback-tag { font-size: 13px; font-weight: 700; color: #38ef7d; margin-bottom: 16px; }

.pricing-bottom-note {
  font-size: 14px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  padding: 16px;
  border-radius: 8px;
  max-width: 800px;
  margin: 0 auto;
}

/* 12. PORTFOLIO SECTION */
.portfolio-filters {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.port-filter-btn {
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
}

.port-filter-btn.active, .port-filter-btn:hover {
  background: var(--accent-primary);
  color: #050508;
  border-color: var(--accent-primary);
}

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

@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

.project-card { overflow: hidden; }
.project-img-wrapper { position: relative; height: 240px; overflow: hidden; }

.project-img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #161b26 0%, #0d121c 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  transition: transform var(--transition-normal);
}

.project-card:hover .project-img-placeholder { transform: scale(1.05); }

.dark-theme-preview.alt-1 { background: linear-gradient(135deg, #1b261b 0%, #0c1811 100%); }
.dark-theme-preview.alt-2 { background: linear-gradient(135deg, #262416 0%, #17150c 100%); }
.dark-theme-preview.alt-3 { background: linear-gradient(135deg, #261622 0%, #180c16 100%); }

.preview-tag { font-size: 11px; font-weight: 700; color: var(--accent-primary); letter-spacing: 0.1em; margin-bottom: 6px; }
.preview-title { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.preview-badge { background: rgba(0, 212, 170, 0.15); color: var(--accent-primary); font-size: 12px; padding: 4px 12px; border-radius: 4px; font-weight: 600; }

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 15, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.project-card:hover .project-overlay { opacity: 1; }

.project-info { padding: 24px; }
.project-location { font-size: 12px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; margin-bottom: 4px; }
.project-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.project-result { font-size: 14px; color: var(--text-secondary); }

/* 13. TESTIMONIALS SECTION */
.testimonials-section { background: var(--bg-secondary); }
.testimonials-slider-wrapper { max-width: 800px; margin: 0 auto; }
.testimonial-cards-container { position: relative; min-height: 260px; }

.testimonial-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 40px;
}

.testimonial-card.active {
  position: relative;
  opacity: 1;
  visibility: visible;
}

.quote-icon {
  font-size: 60px;
  color: var(--accent-primary);
  line-height: 1;
  opacity: 0.3;
  font-family: Georgia, serif;
  margin-bottom: -20px;
}

.testimonial-text {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 24px;
  font-style: italic;
}

.testimonial-author { display: flex; align-items: center; gap: 16px; }

.author-avatar {
  width: 48px;
  height: 48px;
  background: var(--accent-primary);
  color: #050508;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-name { display: block; font-size: 16px; color: var(--text-primary); }
.author-role { font-size: 13px; color: var(--text-muted); }

.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.slider-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.slider-arrow:hover { background: var(--accent-primary); color: #000; }

.slider-dots { display: flex; gap: 8px; }
.slider-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.slider-dots .dot.active { background: var(--accent-primary); width: 24px; border-radius: 10px; }

/* 14. FAQ ACCORDION */
.faq-accordion { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }

.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active { border-color: var(--border-active); background: rgba(0, 212, 170, 0.02); }

.faq-question {
  width: 100%;
  padding: 24px 30px;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.faq-icon { font-size: 24px; color: var(--accent-primary); transition: transform var(--transition-fast); }
.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s ease, padding 0.35s ease; padding: 0 30px; }
.faq-item.active .faq-answer { max-height: 300px; padding: 0 30px 24px 30px; }
.faq-answer p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* 15. FINAL CTA SECTION */
.final-cta-section { padding: 140px 0; overflow: hidden; contain: layout paint; }

.cta-bg-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(900px, 100%);
  height: min(600px, 80vw);
  background: radial-gradient(circle, rgba(0, 212, 170, 0.2) 0%, rgba(10, 10, 15, 0) 70%);
  pointer-events: none;
}

.final-headline { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 900; line-height: 1.1; margin-bottom: 24px; }
.final-subheadline { font-size: clamp(1rem, 2vw, 1.25rem); color: var(--text-secondary); max-width: 720px; margin: 0 auto 40px auto; }
.final-cta-buttons { display: flex; justify-content: center; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.trust-footer-note { font-size: 14px; color: var(--text-muted); }

/* 16. FOOTER */
.site-footer { background: #050508; border-top: 1px solid var(--border-subtle); padding: 80px 0 40px 0; }
.footer-top { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; margin-bottom: 60px; }

@media (max-width: 992px) {
  .footer-top { grid-template-columns: 1fr; gap: 40px; }
}

.footer-tagline { font-size: 14px; color: var(--text-muted); margin-top: 16px; max-width: 320px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }

@media (max-width: 768px) {
  .footer-nav { grid-template-columns: 1fr; }
}

.footer-col h4 { font-size: 16px; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--text-secondary); }
.footer-col a:hover { color: var(--accent-primary); }
.wa-link { color: var(--accent-primary); font-weight: 600; }

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

/* 17. STICKY FLOATING WHATSAPP & LIVE TOAST */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.wa-tooltip {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  opacity: 0;
  transform: translateX(10px);
  transition: all var(--transition-fast);
  pointer-events: none;
}

.floating-whatsapp:hover .wa-tooltip { opacity: 1; transform: translateX(0); }
.wa-tooltip span { display: block; font-size: 13px; font-weight: 700; color: var(--text-primary); }
.wa-tooltip small { font-size: 11px; color: var(--accent-primary); font-weight: 600; }

.wa-icon-circle {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition-fast);
}

.floating-whatsapp:hover .wa-icon-circle { transform: scale(1.1); }

/* LIVE LEAD TOAST NOTIFICATION */
.live-lead-toast {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 998;
  background: rgba(17, 17, 24, 0.95);
  backdrop-filter: blur(15px);
  border: 1px solid var(--accent-primary);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 380px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.6), 0 0 20px var(--accent-glow);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
}

.live-lead-toast.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.toast-icon { font-size: 20px; }
.toast-text { display: block; font-size: 12px; color: var(--text-primary); line-height: 1.3; }
.toast-time { font-size: 10px; color: var(--accent-primary); font-weight: 600; }
.toast-close { color: var(--text-muted); font-size: 16px; line-height: 1; }

@media (max-width: 640px) {
  .live-lead-toast { display: none; }
  .floating-whatsapp { bottom: 20px; right: 20px; }
  .wa-icon-circle { width: 50px; height: 50px; }
}

/* 18. MODALS (INTERACTIVE DIALOGS) */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 8, 0.88);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
}

.modal-backdrop.active { opacity: 1; visibility: visible; }

.modal-container {
  width: 100%;
  max-width: 540px;
  padding: 40px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-secondary);
  border: 1px solid var(--border-active);
  box-shadow: 0 25px 70px rgba(0,0,0,0.8), 0 0 40px var(--accent-glow);
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 28px;
  color: var(--text-muted);
  line-height: 1;
}
.modal-close:hover { color: var(--text-primary); }

.modal-header { margin-bottom: 24px; }
.modal-header h3 { font-size: 24px; font-weight: 800; margin-bottom: 8px; }
.modal-header p { font-size: 14px; color: var(--text-secondary); }

.modal-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 8px; text-align: left; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.form-group input, .form-group select {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}
.form-group input:focus, .form-group select:focus { border-color: var(--accent-primary); }
.form-micro-text { font-size: 11px; color: var(--text-muted); text-align: center; margin-top: 6px; }

/* Audit Diagnostic Tool Styles */
.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 212, 170, 0.1);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.05);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 20px;
}

.progress-bar-fill { width: 0%; height: 100%; background: var(--accent-primary); transition: width 0.4s linear; }

.audit-checks-list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; text-align: left; }

.audit-score-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 71, 87, 0.08);
  border: 1px solid rgba(255, 71, 87, 0.2);
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.score-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 4px solid var(--danger);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 22px;
  color: var(--danger);
  line-height: 1;
}

.score-circle small { font-size: 10px; opacity: 0.7; }
.score-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.score-desc { font-size: 13px; color: var(--text-secondary); }

.audit-breakdown { text-align: left; margin-bottom: 24px; }
.audit-breakdown h5 { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.audit-breakdown ul { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.audit-breakdown li.bad { color: var(--danger); }



/* ========================================
   HERO TABLET RANGE FIX (641px - 1024px)
   ======================================== */
@media (min-width: 641px) and (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    max-width: 720px;
    margin: 0 auto;
  }
  .hero-visual {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
  }
  .hero-content {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
  }
  .hero-cta-buttons {
    justify-content: center;
  }
  .trust-bar {
    text-align: center;
  }
  .trust-rating {
    justify-content: center;
  }
  .trust-clients {
    justify-content: center;
  }
}

/* ========================================
   19. GLOBAL OVERFLOW SAFETY — MOBILE FIX
   Prevents any element from causing horizontal scroll
   ======================================== */
*, *::before, *::after {
  max-width: 100%;
  box-sizing: border-box;
}

/* Exclude known intentional fixed/absolute elements from width constraint */
.modal-backdrop, .modal-container, .floating-whatsapp,
.live-lead-toast, #cyber-canvas, .nav-menu,
.hero-bg-glow, .cta-bg-glow,
.hero-section, .hero-section *, .hero-section *::before, .hero-section *::after {
  max-width: none;
}

/* But then re-constrain hero layout containers */
.hero-section .container,
.hero-section .hero-container,
.hero-section .hero-content,
.hero-section .hero-visual,
.hero-section .device-mockup-wrapper,
.hero-section .desktop-frame,
.hero-section .desktop-screen {
  max-width: 100%;
}

@media (max-width: 768px) {
  /* Ensure all sections are fully contained */
  section, .container, .hero-section, .problem-section,
  .process-section, .portfolio-section, .testimonials-section,
  .faq-section, .final-cta-section, .site-footer {
    max-width: 100vw;
    overflow-x: hidden;
  }

  /* Fix FAQ question text wrapping on small screens */
  .faq-question {
    font-size: 15px;
    padding: 20px 16px;
  }

  .faq-answer {
    padding: 0 16px;
  }

  .faq-item.active .faq-answer {
    padding: 0 16px 20px 16px;
  }

  /* Pricing card text safety */
  .pricing-price .amount { font-size: 28px; }
  .pricing-title { font-size: 20px; }

  /* Hero section spacing on mobile */
  .hero-section {
    padding-top: 120px;
    padding-bottom: 80px;
  }

  /* Step card full width on mobile */
  .step-card { padding: 24px 16px; }

  /* Comparison card padding safety */
  .comparison-card { padding: 20px 16px; }

  /* Testimonial card padding safety */
  .testimonial-card { padding: 24px 16px; }
  .testimonial-text { font-size: 15px; }

  /* Footer nav wrapping */
  .footer-nav { gap: 20px; }

  /* Final CTA padding */
  .final-cta-section { padding: 80px 0; }

  /* ROI calculator box */
  .roi-calculator-box { padding: 20px 16px; }
}

@media (max-width: 480px) {
  /* Section spacing on very small screens */
  section { padding: 60px 0; }
  .container { padding: 0 14px; }

  /* Eyebrow badge shrink */
  .eyebrow-badge { font-size: 10px; padding: 5px 12px; gap: 4px; }

  /* Hero headline - much smaller for 320px screens */
  .hero-headline { font-size: clamp(1.35rem, 6.5vw, 1.8rem); line-height: 1.15; letter-spacing: -0.02em; }

  /* Hero subheadline */
  .hero-subheadline { font-size: 0.85rem; line-height: 1.5; }

  /* Hero section tighter padding */
  .hero-section { padding-top: 110px; padding-bottom: 60px; }

  /* Desktop mockup smaller on tiny screens */
  .desktop-screen { padding: 12px; min-height: 180px; }
  .mockup-header-sample { padding-bottom: 6px; margin-bottom: 8px; }
  .mock-stats { padding-top: 6px; }
  .mock-stats div { font-size: 9px; }

  /* Trust bar tighter */
  .trust-bar { padding-top: 14px; }
  .trust-rating { gap: 4px; margin-bottom: 8px; }
  .stars { font-size: 13px; }
  .rating-score { font-size: 13px; }
  .rating-count { font-size: 12px; }
  .client-tags { gap: 4px; }
  .client-tag { font-size: 10px; padding: 3px 8px; }

  /* Pricing card */
  .pricing-card { padding: 28px 20px; }
  .feature-card { padding: 28px 20px; }

  /* Footer tagline clamp */
  .footer-tagline { max-width: 100%; }

  /* Section title */
  .section-title { font-size: clamp(1.5rem, 7vw, 2.2rem); }

  /* Buttons full width on tiny screens */
  .hero-cta-buttons { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta-buttons .btn { width: 100%; justify-content: center; padding: 14px 20px; font-size: 15px; }

  /* Modal container padding on tiny screens */
  .modal-container { padding: 24px 16px; }

  /* Browser URL bar smaller */
  .browser-url { font-size: 10px; padding: 3px 10px; max-width: 140px; }

  /* Hero niche pills smaller */
  .hero-niche-pill { padding: 4px 10px; font-size: 10px; }
}


/* ==========================================================================
   PORTFOLIO DEMO PROJECT PREVIEWS — STYLISH PLACEHOLDERS
   ========================================================================== */

.demo-project-preview {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Theme Gradients */
.demo-theme-roofing {
  background: linear-gradient(145deg, #0f1f1f 0%, #0a1518 50%, #0d1f1a 100%);
}
.demo-theme-construction {
  background: linear-gradient(145deg, #1a1f14 0%, #12180f 50%, #151a10 100%);
}
.demo-theme-solar {
  background: linear-gradient(145deg, #1f1a0f 0%, #18140d 50%, #1a160f 100%);
}
.demo-theme-your-project {
  background: linear-gradient(145deg, #111118 0%, #0d0d14 50%, #0a0a12 100%);
  border: 2px dashed rgba(0, 212, 170, 0.25);
}

/* Inner Preview Container */
.demo-preview-inner {
  width: 92%;
  height: 88%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}

/* Browser Bar */
.demo-browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
}

.demo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.demo-dot.red { background: #ff5f56; }
.demo-dot.yellow { background: #ffbd2e; }
.demo-dot.green { background: #27c93f; }

.demo-url {
  font-size: 10px;
  color: var(--text-muted);
  margin-left: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 10px;
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

/* Preview Body */
.demo-preview-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Mini Nav */
.demo-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  flex-wrap: wrap;
}

.demo-logo {
  font-size: 11px;
  font-weight: 800;
  color: var(--accent-primary);
  margin-right: auto;
}

.demo-nav-link {
  font-size: 9px;
  color: var(--text-muted);
  font-weight: 500;
}

.demo-wa-btn {
  font-size: 9px;
  font-weight: 700;
  background: var(--accent-primary);
  color: #000;
  padding: 3px 8px;
  border-radius: 4px;
}

/* Hero Area */
.demo-hero-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.demo-hero-tag {
  font-size: 8px;
  font-weight: 800;
  color: var(--accent-primary);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-hero-title {
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.demo-hero-cta {
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Stats Row */
.demo-stats-row {
  display: flex;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  flex-wrap: wrap;
}

.demo-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-stat strong {
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}

.demo-stat span {
  font-size: 8px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Demo Badge */
.demo-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 2;
}

.demo-badge-cta {
  background: rgba(0, 212, 170, 0.15);
  border-color: rgba(0, 212, 170, 0.3);
  color: var(--accent-primary);
}

/* Project Tags */
.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.project-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-primary);
  background: rgba(0, 212, 170, 0.06);
  border: 1px solid rgba(0, 212, 170, 0.15);
  padding: 4px 10px;
  border-radius: 6px;
}

/* YOUR PROJECT CTA CARD */
.project-cta-card {
  border: 2px dashed rgba(0, 212, 170, 0.2);
  background: rgba(0, 212, 170, 0.02);
}

.project-cta-card:hover {
  border-color: rgba(0, 212, 170, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 212, 170, 0.15);
}

.your-project-content {
  width: 90%;
  height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 20px;
}

.your-project-icon {
  font-size: 36px;
  opacity: 0.8;
}

.your-project-title {
  font-size: clamp(16px, 2.5vw, 22px);
  font-weight: 900;
  color: #fff;
  line-height: 1.2;
}

.your-project-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  max-width: 240px;
}

.your-project-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.your-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.your-step span {
  width: 20px;
  height: 20px;
  background: rgba(0, 212, 170, 0.15);
  border: 1px solid rgba(0, 212, 170, 0.3);
  color: var(--accent-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  flex-shrink: 0;
}

.project-info-cta .project-result {
  color: var(--text-secondary);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .demo-preview-body {
    padding: 12px;
    gap: 8px;
  }
  .demo-hero-title {
    font-size: 16px;
  }
  .demo-stats-row {
    gap: 12px;
  }
  .demo-stat strong {
    font-size: 12px;
  }
  .demo-url {
    max-width: 120px;
    font-size: 9px;
  }
  .your-project-content {
    padding: 16px;
  }
  .your-project-desc {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .demo-preview-body {
    padding: 10px;
  }
  .demo-hero-title {
    font-size: 14px;
  }
  .demo-hero-tag {
    font-size: 7px;
  }
  .demo-nav {
    gap: 8px;
  }
  .demo-logo {
    font-size: 10px;
  }
  .demo-stats-row {
    gap: 10px;
  }
  .demo-stat strong {
    font-size: 11px;
  }
  .demo-stat span {
    font-size: 7px;
  }
  .project-tags {
    gap: 4px;
  }
  .project-tag {
    font-size: 10px;
    padding: 3px 8px;
  }
}
/* ==========================================================================
   ROI CALCULATOR — RESPONSIVENESS FIXES
   ========================================================================== */

/* Tablet range: tighten spacing, reduce giant output text */
@media (max-width: 1024px) {
  .roi-calculator-box {
    padding: 32px;
  }
  .calc-grid {
    gap: 28px;
  }
  .calc-out-item h4 {
    font-size: 24px;
  }
  .calc-outputs {
    padding: 20px;
  }
}

/* Mobile: stack to single column (your existing rule handles grid, 
   but we enhance the child elements) */
@media (max-width: 768px) {
  .roi-calculator-box {
    padding: 24px 18px;
    margin-bottom: 32px;
  }
  .calc-inputs {
    gap: 18px;
  }
  .calc-label-header {
    font-size: 13px;
    gap: 8px;
  }
  .calc-val {
    font-size: 13px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .calc-outputs {
    padding: 20px;
    gap: 4px;
  }
  .calc-out-item {
    margin-bottom: 14px;
  }
  .calc-out-item h4 {
    font-size: 22px;
    word-break: break-word;
  }
  .calc-out-item label {
    font-size: 11px;
  }
  #calc-rec-package {
    font-size: 14px !important;
    line-height: 1.4;
    word-break: break-word;
  }
  .payback-tag {
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
  }
  #calc-cta-btn {
    padding: 14px 20px;
    font-size: 15px;
  }
  #calc-cta-btn span {
    word-break: break-word;
    text-align: center;
  }
}

/* Small screens (480px and below): the pain zone */
@media (max-width: 480px) {
  .roi-calculator-box {
    padding: 20px 14px;
    border-radius: 12px;
  }
  .roi-calculator-box h3 {
    font-size: 17px !important;
  }
  .roi-calculator-box > p {
    font-size: 12px !important;
    margin-bottom: 18px !important;
  }
  .calc-grid {
    gap: 20px;
  }
  .calc-label-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 8px;
  }
  .calc-val {
    font-size: 15px;
  }
  .calc-range-slider {
    height: 5px;
  }
  .calc-outputs {
    padding: 16px;
    border-radius: 10px;
  }
  .calc-out-item h4 {
    font-size: 20px;
  }
  #calc-rec-package {
    font-size: 13px !important;
  }
  .payback-tag {
    font-size: 11px;
    margin-bottom: 14px;
  }
  #calc-cta-btn {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* Very small screens (360px and below) */
@media (max-width: 360px) {
  .roi-calculator-box {
    padding: 16px 12px;
  }
  .calc-out-item h4 {
    font-size: 18px;
  }
  .calc-label-header {
    font-size: 12px;
  }
  .calc-val {
    font-size: 14px;
  }
  #calc-cta-btn {
    font-size: 13px;
    padding: 12px 14px;
  }
  .calc-outputs {
    padding: 14px;
  }
}

/* Range slider cross-browser polish for mobile */
.calc-range-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: 4px;
  outline: none;
}
.calc-range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  background: var(--accent-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 212, 170, 0.4);
  border: 2px solid #fff;
}
.calc-range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--accent-primary);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 212, 170, 0.4);
  border: 2px solid #fff;
}
@media (max-width: 480px) {
  .calc-range-slider::-webkit-slider-thumb {
    width: 18px;
    height: 18px;
  }
  .calc-range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
  }
}