/* =========================================================
   F5 SENSOR — THEME LAYER
   ---------------------------------------------------------
   Layers ON TOP of new-global-style.css. Load this file
   SECOND so its rules win where they overlap.

   Division of labor:
   - STRUCTURE / LAYOUT comes from the global sheet:
       .spi-section-padded, .spi-section-full, .spi-container,
       .spi-row + .spi-cols-*, .spi-split, .spi-section-header
   - LOOK comes from here: everything is scoped under `body.f5`
     and added as .f5-* classes so nothing leaks into the
     light global pages. The ONLY global things overridden are
     the two font tokens (kept intentional + local to .f5).
   ========================================================= */

/* ---------------------------------------------------------
   1. SCOPE + PALETTE
   The F5 marketing site is a dark, blue-accented world with a
   heavy ITALIC display face. We set that as the page baseline
   and expose the palette as local --f5-* tokens.
--------------------------------------------------------- */
body.f5 {
  background: #05070d;
  color: #aab2be;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

:root {
  /* keep global STRUCTURE, but match the F5 display/body face */
  --spi-font-display: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --spi-font-body: 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* local palette (non-destructive — does not touch --spi-* colors) */
  --f5-bg: #05070d;
  --f5-bg-alt: #080c14;
  --f5-surface: #0b111c;
  --f5-surface-2: #070a11;
  --f5-blue: #3f8ae0;
  --f5-blue-hover: #66a6ea;
  --f5-icon-bg: #123056;
  --f5-border: rgba(63, 110, 190, 0.28);
  --f5-border-strong: rgba(63, 110, 190, 0.5);
  --f5-border-soft: rgba(63, 110, 190, 0.15);
  --f5-white: #ffffff !important;
  --f5-text: #aab2be;
  --f5-text-dim: #8a92a0;
  --f5-text-faint: #7d8695;
}

.f5 a:not(.f5-btn):not(.f5-btn-outline) {
  color: var(--f5-blue);
}

.f5 a:not(.f5-btn):not(.f5-btn-outline):hover {
  color: var(--f5-blue-hover);
}

/* Section bands — apply ALONGSIDE .spi-section-padded/.spi-section-full.
   Because the global section classes are full-width with inset padding,
   a background here reads as a full-bleed band with centered content,
   matching the marketing site's alternating panels. */
.f5-band {
  background: var(--f5-bg);
}

.f5-band-alt {
  background: var(--f5-bg-alt);
  border-top: 1px solid var(--f5-border-soft);
  border-bottom: 1px solid var(--f5-border-soft);
}

/* ---------------------------------------------------------
   2. TYPOGRAPHY  (F5 look — italic, heavy, tight)
--------------------------------------------------------- */
.f5-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--f5-blue);
}

.f5-h1 {
  margin: 0;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(38px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -1px;
  color: var(--f5-white) !important;
}

.f5-h2 {
  margin: 0;
  font-style: italic;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.08;
  letter-spacing: -0.5px;
  color: var(--f5-white);
}

.f5-h3 {
  margin: 0;
  font-weight: 800;
  font-size: 20px;
  line-height: 1.15;
  color: var(--f5-white);
}

.f5-blue {
  color: var(--f5-blue);
}

.f5-lead {
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.65;
  color: var(--f5-text);
}

.f5-muted {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--f5-text-dim);
}

/* Eyebrow + dashed rule used above section titles */
.f5-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.f5-eyebrow-row .f5-rule {
  flex: 1;
  max-width: 120px;
  height: 1px;
  border-top: 1px dashed var(--f5-border-strong);
}

/* ---------------------------------------------------------
   3. BUTTONS  (F5 gradient + outline variants)
   Named .f5-btn so they don't collide with the global .btn
   (which is the light, black-outline Storm button).
--------------------------------------------------------- */
.f5-btn,
.f5-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  border-radius: 10px;
  padding: 15px 28px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.f5-btn {
  background: linear-gradient(180deg, #3a86e8, #2f63d6);
  color: #fff;
  border: 1px solid transparent;
  box-shadow: 0 8px 24px rgba(47, 110, 214, 0.35);
}

.f5-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(47, 110, 214, 0.45);
}

