/* ==========================================================================
   Landing page
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.lp { margin: 0; font-family: 'Inter', system-ui, sans-serif; color: #e2e8f0; background: #05080f; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
.lp a { color: inherit; text-decoration: none; }
.lp h1, .lp h2, .lp h3 { font-family: 'Space Grotesk', 'Inter', sans-serif; color: #fff; letter-spacing: -.035em; margin: 0; }
.lp p { margin: 0; }
.lp-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.lp-muted { color: #94a3b8; line-height: 1.65; }

/* Background aurora + pattern */
.lp-bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.lp-bg span { position: absolute; border-radius: 999px; filter: blur(90px); opacity: .45; animation: gt-aurora 18s ease-in-out infinite alternate; }
.lp-bg span:nth-child(1) { width: 620px; height: 620px; background: #059669; top: -260px; left: -160px; }
.lp-bg span:nth-child(2) { width: 520px; height: 520px; background: #4f46e5; top: 20%; right: -220px; opacity: .3; animation-delay: -6s; }
.lp-bg span:nth-child(3) { width: 420px; height: 420px; background: #f59e0b; bottom: -220px; left: 30%; opacity: .12; animation-delay: -11s; }
body.lp::before { mask-image: var(--gt-pat), linear-gradient(180deg, #000, rgb(0 0 0 / .15) 70%); -webkit-mask-image: var(--gt-pat), linear-gradient(180deg, #000, rgb(0 0 0 / .15) 70%);
    -webkit-mask-size: var(--gt-pat-size), 100% 100%; mask-size: var(--gt-pat-size), 100% 100%; -webkit-mask-repeat: repeat, no-repeat; mask-repeat: repeat, no-repeat;
    -webkit-mask-composite: source-in; mask-composite: intersect; content: ''; position: fixed; inset: 0; background: rgb(255 255 255 / .08); z-index: -1; pointer-events: none; }

/* Buttons */
.lp-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .62rem 1.1rem; border-radius: .8rem; font-weight: 650; font-size: .92rem;
    transition: transform .2s cubic-bezier(.2,1.4,.4,1), box-shadow .25s, background .2s, border-color .2s; white-space: nowrap; position: relative; overflow: hidden; }
.lp-btn:hover { transform: translateY(-2px); }
.lp-btn:active { transform: translateY(0) scale(.98); }
.lp-btn-primary { color: #fff !important; background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 14px 30px -12px rgb(16 185 129 / .75), inset 0 1px 0 rgb(255 255 255 / .25); }
.lp-btn-primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / .3) 50%, transparent 70%); transform: translateX(-120%); animation: gt-shine 4s ease-in-out 1.5s infinite; }
.lp-btn-primary:hover { box-shadow: 0 20px 40px -14px rgb(16 185 129 / .9); }
.lp-btn-ghost { color: #e2e8f0; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .12); }
.lp-btn-ghost:hover { background: rgb(255 255 255 / .1); border-color: rgb(255 255 255 / .22); }
.lp-btn-light { color: #064e3b !important; background: #fff; box-shadow: 0 16px 36px -14px rgb(0 0 0 / .5); }
.lp-btn-lg { padding: .85rem 1.4rem; font-size: 1rem; border-radius: .95rem; }
.lp-btn-block { width: 100%; margin-top: 1rem; }
.lp-btn span { transition: transform .2s; } .lp-btn:hover span { transform: translateX(3px); }

/* Nav */
.lp-nav { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.lp-nav.is-scrolled { background: rgb(5 8 15 / .72); backdrop-filter: blur(16px); border-bottom-color: rgb(255 255 255 / .07); }
.lp-nav-in { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.lp-brand { color: #fff; display: inline-flex; }
.lp-links { display: flex; gap: 1.6rem; margin-left: auto; font-size: .9rem; color: #94a3b8; }
.lp-links a { position: relative; transition: color .2s; }
.lp-links a:hover { color: #fff; }
.lp-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; border-radius: 2px; background: #34d399; transform: scaleX(0); transition: transform .25s; }
.lp-links a:hover::after { transform: scaleX(1); }
.lp-nav-cta { display: flex; gap: .6rem; }

/* Hero */
.lp-hero { padding: 3.5rem 0 1rem; }
.lp-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
.lp-badge { display: inline-flex; align-items: center; gap: .55rem; padding: .4rem .85rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
    background: rgb(16 185 129 / .1); border: 1px solid rgb(16 185 129 / .3); color: #6ee7b7; }
.lp-badge i { width: .5rem; height: .5rem; border-radius: 99px; background: #34d399; animation: gt-ping 2s infinite; }
.lp-hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); line-height: 1; margin: 1.2rem 0 1.2rem; font-weight: 700; }
.lp-grad { background: linear-gradient(90deg, #6ee7b7, #fde68a, #6ee7b7); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gt-gradient 6s linear infinite; }
.lp-lead { font-size: 1.14rem; line-height: 1.65; color: #a7b4c7; max-width: 560px; }
.lp-hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.lp-trust { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; margin: 1.6rem 0 0; font-size: .86rem; color: #94a3b8; }
.lp-hero-visual { position: relative; min-height: 440px; display: grid; place-items: center; }
.lp-preview { margin: 0; width: 100%; max-width: 470px; }
.lp-preview .gt-auth-preview { transform: rotateX(var(--rx, 8deg)) rotateY(var(--ry, -14deg)); }
.lp-hero-buddy { position: absolute; right: -70px; bottom: -70px; cursor: pointer; z-index: 2; }
.lp-hero-buddy .gt-buddy { width: 170px; height: 212px; }
.lp-float { position: absolute; padding: .6rem .9rem; border-radius: .9rem; font-size: .82rem; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16);
    backdrop-filter: blur(12px); box-shadow: 0 16px 36px -16px rgb(0 0 0 / .6); animation: lp-float 6s ease-in-out infinite; white-space: nowrap; }
.lp-float b { color: #fde68a; font-family: 'Space Grotesk', sans-serif; }
.lp-float-1 { top: 2%; left: -4%; } .lp-float-2 { top: 18%; right: -4%; animation-delay: -3s; }
@keyframes lp-float { 50% { transform: translateY(-12px); } }
.lp-sample-note { font-size: .75rem; color: #64748b; text-align: right; margin-top: 1.2rem; }

/* Marquee strip */
.lp-strip { margin: 3rem 0 1rem; border-block: 1px solid rgb(255 255 255 / .06); background: rgb(255 255 255 / .02); overflow: hidden; }
.lp-marquee { display: flex; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.lp-marquee > div { display: flex; gap: 2.6rem; padding: 1.1rem 0; animation: lp-marquee 38s linear infinite; white-space: nowrap; font-weight: 600; color: #94a3b8; }
.lp-marquee:hover > div { animation-play-state: paused; }
@keyframes lp-marquee { to { transform: translateX(-50%); } }

/* Sections */
.lp-section { padding: 5.5rem 0; }
.lp-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.lp-kicker { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #34d399; margin-bottom: .8rem; }
.lp-head h2, .lp-section h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; }
.lp-head p { margin-top: 1rem; color: #94a3b8; font-size: 1.05rem; line-height: 1.65; }

/* Feature cards */
.lp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.lp-card { --c: 16 185 129; position: relative; padding: 1.5rem 1.4rem 1.6rem; border-radius: 1.3rem; background: linear-gradient(160deg, rgb(255 255 255 / .06), rgb(255 255 255 / .02));
    border: 1px solid rgb(255 255 255 / .08); transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, box-shadow .35s; overflow: hidden; }
.lp-card::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(var(--c) / .22), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.lp-card:hover { transform: translateY(-6px); border-color: rgb(var(--c) / .45); box-shadow: 0 30px 60px -30px rgb(var(--c) / .6); }
.lp-card:hover::before { opacity: 1; }
.lp-card--violet { --c: 139 92 246; } .lp-card--amber { --c: 245 158 11; } .lp-card--sky { --c: 14 165 233; } .lp-card--rose { --c: 244 63 94; } .lp-card--teal { --c: 20 184 166; } .lp-card--indigo { --c: 99 102 241; }
.lp-card-icon { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: .95rem; font-size: 1.35rem; background: rgb(var(--c) / .16); border: 1px solid rgb(var(--c) / .3); transition: transform .35s cubic-bezier(.2,1.6,.4,1); }
.lp-card:hover .lp-card-icon { transform: scale(1.12) rotate(-8deg); }
.lp-card h3 { font-size: 1.12rem; margin: 1.1rem 0 .5rem; }
.lp-card p { color: #94a3b8; font-size: .9rem; line-height: 1.6; }

/* Calculator */
.lp-calc-section { background: linear-gradient(180deg, transparent, rgb(16 185 129 / .05), transparent); }
.lp-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.lp-calc-grid h2 { margin-bottom: 1rem; }
.lp-bullets { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; color: #cbd5e1; }
.lp-bullets li { padding-left: 1.8rem; position: relative; }
.lp-bullets li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 1.25rem; height: 1.25rem; border-radius: 99px; display: grid; place-items: center; font-size: .72rem; font-weight: 800; color: #05080f; background: #34d399; }
.lp-calc { padding: 1.7rem; border-radius: 1.5rem; background: linear-gradient(160deg, rgb(255 255 255 / .08), rgb(255 255 255 / .03)); border: 1px solid rgb(255 255 255 / .12);
    box-shadow: 0 40px 80px -40px rgb(16 185 129 / .5); backdrop-filter: blur(14px); }
.lp-field { display: block; margin-bottom: 1.15rem; }
.lp-field span { display: flex; justify-content: space-between; font-size: .88rem; color: #cbd5e1; margin-bottom: .45rem; }
.lp-field b { font-family: 'Space Grotesk', sans-serif; color: #fff; font-size: 1rem; }
.lp-field--extra b { color: #fde68a; }
.lp-field input[type=range] { width: 100%; accent-color: #10b981; height: 6px; cursor: pointer; }
.lp-field--extra input[type=range] { accent-color: #f59e0b; }
.lp-calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; margin-top: 1.4rem; }
.lp-calc-out > div { padding: .9rem 1rem; border-radius: 1rem; background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .08); }
.lp-calc-out small { display: block; font-size: .75rem; color: #94a3b8; }
.lp-calc-out strong { display: block; font-family: 'Space Grotesk', sans-serif; font-size: 1.5rem; color: #fff; margin: .15rem 0; }
.lp-calc-out em { font-style: normal; font-size: .75rem; color: #94a3b8; }
.lp-calc-you { background: rgb(16 185 129 / .1) !important; border-color: rgb(16 185 129 / .35) !important; }
.lp-calc-you strong { color: #6ee7b7; }
.lp-calc-save { margin-top: .9rem; padding: .8rem 1rem; border-radius: 1rem; text-align: center; font-weight: 600; color: #fde68a; background: rgb(245 158 11 / .1); border: 1px dashed rgb(245 158 11 / .4); transition: transform .3s cubic-bezier(.2,1.6,.4,1); }
.lp-calc-save.bump { transform: scale(1.03); }

/* Steps */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; position: relative; }
.lp-steps::before { content: ''; position: absolute; top: 118px; left: 16%; right: 16%; height: 2px; background: linear-gradient(90deg, transparent, rgb(52 211 153 / .5), transparent); }
.lp-step { text-align: center; padding: 0 .5rem; }
.lp-step-art { height: 190px; display: grid; place-items: end center; }
.lp-step-art .gt-buddy { width: 140px; height: 175px; }
.lp-step-n { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 99px; margin: 1rem 0 .7rem; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
    background: linear-gradient(135deg, #34d399, #059669); color: #fff; box-shadow: 0 0 0 6px rgb(16 185 129 / .15); }
.lp-step h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.lp-step p { color: #94a3b8; line-height: 1.6; font-size: .93rem; }

/* Gamification */
.lp-game { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.lp-game h2 { margin-bottom: 1rem; }
.lp-game-card { padding: 1.6rem; border-radius: 1.5rem; background: linear-gradient(160deg, rgb(255 255 255 / .07), rgb(255 255 255 / .02)); border: 1px solid rgb(255 255 255 / .1); box-shadow: 0 40px 80px -40px rgb(99 102 241 / .5); }
.lp-game-row { display: flex; justify-content: space-between; font-weight: 600; font-size: .9rem; }
.lp-xp { height: .65rem; border-radius: 99px; background: rgb(255 255 255 / .1); overflow: hidden; margin: .7rem 0 1.3rem; }
.lp-xp span { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #6ee7b7, #fde68a); box-shadow: 0 0 16px rgb(253 230 138 / .6); transition: width 1.6s cubic-bezier(.2,.8,.2,1) .3s; }
.is-in .lp-xp span { width: 80%; }
.lp-heat { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 5px; }
.lp-heat i { aspect-ratio: 1; border-radius: 4px; opacity: 0; }
.is-in .lp-heat i { animation: gt-pop-cell .4s cubic-bezier(.2,1.4,.4,1) both; opacity: 1; }
.lp-game-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.3rem; }
.lp-game-chips span { font-size: .8rem; padding: .4rem .75rem; border-radius: 99px; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); }

/* Privacy */
.lp-privacy { display: grid; grid-template-columns: auto 1fr; gap: 2rem; padding: 2.4rem; border-radius: 1.6rem; background: linear-gradient(135deg, rgb(16 185 129 / .12), rgb(99 102 241 / .08)); border: 1px solid rgb(16 185 129 / .25); }
.lp-privacy-icon { width: 4.5rem; height: 4.5rem; border-radius: 1.3rem; display: grid; place-items: center; font-size: 2rem; background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); }
.lp-privacy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.3rem; }
.lp-privacy-grid b { color: #fff; }
.lp-privacy-grid p { color: #a7b4c7; font-size: .9rem; line-height: 1.6; margin-top: .35rem; }

/* FAQ */
.lp-faq-wrap { max-width: 820px; }
.lp-faq { display: grid; gap: .7rem; }
.lp-qa { border-radius: 1.1rem; background: rgb(255 255 255 / .04); border: 1px solid rgb(255 255 255 / .08); transition: border-color .25s, background .25s; }
.lp-qa[open] { background: rgb(255 255 255 / .06); border-color: rgb(16 185 129 / .35); }
.lp-qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; font-weight: 600; color: #fff; }
.lp-qa summary::-webkit-details-marker { display: none; }
.lp-qa summary span { font-size: 1.3rem; color: #34d399; transition: transform .3s; }
.lp-qa[open] summary span { transform: rotate(45deg); }
.lp-qa p { padding: 0 1.3rem 1.2rem; color: #a7b4c7; line-height: 1.65; }

/* CTA */
.lp-cta { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 2rem; align-items: center; padding: 2.4rem 2.6rem; border-radius: 1.8rem; overflow: hidden;
    background: linear-gradient(120deg, #047857, #059669 40%, #0d9488); box-shadow: 0 40px 90px -40px rgb(16 185 129 / .8); }
.lp-cta::after { content: ''; position: absolute; inset: 0; background: radial-gradient(600px circle at 90% 0%, rgb(253 230 138 / .25), transparent 50%); pointer-events: none; }
.lp-cta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.lp-cta p { color: #d1fae5; margin-top: .5rem; }
.lp-cta-buddy .gt-buddy { width: 110px; height: 138px; }

/* Footer */
.lp-footer { padding: 3.5rem 0 2rem; border-top: 1px solid rgb(255 255 255 / .06); margin-top: 2rem; }
.lp-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.lp-footer-links { display: grid; gap: .55rem; align-content: start; font-size: .9rem; color: #94a3b8; }
.lp-footer-links b { color: #fff; margin-bottom: .3rem; }
.lp-footer-links a:hover { color: #34d399; }
.lp-footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgb(255 255 255 / .06); font-size: .82rem; color: #64748b; }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.8,.2,1) var(--d, 0ms), transform .7s cubic-bezier(.2,.8,.2,1) var(--d, 0ms); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1024px) {
    .lp-hero-grid, .lp-calc-grid, .lp-game { grid-template-columns: 1fr; gap: 2.5rem; }
    .lp-features { grid-template-columns: repeat(2, 1fr); }
    .lp-privacy-grid { grid-template-columns: 1fr; }
    .lp-footer-grid { grid-template-columns: 1fr 1fr; }
    .lp-links { display: none; }
    .lp-nav-cta { margin-left: auto; }
    .lp-hero-visual { min-height: 380px; }
}
@media (max-width: 640px) {
    .lp-nav-cta .lp-btn-ghost { display: none; }
    .lp-hero { padding-top: 1.5rem; }
    .lp-features, .lp-steps { grid-template-columns: 1fr; }
    .lp-steps::before { display: none; }
    .lp-cta { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 2rem 1.4rem; }
    .lp-privacy { grid-template-columns: 1fr; padding: 1.6rem; }
    .lp-calc-out { grid-template-columns: 1fr; }
    .lp-float { display: none; }
    .lp-hero-buddy { right: -6px; bottom: -40px; } .lp-hero-buddy .gt-buddy { width: 120px; height: 150px; }
    .lp-footer-grid { grid-template-columns: 1fr; }
    .lp-footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } .lp-marquee > div, .lp-bg span { animation: none; } }
