/* ==========================================================================
   PYROTECH PPCI - DESIGN SYSTEM & STYLESHEET
   Aesthetics: Deep Obsidian Blacks & Vibrant High-Contrast Crimson/Red
   Dramatic Volumetric Atmosphere & Engineering Precision
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --bg-black: #050507;
  --bg-deep: #09080a;
  --bg-elevated: #110d10;
  --bg-card: rgba(18, 12, 15, 0.78);
  --bg-card-hover: rgba(30, 16, 21, 0.92);
  --bg-glass: rgba(12, 8, 10, 0.65);

  --red-neon: #ff0015;
  --red-primary: #ff1a24;
  --red-vibrant: #ff3843;
  --red-accent: #ff4d56;
  --red-deep: #7a0c12;
  --red-flame: #ff5100;
  --red-glow: 0 0 25px rgba(255, 26, 36, 0.55);
  --red-glow-intense: 0 0 45px rgba(255, 0, 21, 0.85);

  --border-subtle: rgba(255, 26, 36, 0.22);
  --border-active: rgba(255, 56, 67, 0.7);
  --border-dark: rgba(255, 255, 255, 0.08);

  --text-main: #fbfbfc;
  --text-muted: #a69ea3;
  --text-dim: #6b6368;
  --text-red: #ff4d56;

  /* Typography */
  --font-display: var(--font-sans);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: var(--font-sans);

  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.15s ease-out;

  /* Layout */
  --container-max: 1240px;
  --header-height: 84px;
}

/* Base Reset & Typography */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-black);
  color: var(--text-main);
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  overflow-x: clip;
  background-color: var(--bg-black);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

/* ==========================================================================
   SMOKE & ATMOSPHERIC CANVAS
   ========================================================================== */
#smoke-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 1;
  pointer-events: none;
  opacity: 0.95;
}

/* Atmospheric Lighting Glows */
.ambient-glow-top {
  position: fixed;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 0, 21, 0.22) 0%, rgba(122, 12, 18, 0.08) 50%, transparent 75%);
  pointer-events: none;
  z-index: 0;
  filter: blur(60px);
}

.ambient-glow-bottom {
  position: fixed;
  bottom: -200px;
  right: -100px;
  width: 700px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 40, 0, 0.15) 0%, rgba(90, 10, 15, 0.05) 55%, transparent 80%);
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: var(--transition-smooth);
  background: linear-gradient(180deg, rgba(5, 5, 7, 0.9) 0%, rgba(5, 5, 7, 0.4) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 26, 36, 0.12);
}

.site-header.scrolled {
  background: rgba(8, 6, 8, 0.95);
  border-bottom: 1px solid rgba(255, 26, 36, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(255, 26, 36, 0.15);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 44px;
  height: 44px;
  background: radial-gradient(circle, rgba(255, 26, 36, 0.35) 0%, rgba(20, 10, 12, 0.9) 90%);
  border: 1.5px solid var(--red-primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--red-glow);
  position: relative;
  overflow: hidden;
}

.brand-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--red-vibrant);
  filter: drop-shadow(0 0 8px rgba(255, 40, 40, 0.9));
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 0 12px rgba(255, 26, 36, 0.6);
}

.brand-title span {
  color: var(--red-vibrant);
}

.brand-subtitle {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
  text-shadow: 0 0 8px rgba(255, 56, 67, 0.8);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--red-primary);
  box-shadow: 0 0 8px var(--red-primary);
  transition: var(--transition-smooth);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Smoke FX Control Bar in Header */
.smoke-fx-control {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(20, 12, 16, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: 30px;
  padding: 4px 6px;
}

.smoke-fx-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 0 6px;
  letter-spacing: 1px;
}

.smoke-control-pill {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
}

.smoke-control-pill.active {
  background: var(--red-primary);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 26, 36, 0.6);
}

