/* ============================================================
   SastenaMonitor — product page  (prefix: .sm-*)
   Faithful 1:1 rebuild of Fairatmos /atmoswatch, Sastena green/dark theme.
   Reuses :root tokens + .s-* utilities from styles.css.
   Sections alternate dark <-> cream like the source page.
   Interactions (demo-video play toggle) live in sastenamonitor.js.
   ============================================================ */

/* local shades (page-scoped, like the .ss- and .dev- pages define their own) */
.sm-why,
.sm-gap,
.sm-values { --sm-ink: #14241b; --sm-soft: #4a5a50; --sm-ico-circle: #2f4f37; }

/* ---------- Screen-reader only ---------- */
.sm-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* SastenaMonitor logo lockup styles now live in styles.css (shared with the
   home navbar). The mark is the eye-in-viewfinder glyph: .sm-ic-base = frame
   (white), .sm-ic-accent = eye (white on the navbar, green on the page heading). */

/* ============================================================
   1. HERO  (dark, full-bleed drone-in-flight photo)
   ============================================================ */
.sm-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: var(--deep);
  display: flex;
  align-items: flex-end;
}
.sm-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 42%;
  z-index: 0;
}
.sm-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 16, 11, 0.92) 0%, rgba(8, 16, 11, 0.72) 36%, rgba(8, 16, 11, 0.30) 66%, rgba(8, 16, 11, 0.16) 100%),
    linear-gradient(180deg, rgba(11, 20, 14, 0.62) 0%, rgba(15, 26, 18, 0) 26%, rgba(15, 26, 18, 0) 46%, rgba(8, 16, 11, 0.66) 82%, rgba(8, 16, 11, 0.92) 100%);
}
.sm-hero-inner {
  position: relative; z-index: 2;
  padding-top: clamp(150px, 22vh, 280px);
  padding-bottom: clamp(48px, 8vh, 96px);
}
.sm-hero-copy { max-width: 820px; }
.sm-hero-title {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 800; line-height: 1.04; letter-spacing: -0.03em;
  color: #fff; max-width: 18ch; margin: 0 0 22px;
  text-wrap: balance;
}
.sm-hero-lede {
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 46ch; margin: 0;
}
.sm-hero-actions {
  display: flex; gap: 14px; flex-wrap: wrap;
  margin-top: clamp(28px, 5vh, 46px);
}

/* ============================================================
   2. BRIDGING THE GAP  (cream, image + copy)
   ============================================================ */
.sm-gap {
  background: var(--cream);
  padding: clamp(72px, 11vh, 124px) 0;
}
.sm-gap-title {
  text-align: center;
  font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; color: var(--deep);
  letter-spacing: -0.02em; line-height: 1.12;
  margin: 0 auto clamp(40px, 5vw, 64px); max-width: 22ch;
}
.sm-gap-grid {
  display: grid; grid-template-columns: 0.96fr 1.04fr;
  gap: clamp(28px, 4vw, 64px); align-items: center;
}
.sm-gap-media {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 30px 60px rgba(10, 18, 12, 0.20);
  background: #e9eee9;
}
.sm-gap-media img {
  display: block; width: 100%;
  height: clamp(300px, 34vw, 430px);
  object-fit: cover; object-position: center;
}
.sm-gap-copy p {
  color: var(--sm-soft); font-size: clamp(1.02rem, 1.2vw, 1.18rem); line-height: 1.75;
}
.sm-gap-copy p + p { margin-top: 22px; }
.sm-gap-copy strong { color: #1f7a3a; font-weight: 700; }

/* ============================================================
   3. WHY THIS IS MORE IMPORTANT  (cream -> forest band, 3 cards overlap)
   ============================================================ */
.sm-why {
  position: relative; overflow: hidden;
  background: var(--cream);
  padding: clamp(72px, 11vh, 120px) 0 clamp(48px, 6vw, 76px);
}
.sm-why-band {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  height: clamp(210px, 25vw, 300px);
}
.sm-why-band img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; display: block; }
.sm-why-band::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 16, 11, 0.18) 0%, rgba(8, 16, 11, 0.32) 100%);
}
.sm-why .s-container { position: relative; z-index: 2; }
.sm-why-head { text-align: center; max-width: 980px; margin: 0 auto clamp(40px, 5vw, 60px); }
.sm-why-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; color: var(--deep); letter-spacing: -0.02em; line-height: 1.12; }
.sm-why-lede { color: var(--sm-soft); font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.75; margin: 22px auto 0; max-width: 88ch; }
.sm-why-lede strong { color: var(--deep); font-weight: 700; }

