/* ==========================================================================
   Retail Sponsor Platform – Homepage Styles
   ========================================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --rsp-indigo: #6366f1;
    --rsp-indigo-light: #818cf8;
    --rsp-cyan: #06b6d4;
    --rsp-bg: #07070e;
    --rsp-white: #ffffff;
    --rsp-text-muted: rgba(255,255,255,0.5);
    --rsp-border: rgba(255,255,255,0.06);
    --rsp-font: 'DM Sans', -apple-system, sans-serif;
    --rsp-mono: 'Space Mono', monospace;
}

body.rsp-homepage {
    background: var(--rsp-bg);
    color: var(--rsp-white);
    font-family: var(--rsp-font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* ---- NAV ---- */
.rsp-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px; height: 64px;
    background: rgba(10,10,18,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--rsp-border);
}
.rsp-nav__logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: var(--rsp-white);
    font-weight: 700; font-size: 18px; letter-spacing: -0.03em;
}
.rsp-nav__icon {
    width: 32px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, var(--rsp-indigo), var(--rsp-cyan));
    display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px; color: #fff;
}
.rsp-nav__links {
    display: flex; gap: 32px; align-items: center;
}
.rsp-nav__links a {
    text-decoration: none; font-size: 14px; font-weight: 500;
    color: rgba(255,255,255,0.7); transition: color 0.2s;
}
.rsp-nav__links a:hover { color: #fff; }

/* ---- BUTTONS ---- */
.rsp-btn {
    display: inline-block; font-family: var(--rsp-font); font-weight: 600;
    border: none; border-radius: 12px; cursor: pointer; text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.rsp-btn:hover { transform: translateY(-1px); }
.rsp-btn--primary {
    font-size: 15px; padding: 14px 36px;
    background: linear-gradient(135deg, var(--rsp-indigo), var(--rsp-indigo-light));
    color: #fff; box-shadow: 0 4px 24px rgba(99,102,241,0.4);
}
.rsp-btn--ghost {
    font-size: 15px; padding: 14px 36px;
    background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.1);
}
.rsp-btn--sm {
    font-size: 13px; padding: 8px 20px;
    background: linear-gradient(135deg, var(--rsp-indigo), var(--rsp-indigo-light));
    color: #fff; box-shadow: 0 2px 12px rgba(99,102,241,0.35); border-radius: 8px;
}
.rsp-btn--white {
    font-size: 15px; padding: 14px 40px;
    background: #fff; color: #0f172a;
    box-shadow: 0 4px 24px rgba(255,255,255,0.1);
}

/* ---- HERO ---- */
.rsp-hero {
    position: relative; padding: 160px 24px 100px; text-align: center; overflow: hidden;
}
.rsp-hero__orb {
    position: absolute; border-radius: 50%;
}
.rsp-hero__orb--1 {
    top: -120px; left: 20%; width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(99,102,241,0.15) 0%, transparent 70%);
    filter: blur(60px);
}
.rsp-hero__orb--2 {
    top: 0; right: 15%; width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(6,182,212,0.12) 0%, transparent 70%);
    filter: blur(50px);
}
.rsp-hero__content {
    position: relative; z-index: 2; max-width: 800px; margin: 0 auto;
}
.rsp-badge {
    display: inline-block;
    background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25);
    border-radius: 100px; padding: 6px 18px;
    font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
    color: #a5b4fc; text-transform: uppercase; margin-bottom: 28px;
}
.rsp-hero h1 {
    font-size: clamp(38px, 5vw, 62px); font-weight: 800;
    line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 24px;
    background: linear-gradient(180deg, #ffffff 30%, rgba(255,255,255,0.55) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.rsp-hero p {
    font-size: 18px; color: var(--rsp-text-muted);
    line-height: 1.65; max-width: 540px; margin: 0 auto 40px;
}
.rsp-hero__actions {
    display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}

/* ---- STATS ---- */
.rsp-stats {
    max-width: 960px; margin: 0 auto 80px; padding: 0 24px;
    display: grid; grid-template-columns: repeat(4, 1fr);
    background: rgba(255,255,255,0.04); border-radius: 16px;
    border: 1px solid var(--rsp-border); overflow: hidden;
}
.rsp-stats__item {
    padding: 32px 24px; text-align: center;
    border-right: 1px solid var(--rsp-border);
}
.rsp-stats__item:last-child { border-right: none; }
.rsp-stats__item strong {
    display: block; font-size: 36px; font-weight: 800;
    letter-spacing: -0.03em; font-family: var(--rsp-mono);
}
.rsp-stats__item span {
    display: block; font-size: 13px; color: rgba(255,255,255,0.4);
    margin-top: 6px; font-weight: 500;
}

/* ---- TRUSTED BY ---- */
.rsp-trusted {
    text-align: center; margin-bottom: 100px; padding: 0 24px;
}
.rsp-trusted p {
    font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
    color: rgba(255,255,255,0.25); margin-bottom: 28px; font-weight: 600;
}
.rsp-trusted__logos {
    display: flex; justify-content: center; gap: 48px; flex-wrap: wrap;
}
.rsp-trusted__logos span {
    font-size: 18px; font-weight: 700; color: rgba(255,255,255,0.12);
    letter-spacing: -0.02em;
}

/* ---- FEATURES ---- */
.rsp-features {
    max-width: 1000px; margin: 0 auto 100px; padding: 0 24px;
}
.rsp-features h2 {
    font-size: clamp(28px, 3.5vw, 38px); font-weight: 800;
    text-align: center; letter-spacing: -0.03em; margin-bottom: 16px;
}
.rsp-features__sub {
    text-align: center; color: rgba(255,255,255,0.4);
    font-size: 16px; margin-bottom: 56px;
}
.rsp-features__grid {
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.rsp-feature-card {
    background: rgba(255,255,255,0.03); border: 1px solid var(--rsp-border);
    border-radius: 16px; padding: 36px 32px;
    transition: border-color 0.3s, background 0.3s;
}
.rsp-feature-card:hover {
    border-color: rgba(99,102,241,0.3);
    background: rgba(255,255,255,0.05);
}
.rsp-feature-card__icon { font-size: 32px; margin-bottom: 16px; }
.rsp-feature-card h3 {
    font-size: 20px; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em;
}
.rsp-feature-card p {
    font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.7;
}

/* ---- HOW IT WORKS ---- */
.rsp-how {
    max-width: 1000px; margin: 0 auto 100px; padding: 0 24px;
}
.rsp-how h2 {
    font-size: clamp(28px, 3.5vw, 38px); font-weight: 800;
    text-align: center; letter-spacing: -0.03em; margin-bottom: 56px;
}
.rsp-how__steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.rsp-how__step { text-align: center; }
.rsp-how__num {
    font-family: var(--rsp-mono); font-size: 48px; font-weight: 700;
    color: rgba(99,102,241,0.25); margin-bottom: 20px;
}
.rsp-how__step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.rsp-how__step p { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.7; }

/* ---- CTA ---- */
.rsp-cta {
    max-width: 900px; margin: 0 auto 80px; padding: 80px 48px; text-align: center;
    background: linear-gradient(135deg, rgba(99,102,241,0.12) 0%, rgba(6,182,212,0.08) 100%);
    border: 1px solid rgba(99,102,241,0.15); border-radius: 24px;
}
.rsp-cta h2 {
    font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px;
}
.rsp-cta p {
    color: rgba(255,255,255,0.45); font-size: 16px; margin-bottom: 36px;
}

/* ---- FOOTER ---- */
.rsp-footer {
    border-top: 1px solid var(--rsp-border);
    padding: 40px 40px 32px;
    display: flex; justify-content: space-between; align-items: center;
    max-width: 1100px; margin: 0 auto;
}
.rsp-footer span { font-size: 13px; color: rgba(255,255,255,0.25); }
.rsp-footer__links { display: flex; gap: 28px; }
.rsp-footer__links a {
    font-size: 13px; color: rgba(255,255,255,0.3);
    text-decoration: none; transition: color 0.2s;
}
.rsp-footer__links a:hover { color: rgba(255,255,255,0.6); }

/* ---- ANIMATIONS ---- */
@keyframes rsp-fade-up {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}
.rsp-hero__content   { animation: rsp-fade-up 0.8s ease both; }
.rsp-stats           { animation: rsp-fade-up 0.8s 0.15s ease both; }
.rsp-feature-card:nth-child(1) { animation: rsp-fade-up 0.6s 0.2s ease both; }
.rsp-feature-card:nth-child(2) { animation: rsp-fade-up 0.6s 0.3s ease both; }
.rsp-feature-card:nth-child(3) { animation: rsp-fade-up 0.6s 0.4s ease both; }
.rsp-feature-card:nth-child(4) { animation: rsp-fade-up 0.6s 0.5s ease both; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
    .rsp-nav { padding: 0 20px; }
    .rsp-nav__links a:not(.rsp-btn) { display: none; }
    .rsp-stats { grid-template-columns: repeat(2, 1fr); }
    .rsp-stats__item:nth-child(2) { border-right: none; }
    .rsp-features__grid { grid-template-columns: 1fr; }
    .rsp-how__steps { grid-template-columns: 1fr; gap: 48px; }
    .rsp-footer { flex-direction: column; gap: 16px; }
}