.f5-btn-outline {
  background: transparent;
  border: 1.5px solid var(--f5-blue);
  color: var(--f5-blue);
}

.f5-btn-outline:hover {
  color: #fff;
  background: rgba(63, 110, 190, 0.15);
}

.f5-btn .f5-arrow,
.f5-btn-outline .f5-arrow {
  font-size: 17px;
  line-height: 1;
}

/* ---------------------------------------------------------
   4. HERO  (thesis panel — radial gradient, copy + media)
   The global .spi-hero is an image-slider with no headline,
   which doesn't fit F5's headline-led hero, so this is bespoke.
--------------------------------------------------------- */
.f5-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 90% at 78% 30%, #0e2a52 0%, #0a1526 45%, #05070d 80%);
}

.f5-hero-inner {
  display: flex;
  align-items: center;
  gap: 48px;
}

.f5-hero-copy {
  flex: 1 1 480px;
  max-width: 560px;
}

.f5-hero-media {
  flex: 0 0 440px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.f5-hero-media img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.55));
}

/* "Presented By  [Storm]" lockup */
.f5-presented {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.f5-presented span {
  color: #c9ced6;
  font-size: 15px;
}

.f5-presented img {
  height: 26px;
  width: auto;
}

/* Text fallback wordmark if the Storm PNG isn't present */
.f5-storm-wordmark {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1px;
  color: #fff;
  text-transform: uppercase;
}

/* ---------------------------------------------------------
   5. METRIC CARD  ("What the sensor measures")
   Layout comes from .spi-row.spi-cols-3; this is the skin.
--------------------------------------------------------- */
.f5-metric {
  height: 100%;
  border: 1px solid var(--f5-border);
  border-radius: 14px;
  background: var(--f5-surface);
  padding: 22px 20px;
}

.f5-metric h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--f5-white);
}

.f5-metric p {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: #98a0ac;
}

.f5-metric .f5-metric-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 10px;
  border: 1.5px solid var(--f5-border-strong);
  color: var(--f5-blue);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ---------------------------------------------------------
   6. VIDEO GALLERY  (the page's signature element)
   A large featured player + a grid of shorter clips. All are
   click-to-play posters until real embeds are wired in.
--------------------------------------------------------- */
.f5-video-featured {
  position: relative;
  display: block;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--f5-border);
  background: var(--f5-surface-2);
  aspect-ratio: 16 / 9;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.f5-video {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--f5-border);
  background: var(--f5-surface);
  text-decoration: none;
  transition: var(--spi-ease);
}

.f5-video:hover {
  border-color: var(--f5-border-strong);
  transform: translateY(-3px);
}

/* Poster area (used by both featured + grid cards) */
.f5-video-poster {
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #0e2a52 0%, #0a1526 55%, #05070d 100%);
  overflow: hidden;
}

.f5-video-poster img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.f5-video-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(5, 7, 13, 0.55), rgba(5, 7, 13, 0) 55%);
}

.f5-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(47, 110, 214, 0.9);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
  transition: transform 0.18s ease, background 0.18s ease;
}

.f5-video-featured .f5-play {
  width: 74px;
  height: 74px;
}

.f5-video:hover .f5-play,
.f5-video-featured:hover .f5-play {
  transform: translate(-50%, -50%) scale(1.06);
  background: rgba(47, 110, 214, 1);
}

.f5-play svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  fill: #fff;
}

.f5-video-featured .f5-play svg {
  width: 28px;
  height: 28px;
}

.f5-duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(3, 5, 10, 0.8);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

/* Caption over the featured player, bottom-left */
.f5-video-caption {
  position: absolute;
  left: 24px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.f5-video-body {
  padding: 16px 18px;
}

.f5-video-body h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--f5-white);
  line-height: 1.3;
}

