/* ==========================================================================
   HYGI Air — 3D depth, tilt, glass, parallax & scroll-reveal polish.
   Loaded AFTER style.css/animations.css/responsive.css so rules here win.
   Everything is additive: removing this file restores the original look.
   ========================================================================== */

/* ----- Global 3D context ----- */
:root {
  --tilt-max: 8deg;
  --depth-lift: -8px;
  --glow-green: 0 24px 60px -22px rgba(22, 163, 74, 0.45);
  --glass-bg: rgba(255, 255, 255, 0.72);
  --glass-border: rgba(255, 255, 255, 0.55);
  --mesh-1: radial-gradient(
    40% 40% at 12% 18%,
    rgba(34, 197, 94, 0.18) 0%,
    transparent 60%
  );
  --mesh-2: radial-gradient(
    45% 45% at 88% 14%,
    rgba(74, 222, 128, 0.16) 0%,
    transparent 60%
  );
  --mesh-3: radial-gradient(
    50% 50% at 50% 100%,
    rgba(22, 163, 74, 0.12) 0%,
    transparent 60%
  );
}

html {
  overflow-x: clip;
}
body {
  perspective: 1600px;
  perspective-origin: 50% 35%;
  overflow-x: clip;
}

/* ----- Animated mesh-gradient page background (clipped to viewport) ----- */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--mesh-1), var(--mesh-2), var(--mesh-3);
  background-size: 120% 120%;
  filter: blur(40px) saturate(120%);
  z-index: -1;
  animation: meshDrift 24s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes meshDrift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(-2%, 1%, 0) rotate(2deg);
  }
  100% {
    transform: translate3d(2%, -1%, 0) rotate(-2deg);
  }
}

/* ----- Floating orbs in alt section for depth ----- */
.section--alt {
  position: relative;
  overflow: hidden;
}
.section--alt::before,
.section--alt::after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
}
.section--alt::before {
  top: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.35), transparent 65%);
  animation: orbDrift 18s ease-in-out infinite alternate;
}
.section--alt::after {
  bottom: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(74, 222, 128, 0.3), transparent 65%);
  animation: orbDrift 22s ease-in-out -6s infinite alternate-reverse;
}
.section--alt > * {
  position: relative;
  z-index: 1;
}
@keyframes orbDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    transform: translate3d(30px, -40px, 0) scale(1.08);
  }
}

/* ============================================================
   STICKY HEADER — transparent by default, white glass on scroll.
   Stuck to top on both mobile & desktop.
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;                /* above scrim (49), above hero arrows (3) */
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition:
    background 0.3s ease,
    backdrop-filter 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease,
    padding 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(15, 23, 42, 0.08);
  box-shadow:
    0 12px 30px -18px rgba(15, 23, 42, 0.22),
    0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

/* Tighter header height when scrolled — subtle "pro" cue */
.site-header.is-scrolled .header__inner { padding-top: 2px; padding-bottom: 2px; }

.site-header .brand__logo { height: 36px; }

/* Default (transparent / over-hero): WHITE links with shadow */
.site-header:not(.is-scrolled) .nav a {
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
  font-weight: 500;
}
.site-header:not(.is-scrolled) .nav a:hover {
  color: var(--green-300);
}

/* Scrolled: DARK links */
.site-header.is-scrolled .nav a {
  color: var(--slate-700);
  text-shadow: none;
}
.site-header.is-scrolled .nav a:hover { color: var(--green-700); }
.site-header .nav a::after { background: var(--grad-green); }

