/*
Theme Name: RewardSpark
Description: Modern rewards platform homepage
Version: 1.0
*/

:root {
    --bg: #0a0b14;
    --surface: #111321;
    --border: rgba(255,255,255,.09);
    --text: #f7f7ff;
    --muted: #a0a5bb;
    --purple: #9365ff;
    --pink: #e76bff;
    --green: #74f0bc;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}

body.rewards-home {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

.rewards-home h1,
.rewards-home h2,
.rewards-home h3,
.rewards-home p {
    margin-top: 0;
}

.rewards-home h1,
.rewards-home h2,
.rewards-home h3 {
    color: var(--text);
    line-height: 1.2;
}

.rewards-home a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1160px, calc(100% - 44px));
    margin-inline: auto;
}

.section {
    padding: 90px 0;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10,11,20,.96);
    border-bottom: 1px solid var(--border);
}

.nav-wrap {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 800;
}

.brand-icon {
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--purple), var(--pink));
}

.main-nav,
.nav-actions {
    display: flex;
    align-items: center;
    gap: 22px;
}

.main-nav a,
.login-link {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

.main-nav a:hover,
.login-link:hover {
    color: white;
}

/* Buttons */

.btn {
    min-height: 48px;
    padding: 12px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 11px;
    background: linear-gradient(110deg, #8258f5, #b15bea);
    color: white !important;
    font-weight: 700;
    font-size: 14px;
}

.btn-small {
    min-height: 40px;
    padding: 8px 16px;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
}

/* Hero */

.hero {
    padding: 90px 0;
    background:
        radial-gradient(ellipse at 15% 20%, rgba(113,70,210,.16), transparent 45%),
        radial-gradient(ellipse at 85% 50%, rgba(64,81,199,.13), transparent 40%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 55px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 18px;
    color: #bda7ff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 7px;
    border-radius: 50%;
    background: var(--green);
}

.hero h1 {
    max-width: 600px;
    margin-bottom: 22px;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 850;
    letter-spacing: -3px;
}

.gradient-text {
    background: linear-gradient(105deg, #a78bfa, #e18aff, #80caff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    max-width: 500px;
    margin-bottom: 28px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.trust-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 30px;
}

.trust-row strong {
    font-size: 12px;
}

.trust-row p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 11px;
}

.avatar-stack {
    display: flex;
}

.avatar-stack span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: -4px;
    border: 2px solid var(--bg);
    border-radius: 50%;
    background: #202239;
}

/* HERO ILLUSTRATION */

.hero-visual {
    position: relative;
    min-width: 0;
    padding: 28px 10px;
}

.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.glow-one {
    top: 10%;
    left: 20%;
    width: 220px;
    height: 220px;
    background: rgba(126,82,250,.25);
}

.glow-two {
    right: 5%;
    bottom: 5%;
    width: 180px;
    height: 180px;
    background: rgba(57,141,232,.2);
}

.reward-panel {
    position: relative;
    z-index: 1;
    min-height: 340px;
    padding: 30px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 24px;
    background: linear-gradient(145deg, #1a1b31, #101321);
    box-shadow: 0 30px 80px rgba(0,0,0,.3);
    transform: rotate(-2deg);
}

.panel-top,
.panel-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.panel-label,
.live-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1px;
}

.panel-label {
    color: var(--muted);
}

.live-label {
    color: var(--green);
}

.balance-label {
    margin-top: 40px;
    color: var(--muted);
    font-size: 13px;
}

.balance-value {
    margin: 8px 0 25px;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 850;
    letter-spacing: -2px;
}

.balance-value span {
    color: #b59aff;
}

.progress-line {
    height: 8px;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255,255,255,.08);
}

.progress-line span {
    display: block;
    width: 72%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #875dff, #e580f8);
}

.panel-bottom {
    margin-top: 12px;
    color: var(--muted);
    font-size: 11px;
}

.floating-reward {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 14px;
    background: #202239;
    box-shadow: 0 15px 40px rgba(0,0,0,.25);
    transform: rotate(2deg);
}

.reward-left {
    bottom: -24px;
    left: -20px;
}

.reward-right {
    top: 40%;
    right: -25px;
}

.reward-emoji {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: rgba(147,101,255,.15);
    font-size: 21px;
}

.floating-reward strong,
.floating-reward small {
    display: block;
    white-space: nowrap;
}

.floating-reward strong {
    font-size: 12px;
}

.floating-reward small {
    color: var(--muted);
    font-size: 10px;
}

/* BENEFITS STRIP */

.benefits {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.02);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding: 25px 0;
}