.f5-video-body span {
  display: block;
  margin-top: 5px;
  font-size: 13px;
  color: var(--f5-text-dim);
}

/* ---------------------------------------------------------
   7. OUTBOUND CTA BAND  (the whole point: send them to F5)
--------------------------------------------------------- */
.f5-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  border: 1px solid var(--f5-border-strong);
  border-radius: 18px;
  background: linear-gradient(90deg, #0a1424, #0d1a30);
  padding: 40px 46px;
}

.f5-cta-copy h2 {
  margin: 0;
}

.f5-cta-copy p {
  margin: 12px 0 0;
  max-width: 480px;
  color: var(--f5-text);
  font-size: 16px;
  line-height: 1.6;
}

/* ---------------------------------------------------------
   8. RESPONSIVE
   Scoped to .f5-* classes + the section bands (.f5-band /
   .f5-band-alt), never to body.f5 — so it works live even
   though the CMS strips the body class. The global sheet turns
   .spi-row into a horizontal scroller at <=768px; inside the F5
   sections we override that back into clean vertical stacks.
--------------------------------------------------------- */

/* ---- Tablet (<=1024px) ---- */
@media (max-width: 1024px) {
  .f5-hero-media {
    flex-basis: 380px;
  }

  .f5-cta {
    padding: 36px 34px;
  }
}

/* ---- Hero stacks (<=900px) ---- */
@media (max-width: 900px) {
  .f5-hero-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 28px;
  }

  .f5-hero-copy {
    flex-basis: auto;
    max-width: 100%;
  }

  .f5-hero-media {
    flex: 0 0 auto;
    width: 100%;
  }

  .f5-hero-media img {
    max-height: 340px;
  }

  .f5-cta {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 26px;
  }
}

