/* ==========================================================================
   MOAD SALHI — IMMERSIVE PORTFOLIO DESIGN SYSTEM & STYLESHEET
   Aesthetics: Sleek Obsidian Dark Mode, Dual Cyan/Magenta Rim Glow,
               3D Perspective Tilt, 60fps Smooth Scrolling & Parallax
   ========================================================================== */

:root {
  /* Color Palette */
  --bg-main: #06070a;
  --bg-surface: #0a0d15;
  --bg-card: rgba(14, 18, 28, 0.72);
  --bg-card-hover: rgba(20, 26, 42, 0.88);
  --bg-glass: rgba(255, 255, 255, 0.035);
  --bg-glass-strong: rgba(255, 255, 255, 0.07);

  /* Borders & Dividers */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(139, 92, 246, 0.4);
  --border-cyan: rgba(6, 182, 212, 0.45);
  --border-magenta: rgba(244, 63, 94, 0.45);

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-accent: #c084fc;

  /* Brand Accents & Gradients */
  --accent-cyan: #06b6d4;
  --accent-magenta: #f43f5e;
  --accent-violet: #a855f7;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;

  --grad-primary: linear-gradient(135deg, #06b6d4 0%, #a855f7 50%, #f43f5e 100%);
  --grad-cyan-magenta: linear-gradient(135deg, #06b6d4 0%, #ec4899 100%);
  --grad-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.01) 100%);
  
  /* Shadows & Neon Atmospheric Glows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.8);
  --shadow-glow-cyan: 0 0 45px rgba(6, 182, 212, 0.28);
  --shadow-glow-magenta: 0 0 45px rgba(244, 63, 94, 0.28);
  --shadow-glow-dual: 
    -20px 0 50px rgba(244, 63, 94, 0.2),
    20px 0 50px rgba(6, 182, 212, 0.2);

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

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --container-max: 1260px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;
}

/* ==========================================================================
   RESET & GLOBAL BASICS
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

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

/* Scroll Progress Bar */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--grad-cyan-magenta);
  z-index: 1001;
  box-shadow: 0 0 10px var(--accent-cyan);
  pointer-events: none;
  transition: width 0.05s ease-out;
}

/* Custom Interactive Cursor (Desktop) */
.custom-cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.05s ease-out, opacity 0.2s;
  box-shadow: 0 0 12px var(--accent-cyan);
}

.custom-cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(6, 182, 212, 0.55);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease-out, height 0.25s ease-out, border-color 0.25s ease-out, transform 0.12s ease-out;
}

.custom-cursor-ring.active {
  width: 60px;
  height: 60px;
  border-color: var(--accent-magenta);
  background: rgba(244, 63, 94, 0.08);
}

@media (hover: none) and (pointer: coarse) {
  .custom-cursor-dot, .custom-cursor-ring {
    display: none !important;
  }
}

/* Ambient Background Lights */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.38;
  will-change: transform;
}

.ambient-orb-1 {
  width: 650px;
  height: 650px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.45) 0%, rgba(99, 102, 241, 0.1) 70%, transparent 100%);
  animation: floatOrb 20s ease-in-out infinite alternate;
}

.ambient-orb-2 {
  width: 580px;
  height: 580px;
  top: 35%;
  left: -140px;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.35) 0%, rgba(168, 85, 247, 0.1) 70%, transparent 100%);
  animation: floatOrb 25s ease-in-out infinite alternate-reverse;
}

.ambient-orb-3 {
  width: 600px;
  height: 600px;
  bottom: -150px;
  right: 15%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.35) 0%, rgba(6, 182, 212, 0.15) 70%, transparent 100%);
  animation: floatOrb 18s ease-in-out infinite alternate;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 70px) scale(1.1); }
  100% { transform: translate(-40px, -50px) scale(0.95); }
}

/* Subtle Grid Overlay */
.grid-overlay {
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.75rem;
  position: relative;
  z-index: 2;
}

/* Typography Helpers */
h1, h2, h3, h4, .brand-logo {
  font-family: var(--font-heading);
  letter-spacing: -0.03em;
  font-weight: 700;
  line-height: 1.22;
}

