/* ════════════════════════════════════════════════════════════════════
   landingPremium.css — premium hero / landing redesign
   Loaded after style.css so it cleanly overrides the legacy landing rules.
   Keeps the Three.js particle backdrop (#landingCanvasContainer) and the
   Spline robot; replaces the rainbow button + particle-text gimmicks with
   a confident typographic hero + feature cards. Works on desktop & PWA.
   ════════════════════════════════════════════════════════════════════ */

.landing-hero {
    position: fixed;
    inset: 0;
    z-index: 9000;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    background: #06060c;
    color: #fff;
    font-family: var(--sans, 'Inter', system-ui, -apple-system, sans-serif);
    transition: opacity .4s ease, visibility .4s ease;
}
/* hide the landing scrollbar for a cleaner marketing feel */
.landing-hero { scrollbar-width: none; }
.landing-hero::-webkit-scrollbar { display: none; }

/* Three.js particle canvas + overlays are FIXED so they stay behind as you scroll */
.landing-canvas-container { position: fixed; inset: 0; z-index: 0; }

/* Premium gradient mesh + fading grid overlay (above particles, below content) */
.landing-bg {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(120% 85% at 80% 22%, rgba(99, 102, 241, .30), transparent 55%),
        radial-gradient(95% 75% at 12% 86%, rgba(34, 211, 238, .15), transparent 55%),
        radial-gradient(140% 130% at 50% 0%, transparent 40%, rgba(5, 5, 11, .72) 88%);
}
.landing-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 74%);
    mask-image: radial-gradient(circle at 50% 42%, #000 0%, transparent 74%);
}

/* ── Ambient brand robot — fixed + masked so it blends into the scene ── */
.landing-robot {
    position: fixed !important;
    right: -70px !important;
    bottom: -50px !important;
    left: auto !important;
    top: auto !important;
    z-index: 2 !important;
    width: min(660px, 50vw) !important;
    height: min(840px, 94vh) !important;
    pointer-events: auto !important;
    opacity: .92;
    -webkit-mask-image: radial-gradient(closest-side at 52% 48%, #000 58%, transparent 90%);
    mask-image: radial-gradient(closest-side at 52% 48%, #000 58%, transparent 90%);
}

/* ── Top bar: brand + skip (fixed, stays while scrolling) ── */
.landing-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 7;
    background: linear-gradient(180deg, rgba(6, 6, 12, .72), rgba(6, 6, 12, 0));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: clamp(16px, 3vw, 26px) clamp(18px, 4vw, 44px);
    padding-top: max(clamp(16px, 3vw, 26px), env(safe-area-inset-top));
}
.landing-brand { display: inline-flex; align-items: center; gap: 11px; }
.landing-brand-mark {
    display: grid;
    place-items: center;
    width: 34px; height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #22d3ee);
    color: #fff;
    font-weight: 900;
    font-size: 18px;
    box-shadow: 0 8px 24px rgba(99, 102, 241, .5);
}
.landing-brand-name { font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.landing-brand-name span { color: rgba(255, 255, 255, .5); font-weight: 600; }
.landing-skip {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .82);
    border-radius: 999px;
    padding: 9px 17px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color .18s, color .18s, border-color .18s;
}
.landing-skip:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ── Hero content column ── */
.landing-content {
    position: relative;
    z-index: 5;
    width: 100%;
    max-width: 1180px;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 110px clamp(20px, 5vw, 60px) 64px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
}
.landing-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, .34);
    background: rgba(99, 102, 241, .1);
    color: #c7d2fe;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.landing-eyebrow i {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 10px #34d399;
    animation: landingDot 2.2s ease-in-out infinite;
}
@keyframes landingDot { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

.landing-title {
    margin: 20px 0 0;
    font-size: clamp(36px, 6.6vw, 76px);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -.032em;
    color: #fff;
    text-wrap: balance;
}
.landing-title .grad {
    background: linear-gradient(100deg, #818cf8, #22d3ee 58%, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.landing-lead {
    margin: 20px 0 0;
    max-width: 56ch;
    font-size: clamp(14.5px, 1.55vw, 18px);
    line-height: 1.6;
    color: rgba(255, 255, 255, .66);
    font-weight: 450;
}

.landing-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.landing-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 15px 28px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 14px 36px rgba(79, 70, 229, .5);
    transition: transform .18s ease, box-shadow .18s ease;
}
.landing-cta-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 48px rgba(79, 70, 229, .62); }
.landing-cta-primary svg { transition: transform .2s ease; }
.landing-cta-primary:hover svg { transform: translateX(3px); }
.landing-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 24px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 14px;
    background: rgba(255, 255, 255, .045);
    color: rgba(255, 255, 255, .86);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background-color .18s, border-color .18s, color .18s;
}
.landing-cta-ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; }