.sm-why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px); align-items: stretch;
}
.sm-why-card {
  background: #fff;
  border: 1px solid rgba(10, 18, 12, 0.05);
  border-radius: var(--radius);
  padding: clamp(30px, 3vw, 44px) clamp(26px, 2.6vw, 40px) clamp(34px, 3.4vw, 48px);
  box-shadow: 0 30px 60px rgba(10, 18, 12, 0.16);
  display: flex; flex-direction: column; align-items: center;
}
.sm-why-ico {
  display: grid; place-items: center;
  width: clamp(96px, 9vw, 116px); height: clamp(96px, 9vw, 116px);
  border-radius: 50%;
  background: var(--sm-ico-circle); color: #fff;
  margin-bottom: 26px;
}
.sm-why-ico svg { width: 46%; height: 46%; display: block; }
.sm-why-card-title { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 800; color: var(--deep); text-align: center; }
.sm-why-card-rule { display: block; width: 48px; height: 2px; background: rgba(10, 18, 12, 0.16); margin: 20px 0 24px; }
.sm-why-card-text { color: var(--sm-soft); font-size: 1rem; line-height: 1.7; align-self: stretch; }
.sm-why-card-text strong { color: var(--deep); font-weight: 700; }

/* ============================================================
   4. DEMO VIDEO  (dark forest band, framed local player)
   ============================================================ */
.sm-video {
  position: relative; overflow: hidden;
  background: var(--deep-2);
  padding: clamp(72px, 11vh, 130px) 0;
}
.sm-video-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; z-index: 0; opacity: 0.5; }
.sm-video::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(8, 16, 11, 0.74) 0%, rgba(8, 16, 11, 0.6) 45%, rgba(8, 16, 11, 0.82) 100%);
}
.sm-video .s-container { position: relative; z-index: 2; }
.sm-video-player {
  position: relative;
  max-width: 980px; margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 90px rgba(3, 14, 8, 0.55);
  cursor: pointer; background: var(--deep);
}
.sm-video-el { width: 100%; height: 100%; object-fit: cover; display: block; }
.sm-video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: clamp(66px, 8vw, 92px); height: clamp(66px, 8vw, 92px);
  border-radius: 50%; background: var(--leaf); color: var(--ink);
  display: grid; place-items: center;
  box-shadow: 0 14px 36px rgba(8, 18, 12, 0.5);
  transition: transform 0.2s ease, background 0.2s ease;
}
.sm-video-play svg { width: 34%; height: 34%; margin-left: 8%; }
.sm-video-play:hover { transform: translate(-50%, -50%) scale(1.08); background: var(--leaf-2); }
.sm-video-player.is-playing .sm-video-play { opacity: 0; visibility: hidden; }
.sm-video-label {
  position: absolute; left: 18px; bottom: 16px; z-index: 2;
  color: #fff; font-size: 0.9rem; font-weight: 600;
  background: rgba(8, 18, 12, 0.5); padding: 7px 14px; border-radius: var(--pill);
  backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; gap: 8px;
}
.sm-video-label .sm-video-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); }
.sm-video-player.is-playing .sm-video-label { opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }

/* ============================================================
   5. INTRODUCING + 4 MODULES intro  (dark)
   ============================================================ */