.text-gradient {
  background: var(--grad-cyan-magenta);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.text-gradient-cyan {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  padding-bottom: 0.18em;
  margin-bottom: -0.18em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.95rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: all var(--transition-fast);
}

.badge:hover {
  border-color: var(--border-cyan);
  background: rgba(255, 255, 255, 0.08);
}

.badge-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 12px var(--accent-emerald);
  animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 16px var(--accent-emerald); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Interactive Scroll Reveal Animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(35px);
  transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: background-color var(--transition-smooth), border-color var(--transition-smooth), backdrop-filter var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(6, 7, 10, 0.84);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
  color: var(--text-primary);
  flex-shrink: 0;
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 2px solid var(--accent-cyan);
  box-shadow: 0 0 18px rgba(6, 182, 212, 0.45);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.brand:hover .brand-avatar {
  transform: scale(1.08) rotate(3deg);
  box-shadow: 0 0 25px rgba(244, 63, 94, 0.6);
  border-color: var(--accent-magenta);
}

.brand-info {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-role {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 2rem);
  list-style: none;
  margin: 0 1rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
  position: relative;
  padding: 0.35rem 0;
  white-space: nowrap;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-cyan-magenta);
  transition: width var(--transition-smooth);
  border-radius: 2px;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Interactive Magnetic Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 1.45rem;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), background var(--transition-smooth);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn-text-mobile {
  display: none;
}

.btn-text-desktop {
  display: inline;
}

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 22px rgba(6, 182, 212, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2.5px) scale(1.02);
  box-shadow: 0 8px 32px rgba(6, 182, 212, 0.55);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}

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

.btn-roast {
  background: linear-gradient(135deg, #f43f5e 0%, #a855f7 50%, #06b6d4 100%);
  color: #fff;
  box-shadow: 0 4px 25px rgba(244, 63, 94, 0.35);
}

.btn-roast:hover {
  transform: translateY(-2.5px) scale(1.02);
  box-shadow: 0 8px 35px rgba(244, 63, 94, 0.6);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* ==========================================================================
   HERO SECTION: IMMERSIVE VISUAL EXPERIENCE
   ========================================================================== */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-height) + 1.5rem);
  padding-bottom: 4rem;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 580px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.5rem;
}

.hero-proof-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 2.2rem;
  margin-top: 1.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.proof-chip {
  display: flex;
  flex-direction: column;
}

.proof-number {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
}

.proof-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ==========================================================================
   MOAD SALHI PORTRAIT SHOWCASE: CINEMATIC DUAL RIM-GLOW
   ========================================================================== */

.hero-visual {
  position: relative;
  perspective: 1200px;
}

.portrait-card-stack {
  position: relative;
  width: 100%;
  max-width: 490px;
  margin: 0 auto;
  transform-style: preserve-3d;
  transition: transform 0.2s cubic-bezier(0.1, 1, 0.1, 1);
}

.portrait-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #030407;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7),
              -25px 0 60px rgba(244, 63, 94, 0.25),
              25px 0 60px rgba(6, 182, 212, 0.25);
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.portrait-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  z-index: 1;
  transition: transform var(--transition-slow);
}

.portrait-card-stack:hover .portrait-image {
  transform: scale(1.04);
}

