/* =============================================================================
   home-motion.css — cinematic "motion site" styling for the RemiTracker home page.
   Loaded ONLY on the home page via @section Styles in Views/Home/Index.cshtml.

   Principles (fintech: restraint reads as trustworthy):
   - Content is FULLY VISIBLE by default. All motion is progressive enhancement:
     hide-on-start states apply ONLY under html.rt-anim (added by a tiny <head>
     hook when JS runs AND reduced-motion is off). No-JS / reduced-motion / crawler
     => everything visible, instantly.
   - Animate transform / opacity / filter only (compositor-friendly, no layout shift).
   - Palette: brand green PRIMARY, electric-indigo as a controlled ACCENT only
     (particle strands + a couple of glows), on near-black. No indigo wash.
   ============================================================================= */

:root {
    /* surfaces */
    --rt-bg: #06070b;
    --rt-bg-2: #080a10;
    --rt-ink: #f3f6f6;
    --rt-ink-dim: #9aa6ad;
    --rt-ink-faint: #67727a;
    --rt-line: rgba(255, 255, 255, .09);
    --rt-line-2: rgba(255, 255, 255, .14);
    --rt-glass: rgba(255, 255, 255, .04);
    /* brand green */
    --rt-mint: #00E6B0;
    --rt-teal: #00C896;
    --rt-teal-deep: #00A878;
    /* electric-indigo accent */
    --rt-indigo: #6D5EF7;
    --rt-indigo-bright: #8B7CFF;
    /* alert red — used only in the before/after "old way" panel */
    --rt-red: #ff6b6b;
    /* motion */
    --rt-ease: cubic-bezier(.22, 1, .36, 1);
    --rt-ease-expo: cubic-bezier(.16, 1, .3, 1);
    --rt-r: 16px;
}

/* Home page is dark. Scoped safely because this stylesheet only loads on home. */
html, body { background: var(--rt-bg) !important; color: var(--rt-ink); }
body { overflow-x: clip; }

/* The global app shell pins html,body { height:100%; overflow-y:auto } so BODY becomes the
   scroll container. Window-based ScrollTrigger + Lenis then never see any scroll, so the
   reveal/pin/scrub effects can't fire. On the home page we let the WINDOW scroll instead
   (home-motion.css only loads here, so other pages' app-shell layout is untouched). */
html { height: auto !important; overflow-y: visible !important; }
body { height: auto !important; min-height: 100% !important; overflow-y: visible !important; }

/* ============================ scroll progress bar ===========================
   Native CSS scroll-driven animation — zero JS. Falls back to invisible. */
.rt-scroll-progress {
    position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 2000;
    transform: scaleX(0); transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--rt-teal-deep), var(--rt-mint) 55%, var(--rt-indigo-bright));
    box-shadow: 0 0 12px rgba(0, 230, 176, .5); pointer-events: none;
}
@supports (animation-timeline: scroll()) {
    .rt-scroll-progress { animation: rt-progress-grow linear both; animation-timeline: scroll(root block); }
}
@keyframes rt-progress-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ============================ shared bits ================================= */
.rt-eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
    color: var(--rt-ink-dim);
}
.rt-eyebrow-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--rt-mint);
    box-shadow: 0 0 0 4px rgba(0, 230, 176, .14); flex: 0 0 auto;
}
html.rt-anim .rt-eyebrow-dot { animation: rt-pulse 2.6s ease-in-out infinite; }
@keyframes rt-pulse { 0%,100% { box-shadow: 0 0 0 3px rgba(0,230,176,.16); } 50% { box-shadow: 0 0 0 7px rgba(0,230,176,.02); } }

