/* =========================================================
   ZX PREMIUM POLISH — landing page finishing layer
   Loaded after zx-theme.css. Only visual styling: no layout
   of forms, links or PHP/React logic is changed here.
   Delete the <link> to zx-premium.css in includes/meta.php
   to go back to the previous look.
   ========================================================= */
:root {
    --zp-gold-1: #ffe27a;
    --zp-gold-2: #ffc928;
    --zp-gold-3: #f2a900;
    --zp-gold-grad: linear-gradient(180deg, #ffe27a 0%, #ffc928 48%, #f5b000 100%);
    --zp-gold-text: linear-gradient(100deg, #fff1b0 0%, #ffd23f 35%, #ffb800 70%, #ffe27a 100%);
    --zp-card: linear-gradient(180deg, rgba(20, 50, 79, .72) 0%, rgba(10, 34, 56, .82) 100%);
    --zp-card-solid: linear-gradient(180deg, #11304d 0%, #0b2540 100%);
    --zp-line: rgba(148, 184, 224, .14);
    --zp-line-strong: rgba(148, 184, 224, .24);
    --zp-gold-line: rgba(255, 201, 40, .42);
    --zp-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 18px 44px -18px rgba(0, 0, 0, .65);
    --zp-shadow-lift: 0 1px 0 rgba(255, 255, 255, .07) inset, 0 28px 60px -20px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 201, 40, .28);
    --zp-ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Page atmosphere ---------- */
body {
    background:
        radial-gradient(1100px 620px at 78% -8%, rgba(255, 201, 40, .10), transparent 60%),
        radial-gradient(900px 600px at -10% 22%, rgba(56, 132, 214, .12), transparent 60%),
        radial-gradient(900px 700px at 110% 62%, rgba(56, 132, 214, .08), transparent 60%),
        #081e2e;
    background-attachment: fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* ---------- Header: frosted glass + gold hairline ---------- */
body .top-header.zx-header {
    background: rgba(8, 30, 46, .72);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, rgba(255, 201, 40, .35), transparent) 1;
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .8);
}

/* ---------- Buttons ---------- */
body .zx-btn { border-radius: 12px; letter-spacing: .01em; transition: transform .25s var(--zp-ease), box-shadow .25s var(--zp-ease), background .25s, border-color .25s, color .25s; }
body .zx-btn-yellow {
    position: relative; overflow: hidden; isolation: isolate;
    background: var(--zp-gold-grad);
    color: #0a1a2b;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 -2px 0 rgba(160, 100, 0, .25) inset, 0 10px 26px -8px rgba(255, 190, 20, .55);
}
body .zx-btn-yellow::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
    transform: translateX(-120%);
    transition: transform .8s var(--zp-ease);
}
body .zx-btn-yellow:hover {
    background: var(--zp-gold-grad);
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 -2px 0 rgba(160, 100, 0, .25) inset, 0 16px 34px -8px rgba(255, 190, 20, .7);
}
body .zx-btn-yellow:hover::after { transform: translateX(120%); }
body .zx-btn-outline {
    border: 1.5px solid rgba(255, 201, 40, .65);
    background: rgba(255, 201, 40, .04);
}
body .zx-btn-outline:hover { background: rgba(255, 201, 40, .12); border-color: var(--zp-gold-2); transform: translateY(-1px); }
body .zx-btn-caps { letter-spacing: .06em; }
body .zx-center .zx-btn-caps, body .zx-cta .zx-btn-caps { padding: 15px 34px; font-size: 14.5px; }
body .zx-btn:focus-visible { outline: 2px solid var(--zp-gold-2); outline-offset: 3px; }

/* ---------- Headings ---------- */
body .zx-yellow {
    background: var(--zp-gold-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
body .zx-h2 { position: relative; z-index: 1; letter-spacing: -.025em; text-wrap: balance; }
body .zx-section > .zx-h2:not(.zx-left)::after,
body .zx-faq-wrap .zx-h2::after {
    content: ""; display: block;
    width: 56px; height: 3px; margin: 16px auto 0;
    border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--zp-gold-2), transparent);
}

/* ---------- Hero ---------- */
body .zx-hero-title { letter-spacing: -.035em; line-height: 1.06; text-wrap: balance; }
body .zx-hero-title .zx-yellow { filter: drop-shadow(0 6px 24px rgba(255, 201, 40, .25)); }
body .zx-hero-sub { font-size: 18px; color: #a9bdd6; line-height: 1.6; }

/* Sign-up card: kept as the original flat #0b283e card with the strong yellow glow
   (styles live in zx-theme.css). Only buttons inside it are reset to that look. */
body .zx-hero .zx-signup-form .zx-btn-block,
body .zx-hero .zx-signup-form .zx-btn-block:hover {
    border-radius: 6px;
    background: linear-gradient(180deg, #ffcd36 0%, #ffd34a 100%);
    box-shadow: 0 6px 22px rgba(255, 201, 40, .35);
}
body .zx-hero .zx-signup-form .zx-btn-block:hover { transform: translateY(-1px); filter: brightness(1.04); }
body .zx-hero .zx-btn-white { box-shadow: none; }

/* ---------- Rewards logo strip ---------- */
body .zx-brand-item { opacity: .78; filter: grayscale(.15); }
body .zx-brand-item:hover { opacity: 1; filter: none; }

/* ---------- Shared premium card surface ---------- */
body .zx-stat,
body .zx-step,
body .zx-way,
body .zx-faq-item {
    background: var(--zp-card);
    border: 1px solid var(--zp-line);
    box-shadow: var(--zp-shadow);
    transition: transform .35s var(--zp-ease), box-shadow .35s var(--zp-ease), border-color .35s var(--zp-ease), background .35s;
}

/* ---------- Stats ---------- */
body .zx-stat { border-radius: 20px; overflow: hidden; }
body .zx-stat::after {
    content: ""; position: absolute; left: 18%; right: 18%; top: 0; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 201, 40, .7), transparent);
}
body .zx-stat:hover { transform: translateY(-4px); box-shadow: var(--zp-shadow-lift); border-color: var(--zp-gold-line); }
body .zx-stat-value { letter-spacing: -.03em; }
body .zx-stat-value i {
    background: var(--zp-gold-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
    filter: drop-shadow(0 4px 12px rgba(255, 201, 40, .25));
}
body .zx-stat-label { color: #9fb3cd; }

/* ---------- How it works ---------- */
body .zx-how .zx-h2.zx-left { font-size: 34px; max-width: 420px; letter-spacing: -.03em; }
body .zx-how .zx-muted { font-size: 16px; color: #a9bdd6; max-width: 400px; }
body .zx-steps { position: relative; gap: 14px; }
body .zx-step { padding: 18px 20px; border-radius: 14px; font-size: 16px; }
body .zx-step:hover { transform: translateX(6px); border-color: var(--zp-gold-line); box-shadow: var(--zp-shadow-lift); }
body .zx-step span {
    width: 34px; height: 34px; border-radius: 10px; font-size: 14px;
    background: var(--zp-gold-grad); color: #0a1a2b;
    box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 6px 16px -6px rgba(255, 190, 20, .7);
}
body .zx-how-art {
    border-radius: 24px;
    border: 1px solid var(--zp-line-strong);
    box-shadow: 0 34px 70px -34px rgba(0, 0, 0, .8), 0 0 0 6px rgba(255, 255, 255, .02);
}
body .zx-how-art img { border: 0; border-radius: 24px; transition: transform 1.2s var(--zp-ease); }
body .zx-how-art:hover img { transform: scale(1.03); }

/* ---------- Top ways to earn ---------- */
body .zx-way { border-radius: 20px; padding: 10px; }
body .zx-way:hover { transform: translateY(-6px); box-shadow: var(--zp-shadow-lift); border-color: var(--zp-gold-line); }
body .zx-way-img { border-radius: 14px; position: relative; }
body .zx-way-img::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 55%, rgba(8, 30, 46, .45));
}
body .zx-way-img img { transition: transform .9s var(--zp-ease); }
body .zx-way:hover .zx-way-img img { transform: scale(1.07); }
body .zx-way-body {
    background: rgba(8, 28, 47, .55);
    border: 1px solid rgba(148, 184, 224, .08);
    border-radius: 14px; padding: 18px 16px;
}
body .zx-way-body h3 { letter-spacing: -.02em; }
body .zx-way-body p { color: #9fb3cd; }
body .zx-way-earn {
    border-top: 1px dashed rgba(148, 184, 224, .18);
    padding-top: 12px;
}
body .zx-way-earn small { color: #7f98b8; text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; font-weight: 700; }
body .zx-way-earn strong {
    background: var(--zp-gold-text);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Earn even more ---------- */
body .zx-more-card {
    border-radius: 22px;
    border: 1px solid var(--zp-line-strong);
    box-shadow: var(--zp-shadow);
    transition: transform .4s var(--zp-ease), box-shadow .4s var(--zp-ease), border-color .4s;
}
body .zx-more-card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
    background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .07) 50%, transparent 65%);
    transform: translateX(-100%); transition: transform 1.1s var(--zp-ease);
}
body .zx-more-card:hover { transform: translateY(-5px); box-shadow: var(--zp-shadow-lift); border-color: var(--zp-gold-line); }
body .zx-more-card:hover::after { transform: translateX(100%); }
body .zx-more-card h3 { font-weight: 800; letter-spacing: -.025em; text-shadow: 0 4px 20px rgba(0, 0, 0, .35); }

/* ---------- FAQ ---------- */
body .zx-faq-item { border-radius: 14px; overflow: hidden; }
body .zx-faq-item:hover { border-color: var(--zp-line-strong); }
body .zx-faq-item[open] {
    border-color: var(--zp-gold-line);
    background:
        linear-gradient(90deg, rgba(255, 201, 40, .08), transparent 40%),
        var(--zp-card);
    box-shadow: inset 3px 0 0 var(--zp-gold-2), var(--zp-shadow);
}
body .zx-faq-item summary { padding: 21px 22px; transition: color .2s; }
body .zx-faq-item summary:hover { color: var(--zp-gold-1); }
body .zx-faq-item summary::after {
    background: rgba(255, 201, 40, .12);
    color: var(--zp-gold-2);
    border: 1px solid rgba(255, 201, 40, .45);
    transition: transform .35s var(--zp-ease), background .25s, color .25s;
}
body .zx-faq-item[open] summary::after { content: '+'; transform: rotate(45deg); background: var(--zp-gold-grad); color: #0a1a2b; }
body .zx-faq-item p { color: #a9bdd6; padding: 0 22px 22px; font-size: 14.5px; line-height: 1.7; }

/* ---------- Final call to action ---------- */
body .zx-cta {
    border-radius: 28px;
    border: 1px solid rgba(255, 201, 40, .22);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 50px 100px -40px rgba(0, 0, 0, .85), 0 0 90px -30px rgba(255, 201, 40, .35);
}
body .zx-cta h2 { letter-spacing: -.035em; text-shadow: 0 6px 30px rgba(0, 0, 0, .45); }

/* ---------- Footer ---------- */
body .app-footer.zx-footer { position: relative; border-top: 1px solid var(--zp-line); }
body .app-footer.zx-footer::before {
    content: ""; position: absolute; top: -1px; left: 10%; right: 10%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 201, 40, .55), transparent);
}
body .app-footer.zx-footer a { transition: color .2s; }
body .app-footer.zx-footer a:hover { color: var(--zp-gold-2); }

/* ---------- Scroll-in reveal (CSS only, falls back to visible) ---------- */
@supports (animation-timeline: view()) {
    body .zx-stat, body .zx-step, body .zx-way, body .zx-more-card, body .zx-faq-item, body .zx-cta {
        animation: zpReveal linear both;
        animation-timeline: view();
        animation-range: entry 0% entry 35%;
    }
}
@keyframes zpReveal { from { opacity: 0; translate: 0 26px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
    body .zx-how .zx-h2.zx-left { font-size: 28px; }
}
@media (max-width: 600px) {
    body { background-attachment: scroll; }
    body .zx-how .zx-h2.zx-left { font-size: 26px; }
    body .zx-step:hover { transform: none; }
    body .zx-section > .zx-h2:not(.zx-left)::after, body .zx-faq-wrap .zx-h2::after { margin-top: 12px; width: 44px; }
}

/* ---------- Respect "reduce motion" ---------- */
@media (prefers-reduced-motion: reduce) {
    body .zx-btn-yellow::after, body .zx-more-card::after { display: none; }
    body .zx-stat, body .zx-step, body .zx-way, body .zx-more-card, body .zx-faq-item, body .zx-cta { animation: none !important; }
    body .zx-stat:hover, body .zx-step:hover, body .zx-way:hover, body .zx-more-card:hover { transform: none; }
}
