/* ==========================================================================
   Homepage
   ========================================================================== */

/* ---- Hero ---- */
.hero { position: relative; overflow: hidden; background:
  radial-gradient(120% 90% at 80% -10%, var(--teal-700) 0%, var(--teal-900) 55%, #04282d 100%);
  color: #eafafb; padding-block: clamp(3rem, 2rem + 6vw, 7rem) clamp(3.5rem,2rem+5vw,6rem); }
.hero .wrap { position: relative; z-index: 2; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1240px) { .hero .wrap { grid-template-columns: 1fr 1.15fr; gap: 3rem; } }
.hero__eyebrow { color: var(--teal-300); }
.hero h1 { color: #fff; margin-top: 1rem; }
.hero h1 .flare { color: var(--accent); }
.hero p.lede { color: #bfe0e3; margin-top: 1.2rem; }
.hero p.lede strong { color: #fff; font-weight: 700; }
.hero__cta { margin-top: 2rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.hero__trust { margin-top: 2rem; display: flex; gap: 1.4rem; flex-wrap: wrap; align-items: center; color: #9fc6c9; font-size: var(--step--1); font-family: var(--font-display); }
.hero__trust b { color: #fff; }

/* ==========================================================================
   Contaminant system — central planet + 3 info cards (hero)
   MOBILE-FIRST: default = safe stacked column (never overlaps).
   Orbit layout is opt-IN only at >=1240px where there's real room.
   ========================================================================== */
.system { position: relative; width: 100%; max-width: 460px; margin-inline: auto;
  display: flex; flex-direction: column; align-items: center; gap: 1rem; }

.system__rings { display: none; }              /* rings only shown in orbit mode */
.system__ring { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  border-radius: 50%; border: 1px solid rgba(126,196,204,.18); }
.system__ring--1 { width: 88%; height: 88%; }
.system__ring--2 { width: 66%; height: 66%; border-color: rgba(126,196,204,.14); }
.system__ring--3 { width: 44%; height: 44%; border-color: rgba(126,196,204,.10); }

/* Central planet */
.system__core { position: relative; width: 150px; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center; text-align: center; flex: 0 0 auto;
  background: radial-gradient(circle at 34% 28%, var(--teal-500) 0%, var(--teal-700) 55%, var(--teal-900) 100%);
  box-shadow: 0 24px 70px rgba(0,0,0,.45), inset 0 0 40px rgba(0,0,0,.25),
              0 0 0 8px rgba(58,169,201,.06), 0 0 60px rgba(58,169,201,.25); }
.system__core-mark { position: absolute; width: 84%; height: 84%; object-fit: contain; opacity: .22; }
.system__core-label { position: relative; z-index: 1; font-family: var(--font-display); font-weight: 800;
  color: #fff; letter-spacing: .04em; line-height: 1.02; font-size: 1.25rem; text-shadow: 0 2px 10px rgba(0,0,0,.5); }

/* Info cards — full-width stacked by default */
.sys-card { position: relative; width: 100%; max-width: 420px;
  background: rgba(10,32,38,.72); backdrop-filter: blur(6px);
  border: 1px solid rgba(126,196,204,.18); border-radius: 16px; padding: 1rem 1.05rem;
  box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.sys-card__node { display: none; position: absolute; width: 11px; height: 11px; border-radius: 50%;
  background: var(--teal-300); box-shadow: 0 0 0 4px rgba(126,196,204,.18), 0 0 14px rgba(126,196,204,.6); }

.sys-card__head { display: flex; align-items: center; gap: .6rem; }
.sys-card__icon { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; background: rgba(58,169,201,.16); color: var(--teal-300); }
.sys-card__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; }
.sys-card__titles { display: flex; flex-direction: column; line-height: 1.15; }
.sys-card__eyebrow { font-family: var(--font-display); font-weight: 700; font-size: .82rem; color: var(--teal-300); }
.sys-card__title { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: #fff; }
.sys-card__desc { margin-top: .55rem; font-size: .82rem; line-height: 1.5; color: #bfe0e3;
  border-top: 1px solid rgba(126,196,204,.14); padding-top: .55rem; }

/* ---- Opt-IN orbit layout: only when there is genuinely enough room ---- */
@media (min-width: 1240px){
  .system { max-width: 640px; aspect-ratio: 1 / .9; display: block; }
  .system__rings { display: block; position: absolute; inset: 0; z-index: 0; }
  .system__core { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
    width: 30%; z-index: 2; }
  .system__core-label { font-size: 1.7rem; }
  .sys-card { position: absolute; z-index: 3; width: 250px; max-width: none; }
  .sys-card__node { display: block; }
  .sys-card--tl { top: 0;    left: -2%; }
  .sys-card--tl .sys-card__node { right: -6px; bottom: 20px; }
  .sys-card--r  { top: 30%;  right: -4%; }
  .sys-card--r  .sys-card__node { left: -6px; top: 26px; }
  .sys-card--b  { bottom: 0;  left: 24%; }
  .sys-card--b  .sys-card__node { left: 50%; top: -6px; transform: translateX(-50%); }
}

/* ---- Trust strip ---- */
.logos-strip { background: var(--mist); border-bottom: 1px solid var(--line); }
.logos-strip .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: center; padding-block: 1.6rem; }
.logos-strip__label { font-family: var(--font-display); font-size: var(--step--1); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.logos-strip__badges { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; align-items: center; justify-content: center; }
.logos-strip__badges a { display: block; transition: transform .15s ease, opacity .15s ease; }
.logos-strip__badges a:hover { transform: translateY(-2px); }
.logos-strip__badges img { height: 54px; width: auto; }

/* ---- Section headers ---- */
.sec-head { max-width: 62ch; margin-bottom: 2.5rem; }
.sec-head.center { margin-inline: auto; }

/* ---- Service cards ---- */
.cards { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.8rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--teal-300); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--teal-50); color: var(--teal-600);
  display: grid; place-items: center; margin-bottom: 1.1rem; }
.card__icon svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.card h3 { font-size: var(--step-1); }
.card p { color: var(--slate); font-size: .96rem; margin-top: .5rem; flex: 1; }
.card__link { margin-top: 1.1rem; font-family: var(--font-display); font-weight: 600; color: var(--teal-600); display: inline-flex; align-items: center; gap: .4em; }
.card:hover .card__link { gap: .7em; }

/* ---- Before/After ---- */
.ba { display: grid; gap: var(--gap); grid-template-columns: 1fr; }
@media (min-width: 720px){ .ba { grid-template-columns: 1fr 1fr; } }
.ba__item { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.ba__item img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.ba__tag { position: absolute; top: 1rem; left: 1rem; background: rgba(6,52,58,.85); color: #fff; font-family: var(--font-display);
  font-weight: 600; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; padding: .4rem .8rem; border-radius: 999px; backdrop-filter: blur(4px); }
.ba__tag--after { background: var(--accent); color: var(--teal-900); }

/* ---- Steps ---- */
.steps { counter-reset: step; display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); }
.step { position: relative; padding-top: 1rem; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-display); font-weight: 700;
  font-size: 2.4rem; color: var(--teal-100); line-height: 1; display: block; margin-bottom: .6rem; }
.step h3 { font-size: var(--step-1); }
.step p { color: var(--slate); font-size: .95rem; margin-top: .4rem; }

/* ---- Stats ---- */
.stats { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(160px,1fr)); text-align: center; }
.stat__num { font-family: var(--font-display); font-weight: 700; font-size: var(--step-3); color: #fff; line-height: 1; }
.stat__label { color: #9fc6c9; font-size: var(--step--1); margin-top: .5rem; }

/* ---- Areas ---- */
.areas { display: flex; flex-wrap: wrap; gap: .7rem; }
.area-chip { border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; font-family: var(--font-display);
  font-weight: 500; font-size: .92rem; color: var(--ink); background: #fff; transition: .15s; }
.area-chip:hover { background: var(--teal-600); color: #fff; border-color: var(--teal-600); }

/* ---- Reviews ---- */
.reviews { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; }
.review__stars { color: var(--accent); letter-spacing: 2px; }
.review p { margin-top: .8rem; color: var(--ink); }
.review__who { margin-top: 1rem; font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--slate); }

/* scroll reveal — only hides when JS is present (.js hook on <html>), so
   content stays visible for no-JS users and crawlers. */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ==========================================================================
   Video section (click-to-play facade — keeps page fast)
   ========================================================================== */
.video-sec { background: var(--teal-900); }
.video-sec .sec-head h2, .video-sec .sec-head .lede { color:#fff; }
.video-sec .sec-head .lede { color:#bfe0e3; }
  position: relative; width: 100%; max-width: 920px; margin: 2rem auto 0;
  aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; box-shadow: var(--shadow-lg); background:#04282d;
  background-size: cover; background-position: center;
}
  content:""; position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(6,52,58,.1), rgba(6,52,58,.55));
}
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  width:84px; height:84px; border-radius:50%; background:var(--accent);
  display:grid; place-items:center; transition:.2s; box-shadow:0 8px 30px rgba(0,0,0,.4); z-index:2;
}
  position:absolute; bottom:1.2rem; left:1.4rem; z-index:2; color:#fff;
  font-family:var(--font-display); font-weight:600; font-size:var(--step-1);
  text-shadow:0 2px 12px rgba(0,0,0,.5); max-width:70%;
}

/* ==========================================================================
   Three air-quality planets section
   ========================================================================== */
.planets-sec { background: var(--mist); }
.planets { display: grid; gap: 2rem; grid-template-columns: repeat(3, 1fr); margin-top: 1rem; }
@media (max-width: 860px){ .planets { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.planet-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.planet-viz { width: 100%; max-width: 240px; margin-inline: auto; }
.planet-svg { width: 100%; height: auto; overflow: visible; }
.planet-img { width: 100%; height: auto; display: block; filter: drop-shadow(0 12px 28px rgba(0,0,0,.28)); }

/* Gentle planet float + slow particle drift; nothing overlaps because each planet is separate */
.planet-svg, .planet-img { animation: planetFloat 7s ease-in-out infinite; }
.planet-card:nth-child(2) .planet-svg, .planet-card:nth-child(2) .planet-img { animation-delay: -2.3s; }
.planet-card:nth-child(3) .planet-svg, .planet-card:nth-child(3) .planet-img { animation-delay: -4.6s; }
@keyframes planetFloat { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } }

.planets-cfm { max-width: 52ch; color: var(--slate); font-size: .95rem; line-height: 1.55; }
.planets-cfm strong { color: var(--teal-700); font-family: var(--font-display); font-weight: 700; }

.planet-particles { animation: particleDrift 9s ease-in-out infinite; transform-origin: 110px 110px; }
@keyframes particleDrift { 0%,100%{ transform: rotate(-4deg); } 50%{ transform: rotate(4deg); } }

.planet-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; margin-top: 1rem; color: var(--ink); letter-spacing: -.01em; }
.planet-sub { font-family: var(--font-display); font-weight: 600; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-600); margin-top: .2rem; }
.planet-desc { color: var(--slate); font-size: .95rem; line-height: 1.55; margin-top: .8rem; max-width: 34ch; }
.planet-link { display: inline-block; margin-top: 1rem; font-family: var(--font-display); font-weight: 600; font-size: .9rem; color: var(--teal-600); text-decoration: none; transition: color .15s, transform .15s; }
.planet-link:hover { color: var(--teal-700); transform: translateX(3px); }

@media (prefers-reduced-motion: reduce){
  .planet-svg, .planet-img, .planet-particles { animation: none; }
}