/* Audio Toggle Button */
.audio-toggle-btn {
  background: rgba(22, 12, 16, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: 30px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.audio-toggle-btn:hover {
  border-color: var(--red-vibrant);
  color: #fff;
}

.audio-toggle-btn.playing {
  border-color: var(--red-primary);
  color: var(--red-vibrant);
  box-shadow: 0 0 12px rgba(255, 30, 40, 0.4);
}

.audio-toggle-btn .sound-wave {
  display: inline-flex;
  gap: 2px;
  align-items: center;
  height: 12px;
}

.sound-bar {
  width: 2px;
  height: 4px;
  background: var(--text-muted);
  border-radius: 1px;
}

.audio-toggle-btn.playing .sound-bar {
  background: var(--red-vibrant);
  animation: soundPulse 0.8s infinite ease-in-out alternate;
}

.audio-toggle-btn.playing .sound-bar:nth-child(2) {
  animation-delay: 0.2s;
}
.audio-toggle-btn.playing .sound-bar:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes soundPulse {
  0% { height: 3px; }
  100% { height: 12px; }
}

/* Urgent CTA Button */
.btn-emergency {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff1a24 0%, #b8000b 100%);
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: var(--red-glow);
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.btn-emergency::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transform: rotate(45deg);
  animation: emergencySheen 3.5s infinite;
}

@keyframes emergencySheen {
  0% { transform: translateX(-100%) rotate(45deg); }
  35%, 100% { transform: translateX(100%) rotate(45deg); }
}

.btn-emergency:hover {
  transform: translateY(-2px);
  box-shadow: var(--red-glow-intense);
  background: linear-gradient(135deg, #ff333d 0%, #d1000f 100%);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px #fff;
  animation: pulseDot 1.2s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 6px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
/* ==========================================================================
   HERO SCROLLMOTION SECTION (DRIVEN BY VIDEO 012.MP4)
   ========================================================================== */
.hero-scroll-track {
  position: relative;
  height: 260vh; /* Compact native scroll range for the three scenes. */
  height: 260svh;
  padding: 0;
  background: var(--bg-black);
}

.hero-sticky-stage {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  z-index: 2;
}

/* Scrubbed Video Layer */
.hero-video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

#hero-scroll-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: contrast(1.15) brightness(0.85) saturate(1.1);
}

#hero-frame-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
}

#hero-frame-canvas.is-ready { opacity: 1; }

.hero-sticky-stage .hero-badge,
.hero-sticky-stage .tech-pill,
.hero-sticky-stage .hero-stats-bar,
.hero-sticky-stage .btn-secondary-hero,
.hero-sticky-stage .hero-scene-nav,
.hero-sticky-stage .hero-scroll-badge-indicator {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(5, 5, 7, 0.72) 0%, rgba(5, 5, 7, 0.44) 45%, rgba(5, 5, 7, 0.35) 100%), radial-gradient(circle at 50% 50%, rgba(255, 0, 21, 0.12) 0%, rgba(5, 5, 7, 0.38) 65%, rgba(5, 5, 7, 0.72) 100%);
  pointer-events: none;
}

.hero-video-vignette {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, 
    rgba(5, 5, 7, 0.88) 0%, 
    transparent 20%, 
    transparent 70%, 
    rgba(5, 5, 7, 0.95) 95%,
    var(--bg-black) 100%);
  pointer-events: none;
}

/* Scroll Progress Line */
.scrollmotion-progress-bar {
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 26, 36, 0.15);
  z-index: 25;
}

.scrollmotion-progress-fill {
  height: 100%;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, #ff1a24 0%, #ff5100 100%);
  box-shadow: 0 0 10px #ff1a24;
  will-change: transform;
}