/* Hamburger lines: white over hero, green when scrolled */
.site-header:not(.is-scrolled) .nav-toggle span { background: #fff; }
.site-header.is-scrolled .nav-toggle span { background: var(--green-700); }

/* ----- Header CTA button (Book a Demo) ----- */
.header__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  background: var(--grad-green);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 12px 26px -10px rgba(22, 163, 74, 0.55);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
  white-space: nowrap;
}
.header__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px -10px rgba(22, 163, 74, 0.7);
  color: #fff;
}
.header__cta svg {
  width: 16px;
  height: 16px;
}
.site-header:not(.is-scrolled) .header__cta {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* ----- Hero subtle parallax + 3D entrance ----- */
.hero {
  transform-style: preserve-3d;
}
.hero__slide {
  will-change: transform, opacity;
}
.hero__content {
  transform-style: preserve-3d;
}
.hero__content > * {
  transform-style: preserve-3d;
}
.hero__title {
  background: linear-gradient(90deg, #fff 0%, #fff 25%, #22c55e 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: none;
  filter: drop-shadow(0 0 18px rgba(34, 197, 94, 0.35));
}

/* ----- Hero AQI floating card ----- */
.hero__aqi {
  position: absolute;
  right: max(40px, var(--shell-pad));
  bottom: 130px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(34, 197, 94, 0.15) inset;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  animation:
    floatY 6s ease-in-out infinite,
    heroIn 0.9s 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  opacity: 0;
  transform: translateY(20px);
}
@keyframes floatY {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -8px;
  }
}
.hero__aqi-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero__aqi-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__aqi-status {
  font-size: 12px;
  color: var(--green-700);
  font-weight: 600;
  margin-top: 2px;
}
.hero__aqi-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 36px;
}
.hero__aqi-bars span {
  width: 6px;
  background: var(--grad-green);
  border-radius: 2px;
  animation: barPulse 1.6s ease-in-out infinite;
}
.hero__aqi-bars span:nth-child(1) {
  height: 30%;
  animation-delay: 0s;
}
.hero__aqi-bars span:nth-child(2) {
  height: 55%;
  animation-delay: 0.15s;
}
.hero__aqi-bars span:nth-child(3) {
  height: 75%;
  animation-delay: 0.3s;
}
.hero__aqi-bars span:nth-child(4) {
  height: 92%;
  animation-delay: 0.45s;
}
.hero__aqi-bars span:nth-child(5) {
  height: 70%;
  animation-delay: 0.6s;
}
@keyframes barPulse {
  0%,
  100% {
    transform: scaleY(0.85);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

/* ----- 3D Tilt cards (Features / Steps / Solutions / Why items / Info cards) ----- */
.feature,
.step,
.solution,
.why__item,
.info-card {
  transform-style: preserve-3d;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 0.45s cubic-bezier(0.2, 0.8, 0.2, 1),
    border-color 0.3s ease;
}
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt-card > * {
  transform: translateZ(20px);
  transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.tilt-card .feature__icon,
.tilt-card .step__num,
.tilt-card .solution__ico,
.tilt-card .why__item-ico,
.tilt-card .info-card__ico {
  transform: translateZ(40px);
}

/* Glass on hover */
.feature:hover,
.solution:hover,
.step:hover,
.why__item:hover {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96),
    rgba(240, 253, 244, 0.92)
  );
  border-color: rgba(34, 197, 94, 0.35);
  box-shadow:
    0 30px 60px -22px rgba(22, 163, 74, 0.35),
    0 0 0 1px rgba(34, 197, 94, 0.18) inset;
}

/* ----- Feature card: bigger lift, conic glow ring on hover ----- */
.feature {
  background: linear-gradient(180deg, #ffffff 0%, #fbfffc 100%);
}
.feature::after {
  width: 240px;
  height: 240px;
  top: -80px;
  right: -80px;
}
.feature__icon {
  background: var(--grad-green);
  position: relative;
  overflow: visible;
}
.feature__icon::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 18px;
  background: conic-gradient(from 0deg, #4ade80, #22c55e, #16a34a, #4ade80);
  z-index: -1;
  opacity: 0;
  filter: blur(8px);
  animation: ringSpin 6s linear infinite;
  transition: opacity 0.4s ease;
}
.feature:hover .feature__icon::after {
  opacity: 0.85;
}
@keyframes ringSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ----- Steps: arch wrapper that matches the reference design ----- */
.steps-arch {
  position: relative;
  margin: 0 auto;
  max-width: 1080px;
  padding: 60px 50px 50px;
  border-radius: 320px / 110px;
  border: 2px dashed rgba(34, 197, 94, 0.35);
  background: radial-gradient(
    80% 100% at 50% 0%,
    rgba(34, 197, 94, 0.06),
    transparent 70%
  );
}
.steps-arch::before,
.steps-arch::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--green-500);
  border-radius: 50%;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.18);
}
.steps-arch::before {
  top: 50%;
  left: -7px;
  transform: translateY(-50%);
}
.steps-arch::after {
  top: 50%;
  right: -7px;
  transform: translateY(-50%);
}

