/**
 * Marketing landing (/landing) — dark theme, lime accent, works with site-layout header.
 */

.landing {
  --landing-max: 72rem;
  /* Same as .landing__shots-grid gap — used to size backtest iframe vs analyze column */
  --landing-shots-gap: clamp(1.15rem, 2.5vw, 1.65rem);
  --landing-muted: rgba(250, 250, 250, 0.52);
  --landing-line: rgba(255, 255, 255, 0.08);
  --landing-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  overflow-x: clip;
  scroll-behavior: smooth;
}

/* Landing shell: neutral base, one soft accent wash, green only on actions (readable, not muddy) */
body.landing {
  scrollbar-gutter: stable;
  /* Must match .landing__main padding-top (fixed header clearance) for full-viewport hero math */
  --landing-header-offset: 5.85rem;
  --landing-hero-title-gap: clamp(1rem, 2.6vw, 1.5rem);
  --landing-hero-after-title: clamp(6rem, 16vw, 11rem);
  --landing-hero-after-lede: clamp(4.5rem, 10vw, 6.5rem);
  --landing-hero-after-cta: clamp(1.75rem, 4vw, 2.75rem);
  background-color: #09090b;
  background-image:
    radial-gradient(ellipse 88% 55% at 50% -32%, rgba(50, 205, 50, 0.045), transparent 58%),
    radial-gradient(ellipse 70% 55% at 50% 118%, rgba(0, 0, 0, 0.45), transparent 42%);
  background-attachment: fixed;
}

.landing__grain {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: soft-light;
  opacity: 0.045;
  background-image: repeating-radial-gradient(
    circle at 44% 38%,
    transparent 0,
    transparent 1px,
    rgba(255, 255, 255, 0.035) 1px,
    rgba(255, 255, 255, 0.035) 2px
  );
  background-size: 3px 3px;
  animation: landing-grain-drift 28s ease-in-out infinite alternate;
}

@keyframes landing-grain-drift {
  0% {
    opacity: 0.04;
    transform: translate(0, 0);
  }
  100% {
    opacity: 0.055;
    transform: translate(-0.5%, 0.35%);
  }
}

body.landing .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: saturate(130%) blur(16px);
  -webkit-backdrop-filter: saturate(130%) blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: none;
}

body.landing .brand-subtitle {
  display: none;
}

/* Pill nav: shared in site-layout.css (.header-container.landing-header__container) */

/* No horizontal padding here — full-bleed strip/bands use margin: calc(50% - 50vw),
   which must resolve against a content box that matches the viewport width. */
.landing__main {
  position: relative;
  z-index: 3;
  padding: 0 0 clamp(4rem, 9vw, 5.5rem);
  isolation: isolate;
}

body.landing .landing__main {
  padding-top: var(--landing-header-offset);
}

.landing__main::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2rem;
  width: min(110vw, 72rem);
  height: min(72vh, 44rem);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse 68% 52% at 50% 0%, rgba(50, 205, 50, 0.06), transparent 70%);
  opacity: 0.55;
  animation: landing-ambient 18s ease-in-out infinite alternate;
}

body.landing .landing__main::before {
  opacity: 0.28;
}

@keyframes landing-ambient {
  0% {
    opacity: 0.5;
    transform: translateX(-50%) scale(1);
  }
  100% {
    opacity: 0.88;
    transform: translateX(-50%) scale(1.04);
  }
}

.landing__main > * {
  position: relative;
  z-index: 1;
}

.landing__hero {
  max-width: var(--landing-max);
  margin: 0 auto;
  padding: clamp(1.25rem, 3.5vw, 2rem) clamp(1rem, 5vw, 2rem) clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
}