.hero-scene-nav {
  position: absolute;
  z-index: 26;
  right: max(120px, 7vw);
  bottom: clamp(24px, 4vh, 42px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(8, 6, 8, 0.58);
  backdrop-filter: blur(12px);
}

.hero-scene-nav button {
  display: grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font: 600 0.72rem var(--font-mono);
  cursor: pointer;
  transition: color 240ms ease, background 240ms ease, box-shadow 240ms ease;
}

.hero-scene-nav button:hover,
.hero-scene-nav button:focus-visible,
.hero-scene-nav button.is-active {
  color: #fff;
  background: rgba(255, 26, 36, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 75, 84, 0.56), 0 0 18px rgba(255, 26, 36, 0.18);
}

.hero-scene-nav button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.hero-scene-nav > span {
  width: clamp(14px, 2vw, 30px);
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 26, 36, 0.65));
}

/* Live Scroll Motion Status Header */
.hero-scroll-badge-indicator {
  position: absolute;
  top: calc(var(--header-height) + 16px);
  right: clamp(24px, 5vw, 72px);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(14, 8, 11, 0.85);
  border: 1px solid var(--border-subtle);
  padding: 6px 16px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.6);
}

.live-scroll-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-main);
}

.scroll-time-counter {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--red-vibrant);
  font-weight: 700;
  border-left: 1px solid var(--border-subtle);
  padding-left: 10px;
}

/* Narrative Phases Container */
.hero-content-container {
  position: absolute;
  top: calc(var(--header-height) + 72px);
  bottom: 104px;
  left: 0;
  width: 100%;
  z-index: 10;
  pointer-events: none;
}

.hero-phase {
  position: absolute;
  top: 50%;
  left: clamp(32px, 7vw, 112px);
  width: min(84vw, 760px);
  max-width: 760px;
  text-align: left;
  padding: 0;
  will-change: opacity, transform;
  transform: translate3d(0, -50%, 0);
  transform-origin: center left;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: none;
}

.hero-phase.phase-1 {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.hero-phase.phase-2 {
  left: auto;
  right: clamp(32px, 7vw, 112px);
  text-align: right;
  transform-origin: center right;
}

.hero-phase.phase-3 {
  width: min(84vw, 980px);
  max-width: 980px;
}

.hero-phase .hero-phase-desc,
.hero-phase .hero-description {
  margin-left: 0;
  margin-right: 0;
}

.phase-2 .phase-tech-pills {
  justify-content: flex-end;
}

.phase-3 .hero-cta-group {
  justify-content: flex-start;
}

/* Phase Titles & Typography */
.hero-phase-title {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0.02em;
  text-wrap: balance;
  text-transform: uppercase;
  margin-bottom: 24px;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95);
}

.hero-phase-desc {
  font-size: 1.15rem;
  color: #ddd5db;
  line-height: 1.7;
  max-width: 62ch;
  margin: 0 auto 24px auto;
  font-weight: 400;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.phase-tech-pills {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.tech-pill {
  background: rgba(18, 10, 14, 0.88);
  border: 1px solid var(--border-active);
  color: #fff;
  padding: 8px 18px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 0 15px rgba(255, 26, 36, 0.25);
  backdrop-filter: blur(8px);
}

/* Scroll Cue Component */
.hero-scroll-cue {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  cursor: pointer;
  border: 0;
  padding: 8px 0;
  color: inherit;
  background: rgba(8, 6, 8, 0.35);
  font: inherit;
  border-radius: 10px;
  touch-action: manipulation;
  pointer-events: auto;
  opacity: 0.9;
  transition: var(--transition-fast);
}

.hero-scroll-cue:hover {
  opacity: 1;
  transform: translateY(3px);
}

.hero-scroll-cue:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.mouse-icon {
  width: 24px;
  height: 38px;
  border: 2px solid var(--red-vibrant);
  border-radius: 14px;
  position: relative;
  display: flex;
  justify-content: center;
  box-shadow: 0 0 12px rgba(255, 26, 36, 0.5);
}

.mouse-wheel {
  width: 3px;
  height: 7px;
  background: #fff;
  border-radius: 2px;
  position: absolute;
  top: 6px;
  animation: mouseWheelScrub 1.8s infinite ease-in-out;
}

@keyframes mouseWheelScrub {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

.scroll-cue-text {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
}

.scroll-arrow {
  color: var(--red-vibrant);
  animation: arrowBounce 1.5s infinite alternate ease-in-out;
}

@keyframes arrowBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(5px); }
}

/* Badges and Buttons in Hero */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(25, 10, 14, 0.85);
  border: 1px solid var(--border-active);
  border-radius: 30px;
  padding: 6px 18px;
  margin-bottom: 28px;
  flex-wrap: wrap;
  row-gap: 4px;
  box-shadow: 0 0 20px rgba(255, 26, 36, 0.25);
  backdrop-filter: blur(8px);
}