.steps-arch .steps {
  gap: 30px;
}
.steps-arch .step {
  background: transparent;
  border: 0;
  box-shadow: none;
  text-align: center;
  padding: 18px 14px;
}
.steps-arch .step:hover {
  transform: translateY(-6px);
  box-shadow: none;
}
.steps-arch .step__num {
  margin: 0 auto 18px;
  background: #fff;
  color: var(--green-700);
  border: 2px solid rgba(34, 197, 94, 0.35);
  box-shadow:
    0 16px 32px -14px rgba(22, 163, 74, 0.45),
    inset 0 0 0 4px rgba(34, 197, 94, 0.08);
}
.steps-arch .step:hover .step__num {
  background: var(--grad-green);
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px) rotate(-4deg);
}
.steps-arch::after,
.steps-arch::before {
  z-index: 1;
}

/* connector line behind step nums */
.steps-arch .steps::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  height: 2px;
  background: repeating-linear-gradient(
    90deg,
    rgba(34, 197, 94, 0.55) 0 8px,
    transparent 8px 16px
  );
  z-index: 0;
}

/* ----- Solutions: photo-card optional support ----- */
.solution {
  overflow: hidden;
}
.solution__photo {
  position: relative;
  width: calc(100% + 44px);
  margin: -26px -22px 14px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.solution__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.solution:hover .solution__photo img {
  transform: scale(1.06);
}
.solution__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 18, 32, 0.55));
}

/* ----- Why media: dashboard-mockup feel with floating mock chips ----- */
.why__media-card {
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.why__media:hover .why__media-card {
  transform: perspective(1400px) rotateY(-2deg) rotateX(0deg);
}
.why__media-glow {
  animation: glowPulse 6s ease-in-out infinite;
}

/* ----- CTA banner: pattern + 3D shine ----- */
.cta-banner {
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle at 1px 1px,
    rgba(255, 255, 255, 0.18) 1px,
    transparent 0
  );
  background-size: 22px 22px;
  opacity: 0.4;
  pointer-events: none;
}
.cta-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: -25%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    transparent
  );
  transform: skewX(-20deg);
  animation: shineSlide 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shineSlide {
  0% {
    left: -25%;
  }
  50% {
    left: 100%;
  }
  100% {
    left: 100%;
  }
}

/* ============================================================
   CUSTOM SELECT (cselect) — attractive industry dropdown
   ============================================================ */
.cselect {
  position: relative;
  width: 100%;
}
.cselect__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.cselect__btn:hover { border-color: var(--green-300); }
.cselect.is-open .cselect__btn,
.cselect__btn:focus-visible {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

.cselect__ico {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-green-soft);
  color: var(--green-700);
  flex-shrink: 0;
  transition: background 0.2s ease, color 0.2s ease;
}
.cselect__ico svg { width: 16px; height: 16px; }
.cselect.is-filled .cselect__ico {
  background: var(--grad-green);
  color: #fff;
}

.cselect__value {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
  color: var(--slate-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.2s ease;
}
.cselect.is-filled .cselect__value { color: var(--ink); }

.cselect__chev {
  width: 18px;
  height: 18px;
  color: var(--slate-500);
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1), color 0.2s ease;
}
.cselect.is-open .cselect__chev {
  transform: rotate(180deg);
  color: var(--green-600);
}

