/* Landing page: dark 3D hero, reveal animations, tilt cards, live demo. */

:root {
    --navy-950: #070b16;
    --navy-900: #0b1220;
    --navy-800: #111c33;
    --navy-700: #1b2a4a;
    --glass: rgba(255, 255, 255, .06);
    --glass-border: rgba(255, 255, 255, .14);
}

/* Header turns transparent while sitting on the dark hero */
body.page-landing .site-header { transition: background .3s, border-color .3s; }
body.page-landing .site-header.at-top { background: transparent; border-color: transparent; backdrop-filter: none; }
body.page-landing .site-header.at-top .brand,
body.page-landing .site-header.at-top .nav-links a,
body.page-landing .site-header.at-top .btn-ghost { color: #fff; }
body.page-landing .site-header.at-top .btn-ghost:hover { background: rgba(255, 255, 255, .1); }
body.page-landing .site-header.at-top .nav-toggle span { background: #fff; }
body.page-landing.nav-open .site-header.at-top { background: var(--navy-900); }

/* ---------- Hero ---------- */
.hero3d {
    position: relative; color: #fff; overflow: hidden;
    margin-top: -64px; padding-top: 64px;
    background: radial-gradient(1200px 600px at 20% -10%, #1e2b4f 0%, transparent 60%),
                radial-gradient(900px 500px at 90% 20%, #0f2f26 0%, transparent 55%),
                linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
}
.hero3d-bg { position: absolute; inset: 0; pointer-events: none; }
.glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .35; animation: drift 14s ease-in-out infinite alternate; }
.glow-red { left: -160px; top: 10%; background: #dc2626; }
.glow-green { right: -140px; top: 25%; background: #16a34a; animation-delay: -7s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(60px, 40px, 0) scale(1.15); } }
.grid-lines {
    position: absolute; inset: 0; opacity: .25;
    background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero3d-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 2.5rem; align-items: center; padding-top: clamp(2.5rem, 6vw, 5rem); padding-bottom: 3rem; min-height: min(calc(100vh - 64px), 760px); }
.eyebrow-dark { background: rgba(34, 197, 94, .15); color: #86efac; border: 1px solid rgba(34, 197, 94, .3); }
.hero3d-title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; margin-bottom: 1rem; }
.hero3d-title .w { display: inline-block; opacity: 0; transform: translateY(18px) rotateX(-40deg); transform-origin: bottom; animation: word-in .7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d, 0s); }
@keyframes word-in { to { opacity: 1; transform: none; } }
.grad-text, .grad-text .w {
    background: linear-gradient(90deg, #fca5a5 0%, #f87171 25%, #4ade80 60%, #86efac 100%);
    background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
    animation: shimmer 6s linear infinite;
}
/* each animated word carries its own gradient; the wrapper only groups them */
.grad-text:has(.w) { background: none; color: inherit; animation: none; }
.grad-text .w { animation: word-in .7s cubic-bezier(.2,.8,.2,1) forwards, shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 200% 0; } }
.lead-dark { color: #cbd5e1; }

.dropzone-glass {
    background: var(--glass); border: 1px solid var(--glass-border); color: #fff; backdrop-filter: blur(10px);
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), inset 0 1px 0 rgba(255,255,255,.08);
    padding: 1.8rem 1.5rem; margin-top: 1.4rem;
}
.dropzone-glass span { color: #94a3b8; }
.dropzone-glass:hover, .dropzone-glass:focus-visible, .dropzone-glass.is-over { border-color: #4ade80; box-shadow: 0 0 0 4px rgba(74, 222, 128, .18), 0 30px 60px -30px rgba(0,0,0,.8); background: rgba(22, 163, 74, .1); }
.dz-corner { position: absolute; width: 14px; height: 14px; border: 2px solid #4ade80; opacity: .7; transition: all .2s; }
.dz-corner.tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.dz-corner.tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.dz-corner.bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.dz-corner.br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }
.dropzone-glass:hover .dz-corner { opacity: 1; width: 20px; height: 20px; }
.dz-note-dark { color: #94a3b8; text-align: left; }
.hero3d-stores { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; margin-top: .4rem; }
.hero3d-stores .store-badge { background: #fff; color: var(--navy-900); }
.hero3d-trust { font-size: .8rem; color: #94a3b8; margin-left: auto; }

.hero3d-scene { position: relative; aspect-ratio: 1 / 1; max-height: 560px; width: 100%; }
.hero3d-scene canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
.scene-caption {
    position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); white-space: nowrap;
    font-size: .78rem; color: #94a3b8; background: rgba(7, 11, 22, .6); border: 1px solid var(--glass-border);
    padding: .35rem .7rem; border-radius: 999px; display: inline-flex; align-items: center; gap: .4rem; backdrop-filter: blur(6px);
}
.scene-caption .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }

/* CSS fallback when WebGL / motion is unavailable */
.scene-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1.2rem; }
.fb-doc { width: 120px; height: 160px; border-radius: 12px; background: #fff; display: grid; align-content: start; gap: 8px; padding: 14px; box-shadow: 0 30px 50px -20px rgba(0,0,0,.7); }
.fb-pdf span { font-weight: 800; color: #dc2626; font-size: 1.1rem; }
.fb-pdf i { display: block; height: 7px; border-radius: 4px; background: #fecaca; }
.fb-xlsx { grid-template-columns: repeat(3, 1fr); align-content: start; }
.fb-xlsx b { display: block; height: 22px; background: #dcfce7; border: 1px solid #86efac; }
.fb-arrow { font-size: 2rem; color: #4ade80; font-weight: 800; }

.hero3d-marquee { position: relative; border-top: 1px solid var(--glass-border); padding: .9rem 0; overflow: hidden; background: rgba(0,0,0,.25); }
.marquee-track { display: flex; gap: 2.5rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee-track span { color: #94a3b8; font-size: .85rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.marquee-track span::before { content: "▣"; color: #16a34a; margin-right: .6rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--delay, 0s); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Tilt cards ---------- */
.tilt-grid { perspective: 1200px; }
.tilt { position: relative; transform-style: preserve-3d; transition: transform .15s ease-out, box-shadow .3s; will-change: transform; overflow: hidden; }
.tilt:hover { box-shadow: 0 30px 50px -25px rgba(15, 23, 42, .35); }
.tilt-glow {
    position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
    background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(22, 163, 74, .16), transparent 60%);
}
.tilt:hover .tilt-glow { opacity: 1; }
.tilt .feature-icon, .tilt h3, .tilt p { transform: translateZ(24px); }
.tilt .feature-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--green-50); border: 1px solid var(--green-100); font-size: 1.4rem; margin-bottom: .8rem; }

/* ---------- How it works (dark section) ---------- */
.section-demo { background: linear-gradient(180deg, #0b1220 0%, #0f172a 100%); color: #fff; }
.section-demo .section-sub { color: #94a3b8; }
.steps-dark h3 { color: #fff; }
.steps-dark p { color: #94a3b8; }
.muted-dark { color: #94a3b8; }

/* ---------- CTA band ---------- */
.cta-band { margin: 0 20px 3rem; }
.cta-inner {
    display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
    border-radius: 24px; padding: 2.4rem; color: #fff;
    background: linear-gradient(120deg, #dc2626, #16a34a, #0b1220, #16a34a); background-size: 300% 300%;
    animation: cta-move 12s ease-in-out infinite; box-shadow: 0 40px 70px -40px rgba(0,0,0,.6);
}
@keyframes cta-move { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.cta-inner h2 { color: #fff; margin-bottom: .3rem; }
.cta-inner p { color: rgba(255,255,255,.85); margin: 0; }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: #f1f5f9; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero3d-grid { grid-template-columns: 1fr; min-height: 0; }
    .hero3d-scene { order: 2; aspect-ratio: 16 / 9; max-height: 340px; }
    .hero3d-copy { order: 1; }
}
@media (max-width: 680px) {
    .hero3d-trust { margin-left: 0; }
    .cta-band { margin: 0 0 2rem; }
    .cta-inner { border-radius: 0; padding: 2rem 20px; }
}
@media (prefers-reduced-motion: reduce) {
    [data-reveal] { opacity: 1; transform: none; transition: none; }
    .hero3d-title .w { animation: none; opacity: 1; transform: none; }
    .glow, .grad-text, .marquee-track, .scene-caption .dot, .cta-inner { animation: none; }
    .tilt { transition: none; }
}

/* ---------- Hero assurances + rating ---------- */
.hero3d-assure { list-style: none; padding: 0; margin: 1rem 0 .4rem; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .9rem; color: #cbd5e1; }
.hero3d-assure li { position: relative; padding-left: 1.3rem; }
.hero3d-assure li::before { content: "✓"; position: absolute; left: 0; color: #4ade80; font-weight: 800; }
.hero3d-assure b { color: #fff; font-weight: 700; }
.hero3d-rating { display: inline-flex; align-items: center; gap: .45rem; color: #cbd5e1; text-decoration: none; font-size: .85rem; }
.hero3d-rating .stars { color: #fbbf24; letter-spacing: .05em; }
.hero3d-rating b { color: #fff; }

/* ---------- Proof strip ---------- */
.proof-strip { background: #fff; border-bottom: 1px solid var(--ink-200); }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; padding: 1.6rem 20px; }
.proof { text-align: center; }
.proof b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink-900); font-variant-numeric: tabular-nums; }
.proof b small { font-size: 1rem; color: var(--ink-500); font-weight: 600; }
.proof span { color: var(--ink-500); font-size: .9rem; }

/* ---------- Compare ---------- */
.section-compare { background: #fff; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 960px; margin: 0 auto; }
.compare-col { border-radius: 18px; padding: 1.6rem; border: 1px solid var(--ink-200); }
.compare-col h3 { display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; }
.compare-col h3 span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: .9rem; }
.compare-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; color: var(--ink-700); }
.compare-col li { padding-left: 1.4rem; position: relative; }
.compare-bad { background: #fff7f7; border-color: #fecaca; }
.compare-bad h3 span { background: #fee2e2; color: #dc2626; }
.compare-bad li::before { content: "–"; position: absolute; left: 0; color: #dc2626; font-weight: 800; }
.compare-good { background: var(--green-50); border-color: #bbf7d0; box-shadow: 0 30px 50px -30px rgba(22,163,74,.4); }
.compare-good h3 span { background: var(--green-600); color: #fff; }
.compare-good li::before { content: "✓"; position: absolute; left: 0; color: var(--green-700); font-weight: 800; }
.muted-dark { color: #94a3b8; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; max-width: 1000px; margin: 0 auto 1.2rem; align-items: stretch; }
.price { position: relative; background: #fff; border: 1px solid var(--ink-200); border-radius: 18px; padding: 1.6rem; display: flex; flex-direction: column; box-shadow: var(--shadow-card); }
.price h3 { font-size: 1rem; color: var(--ink-500); text-transform: uppercase; letter-spacing: .08em; }
.price-amount { display: flex; align-items: baseline; gap: .3rem; margin: .2rem 0 .3rem; }
.price-amount b { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.price-amount span { color: var(--ink-500); }
.price ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; display: grid; gap: .5rem; color: var(--ink-700); flex: 1; }
.price li { padding-left: 1.4rem; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--green-700); font-weight: 800; }
.price-featured { border-color: var(--green-600); box-shadow: 0 30px 60px -30px rgba(22,163,74,.5); transform: translateY(-6px); }
.price-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--green-600); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 999px; white-space: nowrap; }
.section-faq .faq[open] { border-color: #bbf7d0; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; align-items: center; justify-content: space-between; gap: .8rem;
    padding: .6rem 16px calc(.6rem + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
    border-top: 1px solid var(--ink-200); font-size: .85rem; color: var(--ink-700); transform: translateY(100%); transition: transform .3s;
}
.sticky-cta.is-on { transform: none; }
@media (max-width: 680px) { .sticky-cta:not([hidden]) { display: flex; } }

@media (max-width: 960px) {
    .price-grid { grid-template-columns: 1fr; max-width: 460px; }
    .price-featured { transform: none; }
    .compare { grid-template-columns: 1fr; }
}

/* ---------- Interactive hero demo column ---------- */
.hero3d-demo { position: relative; width: 100%; }
@media (max-width: 960px) { .hero3d-demo { order: 2; } .hero3d-copy { order: 1; } }