.hero-badge-tag {
  color: var(--red-vibrant);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.hero-badge-divider {
  width: 4px;
  height: 4px;
  background: var(--text-dim);
  border-radius: 50%;
}

.hero-badge-text {
  font-size: 0.78rem;
  color: var(--text-main);
  letter-spacing: 0.5px;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 3.5vw, 3.25rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: 0.015em;
  max-width: 22ch;
  text-wrap: balance;
  text-transform: uppercase;
  margin-bottom: 22px;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.95);
}

.hero-title .highlight-red, .hero-phase-title .highlight-red {
  color: var(--red-vibrant);
  background: linear-gradient(90deg, #ff1a24 0%, #ff5964 50%, #ff1a24 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline;
  text-shadow: 0 0 35px rgba(255, 30, 40, 0.6);
  position: relative;
}

.hero-description {
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  color: #d1c9ce;
  line-height: 1.7;
  max-width: 62ch;
  margin: 0 auto 24px auto;
  font-weight: 400;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.85);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #ff1a24 0%, #c4000e 100%);
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 15px 34px;
  border-radius: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 30px rgba(255, 26, 36, 0.65), 0 10px 25px rgba(0, 0, 0, 0.6);
  transition: var(--transition-smooth);
}

.btn-primary-hero:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 45px rgba(255, 40, 50, 0.9), 0 15px 30px rgba(0, 0, 0, 0.8);
  background: linear-gradient(135deg, #ff333d 0%, #db0011 100%);
}

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(18, 10, 14, 0.7);
  color: #fff;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 600;
  padding: 15px 30px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  border: 1px solid var(--border-active);
  backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.btn-secondary-hero:hover {
  background: rgba(35, 14, 20, 0.9);
  border-color: var(--red-vibrant);
  color: var(--red-vibrant);
  box-shadow: 0 0 20px rgba(255, 26, 36, 0.35);
}

/* Hero Stats Bar */
.hero-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  background: rgba(14, 9, 12, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 18px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.phase-3 .hero-phase-title {
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.phase-3 .hero-phase-desc {
  font-size: 1.05rem;
  margin-bottom: 20px;
}

.phase-3 .hero-cta-group {
  margin-bottom: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 26, 36, 0.3), transparent);
}

.counter-val {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  text-shadow: 0 0 15px rgba(255, 40, 50, 0.5);
}

.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
section {
  position: relative;
  padding: 100px 0;
  z-index: 2;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--red-vibrant);
  margin-bottom: 14px;
}

.section-tag::before, .section-tag::after {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--red-primary);
  box-shadow: 0 0 6px var(--red-primary);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 18px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==========================================================================
   SIMULATOR SECTION (INTERACTIVE PPCI SIZING)
   ========================================================================== */
.simulator-section {
  background: linear-gradient(180deg, var(--bg-black) 0%, rgba(18, 9, 13, 0.9) 50%, var(--bg-black) 100%);
  border-top: 1px solid rgba(255, 26, 36, 0.15);
  border-bottom: 1px solid rgba(255, 26, 36, 0.15);
}

.sim-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}

.sim-card-input, .sim-card-result {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 36px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.sim-card-input::before, .sim-card-result::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
}