.sm-intro {
  background: var(--deep-2);
  padding: clamp(76px, 12vh, 140px) 0 clamp(20px, 4vh, 48px);
}
.sm-intro-head { text-align: center; max-width: 1040px; margin: 0 auto; }
.sm-intro-title {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 16px;
  font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; color: #fff;
  line-height: 1.1;
}
.sm-intro-lead { color: rgba(255, 255, 255, 0.92); font-weight: 500; }
.sm-intro-rule { display: block; width: 90px; height: 2px; background: rgba(255, 255, 255, 0.22); margin: clamp(20px, 3vw, 30px) auto 0; }
.sm-intro-lede {
  font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.75;
  color: rgba(255, 255, 255, 0.78); margin: clamp(22px, 3vw, 32px) auto 0; max-width: 92ch;
}
.sm-intro-lede strong { color: #fff; font-weight: 700; }

.sm-modules-head { margin: clamp(60px, 9vh, 120px) 0 0; }
.sm-modules-h2 {
  font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; color: #fff;
  letter-spacing: -0.025em; line-height: 1.06; max-width: 20ch;
}
.sm-modules-sub {
  color: rgba(255, 255, 255, 0.74); font-size: clamp(1rem, 1.2vw, 1.12rem); line-height: 1.7;
  margin-top: 20px; max-width: 62ch;
}
.sm-modules-sub strong { color: #fff; font-weight: 700; }

/* ============================================================
   6. 4 MODULE BANNERS  (dark, full-width stacked banners)
   ============================================================ */
.sm-modules {
  background: var(--deep-2);
  padding: clamp(36px, 5vw, 64px) 0 clamp(76px, 11vh, 130px);
}
.sm-module-list { display: flex; flex-direction: column; gap: clamp(26px, 3.4vw, 46px); }
.sm-module {
  position: relative; isolation: isolate;
  display: flex; align-items: stretch;
  min-height: clamp(300px, 30vw, 360px);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
}
.sm-module-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.sm-module::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(8, 18, 12, 0.12) 0%, rgba(8, 18, 12, 0.34) 28%, rgba(8, 18, 12, 0.80) 52%, rgba(11, 20, 14, 0.92) 100%);
}
.sm-module-content {
  position: relative; z-index: 2;
  margin-left: auto; width: min(66%, 860px);
  display: flex; align-items: center; gap: clamp(22px, 3vw, 46px);
  padding: clamp(26px, 3vw, 46px);
}
.sm-module-text { flex: 1 1 0; min-width: 0; }
.sm-module-num { display: block; color: var(--leaf); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 800; line-height: 1; margin-bottom: 6px; }
.sm-module-title { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.8rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.02em; }
.sm-module-label { display: block; margin-top: 8px; color: rgba(255, 255, 255, 0.82); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.sm-module-rule { display: block; width: 100%; max-width: 280px; height: 1px; background: rgba(255, 255, 255, 0.28); margin: clamp(16px, 2vw, 22px) 0; }
.sm-module-desc { color: rgba(255, 255, 255, 0.92); font-size: clamp(0.96rem, 1.1vw, 1.06rem); font-weight: 600; line-height: 1.55; max-width: 32ch; }

/* the bordered translucent feature box (3 icon-cols + chips) */
.sm-module-feature {
  flex: 0 0 auto; width: clamp(248px, 35%, 348px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  padding: clamp(16px, 1.5vw, 22px);
  background: rgba(8, 18, 12, 0.32);
  backdrop-filter: blur(3px);
}
.sm-feature-icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px 8px; align-items: start; }
.sm-feature-icons--2 { grid-template-columns: repeat(2, 1fr); justify-content: start; }
.sm-feature-ico { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; min-width: 0; }
.sm-feature-ico svg { width: 28px; height: 28px; color: #fff; display: block; }
.sm-feature-ico-label { width: 100%; overflow-wrap: break-word; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.02em; line-height: 1.32; color: rgba(255, 255, 255, 0.9); text-transform: uppercase; }
.sm-feature-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: clamp(16px, 1.6vw, 22px); }
.sm-chip {
  font-size: 0.7rem; font-weight: 600; color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(127, 229, 143, 0.55);
  border-radius: var(--pill); padding: 5px 12px; white-space: nowrap;
}

/* ============================================================
   7. OUR VALUES  (cream, 3 image+text tiles)
   ============================================================ */
.sm-values { background: var(--cream); padding: clamp(72px, 11vh, 124px) 0; }
.sm-values-title { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; color: var(--deep); letter-spacing: -0.02em; margin-bottom: clamp(34px, 4vw, 52px); }
.sm-values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); align-items: start; }
.sm-value-media {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 50px rgba(10, 18, 12, 0.18);
  background: #11161a;
}
.sm-value-media img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.sm-value-title { margin-top: 24px; font-size: clamp(1.2rem, 1.7vw, 1.5rem); font-weight: 800; color: var(--deep); }
.sm-value-desc { margin-top: 12px; color: var(--sm-soft); font-size: clamp(1rem, 1.1vw, 1.08rem); line-height: 1.6; max-width: 34ch; }