/* First screen = hero only: fill viewport under fixed header, center the stack */
body.landing .landing__hero {
  box-sizing: border-box;
  min-height: calc(100svh - var(--landing-header-offset));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

@supports (height: 100dvh) {
  body.landing .landing__hero {
    min-height: calc(100dvh - var(--landing-header-offset));
  }
}

/* Hero entrances: larger travel + smooth “billboard” ease (Creatify-style weight) */
@keyframes landing-hero-rise {
  from {
    opacity: 0;
    transform: translateY(2.35rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landing-hero-rise-punch {
  from {
    opacity: 0;
    transform: translateY(2.85rem) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.landing__hero > *:not(.landing__title--hero) {
  animation: landing-hero-rise 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.landing__hero > .landing__lede--hero {
  animation-delay: 0.38s;
}

.landing__hero > .landing__hero-cta-block {
  animation-delay: 0.52s;
}

.landing__hero > .landing__trust-row {
  animation-delay: 0.66s;
}

.landing__title--hero > .landing__hero-line:not(.landing__title-punch) {
  display: block;
  opacity: 0;
  animation: landing-hero-rise 1.15s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.landing__title--hero > .landing__title-deck {
  animation-delay: 0.08s;
}

/* Hero headline: deck + punch — generous vertical rhythm, neutral + white (green reserved for UI accents) */
.landing__title--hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--landing-hero-title-gap, clamp(1rem, 2.6vw, 1.5rem));
  margin: 0 0 var(--landing-hero-after-title, clamp(6rem, 16vw, 11rem));
  font-weight: 800;
  line-height: 1.02;
  color: #fafafa;
}

.landing__title-deck {
  max-width: 30rem;
  font-size: clamp(0.8rem, 1.85vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(161, 161, 170, 0.95);
}

.landing__title-punch {
  font-size: clamp(2.75rem, 10.5vw, 5.75rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
  color: #fafafa;
  text-shadow: 0 0 100px rgba(50, 205, 50, 0.14);
  opacity: 0;
  animation: landing-hero-rise-punch 1.32s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

.landing__title-line {
  display: block;
}

.landing__title-line--accent {
  background: linear-gradient(
    105deg,
    #d8f5d8 0%,
    #7ee87e 38%,
    var(--primary-color, #32cd32) 58%,
    var(--primary-dark, #28a428) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.landing__lede--hero {
  max-width: 40rem;
  margin: 0 auto var(--landing-hero-after-lede, clamp(4.5rem, 10vw, 6.5rem));
  font-size: clamp(1.02rem, 2.25vw, 1.28rem);
  line-height: 1.62;
  color: rgba(228, 228, 231, 0.66);
  font-weight: 450;
  text-wrap: balance;
}

.landing__hero-cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.125rem;
  margin-bottom: 0;
}

.landing__split-cta {
  position: relative;
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  text-decoration: none;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 20px 50px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.2s var(--landing-ease-out),
    box-shadow 0.2s ease,
    border-color 0.45s ease;
}

/* Green wash grows from the icon rail across the whole CTA (Creatify-style) */
.landing__split-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, var(--primary-color, #32cd32), var(--primary-dark, #28a428));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.landing__split-cta:hover::before,
.landing__split-cta:focus-visible::before {
  transform: scaleX(1);
}

.landing__split-cta:hover {
  transform: translateY(-2px);
  border-color: rgba(50, 205, 50, 0.45);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 22px 56px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(50, 205, 50, 0.18);
}

.landing__split-cta:focus-visible {
  outline: 2px solid rgba(50, 205, 50, 0.55);
  outline-offset: 3px;
}

.landing__split-cta-icon {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(3.5rem, 8vw, 4.25rem);
  flex-shrink: 0;
  background: var(--primary-color, #32cd32);
  color: #030303;
  font-size: clamp(0.95rem, 2.1vw, 1.1rem);
  transition: background-color 0.45s ease, color 0.45s ease;
}

.landing__split-cta:hover .landing__split-cta-icon,
.landing__split-cta:focus-visible .landing__split-cta-icon {
  background-color: transparent;
  color: #030303;
}

.landing__split-cta-icon i {
  margin-left: 2px;
}

.landing__split-cta-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  padding: clamp(0.95rem, 2.1vw, 1.15rem) clamp(1.35rem, 3.2vw, 1.85rem);
  background: #101012;
  color: #fafafa;
  font-weight: 600;
  font-size: clamp(0.9rem, 1.85vw, 1.05rem);
  letter-spacing: 0.02em;
  text-transform: none;
  transition: background-color 0.45s ease, color 0.45s ease;
}

.landing__split-cta:hover .landing__split-cta-label,
.landing__split-cta:focus-visible .landing__split-cta-label {
  background-color: transparent;
  color: #030303;
}

.landing__hero-ghost-link {
  font-size: clamp(0.84rem, 1.65vw, 0.95rem);
  font-weight: 500;
  color: rgba(228, 228, 231, 0.45);
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: rgba(228, 228, 231, 0.2);
}

.landing__hero-ghost-link:hover {
  color: rgba(250, 250, 250, 0.72);
}

.landing__trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.45rem 1.25rem;
  margin: var(--landing-hero-after-cta, clamp(1.75rem, 4vw, 2.75rem)) 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: none;
  color: rgba(161, 161, 170, 0.9);
}

.landing__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.landing__trust-item i {
  color: rgba(50, 205, 50, 0.48);
  font-size: 0.62rem;
}

@media (max-width: 380px) {
  .landing__split-cta-label {
    padding: 0.72rem 0.85rem;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
  }

  .landing__split-cta-icon {
    width: 3rem;
    font-size: 0.85rem;
  }
}

.landing__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 1rem;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(50, 205, 50, 0.28);
  background: rgba(50, 205, 50, 0.08);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(210, 250, 210, 0.95);
}

.landing__title {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5.5vw, 3.15rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #fff;
}

.landing__title-accent {
  background: linear-gradient(
    110deg,
    #c8f0c8 0%,
    #6fdc6f 35%,
    var(--primary-color, #32cd32) 50%,
    #5ad65a 72%,
    var(--primary-dark, #28a428) 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: landing-title-shimmer 10s ease-in-out infinite alternate;
}

@keyframes landing-title-shimmer {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}

.landing__lede {
  margin: 0 auto 1.65rem;
  max-width: 40rem;
  font-size: clamp(1rem, 2.1vw, 1.12rem);
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.62);
  font-weight: 450;
}

.landing__lede strong {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.landing__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
}

.landing__cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}

.landing__cta-secondary:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
}

.landing__pill-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 0.65rem;
  margin-top: 1.75rem;
  list-style: none;
  padding: 0;
}

.landing__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

.landing__pill i {
  color: rgba(50, 205, 50, 0.85);
  font-size: 0.6rem;
}

/* —— Backtest / analyze product previews (SVG or raster in static/img/landing/) —— */
.landing__shots .landing__section-head {
  margin-bottom: 1.5rem;
}

.landing__shots-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--landing-shots-gap);
  align-items: start;
}

@media (max-width: 800px) {
  .landing__shots-grid {
    grid-template-columns: 1fr;
  }
}

.landing__shot {
  margin: 0;
}

.landing__shot-frame {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #0a0a0a;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 14px 48px rgba(0, 0, 0, 0.48);
  cursor: default;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.landing__shot-frame:hover {
  border-color: rgba(50, 205, 50, 0.28);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(50, 205, 50, 0.12);
  transform: translateY(-2px);
}

.landing__shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* Analyze pair: same on-screen frame as hero (1966×1208 aspect); raster may crop slightly */
.landing__shots-grid--analyze-pair .landing__shot-frame {
  position: relative;
  aspect-ratio: 1966 / 1208;
}

.landing__shots-grid--analyze-pair .landing__shot-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.landing__shot-cap {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  line-height: 1.48;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  letter-spacing: 0.01em;
}

/* Live backtest demo: wider than one Analyze column (half grid ×1.08×1.5); same aspect as analyze-investor-hero (1966×1208) */
.landing__backtest-demo-wrap {
  width: 100%;
  margin: 0.35rem auto 0;
}

@media (min-width: 801px) {
  .landing__backtest-demo-wrap {
    /* ~1.08× one Analyze column, then +50% width */
    max-width: calc((100% - var(--landing-shots-gap)) / 2 * 1.08 * 1.5);
  }
}

@media (max-width: 800px) {
  .landing__backtest-demo-wrap {
    max-width: 100%;
  }
}

.landing__backtest-demo-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: #0a0a0a;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 14px 48px rgba(0, 0, 0, 0.48);
  /* Reduce scroll anchoring / layout-driven jumps on the marketing page when the iframe reflows */
  overflow-anchor: none;
}

.landing__backtest-demo-iframe {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 1966 / 1208;
  border: 0;
  background: #09090b;
  overflow-anchor: none;
  /* Preview only: block clicks/scroll inside; scripted demo still runs */
  pointer-events: none;
  user-select: none;
}

/* Slightly taller frame so the “plain English” textarea (embed UI) fills the preview */
#simulate .landing__backtest-demo-iframe {
  aspect-ratio: 16 / 11;
}

.landing__shots-foot {
  margin: 1.5rem 0 0;
  text-align: center;
}

.landing__section {
  max-width: var(--landing-max);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 2.75rem) 0;
  border-top: 1px solid var(--landing-line);
}

.landing__section-head {
  margin-bottom: 1.65rem;
  text-align: center;
}

.landing__section-kicker {
  margin: 0 0 0.55rem;
  font-size: clamp(0.72rem, 1.5vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(50, 205, 50, 0.78);
}

.landing__section-heading {
  margin: 0 0 0.85rem;
  font-size: clamp(1.55rem, 3.8vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #fff;
}

.landing__band-head .landing__section-heading {
  margin-top: 0.55rem;
}

.landing__section-lede {
  margin: 0 auto;
  max-width: 42rem;
  font-size: clamp(0.95rem, 2vw, 1.05rem);
  line-height: 1.58;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 450;
}

.landing__section-lede strong {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

/* Voiceover-style line (backtest band): reads like a short demo clip */
.landing__voiceover {
  margin: 0.85rem auto 0;
  max-width: 32rem;
  text-align: center;
  font-size: clamp(1.05rem, 2.35vw, 1.22rem);
  line-height: 1.52;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.8);
}

.landing__voiceover-kbd {
  font-style: normal;
  font-weight: 800;
  font-size: 0.88em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(210, 250, 210, 0.95);
  padding: 0.12em 0.38em;
  border-radius: 6px;
  border: 1px solid rgba(50, 205, 50, 0.35);
  background: rgba(50, 205, 50, 0.1);
}

.landing__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.landing__grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

@media (max-width: 1100px) {
  .landing__grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .landing__grid {
    grid-template-columns: 1fr;
  }

  .landing__grid--four {
    grid-template-columns: 1fr;
  }
}

.landing__card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem 1.1rem 1.35rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  background:
    radial-gradient(80% 60% at 10% 0%, rgba(50, 205, 50, 0.06), transparent 55%),
    rgba(18, 18, 18, 0.85);
  color: inherit;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.landing__card:hover {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(50, 205, 50, 0.1);
  transform: translateY(-2px);
}

.landing__card-icon {
  width: 2.35rem;
  height: 2.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: rgba(50, 205, 50, 0.1);
  border: 1px solid rgba(50, 205, 50, 0.2);
  color: var(--primary-color, #32cd32);
  font-size: 1.05rem;
}

.landing__card-title {
  margin: 0 0 0.2rem;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.landing__card-tag {
  margin: 0 0 0.55rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

.landing__card-desc {
  margin: 0;
  flex: 1;
  font-size: 0.8125rem;
  line-height: 1.52;
  color: var(--landing-muted);
}

.landing__card-desc strong {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.landing__card-cta {
  margin-top: 1rem;
  align-self: flex-start;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-color, #32cd32);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
}

.landing__card-cta:hover {
  color: #5ee05e;
}

.landing__card-cta:focus-visible {
  outline: 2px solid rgba(50, 205, 50, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

.landing__card:hover .landing__card-cta {
  color: #5ee05e;
}

/* —— Scroll reveals (see static/js/landing-motion.js) —— */
.landing-scroll-reveal {
  opacity: 0;
  transform: translateY(0.85rem);
  transition:
    opacity 0.55s var(--landing-ease-out),
    transform 0.6s var(--landing-ease-out);
  will-change: opacity, transform;
}

.landing-scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.landing-scroll-reveal.is-visible .landing__shot:nth-child(2) .landing__shot-frame {
  transition-delay: 0.1s;
}

.landing-scroll-reveal .landing__shot .landing__shot-frame {
  opacity: 0;
  transform: translateY(0.85rem) scale(0.985);
  transition:
    opacity 0.65s var(--landing-ease-out),
    transform 0.7s var(--landing-ease-out),
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.landing-scroll-reveal.is-visible .landing__shot .landing__shot-frame {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.landing-scroll-reveal.is-visible .landing__shot .landing__shot-frame:hover {
  transform: translateY(-2px) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .landing__main::before {
    animation: none;
    opacity: 0.65;
    transform: translateX(-50%);
  }

  .landing__title-accent {
    animation: none;
    background-size: 100% auto;
  }

  .landing__title-punch {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .landing__grain {
    animation: none;
    transform: none;
  }

  .landing__split-cta::before {
    transition: none;
  }

  .landing__hero > *:not(.landing__title--hero) {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .landing__title--hero > .landing__hero-line {
    animation: none;
    opacity: 1;
    transform: none;
  }

  .landing-scroll-reveal {
    opacity: 1;
    transform: none;
    transition: none;
    will-change: auto;
  }

  .landing-scroll-reveal .landing__shot .landing__shot-frame {
    opacity: 1;
    transform: none;
    transition:
      border-color 0.18s ease,
      box-shadow 0.18s ease,
      transform 0.18s ease;
  }

  .landing {
    scroll-behavior: auto;
  }

  body.landing {
    background-attachment: scroll;
  }

  .landing__split-cta:hover {
    transform: none;
  }

  .landing__strip-item:hover {
    transform: none;
  }

  .landing__band-panel-cta:hover {
    gap: 0.35rem;
  }
}

/* —— Capitalise-style flow: full-bleed strip + narrative bands —— */
.landing__strip {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-top: 1px solid var(--landing-line);
  border-bottom: 1px solid var(--landing-line);
  background:
    linear-gradient(180deg, rgba(50, 205, 50, 0.04) 0%, transparent 42%),
    rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.landing__strip-inner {
  max-width: var(--landing-max);
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 1.65rem) clamp(1rem, 4vw, 1.75rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  align-items: stretch;
  box-sizing: border-box;
}

@media (max-width: 720px) {
  .landing__strip-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 0.5rem;
  }
}

.landing__strip-item {
  display: block;
  padding: clamp(0.85rem, 2vw, 1.1rem) clamp(0.65rem, 2vw, 1.15rem);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.02);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s var(--landing-ease-out),
    box-shadow 0.2s ease;
}

.landing__strip-item:hover {
  border-color: rgba(50, 205, 50, 0.22);
  background: rgba(50, 205, 50, 0.08);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.landing__strip-item:focus-visible {
  outline: 2px solid rgba(50, 205, 50, 0.55);
  outline-offset: 2px;
}

.landing__strip + .landing__band {
  border-top: none;
}

/* Anchor targets clear the sticky site header */
.landing__strip,
.landing__band {
  scroll-margin-top: calc(var(--landing-header-offset, 4.75rem) + 0.85rem);
}

.landing__strip-label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: clamp(0.78rem, 1.6vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(200, 245, 200, 0.96);
}

.landing__strip-desc {
  display: block;
  font-size: clamp(0.8rem, 1.65vw, 0.92rem);
  line-height: 1.42;
  color: var(--landing-muted);
}

.landing__band {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(3.15rem, 7vw, 4.75rem) 0;
  border-top: 1px solid var(--landing-line);
}

.landing__band--tint {
  background:
    radial-gradient(ellipse 72% 48% at 18% -8%, rgba(50, 205, 50, 0.1), transparent 52%),
    linear-gradient(180deg, rgba(16, 26, 20, 0.94) 0%, rgba(6, 8, 7, 0.98) 100%);
}

.landing__band--soft {
  background:
    radial-gradient(ellipse 88% 55% at 50% -20%, rgba(50, 205, 50, 0.055), transparent 58%),
    rgba(9, 9, 11, 0.35);
}

.landing__band-inner {
  max-width: var(--landing-max);
  margin: 0 auto;
  padding: 0 clamp(1rem, 5vw, 2rem);
}

/* Narrative bands: consistent vertical rhythm between headline block and media */
#deep-dive .landing__band-inner,
#screen-rank .landing__band-inner {
  display: flex;
  flex-direction: column;
  gap: clamp(1.35rem, 3vw, 2rem);
}

/* Backtest band: headline + live preview in two columns on wide screens */
#simulate .landing__band-inner {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2rem);
}

@media (min-width: 1024px) {
  #simulate .landing__band-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
    align-items: start;
    column-gap: clamp(1.75rem, 4vw, 3rem);
  }

  #simulate .landing__band-head {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    text-align: left;
    max-width: 36rem;
    padding-left: 0;
    padding-right: 0;
  }

  #simulate .landing__section-lede {
    margin-left: 0;
    margin-right: 0;
    max-width: 36rem;
  }

  #simulate .landing__band-cta {
    margin-left: 0;
  }

  #simulate .landing__backtest-demo-wrap {
    margin-top: 0;
    max-width: none;
    width: 100%;
  }
}

.landing__band-head {
  max-width: min(46rem, 100%);
  margin: 0 auto clamp(2rem, 4vw, 2.5rem);
  padding: 0 clamp(0, 3vw, 0.5rem);
  text-align: center;
}

.landing__band .landing__section-kicker {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(50, 205, 50, 0.22);
  background: rgba(50, 205, 50, 0.07);
  font-size: clamp(0.64rem, 1.25vw, 0.74rem);
  letter-spacing: 0.14em;
  color: rgba(210, 250, 210, 0.94);
}

.landing__band-head .landing__section-lede {
  margin-top: 0.65rem;
}

.landing__band-cta {
  margin-top: 1.55rem;
}

body.landing .landing__band-cta.btn-primary-action {
  padding: 0.62rem 1.35rem;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.landing__band .landing__shots-grid {
  margin-top: 0.35rem;
}

.landing__band-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  max-width: 52rem;
  margin: 0.5rem auto 0;
}

@media (max-width: 768px) {
  .landing__band-split {
    grid-template-columns: 1fr;
  }
}

.landing__band-panel {
  position: relative;
  padding: 1.35rem 1.2rem 1.35rem 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(50, 205, 50, 0.06), transparent 55%),
    rgba(0, 0, 0, 0.34);
  overflow: hidden;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.landing__band-panel::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--primary-color, #32cd32), var(--primary-dark, #28a428));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.landing__band-panel:hover {
  border-color: rgba(50, 205, 50, 0.22);
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.38),
    0 0 0 1px rgba(50, 205, 50, 0.08);
}

.landing__band-panel:hover::before {
  opacity: 1;
}

.landing__band-panel-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.55rem;
  font-size: clamp(1.08rem, 2.2vw, 1.22rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.landing__band-panel-title i {
  color: var(--primary-color, #32cd32);
  font-size: clamp(1rem, 2vw, 1.12rem);
}

.landing__band-panel-desc {
  margin: 0 0 1rem;
  font-size: clamp(0.9rem, 1.8vw, 0.98rem);
  line-height: 1.52;
  color: var(--landing-muted);
}

.landing__band-panel-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: clamp(0.82rem, 1.6vw, 0.88rem);
  font-weight: 700;
  color: var(--primary-color, #32cd32);
  text-decoration: none;
  transition: color 0.15s ease, gap 0.2s var(--landing-ease-out);
}

.landing__band-panel-cta:hover {
  color: #5ee05e;
  gap: 0.5rem;
}

.landing__band-panel-cta:focus-visible {
  outline: 2px solid rgba(50, 205, 50, 0.55);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Landing page: footer reads as end of the same canvas as the bands */
body.landing .site-footer {
  position: relative;
  z-index: 3;
  margin-top: 0;
  padding: clamp(2.5rem, 5vw, 3.25rem) clamp(1rem, 4vw, 1.75rem) 2.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background:
    radial-gradient(ellipse 72% 60% at 50% 0%, rgba(50, 205, 50, 0.045), transparent 58%),
    #080809;
}

body.landing .site-footer__container {
  max-width: min(52rem, 100%);
  padding-inline: clamp(0.5rem, 3vw, 1rem);
  box-sizing: border-box;
}

body.landing .site-footer__divider {
  width: 3.25rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(50, 205, 50, 0.28), transparent);
  opacity: 1;
}