.sim-form-group {
  margin-bottom: 28px;
}

.sim-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.sim-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
}

.sim-badge-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--red-vibrant);
  background: rgba(255, 26, 36, 0.12);
  padding: 4px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-subtle);
}

/* Custom Range Slider */
.sim-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
}

.sim-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  background: var(--red-vibrant);
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 14px rgba(255, 26, 36, 0.9);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.sim-range::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* Custom Select Dropdowns */
.sim-select {
  width: 100%;
  background: rgba(10, 6, 8, 0.9);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 16px;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  cursor: pointer;
  transition: var(--transition-fast);
}

.sim-select:focus {
  border-color: var(--red-vibrant);
  box-shadow: 0 0 15px rgba(255, 26, 36, 0.4);
}

.sim-select option {
  background: #110d10;
  color: #fff;
}

/* Results Card Styling */
.result-header {
  border-bottom: 1px solid rgba(255, 26, 36, 0.18);
  padding-bottom: 20px;
  margin-bottom: 24px;
}

.status-pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.status-pill.badge-simplified {
  background: rgba(46, 204, 113, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.4);
}

.status-pill.badge-standard {
  background: rgba(255, 170, 0, 0.15);
  color: #ffaa00;
  border: 1px solid rgba(255, 170, 0, 0.4);
}

.status-pill.badge-danger, .status-pill.badge-high {
  background: rgba(255, 26, 36, 0.2);
  color: var(--red-vibrant);
  border: 1px solid var(--red-primary);
  box-shadow: 0 0 12px rgba(255, 26, 36, 0.35);
}

.result-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.result-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.result-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 26, 36, 0.08);
  border: 1px dashed var(--border-subtle);
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 24px;
}

.result-meta-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.result-meta-value {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.measures-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 700;
}

.measures-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
}

.measures-list::-webkit-scrollbar {
  width: 5px;
}
.measures-list::-webkit-scrollbar-thumb {
  background: var(--red-deep);
  border-radius: 4px;
}

.measure-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 6, 8, 0.6);
  border: 1px solid rgba(255, 26, 36, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  transition: var(--transition-fast);
}

.measure-item:hover {
  border-color: var(--border-active);
  background: rgba(24, 12, 16, 0.8);
}

.measure-icon {
  font-size: 1.2rem;
  margin-right: 12px;
}

.measure-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.measure-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.measure-ref {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.measure-tag {
  font-size: 0.65rem;
  font-weight: 700;
  background: rgba(255, 26, 36, 0.2);
  color: var(--red-vibrant);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.btn-whatsapp-full {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  transition: var(--transition-smooth);
}

.btn-whatsapp-full:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.5);
  filter: brightness(1.1);
}

/* ==========================================================================
   SERVICES SECTION (CARDS WITH RED GLOW & HAZARD DETAILS)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px 28px;
  position: relative;
  transition: var(--transition-smooth);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-active);
  box-shadow: var(--red-glow), 0 15px 30px rgba(0, 0, 0, 0.9);
}

.service-card:hover::after {
  background: linear-gradient(90deg, transparent, var(--red-primary), transparent);
}

.service-icon-box {
  width: 60px;
  height: 60px;
  background: rgba(255, 26, 36, 0.12);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: var(--transition-smooth);
}

.service-card:hover .service-icon-box {
  background: var(--red-primary);
  box-shadow: 0 0 20px rgba(255, 26, 36, 0.7);
  transform: scale(1.08);
}

.service-icon-box svg {
  width: 30px;
  height: 30px;
  fill: var(--red-vibrant);
  transition: var(--transition-fast);
}

.service-card:hover .service-icon-box svg {
  fill: #fff;
}

.service-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.service-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.service-norm-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--red-accent);
  font-weight: 600;
}

.service-learn-more {
  font-size: 0.8rem;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition-fast);
}

.service-learn-more:hover {
  color: var(--red-vibrant);
  transform: translateX(3px);
}

/* ==========================================================================
   INTERACTIVE BLUEPRINT SHOWCASE (TECHNICAL TOUR)
   ========================================================================== */