.rt-section-head { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.rt-section-head .rt-eyebrow { margin-bottom: .9rem; }
.rt-section-head h2 {
    font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -.03em;
    line-height: 1.05; color: #fff; margin: 0 0 .7rem;
}
.rt-section-head p { color: var(--rt-ink-dim); font-size: clamp(1rem, 1.3vw, 1.15rem); line-height: 1.55; margin: 0; }

/* buttons — pills, solid green primary w/ glow, glass secondary */
.rt-btn {
    display: inline-flex; align-items: center; gap: .6rem; cursor: pointer;
    font-size: 1rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none;
    border-radius: 999px; padding: .85rem 1.6rem; border: 1px solid transparent;
    transition: transform .18s var(--rt-ease), box-shadow .18s var(--rt-ease), background .18s var(--rt-ease), border-color .18s var(--rt-ease);
}
.rt-btn-primary {
    background: linear-gradient(180deg, var(--rt-mint), var(--rt-teal-deep)); color: #04231a;
    box-shadow: 0 12px 34px rgba(0, 200, 150, .34);
}
.rt-btn-primary:hover { transform: translateY(-2px); color: #04231a; box-shadow: 0 18px 48px rgba(0, 230, 176, .5); }
.rt-btn-primary .rt-btn-arrow { transition: transform .18s var(--rt-ease); }
.rt-btn-primary:hover .rt-btn-arrow { transform: translateX(3px); }
.rt-btn-glass {
    background: var(--rt-glass); color: #fff; border-color: var(--rt-line); backdrop-filter: blur(8px);
}
.rt-btn-glass:hover { transform: translateY(-2px); background: rgba(255,255,255,.08); border-color: var(--rt-line-2); color: #fff; }

/* ============================ HERO ======================================= */
.rt-hero {
    position: relative; overflow: hidden; isolation: isolate;
    min-height: 90vh; min-height: 90svh; display: flex; align-items: flex-start;
    /* copy + demo pushed down from the top for breathing room under the nav */
    padding: 10vh 0 2rem;
    background:
        radial-gradient(120% 90% at 50% 8%, #0d1a18 0%, #0a1210 42%, #07090d 76%, var(--rt-bg) 100%);
}
.rt-hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; pointer-events: none; }
/* faint perspective floor-grid for depth (pure CSS, never "the visual") */
.rt-hero-grid {
    position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
    background-image:
        linear-gradient(to right, rgba(0, 230, 176, .05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 230, 176, .05) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(90% 70% at 50% 42%, #000 0%, transparent 72%);
    -webkit-mask-image: radial-gradient(90% 70% at 50% 42%, #000 0%, transparent 72%);
}
/* vignette keeps the headline high-contrast; plus one faint indigo accent glow upper-right */
.rt-hero-veil {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background:
        radial-gradient(40% 50% at 82% 16%, rgba(109, 94, 247, .12) 0%, transparent 60%),
        radial-gradient(130% 115% at 50% 46%, transparent 48%, rgba(5, 6, 9, .55) 84%, rgba(4, 5, 8, .85) 100%);
}
.rt-hero-inner { position: relative; z-index: 3; text-align: center; display: flex; flex-direction: column; align-items: center; }
.rt-hero-inner .rt-eyebrow { margin-bottom: 1.4rem; }

.rt-hero-h1 {
    margin: 0 0 1.3rem; max-width: 16ch;
    font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.02; color: #fff;
}
.rt-hero-h1 .rt-blur-line { display: inline; }
.rt-hero-sub {
    margin: 0 auto 2.2rem; max-width: 40rem; color: var(--rt-ink-dim);
    font-size: clamp(1.08rem, 1.5vw, 1.4rem); line-height: 1.5; font-weight: 400;
}
.rt-hero-cta { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }
.rt-hero-proof {
    margin-top: 2.2rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .9rem;
    color: var(--rt-ink-faint); font-size: .9rem; font-weight: 500;
}
.rt-proof-item { display: inline-flex; align-items: center; gap: .5rem; }
.rt-proof-item i { color: var(--rt-teal); font-size: 1.05rem; }
.rt-proof-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--rt-line-2); }

.rt-hero-scrollcue {
    position: static; margin: 1.8rem auto 0; z-index: 3;
    display: flex; flex-direction: column; align-items: center; gap: .5rem;
    font-size: .68rem; letter-spacing: .25em; text-transform: uppercase; color: var(--rt-ink-faint);
}
.rt-scrollcue-line { width: 1px; height: 34px; background: linear-gradient(var(--rt-teal), transparent); }
html.rt-anim .rt-scrollcue-line { animation: rt-cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes rt-cue { 0%,100% { transform: scaleY(.4); opacity: .5; } 50% { transform: scaleY(1); opacity: 1; } }

/* ============================ HERO DEMO LOOP ===========================
   The muted autoplay app loop in a browser frame, INSIDE the hero sitting over
   the moving-lights background, below the copy. Click = full tour with sound. */
.rt-hero-demo { position: relative; z-index: 3; width: 100%; max-width: 1040px; margin: 1.3rem auto 0; }
.rt-hero-demo .rt-browser { position: relative; }

/* ============================ PINNED STORY =============================== */
.rt-story { position: relative; background: linear-gradient(180deg, var(--rt-bg) 0%, var(--rt-bg-2) 100%); }
.rt-story-stage { padding: 6rem 0; }
.rt-story-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.rt-story-caps .rt-eyebrow { margin-bottom: 1.5rem; }
.rt-cap-stack { position: relative; }
.rt-cap { max-width: 30rem; }
.rt-cap + .rt-cap { margin-top: 2rem; }
.rt-cap-index { font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--rt-teal); font-variant-numeric: tabular-nums; }
.rt-cap h3 { margin: .5rem 0 .6rem; font-size: clamp(1.4rem, 2.3vw, 2rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; color: #fff; }
.rt-cap p { margin: 0; color: var(--rt-ink-dim); font-size: 1.05rem; line-height: 1.55; }

/* When JS pins the stage, the caps cross-fade in place (one active at a time). */
.rt-story--pinned .rt-cap-stack { min-height: 15rem; }
.rt-story--pinned .rt-cap {
    position: absolute; inset: 0; opacity: 0; transform: translateY(18px);
    transition: opacity .5s var(--rt-ease), transform .5s var(--rt-ease); pointer-events: none;
}
.rt-story--pinned .rt-cap + .rt-cap { margin-top: 0; }
.rt-story--pinned .rt-cap.is-active { opacity: 1; transform: none; pointer-events: auto; }

/* browser frame holding the real-app demo */
.rt-story-demo { position: relative; width: 100%; }
.rt-browser {
    border-radius: var(--rt-r); overflow: hidden; background: #0b0f14; border: 1px solid var(--rt-line);
    box-shadow: 0 50px 120px rgba(0,0,0,.6), 0 0 0 1px rgba(0,230,176,.06), 0 24px 80px rgba(0,200,150,.12);
}
.rt-browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #0e141b; }
.rt-browser-dot { width: 11px; height: 11px; border-radius: 50%; background: #2a323c; }
.rt-browser-url { margin-left: 12px; font-size: .78rem; color: #7e8a95; background: rgba(255,255,255,.05); border-radius: 6px; padding: 3px 14px; }
.rt-browser-video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #0b0f14; }
.rt-browser-fallback { display: none; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.rt-browser-play { position: absolute; inset: 0; z-index: 2; display: flex; align-items: flex-end; justify-content: flex-end; padding: 14px; background: transparent; border: 0; cursor: pointer; }
.rt-browser-play:focus-visible { outline: 3px solid var(--rt-mint); outline-offset: -3px; border-radius: var(--rt-r); }
.rt-browser-play-chip { display: inline-flex; align-items: center; gap: 10px; background: rgba(8,18,34,.6); backdrop-filter: blur(3px); border-radius: 999px; padding: 6px 15px 6px 6px; transition: transform .18s var(--rt-ease), background .18s var(--rt-ease); }
.rt-browser-play:hover .rt-browser-play-chip { transform: scale(1.05); background: rgba(8,18,34,.82); }
.rt-browser-play-circle { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--rt-mint); color: #04231a; box-shadow: 0 4px 14px rgba(0,230,176,.5); flex: 0 0 auto; }
.rt-browser-play-circle i { margin-left: 2px; }
.rt-browser-play-label { color: #fff; font-size: .82rem; font-weight: 600; white-space: nowrap; padding-right: 6px; }
.rt-story-progress { display: flex; gap: 8px; justify-content: center; margin-top: 1.3rem; }
.rt-story-dot { width: 26px; height: 4px; border-radius: 999px; background: var(--rt-line-2); transition: background .35s var(--rt-ease); }
.rt-story-dot.is-active { background: var(--rt-mint); }

/* ============================ BEFORE / AFTER WIPE =======================
   Scrub-pinned wipe. DEFAULT (no .rt-ba--pinned) = static: the "after" (app) shows
   as a plain block, paper/label/divider hidden. JS adds .rt-ba--pinned ONLY on
   desktop + GSAP, which turns on the 100vh pinned wipe driven by --p (0..1). */
.rt-ba { position: relative; background: var(--rt-bg); }
.rt-ba-stage { position: relative; }
/* static defaults */
.rt-ba-label, .rt-before, .rt-divider { display: none; }
.rt-after { position: relative; }
.rt-after-stack { display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 1.1rem; width: min(1100px, 92vw); margin: 0 auto; padding: 3.5rem 0; }
.rt-ba-benefit { display: flex; align-items: center; gap: .7rem; font-weight: 500; letter-spacing: -.01em; line-height: 1; color: #eef3f3; font-size: clamp(1.2rem, 2.2vw, 1.9rem); text-shadow: 0 4px 22px rgba(0,0,0,.55); }
.rt-ba-k { font-family: 'Instrument Serif', Georgia, serif; font-style: italic; font-weight: 400; color: var(--rt-mint); font-size: 1.22em; letter-spacing: 0; text-shadow: 0 0 22px rgba(0,230,176,.25); }
.rt-ba-mk { width: 30px; height: 2px; border-radius: 2px; background: var(--rt-mint); opacity: .85; flex: 0 0 auto; }
.rt-ba-benefit-top { justify-content: flex-start; }
.rt-ba-benefit-bot { justify-content: flex-end; }
.rt-browser-shot { display: block; width: 100%; height: auto; }
.rt-caught { position: absolute; left: 50%; bottom: 4%; translate: -50% 0; z-index: 3; background: rgba(6,20,16,.92); border: 1px solid rgba(0,230,176,.5); color: var(--rt-mint); border-radius: 10px; padding: 10px 16px; font-weight: 700; font-size: .9rem; display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
/* the paper "old way" props (only rendered when pinned shows .rt-before) */
.rt-old { position: relative; width: min(1100px, 92vw); height: min(620px, 78vh); }
.rt-ledger { position: absolute; inset: 15% 17%; background: repeating-linear-gradient(#efe9dd, #efe9dd 38px, #d9d2c4 39px, #efe9dd 41px); border-radius: 3px; box-shadow: 0 20px 50px rgba(0,0,0,.55); padding: 26px 28px; font-family: 'Caveat', cursive; color: #333; font-size: 1.6rem; line-height: 41px; rotate: 1.5deg; }
.rt-note { position: absolute; padding: 16px 20px; border-radius: 5px; font-family: 'Caveat', cursive; font-size: 1.7rem; color: #222; box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.rt-note-y { background: #f2d675; rotate: -5deg; top: 3%; left: 4%; }
.rt-note-p { background: #eac3c3; rotate: 4deg; top: 9%; right: 6%; }
.rt-note-g { background: #cfe0b4; rotate: -3deg; bottom: 11%; left: 8%; }
.rt-warn { position: absolute; left: 50%; bottom: 1%; translate: -50% 0; background: rgba(40,12,12,.92); border: 1px solid rgba(255,107,107,.6); color: var(--rt-red); border-radius: 12px; padding: 13px 20px; font-weight: 700; font-size: 1.05rem; display: inline-flex; gap: 9px; align-items: center; font-family: 'Inter', sans-serif; white-space: nowrap; }
/* ---- pinned wipe (desktop + GSAP) ---- */
.rt-ba--pinned .rt-ba-stage { height: 100vh; overflow: hidden; --p: 0; }
.rt-ba--pinned .rt-ba-label { display: block; position: absolute; top: 7vh; left: 0; right: 0; z-index: 6; text-align: center; pointer-events: none; }
.rt-ba-pill { display: inline-flex; gap: 12px; align-items: center; background: rgba(8,12,18,.55); backdrop-filter: blur(8px); border: 1px solid var(--rt-line); border-radius: 999px; padding: 8px 18px; font-weight: 700; font-size: .95rem; }
.rt-ba-lo { color: var(--rt-red); } .rt-ba-ln { color: var(--rt-mint); }
.rt-ba--pinned .rt-panel { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 4vw; }
.rt-ba--pinned .rt-before { display: grid; background: var(--rt-bg); }
.rt-ba--pinned .rt-after { background: var(--rt-bg); clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.rt-ba--pinned .rt-after-stack { padding: 0; width: min(1100px, 92vw, 116vh); }
.rt-ba--pinned .rt-divider { display: block; position: absolute; top: 0; bottom: 0; left: calc(var(--p) * 100%); width: 2px; z-index: 5; background: linear-gradient(var(--rt-mint), var(--rt-indigo-bright)); box-shadow: 0 0 16px rgba(0,230,176,.6); transform: translateX(-1px); }
.rt-divider i { position: absolute; top: 50%; left: 50%; translate: -50% -50%; transform: rotate(90deg); width: 40px; height: 40px; border-radius: 50%; background: #0b0f14; border: 2px solid var(--rt-mint); box-shadow: 0 0 20px rgba(0,230,176,.4); display: flex; align-items: center; justify-content: center; color: var(--rt-mint); }

/* ============================ GUIDED TOUR ===============================
   DEFAULT (no .rt-tour--pinned) = static: app screenshot + the 5 steps as a list,
   ring/badges/dots hidden. JS adds .rt-tour--pinned on desktop + GSAP for the
   100vh pinned ring walkthrough. */
.rt-tour { position: relative; background: linear-gradient(180deg, var(--rt-bg) 0%, var(--rt-bg-2) 100%); }
.rt-tour-stage { position: relative; padding: 4rem 0; }
.rt-tour-demo { position: relative; width: min(1000px, 90vw); margin: 0 auto; }
.rt-appscreen { position: relative; }
.rt-appscreen > img { display: block; width: 100%; height: auto; }
.rt-ring, .rt-tdots, .rt-fbadge { display: none; }
.rt-tcap { max-width: 620px; margin: 1.4rem auto 0; text-align: center; }
.rt-tcap-s { font-size: .78rem; font-weight: 700; letter-spacing: .1em; color: var(--rt-mint); }
.rt-tcap h3 { margin: .35rem 0 .3rem; font-size: clamp(1.2rem, 2vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; color: #fff; }
.rt-tcap p { margin: 0; color: var(--rt-ink-dim); font-size: 1rem; line-height: 1.5; }
/* ---- pinned walkthrough (desktop + GSAP) ---- */
.rt-tour--pinned .rt-tour-stage { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; padding: 0; }
.rt-tour--pinned .rt-ring { display: block; position: absolute; border: 2px solid var(--rt-mint); border-radius: 10px; box-shadow: 0 0 0 4000px rgba(5,7,11,.46), 0 0 22px rgba(0,230,176,.55); transition: left .55s var(--rt-ease), top .55s var(--rt-ease), width .55s var(--rt-ease), height .55s var(--rt-ease); z-index: 3; pointer-events: none; left: 50%; top: 39%; width: 14%; height: 5%; }
.rt-ring::after { content: ''; position: absolute; inset: -6px; border: 1px solid rgba(0,230,176,.4); border-radius: 14px; animation: rt-ring-pulse 2s ease-out infinite; }
@keyframes rt-ring-pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.12); opacity: 0; } }
.rt-tour--pinned .rt-fbadge { display: inline-flex; align-items: center; gap: 8px; position: absolute; z-index: 4; border-radius: 12px; padding: 9px 13px; font-size: .82rem; font-weight: 700; opacity: 0; transition: opacity .5s var(--rt-ease); backdrop-filter: blur(8px); box-shadow: 0 18px 40px rgba(0,0,0,.45); }
.rt-tour--pinned .rt-fbadge.rt-on { opacity: 1; }
.rt-f-flag { top: -22px; left: -26px; background: rgba(20,13,4,.88); border: 1px solid rgba(255,176,32,.5); color: #FFB020; }
.rt-f-ctr { top: 30%; right: -40px; background: rgba(10,20,30,.82); border: 1px solid var(--rt-line); color: #cfe; }
.rt-f-audit { bottom: 6px; left: -34px; background: rgba(6,20,16,.88); border: 1px solid rgba(0,230,176,.4); color: var(--rt-mint); }
.rt-f-ok { bottom: -20px; right: 6%; background: rgba(10,14,18,.82); border: 1px solid var(--rt-line); color: #bfe9d8; }
.rt-tour--pinned .rt-tcap { position: absolute; left: 50%; bottom: -14%; translate: -50% 0; width: min(560px, 88%); margin: 0; opacity: 0; transition: opacity .4s var(--rt-ease), transform .4s var(--rt-ease); transform: translate(-50%, 12px); pointer-events: none; z-index: 4; }
.rt-tour--pinned .rt-tcap.is-active { opacity: 1; transform: translate(-50%, 0); }
.rt-tour--pinned .rt-tdots { display: flex; position: absolute; right: 6%; bottom: 9%; z-index: 5; flex-direction: column; gap: 8px; }
.rt-tdots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.2); transition: background .3s; }
.rt-tdots span.is-active { background: var(--rt-mint); box-shadow: 0 0 10px var(--rt-mint); }

/* ============================ BY THE NUMBERS ============================= */
.rt-numbers { padding: 4rem 0; background: var(--rt-bg-2); border-top: 1px solid var(--rt-line); border-bottom: 1px solid var(--rt-line); }
.rt-numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.rt-num { text-align: center; }
.rt-num-value {
    font-size: clamp(2.3rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #fff 0%, var(--rt-mint) 58%, var(--rt-teal) 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent;
    display: inline-flex; align-items: baseline;
}
.rt-num-prefix, .rt-num-suffix { font-size: .62em; font-weight: 700; }
.rt-num-static { font-feature-settings: normal; }
.rt-num-label { margin-top: .6rem; color: var(--rt-ink-dim); font-size: .92rem; line-height: 1.4; max-width: 15rem; margin-left: auto; margin-right: auto; }

/* ============================ FILMS ===================================== */
.rt-films { padding: 5.5rem 0; }
.rt-films-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.rt-film {
    position: relative; border-radius: 22px; padding: 2.2rem 2rem; min-height: 230px; cursor: pointer; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end; color: #fff; border: 1px solid var(--rt-line);
    box-shadow: 0 24px 60px rgba(0,0,0,.4); transition: transform .25s var(--rt-ease), box-shadow .25s var(--rt-ease);
}
.rt-film::before { content: ''; position: absolute; inset: 0; z-index: 0; transition: transform .5s var(--rt-ease); }
.rt-film--protect::before { background: linear-gradient(135deg, #0a1628 0%, #13334d 100%); }
.rt-film--grow::before { background: linear-gradient(135deg, #063329 0%, #00A878 100%); }
.rt-film:hover { transform: translateY(-5px); box-shadow: 0 34px 80px rgba(0,0,0,.52); }
.rt-film:hover::before { transform: scale(1.06); }
.rt-film:focus-visible { outline: 3px solid var(--rt-mint); outline-offset: 3px; }
.rt-film-play {
    position: absolute; top: 1.6rem; right: 1.7rem; z-index: 1; width: 56px; height: 56px; border-radius: 50%;
    background: rgba(255,255,255,.14); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; color: #fff; transition: background .25s var(--rt-ease), transform .25s var(--rt-ease);
}
.rt-film:hover .rt-film-play { background: var(--rt-mint); color: #04231a; transform: scale(1.08); }
.rt-film-body { position: relative; z-index: 1; }
.rt-film-kicker { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rt-mint); }
.rt-film-title { margin: .5rem 0 .55rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.rt-film-sub { margin: 0; font-size: .95rem; color: rgba(255,255,255,.82); line-height: 1.5; }
/* YouTube-style hover preview: the matching film plays muted inside the card on hover
   (JS adds .rt-previewing); click still opens the lightbox with sound. */
.rt-film-vid { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s var(--rt-ease); pointer-events: none; }
.rt-film.rt-previewing .rt-film-vid { opacity: 1; }
.rt-film.rt-previewing::before { opacity: .42; }

/* ============================ CAPABILITIES ============================== */
.rt-caps-grid-section { padding: 5rem 0; background: var(--rt-bg-2); }
.rt-caps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.rt-cap-card {
    background: var(--rt-glass); border: 1px solid var(--rt-line); border-radius: var(--rt-r);
    padding: 1.8rem 1.4rem; transition: transform .25s var(--rt-ease), border-color .25s var(--rt-ease), background .25s var(--rt-ease);
}
.rt-cap-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.055); border-color: rgba(0,230,176,.28); }
.rt-cap-card i { font-size: 1.7rem; color: var(--rt-mint); }
.rt-cap-card h3 { margin: .9rem 0 .3rem; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.rt-cap-card p { margin: 0; color: var(--rt-ink-dim); font-size: .95rem; }
.rt-certs { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 2.4rem; }
.rt-cert { display: inline-flex; align-items: center; gap: .6rem; background: var(--rt-glass); border: 1px solid var(--rt-line); border-radius: 999px; padding: .62rem 1.2rem; color: var(--rt-ink); font-weight: 500; font-size: .95rem; }
.rt-cert i { color: var(--rt-teal); font-size: 1.2rem; }

/* ============================ CTA BAND ================================== */
.rt-cta-band { position: relative; overflow: hidden; padding: 6rem 0; text-align: center; isolation: isolate;
    background: radial-gradient(90% 120% at 50% 0%, rgba(0,230,176,.08) 0%, transparent 55%), var(--rt-bg); }
.rt-cta-watermark {
    position: absolute; left: 50%; top: 56%; translate: -50% -50%; z-index: 0; pointer-events: none; user-select: none;
    white-space: nowrap; font-weight: 900; letter-spacing: -.04em; line-height: 1;
    font-size: clamp(5rem, 20vw, 20rem); color: rgba(255,255,255,.028);
}
.rt-cta-inner { position: relative; z-index: 1; max-width: 46rem; margin: 0 auto; }
.rt-cta-band h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.05; color: #fff; margin: 0 0 1rem; }
.rt-cta-band p { color: var(--rt-ink-dim); font-size: clamp(1rem, 1.4vw, 1.2rem); line-height: 1.55; margin: 0 auto 2rem; max-width: 36rem; }
.rt-cta-actions { display: flex; flex-wrap: wrap; gap: .85rem; justify-content: center; }

/* ============================ TRUST FOOTER ============================= */
.rt-trust { padding: 2.8rem 0; border-top: 1px solid rgba(0,200,150,.22); background: var(--rt-bg); }
.rt-trust-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.rt-trust-text { font-size: 1rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rt-ink); }
.rt-trust-right { display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; }
.rt-trust-label { font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rt-ink-dim); }
.rt-trust-badges { display: flex; flex-wrap: wrap; gap: .8rem; }
.rt-trust-badge { display: inline-flex; align-items: center; gap: .5rem; background: var(--rt-glass); border: 1px solid var(--rt-line); border-radius: 999px; padding: .5rem 1rem; font-size: .9rem; font-weight: 500; color: var(--rt-ink); }
.rt-trust-badge i { color: var(--rt-mint); }

/* ===========================================================================
   MOTION START-STATES (only under html.rt-anim). The .rt-ready gate (added by JS
   after fonts load) prevents a reflow flash mid-animation.
   =========================================================================== */
html.rt-anim .rt-reveal { opacity: 0; transform: translateY(26px); will-change: opacity, transform; }
html.rt-anim .rt-reveal.rt-in { opacity: 1; transform: none; transition: opacity .62s var(--rt-ease), transform .62s var(--rt-ease); }

/* hero entrance: rise items + word-by-word blur-in headline */
html.rt-anim .rt-rise { opacity: 0; transform: translateY(22px); }
html.rt-anim.rt-ready .rt-rise { animation: rt-rise-in .9s var(--rt-ease-expo) both; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rt-rise-in { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

html.rt-anim .rt-word { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(26px); }
html.rt-anim.rt-ready .rt-word { animation: rt-word-in .7s ease-out both; animation-delay: calc(var(--i, 0) * 85ms + 120ms); }
@keyframes rt-word-in {
    0% { opacity: 0; filter: blur(10px); transform: translateY(26px); }
    55% { opacity: .6; filter: blur(4px); transform: translateY(-3px); }
    100% { opacity: 1; filter: blur(0); transform: none; }
}

/* ============================ RESPONSIVE =============================== */
@media (max-width: 920px) {
    .rt-story-inner { grid-template-columns: 1fr; gap: 2.2rem; }
    .rt-story-caps { order: 2; }
    .rt-story-demo { order: 1; }
    /* on stacked mobile we never pin, so caps show as a normal list */
    .rt-numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
    .rt-caps-grid { grid-template-columns: repeat(2, 1fr); }
    .rt-films-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .rt-hero { min-height: auto; padding: 4.5rem 0 3.5rem; }
    .rt-hero-h1 { font-size: clamp(2rem, 9vw, 2.75rem); }
    .rt-btn { width: 100%; justify-content: center; max-width: 320px; }
    .rt-hero-cta, .rt-cta-actions { width: 100%; }
    .rt-hero-scrollcue { display: none; }
    .rt-numbers-grid, .rt-caps-grid { grid-template-columns: 1fr; }
    .rt-trust-inner { flex-direction: column; text-align: center; }
    .rt-trust-right { align-items: center; }
    /* save cellular data/battery for the walk-in QR audience: hide the autoplay demo loop */
    .rt-browser-video { display: none; }
    .rt-browser-fallback { display: block; }
}

/* ============================ A11Y / REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    .rt-scroll-progress { display: none; }
    .rt-browser-video { display: none; }
    .rt-browser-fallback { display: block; }
    html.rt-anim .rt-reveal,
    html.rt-anim .rt-rise,
    html.rt-anim .rt-word { opacity: 1 !important; transform: none !important; filter: none !important; animation: none !important; transition: none !important; }
    .rt-eyebrow-dot, .rt-scrollcue-line { animation: none !important; }
    .rt-story--pinned .rt-cap { position: relative; opacity: 1; transform: none; }
    .rt-story--pinned .rt-cap + .rt-cap { margin-top: 2rem; }
}
