/* ==========================================================================
   ScoutEdge landing — premium motion & polish layer ("demo" build).
   Loads after landing.css. Pure enhancement: the page is fully usable with
   this file (and landing-fx.js) absent. All motion respects reduced-motion.
   ========================================================================== */

/* ---------- Scroll reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-28px); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="zoom"] { transform: scale(0.94); }

/* Stagger helper for grids/lists */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
[data-stagger].is-in > * { opacity: 1; transform: none; }
[data-stagger].is-in > *:nth-child(1) { transition-delay: 0.02s; }
[data-stagger].is-in > *:nth-child(2) { transition-delay: 0.08s; }
[data-stagger].is-in > *:nth-child(3) { transition-delay: 0.14s; }
[data-stagger].is-in > *:nth-child(4) { transition-delay: 0.20s; }
[data-stagger].is-in > *:nth-child(5) { transition-delay: 0.26s; }
[data-stagger].is-in > *:nth-child(6) { transition-delay: 0.32s; }
[data-stagger].is-in > *:nth-child(7) { transition-delay: 0.38s; }
[data-stagger].is-in > *:nth-child(8) { transition-delay: 0.44s; }
[data-stagger].is-in > *:nth-child(9) { transition-delay: 0.50s; }
[data-stagger].is-in > *:nth-child(n+10) { transition-delay: 0.56s; }

/* ---------- Hero: living aurora + entrance ---------- */
.l-hero { --mx: 50%; --my: 20%; }
.l-hero::after {
  content: ""; position: absolute; inset: -30% -10% auto; height: 820px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(540px 320px at var(--mx) var(--my), rgba(31, 224, 122, 0.18), transparent 70%),
    radial-gradient(460px 300px at calc(100% - var(--mx)) 8%, rgba(212, 255, 58, 0.14), transparent 72%);
  filter: saturate(1.1);
  animation: aurora 16s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(-18px, -10px, 0) scale(1); opacity: 0.9; }
  100% { transform: translate3d(22px, 14px, 0) scale(1.08); opacity: 1; }
}

/* Hero text choreography (JS adds .fx-ready; CSS fallback shows it anyway) */
.l-hero-grid .l-eyebrow,
.l-hero-grid .l-title,
.l-hero-grid .l-lead,
.l-hero-grid .l-actions,
.l-hero-grid .l-trust { animation: hero-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both; }
.l-hero-grid .l-title { animation-delay: 0.06s; }
.l-hero-grid .l-lead { animation-delay: 0.16s; }
.l-hero-grid .l-actions { animation-delay: 0.24s; }
.l-hero-grid .l-trust { animation-delay: 0.32s; }
@keyframes hero-rise { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

/* The accent-stroke middle line draws a shimmer across itself */
.l-title span { position: relative; background: linear-gradient(90deg, transparent, rgba(31,224,122,0.18), transparent) 0 0 / 220% 100% no-repeat; -webkit-background-clip: text; animation: title-sheen 6s ease-in-out 1s infinite; }
@keyframes title-sheen { 0%, 100% { background-position: 220% 0; } 50% { background-position: -40% 0; } }

/* Primary button sheen */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-18deg); transition: none;
}
.btn-primary:hover::after { animation: btn-sheen 0.9s ease; }
@keyframes btn-sheen { to { left: 160%; } }

/* ---------- Section headings: accent wipe on reveal ---------- */
.l-h2 em, .l-h3 em { background: linear-gradient(var(--accent-strong), var(--accent-strong)) left bottom / 0% 2px no-repeat; padding-bottom: 2px; transition: background-size 0.7s ease 0.2s; }
[data-reveal].is-in .l-h2 em, [data-reveal].is-in .l-h3 em { background-size: 100% 2px; }

/* ---------- Journey loop: connecting progress line ---------- */
.l-loop { position: relative; }
.l-loop li { transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
.l-loop li:hover { box-shadow: 0 18px 40px -24px rgba(16,25,20,0.3); }

/* ---------- Feature cards: pointer glow ---------- */
.l-features article { --fx: 50%; --fy: 50%; overflow: hidden; }
.l-features article::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(260px 160px at var(--fx) var(--fy), var(--accent-soft), transparent 70%);
  transition: opacity 0.3s ease;
}
.l-features article:hover::before { opacity: 1; }
.l-features .l-ico { transition: transform 0.3s cubic-bezier(0.22,1,0.36,1); }
.l-features article:hover .l-ico { transform: translateY(-3px) scale(1.06) rotate(-3deg); }

/* ---------- Ticker: fade edges for a premium marquee ---------- */
.l-band { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }

/* ---------- CTA: slow drifting glow ---------- */
.l-cta::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(600px 260px at 30% 120%, rgba(212,255,58,0.1), transparent 70%);
  animation: aurora 18s ease-in-out infinite alternate; }
.l-cta > * { position: relative; z-index: 1; }

/* Scroll progress bar at the very top */
.l-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--accent), var(--volt)); box-shadow: 0 0 12px rgba(31,224,122,0.6); transition: width 0.1s linear; }