.blueprint-section {
  background: radial-gradient(circle at 50% 50%, rgba(20, 10, 14, 0.85) 0%, var(--bg-black) 80%);
  border-top: 1px solid rgba(255, 26, 36, 0.15);
}

.blueprint-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.blueprint-viewport {
  position: relative;
  background: #080608;
  border: 1px solid var(--border-active);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 0 35px rgba(255, 26, 36, 0.25), 0 20px 40px rgba(0, 0, 0, 0.9);
}

.blueprint-img {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.15) brightness(0.95);
}

/* Hotspots on image */
.blueprint-hotspot {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 26, 36, 0.35);
  border: 2px solid var(--red-vibrant);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  box-shadow: 0 0 15px rgba(255, 26, 36, 0.8);
}

.blueprint-hotspot::before {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px #fff;
}

.blueprint-hotspot::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid var(--red-vibrant);
  animation: pulseRing 1.8s infinite cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.blueprint-hotspot.active {
  background: var(--red-vibrant);
  border-color: #fff;
  box-shadow: 0 0 25px rgba(255, 50, 50, 1);
  transform: scale(1.15);
}

/* Positioning of hotspots */
.hotspot-sprinkler { top: 28%; left: 78%; }
.hotspot-staircase { top: 48%; left: 84%; }
.hotspot-alarm { top: 42%; left: 24%; }
.hotspot-pump { top: 76%; left: 58%; }

/* Detail Sidebar */
.blueprint-details {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 36px;
  backdrop-filter: blur(16px);
}

.blueprint-badge {
  display: inline-block;
  background: rgba(255, 26, 36, 0.15);
  color: var(--red-vibrant);
  border: 1px solid var(--border-subtle);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.blueprint-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.3;
}

.blueprint-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.blueprint-norm-box {
  background: rgba(10, 6, 8, 0.8);
  border-left: 3px solid var(--red-primary);
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #ff8088;
  margin-bottom: 28px;
}

.hotspot-nav-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hotspot-btn-select {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 12, 15, 0.6);
  border: 1px solid rgba(255, 26, 36, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  text-align: left;
}

.hotspot-btn-select:hover {
  background: rgba(30, 16, 20, 0.8);
  color: #fff;
  border-color: var(--border-active);
}

/* ==========================================================================
   METODOLOGIA / 5 ETAPAS DE APROVAÇÃO
   ========================================================================== */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

.timeline-step {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px 20px;
  position: relative;
  transition: var(--transition-smooth);
  backdrop-filter: blur(10px);
}

.timeline-step:hover {
  border-color: var(--border-active);
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(255, 26, 36, 0.2);
}

.step-number {
  font-family: var(--font-mono);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--red-vibrant);
  line-height: 1;
  margin-bottom: 16px;
  text-shadow: 0 0 15px rgba(255, 30, 40, 0.5);
}

.step-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   PROJECTS / GALLERY SHOWCASE
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.gallery-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
  transition: var(--transition-smooth);
}

.gallery-card:hover {
  transform: translateY(-6px);
  border-color: var(--red-vibrant);
  box-shadow: var(--red-glow), 0 20px 40px rgba(0, 0, 0, 0.9);
}

.gallery-img-wrapper {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.gallery-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-img-wrapper img {
  transform: scale(1.08);
}

.gallery-overlay-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(10, 6, 8, 0.85);
  border: 1px solid var(--border-subtle);
  color: var(--red-vibrant);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
}

.gallery-content {
  padding: 24px;
}

.gallery-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.gallery-meta {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 12px;
  display: flex;
  gap: 16px;
}

.gallery-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   TESTIMONIALS & TRUST BADGES
   ========================================================================== */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.trust-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px;
  backdrop-filter: blur(12px);
  position: relative;
}