/* Bottom Glassmorphic Overlay on Portrait */
.portrait-overlay-hud {
  position: relative;
  z-index: 3;
  padding: 1.6rem;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 7, 10, 0.85) 40%, rgba(6, 7, 10, 0.98) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hud-profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hud-tagline {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Audio Waveform Animation (AirPods Max aesthetic) */
.audio-wave-bar {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.wave-bar {
  width: 3px;
  background: var(--accent-cyan);
  border-radius: 2px;
  animation: wavePulse 1.2s ease-in-out infinite alternate;
}

.wave-bar:nth-child(1) { height: 6px; animation-delay: 0.1s; }
.wave-bar:nth-child(2) { height: 14px; animation-delay: 0.3s; }
.wave-bar:nth-child(3) { height: 18px; animation-delay: 0.2s; background: var(--accent-magenta); }
.wave-bar:nth-child(4) { height: 10px; animation-delay: 0.4s; }
.wave-bar:nth-child(5) { height: 16px; animation-delay: 0.15s; background: var(--accent-violet); }
.wave-bar:nth-child(6) { height: 8px; animation-delay: 0.35s; }

@keyframes wavePulse {
  0% { transform: scaleY(0.3); opacity: 0.5; }
  100% { transform: scaleY(1); opacity: 1; }
}

/* Floating Badges on Portrait */
.floating-badge {
  position: absolute;
  padding: 0.75rem 1.15rem;
  background: rgba(10, 13, 21, 0.88);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.floating-badge-top {
  top: -20px;
  right: -25px;
  border-color: rgba(6, 182, 212, 0.4);
  animation: floatBadge 6s ease-in-out infinite alternate;
}

.floating-badge-bottom {
  bottom: -22px;
  left: -25px;
  border-color: rgba(244, 63, 94, 0.4);
  animation: floatBadge 6s ease-in-out infinite alternate-reverse;
}

@keyframes floatBadge {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.badge-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.badge-icon-cyan {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
}

.badge-icon-magenta {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-magenta);
}

.badge-text-primary {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-primary);
}

.badge-text-secondary {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* ==========================================================================
   INFINITE MARQUEE TICKER (THE PROMISE)
   ========================================================================== */

.marquee-section {
  padding: 1.5rem 0;
  background: rgba(10, 13, 22, 0.6);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marqueeScroll 28s linear infinite;
}

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

.marquee-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.marquee-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-cyan);
}

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

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */

section {
  padding: 7rem 0;
  position: relative;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 4rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.section-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   INTERACTIVE BEFORE / AFTER TRANSFORMATION SHOWCASE
   ========================================================================== */

.comparison-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.comparison-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.comparison-segmented {
  display: flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

.comp-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: calc(var(--radius-md) - 4px);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.comp-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.slider-tip {
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* The Interactive Slider Viewport */
.slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  cursor: ew-resize;
  background: #000;
  touch-action: pan-y;
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
}

.slider-before-wrap {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 50%;
  overflow: hidden;
  z-index: 2;
  border-right: 2px solid #fff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.slider-before-wrap img {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  min-width: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
}

/* Slider Handle */
.slider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  color: #08090e;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.7);
  z-index: 4;
  cursor: ew-resize;
  transition: transform var(--transition-fast);
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  user-drag: none;
}

.slider-handle:hover {
  transform: translate(-50%, -50%) scale(1.14);
}

.slider-handle svg {
  width: 22px;
  height: 22px;
}

/* Badges on the slider */
.slider-label {
  position: absolute;
  top: 1rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  z-index: 3;
  backdrop-filter: blur(12px);
}

.label-before {
  left: 1rem;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
}

.label-after {
  right: 1rem;
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
}

/* Performance Diff Cards */
.comparison-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 2rem;
}

.metric-diff-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.metric-diff-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}

.diff-title {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.diff-values {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-mono);
}

.diff-old {
  font-size: 0.95rem;
  color: var(--accent-magenta);
  text-decoration: line-through;
  opacity: 0.85;
}

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

.diff-new {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.diff-gain {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-weight: 600;
}

/* ==========================================================================
   PROJECT SHOWCASE GRID & FILTER (WITH 3D TILT)
   ========================================================================== */

.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3.5rem;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.55rem 1.35rem;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

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

.filter-btn.active {
  background: var(--grad-cyan-magenta);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(6, 182, 212, 0.35);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  transform-style: preserve-3d;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-cyan);
  box-shadow: var(--shadow-lg), var(--shadow-glow-cyan);
}

.project-thumbnail-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

.project-thumbnail-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.project-badge-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(8, 9, 14, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  color: var(--accent-cyan);
}

.project-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 1rem;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-category {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--accent-cyan);
}

.project-impact-tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.1);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.project-title {
  font-size: 1.5rem;
  font-weight: 700;
}

.project-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.project-tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.tech-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.035);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
}

.project-cta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.btn-card-action {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-card-action:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-cyan);
  color: #fff;
}

/* ==========================================================================
   THE "BROKEN WEBSITE" REVENUE LOSS CALCULATOR
   ========================================================================== */

.calculator-card {
  background: rgba(10, 13, 20, 0.98);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3.5rem;
  align-items: center;
  contain: layout paint;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.slider-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.slider-label-text {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.slider-current-val {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--accent-cyan);
  font-variant-numeric: tabular-nums;
  min-width: 135px;
  text-align: right;
  display: inline-block;
}

/* Custom Range Input - Smooth & Jitter-Free */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
  touch-action: pan-y;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.85);
  cursor: pointer;
  transition: none;
}

input[type="range"]:active::-webkit-slider-thumb {
  transform: scale(1.15);
  transition: none;
}

input[type="range"]::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.85);
  cursor: pointer;
  border: none;
  transition: none;
}

/* Calculator Output Box */
.calc-results-box {
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.1) 0%, rgba(244, 63, 94, 0.02) 100%);
  border: 1px solid rgba(244, 63, 94, 0.32);
  border-radius: var(--radius-lg);
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  min-height: 410px;
  justify-content: center;
  contain: layout paint;
}