/* The dropdown list */
.cselect__list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  list-style: none;
  margin: 0;
  padding: 6px;
  max-height: 280px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 14px;
  box-shadow:
    0 30px 60px -20px rgba(15, 23, 42, 0.28),
    0 0 0 1px rgba(34, 197, 94, 0.06) inset;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top center;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease,
    transform 0.25s cubic-bezier(.2,.8,.2,1);
}
.cselect.is-open .cselect__list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Custom scrollbar for the list */
.cselect__list::-webkit-scrollbar { width: 6px; }
.cselect__list::-webkit-scrollbar-thumb {
  background: var(--green-200);
  border-radius: 6px;
}
.cselect__list::-webkit-scrollbar-track { background: transparent; }

/* Each option */
.cselect__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--slate-700);
  cursor: pointer;
  position: relative;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}
.cselect__opt svg {
  width: 18px;
  height: 18px;
  color: var(--green-600);
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1);
}
.cselect__opt:hover,
.cselect__opt.is-active {
  background: linear-gradient(135deg, var(--green-50), #ecfccb);
  color: var(--green-800);
}
.cselect__opt:hover svg,
.cselect__opt.is-active svg {
  transform: scale(1.1) rotate(-4deg);
}
.cselect__opt.is-selected {
  background: var(--grad-green);
  color: #fff;
}
.cselect__opt.is-selected svg { color: #fff; }
.cselect__opt.is-selected::after {
  content: "\2713";
  margin-left: auto;
  font-weight: 700;
  font-size: 16px;
}

/* Stagger reveal on open */
.cselect.is-open .cselect__opt {
  animation: optIn 0.3s cubic-bezier(.2,.8,.2,1) both;
}
.cselect.is-open .cselect__opt:nth-child(1) { animation-delay: 0.02s; }
.cselect.is-open .cselect__opt:nth-child(2) { animation-delay: 0.05s; }
.cselect.is-open .cselect__opt:nth-child(3) { animation-delay: 0.08s; }
.cselect.is-open .cselect__opt:nth-child(4) { animation-delay: 0.11s; }
.cselect.is-open .cselect__opt:nth-child(5) { animation-delay: 0.14s; }
.cselect.is-open .cselect__opt:nth-child(6) { animation-delay: 0.17s; }
.cselect.is-open .cselect__opt:nth-child(7) { animation-delay: 0.20s; }
@keyframes optIn {
  from { opacity: 0; transform: translateX(-8px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Mobile: full-width touch targets */
@media (max-width: 640px) {
  .cselect__btn { padding: 12px 13px; }
  .cselect__opt { padding: 12px 12px; font-size: 15px; }
  .cselect__list { max-height: 320px; }
}

/* ----- Contact form: glass + lift ----- */
.contact__form {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98),
    rgba(247, 254, 250, 0.95)
  );
  border: 1px solid rgba(34, 197, 94, 0.15);
  box-shadow:
    0 40px 80px -30px rgba(15, 23, 42, 0.25),
    0 0 0 1px rgba(34, 197, 94, 0.08) inset;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.field input,
.field select,
.field textarea {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
}

/* ----- Scroll reveal: layered 3D entrance (overrides simple slide-up) ----- */
.reveal {
  opacity: 0;
  transform: perspective(1200px) rotateX(8deg) translate3d(0, 28px, -40px);
  transition:
    opacity 0.9s ease,
    transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.is-visible {
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) translate3d(0, 0, 0);
}

/* ----- Buttons: 3D press ----- */
.btn--primary {
  position: relative;
  isolation: isolate;
}
.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #4ade80, #16a34a);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: -1;
}
.btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
}
.btn--primary:hover::before {
  opacity: 1;
}
.btn--primary:active {
  transform: translateY(-1px) scale(0.99);
}

/* ----- Trust strip: subtle gradient + lift on numbers ----- */
.trust {
  background:
    radial-gradient(
      60% 100% at 0% 50%,
      rgba(34, 197, 94, 0.18),
      transparent 60%
    ),
    radial-gradient(
      60% 100% at 100% 50%,
      rgba(74, 222, 128, 0.14),
      transparent 60%
    ),
    var(--ink);
  position: relative;
  overflow: hidden;
}
.trust::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 80px,
    rgba(255, 255, 255, 0.04) 80px,
    rgba(255, 255, 255, 0.04) 81px
  );
  pointer-events: none;
}
.trust__inner {
  position: relative;
}
.trust__item {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.trust__item:hover {
  transform: translateY(-4px);
}
.trust__num {
  filter: drop-shadow(0 8px 20px rgba(34, 197, 94, 0.45));
}

/* ----- Section title underline accent (title stays block; eyebrow stacks above) ----- */
.section__head .section__title::after {
  content: "";
  display: block;
  margin: 14px auto 0;
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: var(--grad-green);
  box-shadow: 0 4px 14px -2px rgba(34, 197, 94, 0.5);
}

/* ----- Back-to-top: glow ring ----- */
.to-top {
  position: fixed;
  isolation: isolate;
}
.to-top::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: var(--grad-green);
  filter: blur(14px);
  opacity: 0.55;
  z-index: -1;
  animation: glowPulse 4s ease-in-out infinite;
}