/* ============================================================
   8. FINAL CTA  (dark, wave-line texture)
   ============================================================ */
.sm-cta {
  position: relative; overflow: hidden;
  background: var(--deep-2);
  padding: clamp(90px, 15vh, 168px) 0;
}
.sm-cta-waves {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(150% 160% at 80% 18%, #000 0%, transparent 78%);
          mask-image: radial-gradient(150% 160% at 80% 18%, #000 0%, transparent 78%);
  opacity: 0.85;
}
.sm-cta-waves svg { width: 100%; height: 100%; }
.sm-cta-waves path { fill: none; stroke: rgba(127, 229, 143, 0.22); stroke-width: 1; }
.sm-cta-inner { position: relative; z-index: 2; text-align: center; }
.sm-cta-title { font-size: clamp(2rem, 4.6vw, 3.5rem); font-weight: 800; color: #fff; line-height: 1.12; letter-spacing: -0.02em; }
.sm-cta-title .sm-cta-line { display: block; }
.sm-cta-lede { color: rgba(255, 255, 255, 0.78); max-width: 56ch; margin: clamp(22px, 3vw, 32px) auto 0; line-height: 1.7; }
.sm-cta-lede strong { color: #fff; font-weight: 700; }

.sm-cta-cols {
  display: grid; grid-template-columns: 1fr 1px 1fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
  max-width: 880px; margin: clamp(40px, 6vw, 64px) auto 0;
}
.sm-cta-divider { width: 1px; height: 100%; min-height: 120px; background: rgba(255, 255, 255, 0.16); justify-self: center; }
.sm-cta-col { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.sm-cta-col-text { color: rgba(255, 255, 255, 0.78); line-height: 1.6; }
.sm-cta-col-text strong { color: #fff; font-weight: 700; }
.sm-cta-consult { margin-top: clamp(40px, 6vw, 60px); }
.sm-cta-consult-text { color: rgba(255, 255, 255, 0.78); line-height: 1.6; max-width: 46ch; margin: 0 auto 16px; }
.sm-cta-consult-link { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; transition: color 0.2s ease; }
.sm-cta-consult-link:hover { color: var(--leaf-2); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .sm-module-content { width: 74%; }
}

@media (max-width: 920px) {
  /* Gap section: image stacks above copy */
  .sm-gap-grid { grid-template-columns: 1fr; gap: 28px; }

  /* Module banners behave like image cards: image bg, dark bottom, content stacked at bottom */
  .sm-module { min-height: clamp(420px, 70vw, 520px); }
  .sm-module::after { background: linear-gradient(180deg, rgba(8, 18, 12, 0.35) 0%, rgba(8, 18, 12, 0.62) 42%, rgba(11, 20, 14, 0.95) 100%); }
  .sm-module-content { width: 100%; margin-left: 0; margin-top: auto; flex-direction: column; align-items: flex-start; gap: 22px; }
  .sm-module-feature { width: 100%; }
  .sm-feature-icons, .sm-feature-icons--2 { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .sm-why-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .sm-why-band { height: clamp(180px, 40vw, 240px); }
  .sm-values-grid { grid-template-columns: 1fr; max-width: 420px; }
  .sm-value-desc { max-width: none; }

  /* CTA columns stack; divider turns horizontal */
  .sm-cta-cols { grid-template-columns: 1fr; gap: 32px; }
  .sm-cta-divider { width: 60%; height: 1px; min-height: 0; }
}

@media (max-width: 520px) {
  .sm-hero-actions { gap: 12px; }
  .sm-feature-icons, .sm-feature-icons--2 { grid-template-columns: repeat(3, 1fr); gap: 12px 6px; }
  .sm-module-content { padding: clamp(20px, 5vw, 28px); }
}

/* Respect reduced motion (shared script also guards) */
@media (prefers-reduced-motion: reduce) {
  .sm-video-play { transition: none; }
}