/* ---- Mobile (<=768px): stack the F5 grids ---- */
@media (max-width: 768px) {
  /* undo the global horizontal-scroll for F5 grids */
  .f5-band .spi-row,
  .f5-band-alt .spi-row {
    flex-wrap: wrap !important;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  /* one full-width card per row — big tap targets, big thumbnails */
  .f5-band .spi-row.spi-cols-3 > *,
  .f5-band-alt .spi-row.spi-cols-3 > * {
    flex: 1 1 100%;
    width: auto;
    scroll-snap-align: none;
  }

  /* CTA button spans full width under the copy */
  .f5-cta {
    padding: 30px 24px;
  }

  .f5-cta .f5-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ---- Small phones (<=600px) ---- */
@media (max-width: 600px) {
  /* tighten hero type + media */
  .f5-h1 {
    font-size: clamp(30px, 9vw, 40px);
    letter-spacing: -0.5px;
  }

  .f5-h2 {
    font-size: clamp(24px, 7vw, 32px);
  }

  .f5-lead {
    font-size: 16px;
  }

  .f5-hero-media img {
    max-height: 280px;
  }

  /* hero buttons stack full width for easy tapping */
  .f5-hero-copy .f5-btn,
  .f5-hero-copy .f5-btn-outline {
    flex: 1 1 100%;
    justify-content: center;
  }

  /* smaller play controls + featured caption on tiny screens */
  .f5-play {
    width: 48px;
    height: 48px;
  }

  .f5-video-featured .f5-play {
    width: 60px;
    height: 60px;
  }

  .f5-video-caption {
    left: 16px;
    bottom: 14px;
    font-size: 15px;
  }

  /* a touch tighter inside cards */
  .f5-metric {
    padding: 20px 18px;
  }

  .f5-cta {
    padding: 28px 22px;
  }
}

/* ---------------------------------------------------------
   9. QUALITY FLOOR — focus + reduced motion
--------------------------------------------------------- */
.f5 a:focus-visible,
.f5 .f5-btn:focus-visible,
.f5 .f5-btn-outline:focus-visible,
.f5 .f5-video:focus-visible,
.f5 .f5-video-featured:focus-visible {
  outline: 2px solid var(--f5-blue-hover);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .f5 * {
    transition: none !important;
  }
}

/* =========================================================
   10. CMS HARDENING
   ---------------------------------------------------------
   Goal: an intrusive CMS/commerce sheet (COMMERCE-WEB-STYLE.css)
   cannot override the F5 look. CSS has no "ignore that file"
   switch — only !important beats !important — so we assert the
   F5 VISUAL IDENTITY (typography, color, backgrounds, buttons)
   with !important.

   Deliberately NOT importing layout/spacing (margins, padding,
   flex, width). The page uses inline style="" for spacing, and
   !important would override those inline values and break your
   own layout. Identity is forced; layout stays free.

   Everything is scoped to .f5 so CMS chrome (header/footer/nav)
   outside this page's content is untouched.

   If the CMS still wins somewhere, it's using a higher-specificity
   !important selector. Escalate by wrapping the CMS sheet's rules
   below this whole block inside a cascade layer — a layered
   !important beats an unlayered one regardless of specificity:
       @layer cms;                      (declare first, low priority)
       @import url("COMMERCE-WEB-STYLE.css") layer(cms);
   ...but that requires controlling the CMS <link>. If you can't,
   use the JS disable snippet instead (see notes).
   ========================================================= */

/* Type family — headings, body copy, labels */
.f5,
.f5 .f5-h1,
.f5 .f5-h2,
.f5 .f5-h3,
.f5 .f5-lead,
.f5 .f5-muted,
.f5 .f5-metric h4,
.f5 .f5-metric p,
.f5 .f5-video-body h4,
.f5 .f5-video-body span,
.f5 .f5-video-caption,
.f5 .f5-presented span,
.f5 .f5-cta-copy p {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
}

/* Heading treatment — kill the CMS uppercase, keep the F5 italic weight */
.f5 .f5-h1,
.f5 .f5-h2,
.f5 .f5-h3,
.f5 .f5-metric h4,
.f5 .f5-video-body h4 {
  text-transform: none !important;
}

.f5 .f5-h1,
.f5 .f5-h2 {
  font-style: italic !important;
  font-weight: 800 !important;
}

/* Page + text colors */
body.f5 {
  background: var(--f5-bg) !important;
  color: var(--f5-text) !important;
}

.f5 .f5-h1,
.f5 .f5-h2,
.f5 .f5-h3,
.f5 .f5-metric h4,
.f5 .f5-video-body h4,
.f5 .f5-video-caption {
  color: var(--f5-white) !important;
}

.f5 .f5-lead,
.f5 .f5-cta-copy p {
  color: var(--f5-text) !important;
}

.f5 .f5-muted,
.f5 .f5-metric p,
.f5 .f5-video-body span {
  color: var(--f5-text-dim) !important;
}

.f5 .f5-kicker {
  color: var(--f5-blue) !important;
  text-transform: uppercase !important;
}

.f5 .f5-blue {
  color: var(--f5-blue) !important;
}

/* Buttons — protect the gradient + white text from CMS button rules */
.f5 .f5-btn {
  background: linear-gradient(180deg, #3a86e8, #2f63d6) !important;
  color: #fff !important;
  border-color: transparent !important;
}

.f5 .f5-btn-outline {
  background: transparent !important;
  color: var(--f5-blue) !important;
  border: 1.5px solid var(--f5-blue) !important;
}

.f5 .f5-btn:hover,
.f5 .f5-btn-outline:hover {
  color: #fff !important;
}

/* Surfaces — section bands + card backgrounds/borders */
.f5 .f5-band {
  background: var(--f5-bg) !important;
}

.f5 .f5-band-alt {
  background: var(--f5-bg-alt) !important;
}

.f5 .f5-metric {
  background: var(--f5-surface) !important;
  border-color: var(--f5-border) !important;
}

.f5 .f5-video {
  background: var(--f5-surface) !important;
}

.f5 .f5-cta {
  background: linear-gradient(90deg, #0a1424, #0d1a30) !important;
  border-color: var(--f5-border-strong) !important;
}