.trust-stars {
  color: #ff9900;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.trust-quote {
  font-size: 0.95rem;
  color: #e3dce0;
  line-height: 1.6;
  margin-bottom: 24px;
  font-style: italic;
}

.trust-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red-primary), #20080c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  border: 1.5px solid var(--border-active);
}

.author-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.author-role {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   FAQ SECTION
   ========================================================================== */
.faq-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-item.active {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.7);
}

.faq-question {
  width: 100%;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 22px 28px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  width: 24px;
  height: 24px;
  color: var(--red-vibrant);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 28px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==========================================================================
   CONTACT SECTION
   ========================================================================== */
.contact-section {
  background: linear-gradient(180deg, var(--bg-black) 0%, rgba(20, 10, 14, 0.95) 100%);
  border-top: 1px solid rgba(255, 26, 36, 0.2);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(16px);
}

.contact-direct-items {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 32px;
}

.contact-direct-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.direct-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background: rgba(255, 26, 36, 0.15);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-vibrant);
  font-size: 1.3rem;
}

.direct-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 1px;
}

.direct-value {
  font-size: 1.05rem;
  font-weight: 600;
  color: #fff;
}

.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 40px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.form-input, .form-textarea {
  width: 100%;
  background: rgba(10, 6, 8, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition-fast);
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--red-vibrant);
  box-shadow: 0 0 12px rgba(255, 26, 36, 0.4);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.btn-submit-form {
  width: 100%;
  background: linear-gradient(135deg, var(--red-primary) 0%, #a8000c 100%);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 15px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  box-shadow: var(--red-glow);
  transition: var(--transition-smooth);
}

.btn-submit-form:hover {
  background: linear-gradient(135deg, var(--red-vibrant) 0%, #c4000e 100%);
  box-shadow: var(--red-glow-intense);
  transform: translateY(-2px);
}

.form-feedback {
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
}

.form-feedback.error {
  color: #ff4d4d;
}

.form-feedback.success {
  color: #2ecc71;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #020203;
  border-top: 1px solid rgba(255, 26, 36, 0.18);
  padding: 60px 0 30px 0;
  position: relative;
  z-index: 2;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 16px;
  max-width: 380px;
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  letter-spacing: 1px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--red-vibrant);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (WITH RED EMBER PULSE)
   ========================================================================== */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #ff1a24 0%, #25d366 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  box-shadow: 0 0 25px rgba(255, 26, 36, 0.7), 0 8px 20px rgba(0, 0, 0, 0.8);
  border: 2px solid #fff;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 0 40px rgba(255, 40, 50, 0.95), 0 10px 25px rgba(0, 0, 0, 0.9);
}

.floating-whatsapp-btn svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title, .hero-phase-title {
    font-size: 2.6rem;
  }
  .hero-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .stat-item:nth-child(2)::after {
    display: none;
  }
  .services-grid, .gallery-grid, .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .blueprint-container, .sim-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  .timeline-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 72px;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: rgba(8, 6, 8, 0.98);
    flex-direction: column;
    padding: 30px;
    gap: 20px;
    border-bottom: 1px solid var(--border-active);
    transform: translateY(-150%);
    transition: transform 0.4s ease;
    backdrop-filter: blur(20px);
  }
  .nav-menu.open {
    transform: translateY(0);
  }
  .smoke-fx-control {
    display: none;
  }
  .hero-scroll-track {
    height: 240vh;
    height: 240svh;
  }
  .hero-content-container {
    top: calc(var(--header-height) + 56px);
    bottom: 100px;
  }
  .hero-phase,
  .hero-phase.phase-2,
  .hero-phase.phase-3 {
    left: 24px;
    right: 24px;
    width: auto;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    transform-origin: center;
  }
  .phase-2 .phase-tech-pills,
  .phase-3 .hero-cta-group {
    justify-content: center;
  }
  .hero-phase .hero-phase-desc,
  .hero-phase .hero-description {
    margin-left: auto;
    margin-right: auto;
  }
  .phase-3 .hero-stats-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 14px;
  }
  .phase-3 .stat-item:not(:last-child)::after {
    display: none;
  }
  .hero-scene-nav {
    right: 50%;
    bottom: max(18px, env(safe-area-inset-bottom));
    transform: translateX(50%);
    gap: 6px;
  }
  .hero-scene-nav > span {
    width: 20px;
  }
  .hero-title, .hero-phase-title, .phase-3 .hero-phase-title {
    max-width: 24ch;
    margin-inline: auto;
    font-size: clamp(1.6rem, 5.8vw, 2.25rem);
    line-height: 1.2;
  }
  .hero-description, .hero-phase-desc {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  .hero-scroll-badge-indicator {
    top: calc(var(--header-height) + 8px);
    right: 14px;
    padding: 4px 10px;
    font-size: 0.65rem;
  }
  .live-scroll-status {
    font-size: 0.65rem;
    letter-spacing: 0.8px;
  }
  .scroll-time-counter {
    font-size: 0.65rem;
    padding-left: 6px;
  }
  .hero-cta-group {
    gap: 12px;
    margin-bottom: 20px;
  }
  .btn-primary-hero, .btn-secondary-hero {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    font-size: 0.9rem;
  }
  .tech-pill {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
  .hero-scroll-cue {
    margin-top: 18px;
  }
  .hero-stats-bar {
    grid-template-columns: 1fr;
    padding: 16px 20px;
  }
  .counter-val {
    font-size: 1.6rem;
  }
  .stat-item:not(:last-child)::after {
    display: none;
  }
  .services-grid, .gallery-grid, .trust-grid, .timeline-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

@media (max-height: 720px) and (min-width: 769px) {
  .hero-title, .hero-phase-title {
    font-size: clamp(2rem, 5vh, 2.8rem);
  }
  .hero-badge {
    margin-bottom: 14px;
  }
  .hero-description, .hero-phase-desc {
    font-size: 1rem;
    margin-bottom: 18px;
  }
  .hero-scroll-cue {
    margin-top: 12px;
  }
  .hero-cta-group {
    margin-bottom: 16px;
  }
  .counter-val {
    font-size: 1.7rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-scroll-track.motion-reduced {
    height: auto;
    padding: 0;
  }
  .hero-scroll-track.motion-reduced .hero-sticky-stage {
    position: relative;
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding: calc(var(--header-height) + 44px) 0 44px;
  }
  .hero-scroll-track.motion-reduced .hero-video-wrapper {
    position: absolute;
    inset: 0;
    min-height: 100%;
    opacity: 0.35;
  }
  .hero-scroll-track.motion-reduced #hero-frame-canvas {
    display: none;
  }
  .hero-scroll-track.motion-reduced .hero-video-vignette,
  .hero-scroll-track.motion-reduced .hero-video-overlay {
    position: absolute;
    inset: 0;
  }
  .hero-scroll-track.motion-reduced .scrollmotion-progress-bar,
  .hero-scroll-track.motion-reduced .hero-scroll-badge-indicator,
  .hero-scroll-track.motion-reduced .hero-scene-nav,
  .hero-scroll-track.motion-reduced .hero-scroll-cue {
    display: none;
  }
  .hero-scroll-track.motion-reduced .hero-content-container {
    position: relative;
    top: auto;
    bottom: auto;
    height: auto;
  }
  .hero-scroll-track.motion-reduced .hero-phase,
  .hero-scroll-track.motion-reduced .hero-phase.phase-1 {
    position: relative;
    top: auto;
    left: auto;
    width: min(100%, 980px);
    max-width: 980px;
    margin: 0 auto;
    padding: 36px 24px;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue *,
  .pulse-dot,
  .scroll-arrow {
    animation: none !important;
  }
}