/* ---------- Reduced motion: hard stop ---------- */
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-stagger] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .l-hero::after, .l-cta::before, .l-title span { animation: none !important; }
  .l-hero-grid .l-eyebrow, .l-hero-grid .l-title, .l-hero-grid .l-lead, .l-hero-grid .l-actions, .l-hero-grid .l-trust { animation: none !important; }
  .l-progress { display: none; }
}

/* ==========================================================================
   v2 — redesigned principles + nav fx (football/preloader removed).
   GPU-composited transforms/opacity only; hard-stops under reduced-motion.
   ========================================================================== */

/* ---------- Redesigned principles section ---------- */
.l-principles-section { position: relative; overflow: hidden; }
.l-pr-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(600px 320px at 85% -10%, rgba(31,224,122,0.12), transparent 70%), radial-gradient(500px 300px at 5% 110%, rgba(212,255,58,0.1), transparent 70%); }
.l-principles-section .l-wrap { position: relative; z-index: 1; }
.l-pr-head { max-width: 40em; }
.l-pr-head .l-h2 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1; }
.l-pr-scale-card {
  margin: 40px 0 20px; padding: 30px 32px; border-radius: 20px;
  background: linear-gradient(135deg, #0b1b2b, #12263a 65%, #143049); color: #eaf2f7;
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
  box-shadow: 0 30px 60px -30px rgba(16,25,20,0.5);
}
.l-pr-scale-card .l-h3 { color: #fff; margin: 8px 0 10px; }
.l-pr-scale-card .l-muted { color: #b9ccd9; }
.l-pr-tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: rgba(31,224,122,0.16); border: 1px solid rgba(31,224,122,0.5); color: #d7ffe9; font: 700 0.7rem var(--font); letter-spacing: 0.14em; text-transform: uppercase; }
.l-scale-lg { gap: 8px; }
.l-scale-lg span { font-size: 0.9rem; padding: 9px 12px; border-radius: 9px; }

.l-pr-grid { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.l-pr-item {
  position: relative; padding: 26px 24px 24px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--border); overflow: hidden; transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.l-pr-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(var(--accent), var(--volt)); transform: scaleY(0); transform-origin: top; transition: transform 0.35s cubic-bezier(0.22,1,0.36,1); }
.l-pr-item:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 22px 44px -26px rgba(16,25,20,0.35); }
.l-pr-item:hover::before { transform: scaleY(1); }
.l-pr-n { font: 800 1.1rem/1 var(--display); color: transparent; -webkit-text-stroke: 1px var(--accent); letter-spacing: 0.04em; }
.l-pr-item h3 { margin: 12px 0 8px; font: 800 1.2rem/1.1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.l-pr-item p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.l-pr-item em { color: var(--accent-strong); font-style: normal; font-weight: 700; }

/* ---------- Nav bar: new effects ---------- */
.site-header { transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.site-header.is-stuck { background: rgba(246,248,247,0.9); box-shadow: 0 10px 30px -18px rgba(16,25,20,0.35); border-bottom-color: transparent; }
/* animated underline that slides in from the left */
.site-nav a { position: relative; }
.site-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.28s cubic-bezier(0.22,1,0.36,1); }
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a:hover { background: transparent; color: var(--text); }
/* CTA button gets a magnetic lift */
.site-cta .btn-primary { transition: transform 0.2s cubic-bezier(0.22,1,0.36,1), box-shadow 0.2s ease, background 0.15s; }
.site-cta .btn-primary:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.site-header .logo .logo-mark { transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.site-header .logo:hover .logo-mark { transform: scale(1.04); }

@media (max-width: 1000px) {
  .l-pr-scale-card { grid-template-columns: 1fr; }
  .l-pr-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .l-pr-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   v3 — product-driven hero, three-role band, animated journey, text reveal.
   Brand only (dark green / black / white / neon green). GPU transforms only.
   ========================================================================== */

/* ---------- Hero text reveal (line-by-line) ---------- */
.l-title-reveal .r { display: block; opacity: 0; transform: translateY(26px); animation: line-rise 0.8s cubic-bezier(0.22,1,0.36,1) forwards; }
.l-title-reveal .r:nth-child(1) { animation-delay: 0.05s; }
.l-title-reveal .r:nth-child(2) { animation-delay: 0.16s; }
.l-title-reveal .r:nth-child(3) { animation-delay: 0.27s; }
.l-hero-copy .l-eyebrow, .l-hero-copy .l-lead, .l-hero-copy .l-actions, .l-hero-copy .l-trust { opacity: 0; transform: translateY(16px); animation: line-rise 0.7s cubic-bezier(0.22,1,0.36,1) forwards; }
.l-hero-copy .l-eyebrow { animation-delay: 0s; }
.l-hero-copy .l-lead { animation-delay: 0.34s; }
.l-hero-copy .l-actions { animation-delay: 0.42s; }
.l-hero-copy .l-trust { animation-delay: 0.5s; }
@keyframes line-rise { to { opacity: 1; transform: none; } }

/* ---------- Hero product stack (UI previews, no sports object) ---------- */
.hero-stack { position: relative; min-height: 460px; display: grid; align-content: center; }
.hero-wire { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; overflow: visible; pointer-events: none; }
.hero-wire-path { stroke: url(#g); stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 8; opacity: 0.5; stroke-dashoffset: 0; animation: wire-flow 2.4s linear infinite; filter: drop-shadow(0 0 6px rgba(31,224,122,0.4)); }
@keyframes wire-flow { to { stroke-dashoffset: -140; } }

.hero-ui {
  position: relative; z-index: 1; margin: 0; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 24px 60px -30px rgba(16,25,20,0.3), 0 2px 6px -2px rgba(16,25,20,0.08);
  translate: var(--px, 0) var(--py, 0); transition: translate 0.25s ease, transform 0.3s ease, box-shadow 0.3s ease;
  display: grid; gap: 12px; width: min(340px, 86%);
}
.ui-profile { justify-self: end; animation: ui-float 7s ease-in-out infinite; }
.ui-eval { justify-self: start; margin-top: -8px; animation: ui-float 8s ease-in-out infinite 0.6s; }
.ui-decision { justify-self: center; width: auto; display: inline-flex; align-items: center; gap: 12px; padding: 12px 18px; animation: ui-float 6.5s ease-in-out infinite 1.1s; }
@keyframes ui-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.hero-ui:hover { box-shadow: 0 30px 70px -28px rgba(16,25,20,0.4); }

.ui-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.ui-avatar { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 800 1.1rem var(--display); color: var(--accent-text); background: linear-gradient(135deg, var(--volt), var(--accent)); }
.ui-avatar.sm { width: 36px; height: 36px; font-size: 0.95rem; border-radius: 10px; }
.ui-id strong { display: block; font: 800 1.1rem/1 var(--display); text-transform: uppercase; }
.ui-id .badge { margin-top: 4px; }
.ui-verified { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-text); font-size: 0.8rem; font-weight: 800; }
.ui-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ui-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ui-stats div { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px; text-align: center; }
.ui-stats b { display: block; font: 800 1.6rem/1 var(--display); }
.ui-stats span { font-size: 0.64rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.ui-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ui-kicker { font: 700 0.68rem var(--font); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-strong); }
.ui-rating { display: flex; align-items: center; gap: 10px; }
.ui-rating-label { font-weight: 700; font-size: 0.92rem; }
.ui-note { margin: 0; font-size: 0.88rem; color: var(--muted); line-height: 1.5; }
.ui-meta { font-size: 0.78rem; color: var(--muted); }

/* ---------- Three-role band ---------- */
.l-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.l-role { position: relative; padding: 28px; border-radius: 18px; border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface-2), var(--surface)); display: grid; gap: 12px; align-content: start; overflow: hidden; transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
.l-role::after { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--accent), var(--volt)); transform: scaleX(0); transform-origin: left; transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.l-role:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 26px 54px -30px rgba(16,25,20,0.4); }
.l-role:hover::after { transform: scaleX(1); }
.l-role-tag { font: 800 0.72rem var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-strong); }
.l-role h3 { margin: 0; font: 800 1.5rem/1.05 var(--display); text-transform: uppercase; }
.l-role p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.l-role-ui { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); margin-top: 4px; }
.l-role-ui strong { display: block; font: 700 0.98rem var(--font); }
.l-role-ui .badge { margin-top: 3px; }
.l-role-ui .muted { font-size: 0.82rem; }
.l-role-link { margin-top: 4px; font-weight: 700; color: var(--accent-strong); font-size: 0.92rem; }
.l-role-link:hover { text-decoration: none; }

/* ---------- Animated journey (How it works) ---------- */
.l-journey { list-style: none; margin: 48px 0 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: j; }
.l-journey li { counter-increment: j; position: relative; padding: 20px 18px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); display: grid; gap: 4px; transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s; }
.l-journey li::before { content: counter(j, decimal-leading-zero); font: 800 1.5rem/1 var(--display); color: transparent; -webkit-text-stroke: 1px var(--accent); }
.l-journey li:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 18px 40px -26px rgba(16,25,20,0.32); }
.l-journey b { font: 800 1.05rem/1.05 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.l-journey span { font-size: 0.84rem; color: var(--muted); }
.l-journey li:last-child { background: linear-gradient(135deg, #0b3f25, #0a3620); border-color: transparent; }
.l-journey li:last-child b, .l-journey li:last-child span { color: #eafff2; }
.l-journey li:last-child::before { -webkit-text-stroke-color: var(--volt); }

@media (max-width: 1000px) {
  .hero-stack { min-height: 400px; }
  .l-roles { grid-template-columns: 1fr; }
  .l-journey { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .hero-ui { width: 100%; }
  .ui-profile, .ui-eval, .ui-decision { justify-self: stretch; }
  .l-journey { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .l-title-reveal .r, .l-hero-copy .l-eyebrow, .l-hero-copy .l-lead, .l-hero-copy .l-actions, .l-hero-copy .l-trust { opacity: 1 !important; transform: none !important; animation: none !important; }
  .ui-profile, .ui-eval, .ui-decision, .hero-wire-path { animation: none !important; }
}