.benefits-grid > div {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #d9d9e8;
    font-size: 13px;
    font-weight: 650;
}

.benefits-grid span {
    color: #b59aff;
    font-size: 19px;
}

/* SECTION HEADINGS */

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 37px;
}

.section-heading .eyebrow {
    margin-bottom: 13px;
}

.section-heading h2,
.faq-intro h2 {
    margin-bottom: 13px;
    font-size: clamp(31px, 4vw, 44px);
    font-weight: 820;
    letter-spacing: -1.5px;
}

.section-heading p,
.faq-intro > p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 14px;
}

.text-link {
    display: inline-block;
    color: #c2aaff !important;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.text-link:hover {
    color: #fff !important;
}

/* OFFER CARDS */

.offers-section {
    background: var(--bg);
}

.offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.offer-card {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    transition: transform .25s ease, border-color .25s ease;
}

.offer-card:hover {
    transform: translateY(-5px);
    border-color: rgba(166,132,255,.45);
}

.offer-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 175px;
    overflow: hidden;
}

.offer-art::before,
.offer-art::after {
    content: "";
    position: absolute;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
}

.offer-art::after {
    width: 210px;
    height: 210px;
}

.offer-art > span {
    z-index: 1;
    font-size: 67px;
}

.offer-art small {
    position: absolute;
    bottom: 13px;
    left: 17px;
    color: rgba(255,255,255,.8);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.art-purple {
    background: radial-gradient(circle at 50% 45%, #7950cb, #302052 80%);
}

.art-blue {
    background: radial-gradient(circle at 50% 45%, #347bb7, #182a4d 80%);
}

.art-green {
    background: radial-gradient(circle at 50% 45%, #278e80, #153d3b 80%);
}

.offer-content {
    padding: 23px;
}

.offer-category {
    color: #b59aff;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.3px;
}

.offer-content h3 {
    margin: 10px 0;
    font-size: 19px;
}

.offer-content > p {
    min-height: 49px;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

.offer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 17px;
    border-top: 1px solid var(--border);
}

.offer-tag {
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 7px;
    color: #d0c7ee;
    font-size: 10px;
}

.offer-bottom a {
    color: #c3adff;
    font-size: 12px;
    font-weight: 750;
}

.disclaimer {
    margin-top: 20px;
    color: #747b92;
    font-size: 11px;
}

/* HOW IT WORKS SECTION */

.steps-section {
    background: #0d0f1b;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.centered {
    justify-content: center;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.step-card {
    position: relative;
    padding: 27px 22px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255,255,255,.025);
    transition: transform .2s ease, border-color .2s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: rgba(166,132,255,.4);
}

.step-number {
    position: absolute;
    top: 20px;
    right: 20px;
    color: #686b88;
    font-size: 11px;
    font-weight: 800;
}

.step-icon {
    display: grid;
    place-items: center;
    width: 53px;
    height: 53px;
    margin-bottom: 25px;
    border: 1px solid rgba(164,129,255,.2);
    border-radius: 15px;
    background: rgba(147,101,255,.12);
    font-size: 24px;
}

.step-card h3 {
    margin-bottom: 11px;
    font-size: 16px;
}

.step-card p {
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

/* CALL TO ACTION */

.cta-section {
    padding-bottom: 80px;
}

.cta-box {
    position: relative;
    overflow: hidden;
    padding: 70px 30px;
    border: 1px solid rgba(189,151,255,.23);
    border-radius: 25px;
    background:
        radial-gradient(
            ellipse at 0% 100%,
            rgba(115,67,220,.32),
            transparent 50%
        ),
        radial-gradient(
            ellipse at 100% 0%,
            rgba(94,81,201,.25),
            transparent 50%
        ),
        #141427;
    text-align: center;
}

.cta-decoration {
    position: absolute;
    top: -70px;
    right: 9%;
    color: rgba(183,151,255,.1);
    font-size: 230px;
    line-height: 1;
    pointer-events: none;
}

.cta-box .eyebrow,
.cta-box h2,
.cta-box p,
.cta-box .btn {
    position: relative;
    z-index: 1;
}

.cta-box h2 {
    max-width: 650px;
    margin: 0 auto 16px;
    font-size: clamp(30px, 4.2vw, 46px);
    letter-spacing: -1.5px;
}

.cta-box p {
    margin-bottom: 27px;
    color: var(--muted);
    font-size: 14px;
}

/* FAQ SECTION */

.faq-section {
    padding-top: 70px;
    border-top: 1px solid var(--border);
}

.faq-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px;
    align-items: start;
}

.faq-intro .text-link {
    margin-top: 23px;
}

.faq-list details {
    border-bottom: 1px solid var(--border);
}

.faq-list details:first-child {
    border-top: 1px solid var(--border);
}

.faq-list summary {
    position: relative;
    padding: 21px 35px 21px 0;
    cursor: pointer;
    list-style: none;
    font-size: 14px;
    font-weight: 700;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: "+";
    position: absolute;
    top: 15px;
    right: 0;
    color: #b69aff;
    font-size: 23px;
    font-weight: 400;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list details p {
    margin: 0;
    padding: 0 20px 22px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.85;
}

/* FOOTER */

.site-footer {
    padding-top: 40px;
    border-top: 1px solid var(--border);
    background: #080911;
}

.footer-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding-bottom: 35px;
}

.footer-brand p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.footer-links a {
    color: var(--muted);
    font-size: 12px;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    color: #74788e;
    font-size: 10px;
}

/* TABLET RESPONSIVENESS */

@media (max-width: 950px) {
    .main-nav {
        gap: 15px;
    }

    .hero-grid {
        gap: 35px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .reward-panel {
        padding: 25px;
    }

    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-layout {
        gap: 40px;
    }
}

/* MOBILE RESPONSIVENESS */

@media (max-width: 700px) {
    .container {
        width: calc(100% - 32px);
    }

    .section {
        padding: 65px 0;
    }

    .nav-wrap {
        min-height: 70px;
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 0;
    }

    .brand {
        font-size: 19px;
    }

    .main-nav {
        order: 3;
        width: 100%;
        justify-content: space-between;
        gap: 8px;
        padding: 10px 0 3px;
        border-top: 1px solid var(--border);
    }

    .main-nav a {
        font-size: 11px;
    }

    .nav-actions {
        gap: 12px;
    }

    .login-link {
        font-size: 12px;
    }

    .hero {
        padding: 60px 0 70px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero h1 {
        font-size: clamp(40px, 10vw, 58px);
        letter-spacing: -2px;
    }

    .hero-description {
        font-size: 15px;
    }

    .hero-visual {
        padding: 20px 10px 35px;
        margin: 0 5px;
    }

    .reward-panel {
        min-height: 310px;
        padding: 24px;
        transform: rotate(-1deg);
    }

    .reward-left {
        left: -10px;
    }

    .reward-right {
        right: -10px;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 10px;
    }

    .benefits-grid > div {
        justify-content: flex-start;
        font-size: 12px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .section-heading h2,
    .faq-intro h2 {
        font-size: 32px;
    }

    .offer-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .offer-art {
        min-height: 185px;
    }

    .offer-content > p {
        min-height: auto;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .step-card {
        padding: 23px;
    }

    .cta-box {
        padding: 50px 20px;
    }

    .cta-box h2 {
        font-size: 31px;
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-main {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-links {
        gap: 18px;
    }

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}