.calc-alert-pill {
  background: rgba(244, 63, 94, 0.2);
  color: #fca5a5;
  border: 1px solid rgba(244, 63, 94, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.2rem;
  letter-spacing: 0.06em;
}

.loss-label {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.loss-number {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  color: #f87171;
  line-height: 1.1;
  margin: 0.5rem 0 0.2rem 0;
  text-shadow: 0 0 25px rgba(248, 113, 113, 0.4);
  font-variant-numeric: tabular-nums;
  min-height: 3.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loss-subtext {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.8rem;
  font-variant-numeric: tabular-nums;
}

.calc-breakdown {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.breakdown-row span:last-child {
  font-variant-numeric: tabular-nums;
}

.breakdown-row span:first-child {
  color: var(--text-muted);
}

.breakdown-row span:last-child {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

/* ==========================================================================
   THE 4-STEP REDESIGN BLUEPRINT
   ========================================================================== */

.blueprint-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.blueprint-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.blueprint-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-cyan);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
}

.step-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.28);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
}

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

/* ==========================================================================
   TESTIMONIALS & RESULTS
   ========================================================================== */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-cyan);
}

.testimonial-stars {
  color: var(--accent-amber);
  display: flex;
  gap: 4px;
  font-size: 1rem;
}

.testimonial-quote {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.6;
  font-style: italic;
}

.testimonial-metric-box {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.t-metric-val {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-emerald);
}

.t-metric-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: auto;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-cyan);
  border: 1px solid var(--border-subtle);
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.author-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FINAL CTA / AUDIT PITCH BANNER
   ========================================================================== */

.pitch-banner {
  background: radial-gradient(circle at 50% 0%, rgba(6, 182, 212, 0.2) 0%, rgba(14, 18, 28, 0.92) 70%);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  padding: 4.5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow-cyan);
}

.pitch-content {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.pitch-title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
}

.pitch-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

.pitch-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.guarantee-chip {
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 4.5rem 0 2rem 0;
  background: #040507;
  position: relative;
  z-index: 2;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand-col {
  max-width: 380px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.footer-links-col {
  display: flex;
  gap: 4rem;
}

.footer-group {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.footer-heading {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-primary);
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color var(--transition-fast);
}

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

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

/* ==========================================================================
   INTERACTIVE MODALS
   ========================================================================== */

dialog {
  margin: auto;
  padding: 0;
  background: transparent;
  border: none;
  max-width: 600px;
  width: 92%;
  max-height: 86vh;
  border-radius: var(--radius-xl);
  overflow: visible;
  color: var(--text-primary);
}

dialog::backdrop {
  background: rgba(4, 5, 8, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-surface {
  background: rgba(10, 13, 20, 0.98);
  border: 1px solid var(--border-cyan);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), var(--shadow-glow-cyan);
  padding: 2.2rem;
  position: relative;
  max-height: 86vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--accent-cyan) rgba(255, 255, 255, 0.05);
}

.modal-surface::-webkit-scrollbar {
  width: 6px;
}

.modal-surface::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
}

.modal-surface::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 4px;
}

