/*
 * Free Security Audit landing page — hero band.
 * Owns all .landing-hero styles. Loaded after landing-audit.css.
 */

/* ─── Hero band shell ─── */
html[data-wd-build="watchdog"] body.wd-landing section.hero.page-hero.landing-hero {
  --wd-landing-nav-h: calc(env(safe-area-inset-top, 0px) + clamp(58px, 8vh, 72px));
  position: relative;
  overflow: hidden;
  min-height: min(88vh, 46rem);
  margin: 0 calc(-1 * var(--idx-gutter)) 0;
  width: calc(100% + 2 * var(--idx-gutter));
  max-width: none;
  box-sizing: border-box;
  padding:
    calc(var(--wd-landing-nav-h) + clamp(1.25rem, 3vh, 2rem))
    var(--idx-gutter)
    0;
  display: flex;
  align-items: stretch;
  /* Glow tracks the guard column (centred content), not the viewport edge */
  --wd-hero-glow-x: 50%;
  background:
    radial-gradient(52rem 32rem at var(--wd-hero-glow-x) 78%, rgb(var(--idx-accent-rgb) / 0.2), transparent 62%),
    radial-gradient(38rem 24rem at 0% -10%, rgb(var(--idx-accent-rgb) / 0.08), transparent 58%),
    linear-gradient(165deg, #16161d 0%, #0b0b0f 55%, #08080b 100%);
}

/* Blueprint grid, faded toward the guard side */
html[data-wd-build="watchdog"] body.wd-landing section.hero.page-hero.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(115% 100% at 72% 68%, #000 22%, transparent 80%);
  mask-image: radial-gradient(115% 100% at 72% 68%, #000 22%, transparent 80%);
  pointer-events: none;
}

/* Hazard-tape baseline */
html[data-wd-build="watchdog"] body.wd-landing section.hero.page-hero.landing-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--idx-accent) 0 16px,
    #0a0a0b 16px 32px
  );
  z-index: 4;
  pointer-events: none;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero__inner {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero__grid {
  position: relative;
  display: grid;
  gap: clamp(0.75rem, 2vw, 1.25rem);
  align-items: end;
  width: 100%;
}


@media (min-width: 900px) {
  html[data-wd-build="watchdog"] body.wd-landing .landing-hero__grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(1rem, 3vw, 2.5rem);
    min-height: calc(min(88vh, 46rem) - var(--wd-landing-nav-h) - clamp(1.25rem, 3vh, 2rem));
  }
}

/* ─── Copy column ─── */
html[data-wd-build="watchdog"] body.wd-landing .landing-hero__copy {
  max-width: 40rem;
  position: relative;
  z-index: 2;
  padding: 0 0 clamp(1.75rem, 4vh, 2.75rem);
}