/* ============================================================
   Responsive — keep 3D effects from breaking on smaller screens
   ============================================================ */

@media (max-width: 1024px) {
  .steps-arch {
    border-radius: 200px / 80px;
    padding: 50px 30px 40px;
  }
  .steps-arch .steps::before {
    display: none;
  }
  .why__media-card {
    transform: none;
  }
}

@media (max-width: 860px) {
  :root {
    --tilt-max: 0deg;
  } /* disable mouse tilt on touch */
  .hero__aqi {
    right: max(20px, var(--shell-pad));
    bottom: 100px;
    padding: 12px 16px;
    gap: 10px;
  }
  .hero__aqi-num {
    font-size: 26px;
  }
  .hero__aqi-bars {
    height: 28px;
  }
  .hero__aqi-bars span {
    width: 5px;
  }
  .header__cta {
    display: none;
  } /* CTA lives in mobile menu */
  .nav.is-open .header__cta {
    display: inline-flex;
    margin: 12px 4px 6px;
    justify-content: center;
  }
  .steps-arch {
    border-radius: 36px;
    border-style: solid;
    border-color: rgba(34, 197, 94, 0.2);
    padding: 30px 20px;
  }
  .steps-arch::before,
  .steps-arch::after {
    display: none;
  }
  .steps-arch .steps::before {
    display: none;
  }
  .section--alt::before {
    width: 280px;
    height: 280px;
    top: -80px;
    left: -80px;
  }
  .section--alt::after {
    width: 320px;
    height: 320px;
    bottom: -100px;
    right: -100px;
  }
}