/* ── Feature cards (the section entries) ── */
.landing-features {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 800px;
    margin-top: 44px;
}
.landing-feature {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    padding: 15px 14px 13px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
    background: rgba(255, 255, 255, .035);
    color: #fff;
    cursor: pointer;
    text-align: left;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform .22s cubic-bezier(.23, 1, .32, 1), border-color .2s ease, background-color .2s ease;
}
.landing-feature:hover,
.landing-feature:focus-visible {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, .5);
    background: rgba(99, 102, 241, .12);
    outline: none;
}
.landing-feature svg { width: 22px; height: 22px; color: #a5b4fc; }
.landing-feature .lf-title { font-size: 13.5px; font-weight: 700; }
.landing-feature .lf-sub { font-size: 11px; font-weight: 500; line-height: 1.25; color: rgba(255, 255, 255, .55); }

/* ════════════════ Tablet ════════════════ */
@media (max-width: 980px) {
    .landing-content { align-items: center; text-align: center; padding-top: 104px; }
    .landing-lead { margin-left: auto; margin-right: auto; }
    .landing-cta-row { justify-content: center; }
    .landing-features { max-width: 520px; margin-left: auto; margin-right: auto; }
    .landing-robot {
        right: 50% !important;
        bottom: -40px !important;
        transform: translateX(50%) !important;
        width: min(560px, 130vw) !important;
        height: min(700px, 80vh) !important;
        opacity: .16 !important;
    }
}

/* ════════════════ Phone / PWA ════════════════ */
@media (max-width: 600px) {
    .landing-content { padding-top: 92px; }
    .landing-eyebrow { font-size: 10.5px; letter-spacing: .1em; padding: 6px 12px; }
    .landing-title { font-size: clamp(32px, 11vw, 46px); }
    .landing-lead { font-size: 14px; max-width: 42ch; }
    .landing-cta-row { width: 100%; flex-direction: column; }
    .landing-cta-primary, .landing-cta-ghost { width: 100%; justify-content: center; }
    .landing-features { grid-template-columns: repeat(2, 1fr); gap: 9px; }
    .landing-feature:nth-child(5) { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 11px; }
    .landing-brand-name span { display: none; }
}

/* ── Motion-safety ── */
@media (prefers-reduced-motion: reduce) {
    .landing-eyebrow i { animation: none; }
    .landing-cta-primary, .landing-cta-ghost, .landing-feature, .landing-skip { transition: none; }
}

/* ════════════════════════════════════════════════════════════════════
   Scrollable SaaS content (scroll cue → stats → features → how → CTA)
   ════════════════════════════════════════════════════════════════════ */

/* ── Scroll cue at the bottom of the hero screen ── */
.landing-scrollcue {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 46px;
    padding: 0;
    border: none;
    background: none;
    color: rgba(255, 255, 255, .55);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    cursor: pointer;
    transition: color .18s ease;
}
.landing-scrollcue:hover { color: #fff; }
.landing-scrollcue svg { animation: lpBob 1.8s ease-in-out infinite; }
@keyframes lpBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ── Flow container: fades from the particle hero into solid dark ── */
.landing-flow {
    position: relative;
    z-index: 5;
    background: linear-gradient(180deg, transparent 0%, #06060c 14%, #07070e 100%);
}

/* ── Stats strip ── */
.lp-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 30px clamp(20px, 5vw, 60px);
    border-top: 1px solid rgba(255, 255, 255, .07);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.lp-stats > div { display: flex; flex-direction: column; gap: 4px; }
.lp-stats strong {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    letter-spacing: -.02em;
    background: linear-gradient(100deg, #818cf8, #22d3ee);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-stats span { font-size: 12px; color: rgba(255, 255, 255, .55); line-height: 1.35; }

/* ── Generic section + heading ── */
.lp-section { max-width: 1080px; margin: 0 auto; padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 60px); }
.lp-head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 68px); text-align: center; }
.lp-kicker {
    display: inline-block;
    color: #818cf8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.lp-head h2 {
    margin: 12px 0 0;
    font-size: clamp(26px, 4.6vw, 44px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
    color: #fff;
    text-wrap: balance;
}
.lp-head p { margin: 16px 0 0; font-size: clamp(14px, 1.6vw, 17px); line-height: 1.6; color: rgba(255, 255, 255, .62); }

/* ── Feature row (alternating) ── */
.lp-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    padding: clamp(34px, 5vw, 56px) 0;
}
.lp-feature.reverse .lp-feature-text { order: 2; }
.lp-feat-tag {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid rgba(99, 102, 241, .32);
    background: rgba(99, 102, 241, .12);
    color: #c7d2fe;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.lp-feature-text h3 {
    margin: 16px 0 0;
    font-size: clamp(22px, 3vw, 30px);
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
    line-height: 1.12;
}
.lp-feature-text > p { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: rgba(255, 255, 255, .64); }
.lp-bullets { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.lp-bullets li {
    position: relative;
    padding-left: 26px;
    font-size: 14px;
    color: rgba(255, 255, 255, .8);
    line-height: 1.4;
}
.lp-bullets li::before {
    content: "";
    position: absolute;
    left: 0; top: 2px;
    width: 16px; height: 16px;
    border-radius: 50%;
    background:
        linear-gradient(#0b0b14, #0b0b14) padding-box,
        linear-gradient(135deg, #6366f1, #22d3ee) border-box;
    border: 1.5px solid transparent;
}
.lp-bullets li::after {
    content: "";
    position: absolute;
    left: 5px; top: 6px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #34d399;
}
.lp-link {
    margin-top: 22px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: none;
    border: none;
    color: #a5b4fc;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: gap .18s ease, color .18s ease;
}
.lp-link:hover { gap: 12px; color: #c7d2fe; }

/* ── Feature mock visuals ── */
.lp-feature-visual { display: flex; justify-content: center; }
.lp-mock {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(20, 22, 38, .85), rgba(10, 11, 20, .82));
    box-shadow: 0 30px 70px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.lp-mock-bar { display: flex; align-items: center; gap: 6px; padding-bottom: 4px; }
.lp-mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.lp-mock-bar i:nth-child(1) { background: #ff5f57; } .lp-mock-bar i:nth-child(2) { background: #febc2e; } .lp-mock-bar i:nth-child(3) { background: #28c840; }
.lp-mock-bar span { margin-left: auto; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .55); }
.lp-mock-verdict { display: flex; align-items: center; gap: 10px; }
.lp-pill { padding: 5px 12px; border-radius: 8px; font-size: 12px; font-weight: 800; letter-spacing: .05em; }
.lp-pill.long { background: rgba(16, 185, 129, .16); color: #34d399; }
.lp-conf { font-size: 12.5px; color: rgba(255, 255, 255, .6); } .lp-conf b { color: #fff; }
.lp-meter { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.lp-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #6366f1, #22d3ee); }
.lp-gatepills { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-gatepills i {
    font-style: normal; font-size: 10.5px; font-weight: 700;
    padding: 4px 9px; border-radius: 7px;
    background: rgba(255, 255, 255, .06); color: rgba(255, 255, 255, .5);
    border: 1px solid rgba(255, 255, 255, .08);
}
.lp-gatepills i.ok { background: rgba(16, 185, 129, .14); color: #34d399; border-color: rgba(16, 185, 129, .3); }

.lp-level { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border-radius: 10px; font-size: 12.5px; font-weight: 700; }
.lp-level span { color: rgba(255, 255, 255, .6); font-weight: 600; }
.lp-level.res { background: rgba(255, 59, 48, .12); color: #ff8a80; } .lp-level.res.w2 { background: rgba(255, 59, 48, .07); }
.lp-level.sup { background: rgba(16, 185, 129, .12); color: #34d399; } .lp-level.sup.w2 { background: rgba(16, 185, 129, .07); }
.lp-level.price { background: rgba(99, 102, 241, .16); color: #c7d2fe; border: 1px dashed rgba(165, 180, 252, .4); }

.lp-chat { gap: 9px; }
.lp-bubble { max-width: 84%; padding: 10px 13px; border-radius: 14px; font-size: 12.5px; line-height: 1.4; }
.lp-bubble.in { align-self: flex-start; background: rgba(255, 255, 255, .07); color: rgba(255, 255, 255, .85); border-bottom-left-radius: 4px; }
.lp-bubble.out { align-self: flex-end; background: linear-gradient(135deg, #6366f1, #4f46e5); color: #fff; border-bottom-right-radius: 4px; }

.lp-gauge { display: flex; align-items: center; gap: 12px; }
.lp-gauge-fill { flex: 1; height: 8px; border-radius: 999px; background: linear-gradient(90deg, #ff3b30, #febc2e 55%, #34d399); position: relative; }
.lp-gauge-fill::after { content: ""; position: absolute; top: -3px; left: 64%; width: 3px; height: 14px; border-radius: 2px; background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .8); }
.lp-gauge b { font-size: 12.5px; color: #febc2e; }
.lp-statline { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 13px; color: rgba(255, 255, 255, .65); }
.lp-statline i { font-style: normal; font-weight: 700; color: #fff; }
.lp-statline i.up { color: #34d399; }

.lp-news { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 13px; color: rgba(255, 255, 255, .82); }
.lp-news:first-child { border-top: none; }
.lp-news i { font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; padding: 3px 7px; border-radius: 6px; white-space: nowrap; }
.lp-news i.bull { background: rgba(16, 185, 129, .16); color: #34d399; } .lp-news i.bear { background: rgba(255, 59, 48, .14); color: #ff8a80; }

/* ── How it works (gate flow) ── */
.lp-how { border-top: 1px solid rgba(255, 255, 255, .06); }
.lp-gates { max-width: 880px; margin: 0 auto; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.lp-gate {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: 16px;
    background: rgba(255, 255, 255, .035);
}
.lp-gate-num {
    flex-shrink: 0;
    display: grid; place-items: center;
    width: 30px; height: 30px;
    border-radius: 9px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff; font-size: 14px; font-weight: 800;
    box-shadow: 0 6px 16px rgba(79, 70, 229, .4);
}
.lp-gate strong { display: block; font-size: 14.5px; color: #fff; }
.lp-gate small { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; color: rgba(255, 255, 255, .56); }

/* ── Final CTA ── */
.lp-finalcta {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(56px, 9vw, 110px) clamp(20px, 5vw, 60px);
    text-align: center;
}
.lp-finalcta h2 { margin: 0; font-size: clamp(26px, 5vw, 46px); font-weight: 800; letter-spacing: -.025em; color: #fff; line-height: 1.08; }
.lp-finalcta p { margin: 16px 0 30px; font-size: 16px; color: rgba(255, 255, 255, .62); }
.lp-finalcta .landing-cta-primary { margin: 0 auto; }

/* ── Footer ── */
.lp-footer {
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    padding: 36px 20px max(40px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, .07);
    text-align: center;
}
.lp-foot-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; color: #fff; font-size: 15px; }
.lp-foot-brand .landing-brand-mark { width: 26px; height: 26px; font-size: 14px; border-radius: 8px; }
.lp-footer small { font-size: 12px; color: rgba(255, 255, 255, .42); max-width: 44ch; line-height: 1.5; }

/* ── Scroll-reveal animation ── */
.lp-reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.22, 1, .36, 1); }
.lp-reveal.lp-in { opacity: 1; transform: none; }
/* stagger children of a revealed feature/gate list */
.lp-gates .lp-gate:nth-child(2) { transition-delay: .06s; }
.lp-gates .lp-gate:nth-child(3) { transition-delay: .12s; }
.lp-gates .lp-gate:nth-child(4) { transition-delay: .18s; }
.lp-gates .lp-gate:nth-child(5) { transition-delay: .24s; }
.lp-gates .lp-gate:nth-child(6) { transition-delay: .30s; }

/* ════════════════ Responsive ════════════════ */
@media (max-width: 980px) {
    .lp-feature { grid-template-columns: 1fr; gap: 26px; }
    .lp-feature.reverse .lp-feature-text { order: 0; }
    .lp-feature-visual { order: -1; }
    .lp-gates { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .lp-stats { grid-template-columns: 1fr 1fr; gap: 18px 14px; }
    .lp-gates { grid-template-columns: 1fr; }
    .lp-mock { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .landing-scrollcue svg { animation: none; }
    .lp-reveal { opacity: 1; transform: none; transition: none; }
}