/* Kicker: live chip with pulsing beacon */
html[data-wd-build="watchdog"] body.wd-landing .landing-hero .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.15rem;
  padding: 0.45rem 0.85rem 0.45rem 0.75rem;
  border: 1px solid rgb(var(--idx-accent-rgb) / 0.45);
  background: rgb(var(--idx-accent-rgb) / 0.1);
  color: var(--idx-accent);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero .hero-kicker::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--idx-accent);
  box-shadow: none;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero h1 {
  margin-bottom: 1.15rem;
  font-size: clamp(2.2rem, 3.6vw + 0.6rem, 3.8rem);
  line-height: 1.05;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero h1 .page-hero-line {
  display: block;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero h1 .page-hero-line + .page-hero-line {
  margin-top: 0.3rem;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero h1 .hero-h1-accent {
  color: var(--idx-accent);
  text-shadow: 0 0 32px rgb(var(--idx-accent-rgb) / 0.3);
}

/* Hazard-stripe rule anchoring the headline */
html[data-wd-build="watchdog"] body.wd-landing .landing-hero h1::after {
  content: "";
  display: block;
  width: 6.5rem;
  height: 7px;
  margin-top: 1.05rem;
  background: repeating-linear-gradient(
    -45deg,
    var(--idx-accent) 0 10px,
    transparent 10px 20px
  );
}

html[data-wd-build="watchdog"] body.wd-landing .hero-lead {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  max-width: 36rem;
}

html[data-wd-build="watchdog"] body.wd-landing .hero-lead__hook {
  font-size: 1.16rem;
  font-weight: 600;
  color: var(--idx-ink);
  line-height: 1.45;
}

/* CTA row */
html[data-wd-build="watchdog"] body.wd-landing .landing-hero .hero-actions {
  align-items: center;
  margin-bottom: 1.35rem;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero .hero-actions .cta-primary {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.55rem;
  font-size: 0.92rem;
  box-shadow: 5px 5px 0 rgb(0 0 0 / 0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero .hero-actions .cta-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 rgb(0 0 0 / 0.35);
}

/* Shine sweep across the primary CTA */
html[data-wd-build="watchdog"] body.wd-landing .landing-hero .hero-actions .cta-primary::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 35%;
  background: linear-gradient(100deg, transparent, rgb(255 255 255 / 0.5), transparent);
  transform: skewX(-18deg);
  pointer-events: none;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero .hero-actions .cta-primary::after {
  content: "\2192";
  font-weight: 700;
  transition: transform 0.18s ease;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero .hero-actions .cta-primary:hover::after {
  transform: translateX(4px);
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero .hero-actions .idx-muted {
  font-size: 0.95rem;
}

/* Trust chips: ticked proof points */
html[data-wd-build="watchdog"] body.wd-landing .landing-hero .hero-trust {
  gap: 0.5rem 0.6rem;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero .hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(var(--idx-accent-rgb) / 0.3);
  border-radius: 0;
  color: var(--idx-ink);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.7rem;
  padding: 0.42rem 0.7rem;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero .hero-trust li::before {
  content: "\2713";
  color: var(--idx-accent);
  font-weight: 700;
}

/* ─── Visual column ─── */
html[data-wd-build="watchdog"] body.wd-landing .landing-hero__visual {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: clamp(17rem, 46vh, 25rem);
}


/* Halo: glow disc + concentric rings rising behind the guard */
html[data-wd-build="watchdog"] body.wd-landing .landing-hero__halo {
  position: absolute;
  bottom: -18%;
  left: 50%;
  transform: translateX(-50%);
  width: min(34rem, 112%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgb(var(--idx-accent-rgb) / 0.18) 0%,
    rgb(var(--idx-accent-rgb) / 0.05) 48%,
    transparent 68%
  );
  pointer-events: none;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero__halo::before {
  content: "";
  position: absolute;
  inset: 11%;
  border: 1px solid rgb(var(--idx-accent-rgb) / 0.35);
  border-radius: 50%;
}

/* Dashed ring doubles as a slow radar sweep */
html[data-wd-build="watchdog"] body.wd-landing .landing-hero__halo::after {
  content: "";
  position: absolute;
  inset: 2%;
  border: 1px dashed rgb(var(--idx-accent-rgb) / 0.26);
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    rgb(var(--idx-accent-rgb) / 0.1) 0deg,
    rgb(var(--idx-accent-rgb) / 0.03) 55deg,
    transparent 80deg
  );
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero__cutout-wrap {
  margin: 0;
  line-height: 0;
  position: relative;
  z-index: 2;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero__cutout {
  display: block;
  width: auto;
  height: clamp(14rem, 42vh, 23rem);
  max-width: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter:
    drop-shadow(0 24px 34px rgb(0 0 0 / 0.55))
    drop-shadow(0 0 60px rgb(var(--idx-accent-rgb) / 0.16));
}

/* Floating proof badges (desktop only) */
html[data-wd-build="watchdog"] body.wd-landing .landing-hero__badge {
  position: absolute;
  z-index: 3;
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.75rem 1rem;
  background: rgb(12 12 15 / 0.86);
  border: 1px solid rgb(var(--idx-accent-rgb) / 0.4);
  border-left: 4px solid var(--idx-accent);
  box-shadow: 6px 6px 0 rgb(0 0 0 / 0.3);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero__badge-figure {
  font-family: var(--idx-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--idx-accent);
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero__badge-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--idx-muted);
  white-space: nowrap;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero__badge--years {
  left: clamp(0rem, 1.5vw, 1.25rem);
  top: 22%;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero__badge--monitor {
  right: clamp(0rem, 1vw, 1rem);
  bottom: 16%;
}

/* ─── Desktop refinements ─── */
@media (min-width: 900px) {
  html[data-wd-build="watchdog"] body.wd-landing section.hero.page-hero.landing-hero {
    --wd-hero-glow-x: calc(50% + 19rem);
  }

  html[data-wd-build="watchdog"] body.wd-landing .landing-hero h1 {
    font-size: clamp(2.7rem, 2.8vw + 1rem, 3.6rem);
  }

  html[data-wd-build="watchdog"] body.wd-landing .landing-hero__copy {
    align-self: center;
    padding-bottom: clamp(2rem, 5vh, 3rem);
  }

  html[data-wd-build="watchdog"] body.wd-landing .hero-lead__hook {
    font-size: 1.25rem;
    color: var(--idx-accent);
  }

  html[data-wd-build="watchdog"] body.wd-landing .landing-hero__visual {
    min-height: 100%;
  }

  html[data-wd-build="watchdog"] body.wd-landing .landing-hero__cutout {
    height: clamp(26rem, 74vh, 40rem);
  }

  html[data-wd-build="watchdog"] body.wd-landing .landing-hero__badge {
    display: flex;
  }

  html[data-wd-build="watchdog"] body.wd-landing .landing-hero__badge-figure {
    font-size: 1.7rem;
  }
}

/* ─── Narrow screens: copy-focused hero, guard is desktop-only ─── */
@media (max-width: 899px) {
  html[data-wd-build="watchdog"] body.wd-landing section.hero.page-hero.landing-hero {
    min-height: 0;
  }

  html[data-wd-build="watchdog"] body.wd-landing .landing-hero__visual {
    display: none;
  }

  html[data-wd-build="watchdog"] body.wd-landing .landing-hero__copy {
    padding-bottom: clamp(2rem, 5vh, 3rem);
  }
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
  html[data-wd-build="watchdog"] body.wd-landing .hero-lead__support--desktop {
    display: none;
  }
}

@media (min-width: 641px) {
  html[data-wd-build="watchdog"] body.wd-landing .hero-lead__support--mobile {
    display: none;
  }
}

/* ─── Motion (always on) ─── */
html[data-wd-build="watchdog"] body.wd-landing .landing-hero .hero-kicker::before {
  animation: wd-hero-pulse 2.2s ease-out infinite;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero__copy > * {
  animation: wd-hero-rise 0.65s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero__copy > *:nth-child(1) { animation-delay: 0.05s; }
html[data-wd-build="watchdog"] body.wd-landing .landing-hero__copy > *:nth-child(2) { animation-delay: 0.12s; }
html[data-wd-build="watchdog"] body.wd-landing .landing-hero__copy > *:nth-child(3) { animation-delay: 0.19s; }
html[data-wd-build="watchdog"] body.wd-landing .landing-hero__copy > *:nth-child(4) { animation-delay: 0.26s; }
html[data-wd-build="watchdog"] body.wd-landing .landing-hero__copy > *:nth-child(5) { animation-delay: 0.33s; }

html[data-wd-build="watchdog"] body.wd-landing .landing-hero__cutout-wrap {
  animation: wd-hero-rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero__badge {
  animation: wd-hero-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.55s backwards;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero__badge--monitor {
  animation-delay: 0.7s;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero__halo::after {
  animation: wd-hero-radar 16s linear infinite;
}

html[data-wd-build="watchdog"] body.wd-landing .landing-hero .hero-actions .cta-primary::before {
  animation: wd-cta-shine 4.5s ease-in-out 1.2s infinite;
}

@keyframes wd-hero-pulse {
  0% { box-shadow: 0 0 0 0 rgb(var(--idx-accent-rgb) / 0.55); }
  70% { box-shadow: 0 0 0 9px rgb(var(--idx-accent-rgb) / 0); }
  100% { box-shadow: 0 0 0 0 rgb(var(--idx-accent-rgb) / 0); }
}

@keyframes wd-hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@keyframes wd-hero-radar {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes wd-cta-shine {
  0% { left: -45%; }
  38%, 100% { left: 115%; }
}

/*
 * The sitewide bundle zeroes out all animation durations under
 * prefers-reduced-motion. The hero animations are wanted regardless,
 * so restore them with higher specificity inside the same media query.
 */
@media (prefers-reduced-motion: reduce) {
  html[data-wd-build="watchdog"] body.wd-landing .landing-hero .hero-kicker::before {
    animation-duration: 2.2s !important;
    animation-iteration-count: infinite !important;
  }

  html[data-wd-build="watchdog"] body.wd-landing .landing-hero__copy > * {
    animation-duration: 0.65s !important;
  }

  html[data-wd-build="watchdog"] body.wd-landing .landing-hero__cutout-wrap {
    animation-duration: 0.85s !important;
  }

  html[data-wd-build="watchdog"] body.wd-landing .landing-hero__badge {
    animation-duration: 0.7s !important;
  }

  html[data-wd-build="watchdog"] body.wd-landing .landing-hero__halo::after {
    animation-duration: 16s !important;
    animation-iteration-count: infinite !important;
  }

  html[data-wd-build="watchdog"] body.wd-landing .landing-hero .hero-actions .cta-primary::before {
    animation-duration: 4.5s !important;
    animation-iteration-count: infinite !important;
  }
}