@media (max-width: 640px) {
  body::before {
    filter: blur(60px);
    opacity: 0.55;
  }
  .hero__aqi {
    right: 14px;
    bottom: 80px;
    padding: 10px 14px;
    gap: 10px;
  }
  .hero__aqi-num {
    font-size: 22px;
  }
  .hero__aqi-bars {
    height: 22px;
  }
  .hero__aqi-bars span {
    width: 4px;
  }
  .hero__aqi-label {
    font-size: 10px;
  }
  .hero__aqi-status {
    font-size: 11px;
  }

  .feature::after {
    width: 160px;
    height: 160px;
    top: -60px;
    right: -60px;
  }
  .section__head .section__title::after {
    width: 48px;
    height: 3px;
    margin-top: 10px;
  }
  .reveal {
    transform: translate3d(0, 22px, 0);
  }
  .reveal.is-visible {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 480px) {
  .hero__aqi {
    display: none;
  } /* hero already busy on tiny screens */
}

/* ============================================================
   MOBILE HEADER POLISH
   Fixes invisible-link bug (white-on-white) and elevates UX.
   ============================================================ */
@media (max-width: 860px) {
  /* Scrolled state gets a deeper shadow on mobile */
  .site-header.is-scrolled {
    box-shadow:
      0 12px 28px -16px rgba(15, 23, 42, 0.28),
      0 1px 0 rgba(255, 255, 255, 0.6) inset;
  }

  /* Hamburger chip — transparent over hero, green-tinted when scrolled */
  .nav-toggle {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition:
      background 0.25s ease,
      border-color 0.25s ease,
      transform 0.2s ease;
  }
  .site-header.is-scrolled .nav-toggle {
    background: var(--green-50);
    border-color: var(--green-100);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .nav-toggle:hover { transform: scale(1.05); }
  .nav-toggle span {
    width: 20px;
    height: 2.5px;
    border-radius: 3px;
  }
  .nav-toggle[aria-expanded="true"] {
    background: var(--green-600) !important;
    border-color: var(--green-600) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  .nav-toggle[aria-expanded="true"] span { background: #fff !important; }

  /* Premium dropdown */
  .nav.is-open {
    top: var(--header-h);
    padding: 14px var(--shell-pad) 22px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 50px -20px rgba(15, 23, 42, 0.35);
    animation: navSlide 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  @keyframes navSlide {
    from { opacity: 0; transform: translateY(-12px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  /* HIGH-SPECIFICITY override: kill the "over-dark-hero" white text
     that was making links invisible on the white dropdown */
  .site-header .nav.is-open a,
  .site-header:not(.is-scrolled) .nav.is-open a {
    width: 100%;
    padding: 14px 14px;
    margin: 0;
    border: 0;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink) !important;
    text-shadow: none !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  }
  .site-header .nav.is-open a + a {
    border-top: 1px solid var(--slate-100);
  }
  .site-header .nav.is-open a::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-300);
    opacity: 0;
    margin-right: 10px;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .site-header .nav.is-open a::after {
    content: "\2192";  /* arrow */
    font-size: 18px;
    color: var(--slate-400);
    transition: transform 0.25s ease, color 0.25s ease;
  }
  .site-header .nav.is-open a:hover,
  .site-header .nav.is-open a:active {
    background: var(--green-50);
    color: var(--green-700) !important;
    transform: translateX(4px);
  }
  .site-header .nav.is-open a:hover::before {
    opacity: 1;
  }
  .site-header .nav.is-open a:hover::after {
    color: var(--green-600);
    transform: translateX(4px);
  }

  /* Staggered link entrance */
  .nav.is-open a {
    opacity: 0;
    transform: translateX(-8px);
    animation: linkIn 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  }
  .nav.is-open a:nth-child(1) { animation-delay: 0.05s; }
  .nav.is-open a:nth-child(2) { animation-delay: 0.1s; }
  .nav.is-open a:nth-child(3) { animation-delay: 0.15s; }
  .nav.is-open a:nth-child(4) { animation-delay: 0.2s; }
  .nav.is-open a:nth-child(5) { animation-delay: 0.25s; }
  @keyframes linkIn {
    to { opacity: 1; transform: translateX(0); }
  }

  /* Backdrop scrim under the open menu (clickable to close, via JS) */
  body.nav-open::after {
    content: "";
    position: fixed;
    inset: var(--header-h) 0 0;
    background: rgba(11, 18, 32, 0.45);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 49;            /* below header (50), above content */
    animation: scrimIn 0.3s ease both;
  }
  @keyframes scrimIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
  body.nav-open { overflow: hidden; }
}

/* ----- Touch/no-hover: keep finished states visible ----- */
@media (hover: none) {
  .feature:hover {
    transform: none;
  }
  .solution:hover {
    transform: none;
  }
  .step:hover {
    transform: none;
  }
  .why__item:hover {
    transform: none;
  }
}

/* ----- Reduced motion: kill 3D animations ----- */
@media (prefers-reduced-motion: reduce) {
  body::before,
  .section--alt::before,
  .section--alt::after,
  .cta-banner::after,
  .hero__aqi,
  .to-top::before,
  .feature__icon::after {
    animation: none !important;
  }
  .reveal,
  .reveal.is-visible {
    transform: none;
  }
  .tilt-card,
  .tilt-card > * {
    transform: none !important;
  }
}