.modal-close-btn {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.modal-header {
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.modal-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
}

/* Audit Scanner Steps in Modal */
.scanner-simulation {
  display: none;
  margin: 1.5rem 0;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.scanner-line {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.scanner-status-pass { color: var(--accent-emerald); font-weight: 700; }
.scanner-status-fail { color: var(--accent-magenta); font-weight: 700; }
.scanner-status-warn { color: var(--accent-amber); font-weight: 700; }

.audit-score-reveal {
  display: none;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  text-align: center;
  margin: 1.2rem 0;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.8rem 1rem;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.3);
}

/* Custom Dropdown Select Styling for Dark Mode */
select.form-input {
  background-color: #0b0f17;
  color: #f8fafc;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2306b6d4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.2rem center;
  background-size: 16px;
  padding-right: 2.8rem;
}

select.form-input option {
  background-color: #0b0f17 !important;
  color: #f8fafc !important;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
}

select.form-input option:checked {
  background-color: #162032 !important;
  color: var(--accent-cyan) !important;
}

.modal-case-body {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.modal-case-image {
  width: 100%;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--border-subtle);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: rgba(6, 7, 10, 0.96);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 99;
}

.mobile-nav-drawer.open {
  display: flex;
}

.mobile-nav-drawer .nav-link {
  font-size: 1.1rem;
}

/* ==========================================================================
   FAQ SECTION (SEO & CLIENT INTAKE)
   ========================================================================== */
.faq-section {
  padding: 6rem 0;
  position: relative;
}

.faq-list {
  max-width: 860px;
  margin: 3rem auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-item {
  background: rgba(10, 13, 20, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.8rem;
  transition: border-color var(--transition-fast), background var(--transition-fast);
  cursor: pointer;
}

.faq-item:hover {
  border-color: rgba(6, 182, 212, 0.4);
  background: rgba(10, 13, 20, 0.95);
}

.faq-item[open] {
  border-color: rgba(6, 182, 212, 0.6);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.08);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  list-style: none;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-icon {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent-cyan);
  transition: transform var(--transition-fast);
  line-height: 1;
  display: inline-block;
}

.faq-item[open] .faq-icon {
  transform: rotate(45deg);
  color: var(--accent-magenta);
}

.faq-answer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM / ALL DEVICES
   ========================================================================== */

/* 1. Ultra-Wide / Large Screens (>= 1440px) */
@media (min-width: 1440px) {
  .hero-content {
    gap: 5rem;
  }
}

/* 2. Compact Laptops (<= 1200px) */
@media (max-width: 1200px) {
  .nav-actions .badge {
    display: none;
  }
  .hero-content {
    gap: 3rem;
  }
}

/* 3. Tablets Landscape & Medium Screens (<= 1024px) */
@media (max-width: 1024px) {
  :root {
    --header-height: 74px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    gap: 3.5rem;
    text-align: center;
  }

  .hero-text {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-proof-chips {
    justify-content: center;
  }

  .portrait-card-stack {
    max-width: 440px;
    margin: 0 auto;
  }

  .calculator-card {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 2.2rem;
  }

  .blueprint-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
    margin: 0 auto;
  }
}

/* 4. Tablets Portrait & Mobile (<= 768px) */
@media (max-width: 768px) {
  :root {
    --header-height: 68px;
  }

  .section-padding {
    padding: 4.5rem 0;
  }

  .container {
    padding: 0 1.25rem;
  }

  /* Header mobile layout fix */
  .brand-role {
    display: none !important;
  }

  .brand-name {
    font-size: 1.15rem !important;
    white-space: nowrap !important;
  }

  .brand-avatar {
    width: 38px !important;
    height: 38px !important;
  }

  .nav-actions {
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-shrink: 0 !important;
  }

  .btn-header-roast {
    padding: 0.45rem 0.8rem !important;
    font-size: 0.82rem !important;
    flex-shrink: 0 !important;
    border-radius: var(--radius-full) !important;
  }

  .btn-header-roast .btn-text-desktop {
    display: none !important;
  }

  .btn-header-roast .btn-text-mobile {
    display: inline !important;
  }

  .mobile-menu-btn {
    display: flex !important;
    flex-shrink: 0 !important;
  }

  /* Hero Section */
  .hero-title {
    font-size: clamp(2.1rem, 6.8vw, 3rem);
    line-height: 1.22;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  /* Hero CTAs: fix unequal button widths */
  .hero-ctas {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 440px !important;
    margin: 1.2rem auto 0 auto !important;
    gap: 0.85rem !important;
  }

  .hero-ctas .btn {
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 0.85rem 1.4rem !important;
    font-size: 0.95rem !important;
    white-space: normal !important;
  }

  .hero-proof-chips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
    max-width: 460px;
  }

  .proof-chip {
    padding: 0.7rem 0.9rem;
    font-size: 0.82rem;
  }

  /* Portrait Card HUD & Floating Badge Overlap Fix */
  .portrait-card-stack {
    max-width: 420px !important;
    margin: 1.5rem auto 3.5rem auto !important;
    padding: 0 8px !important;
  }

  .portrait-hud-badges {
    display: none !important;
  }

  .portrait-overlay-hud {
    padding: 1.1rem 1.2rem 2.8rem 1.2rem !important;
  }

  .hud-name {
    font-size: 1.15rem !important;
  }

  .hud-tagline {
    font-size: 0.75rem !important;
  }

  .floating-badge {
    animation: none !important;
  }

  .floating-badge-top {
    position: absolute !important;
    top: -14px !important;
    right: 10px !important;
    padding: 0.55rem 0.85rem !important;
  }

  .floating-badge-bottom {
    position: absolute !important;
    bottom: -22px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: max-content !important;
    max-width: 92% !important;
    padding: 0.55rem 0.95rem !important;
    z-index: 5 !important;
  }

  .badge-icon-box {
    width: 32px !important;
    height: 32px !important;
    font-size: 1rem !important;
  }

  .badge-text-primary {
    font-size: 0.8rem !important;
  }

  .badge-text-secondary {
    font-size: 0.68rem !important;
  }

  /* Comparison Slider & Badges Collision Fix */
  .comparison-header {
    text-align: center;
  }

  .comparison-segmented {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    gap: 0.35rem !important;
  }

  .comp-btn {
    flex: 1 !important;
    padding: 0.55rem 0.5rem !important;
    font-size: 0.8rem !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  .comp-btn .btn-text-desktop {
    display: none !important;
  }

  .comp-btn .btn-text-mobile {
    display: inline !important;
  }

  .slider-container {
    aspect-ratio: 4 / 3;
  }

  .slider-label {
    top: 0.65rem !important;
    padding: 0.35rem 0.65rem !important;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.05em !important;
  }

  .slider-label .btn-text-desktop {
    display: none !important;
  }

  .slider-label .btn-text-mobile {
    display: inline !important;
  }

  .label-before {
    left: 0.65rem !important;
  }

  .label-after {
    right: 0.65rem !important;
  }

  .comparison-metrics-bar {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    padding: 1.2rem;
  }

  .metric-diff-card {
    padding: 0.85rem;
  }

  .metric-diff-val {
    font-size: 1.25rem;
  }

  /* Projects Section */
  .projects-filter-bar {
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }

  .filter-btn {
    white-space: nowrap;
    padding: 0.45rem 1rem;
    font-size: 0.82rem;
  }

  .project-card-body {
    padding: 1.5rem;
  }

  /* Blueprint & Testimonials */
  .blueprint-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  /* Button Truncation Fixes */
  .btn {
    white-space: normal !important;
  }

  #btn-calc-cta .btn-text-desktop {
    display: none !important;
  }

  #btn-calc-cta .btn-text-mobile {
    display: inline !important;
  }

  #btn-final-roast .btn-text-desktop {
    display: none !important;
  }

  #btn-final-roast .btn-text-mobile {
    display: inline !important;
  }

  #btn-calc-cta,
  #btn-final-roast,
  #btn-hero-roast {
    width: 100% !important;
    padding: 0.85rem 1.1rem !important;
    font-size: 0.92rem !important;
    line-height: 1.35 !important;
    text-align: center !important;
  }

  /* Conversion Pitch Section */
  .pitch-banner {
    padding: 3.5rem 1.5rem;
    border-radius: var(--radius-lg);
  }

  .pitch-badges {
    flex-direction: column;
    gap: 0.6rem;
    align-items: center;
  }

  /* Footer */
  .footer-top {
    flex-direction: column;
    gap: 2.5rem;
  }

  .footer-links-col {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* 5. Small Phones (<= 480px) */
@media (max-width: 480px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 1rem;
  }

  .btn-header-roast {
    padding: 0.42rem 0.7rem !important;
    font-size: 0.78rem !important;
  }

  .hero-title {
    font-size: 2.05rem;
  }

  .hero-tagline-badge {
    font-size: 0.76rem;
    padding: 0.35rem 0.7rem;
  }

  .portrait-card-stack {
    max-width: 100% !important;
    padding: 0 4px !important;
  }

  .floating-badge-bottom {
    bottom: -20px !important;
    max-width: 95% !important;
    padding: 0.5rem 0.85rem !important;
  }

  .calculator-card {
    padding: 1.25rem !important;
    border-radius: var(--radius-md);
  }

  .calc-loss-number {
    font-size: 2.1rem !important;
  }

  .calc-slider-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
  }

  .comparison-metrics-bar {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    padding: 1rem;
  }

  /* Modals */
  dialog {
    width: 95%;
    max-height: 90vh;
  }

  .modal-surface {
    padding: 1.4rem 1.1rem;
    max-height: 90vh;
  }

  .modal-title {
    font-size: 1.35rem;
  }

  .scanner-simulation {
    padding: 0.85rem;
    font-size: 0.75rem;
  }

  .scanner-line {
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.5rem 0;
  }
}

/* 6. Form Inputs iOS Safari Auto-Zoom Fix */
input, select, textarea {
  font-size: 16px !important;
}
