/* ============================================================
   RUMMYBEST REFERRAL — PREMIUM LANDING PAGE STYLESHEET
   ============================================================ */

/* ===== CSS VARIABLES / DESIGN TOKENS ===== */
:root {
    /* Primary Palette */
    --primary: #6C2BD9;
    --primary-light: #8B5CF6;
    --primary-dark: #5521B5;
    --primary-glow: rgba(108, 43, 217, 0.45);

    /* Gold Accent */
    --gold: #F5A623;
    --gold-light: #FBBF24;
    --gold-dark: #D97706;
    --gold-glow: rgba(245, 166, 35, 0.4);

    /* Backgrounds */
    --bg-dark: #0A0A14;
    --bg-card: #12121F;
    --bg-card-hover: #1A1A2E;
    --bg-surface: #16162A;
    --bg-glass: rgba(18, 18, 31, 0.65);

    /* Text */
    --text-primary: #F1F1F6;
    --text-secondary: #A0A0BC;
    --text-muted: #6B6B85;
    --text-accent: #C4B5FD;

    /* Borders */
    --border: rgba(139, 92, 246, 0.15);
    --border-glow: rgba(139, 92, 246, 0.3);

    /* Effects */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--primary-glow);
    --shadow-gold: 0 0 40px var(--gold-glow);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #6C2BD9 0%, #A855F7 50%, #6C2BD9 100%);
    --gradient-gold: linear-gradient(135deg, #F5A623 0%, #FBBF24 50%, #F5A623 100%);
    --gradient-hero: linear-gradient(180deg, #0A0A14 0%, #12082A 50%, #0A0A14 100%);
    --gradient-card: linear-gradient(145deg, rgba(139, 92, 246, 0.08) 0%, rgba(18, 18, 31, 0.6) 100%);

    /* Spacing */
    --container-max: 1200px;
    --section-py: clamp(4rem, 8vw, 7rem);

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

::selection {
    background: var(--primary);
    color: #fff;
}

/* ===== CONTAINER ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ===== UTILITY TEXT ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-gold {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== SECTION HEADER ===== */
.section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-tag {
    display: inline-block;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid var(--border);
    color: var(--text-accent);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    box-shadow: var(--shadow-glow), var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 60px var(--primary-glow), var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(-1px) scale(0.99);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-glow);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 42px;
    font-size: 1.1rem;
    border-radius: var(--radius-lg);
}

.btn-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: var(--gradient-primary);
    z-index: -1;
    filter: blur(16px);
    opacity: 0.5;
    transition: opacity 0.3s;
}

.btn-glow:hover::before {
    opacity: 0.8;
}

.btn-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.btn-icon-right {
    width: 18px;
    height: 18px;
    transition: transform 0.3s var(--ease-out);
}

.btn-outline:hover .btn-icon-right {
    transform: translateX(4px);
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    transition: all 0.4s var(--ease-out);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(10, 10, 20, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.45rem;
    z-index: 1001;
}

.logo-icon {
    font-size: 1.8rem;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

.logo-text {
    color: var(--text-primary);
}

.logo-highlight {
    color: var(--primary-light);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.25s;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.1);
}

.nav-cta {
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    transition: all 0.3s;
    box-shadow: 0 0 20px var(--primary-glow);
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px var(--primary-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
}

.hamburger span {
    width: 26px;
    height: 2.5px;
    background: var(--text-primary);
    border-radius: 4px;
    transition: all 0.3s;
}

/* ===== HERO SECTION ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 60px;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.35;
    pointer-events: none;
}

.hero-orb-1 {
    width: 500px;
    height: 500px;
    background: var(--primary);
    top: -150px;
    right: -100px;
}

.hero-orb-2 {
    width: 400px;
    height: 400px;
    background: #A855F7;
    bottom: -100px;
    left: -150px;
}

.hero-orb-3 {
    width: 300px;
    height: 300px;
    background: var(--gold);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-accent);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s var(--ease-out) both;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #22C55E;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    }

    50% {
        opacity: 0.8;
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
    }
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 1.2rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 540px;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--text-primary);
}

.stat-suffix {
    font-family: var(--font-heading);
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero CTA */
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s var(--ease-out) 0.4s both;
}

/* Hero Trust */
.hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
    animation: fadeInUp 0.8s var(--ease-out) 0.5s both;
}

.trust-avatars {
    display: flex;
}

.trust-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    border: 2px solid var(--bg-dark);
    margin-left: -10px;
}

.trust-avatar:first-child {
    margin-left: 0;
}

.trust-stars {
    color: var(--gold);
    font-size: 0.95rem;
    letter-spacing: 2px;
}

.trust-text {
    font-size: 0.82rem;
    color: var(--text-muted);
}

/* Hero Image */
.hero-image-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 1s var(--ease-out) 0.3s both;
}

.hero-image-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    filter: blur(60px);
    z-index: 0;
}

.hero-image {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-xl);
    filter: drop-shadow(0 20px 60px rgba(108, 43, 217, 0.3));
    max-width: 100%;
    height: auto;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    background: var(--bg-glass);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    animation: float 6s ease-in-out infinite;
}

.floating-card-1 {
    top: 15%;
    right: -10px;
    animation-delay: 0s;
}

.floating-card-2 {
    bottom: 25%;
    left: -20px;
    animation-delay: 2s;
}

.floating-card-3 {
    bottom: 8%;
    right: 10%;
    animation-delay: 4s;
}

.fc-emoji {
    font-size: 1.5rem;
}

.fc-title {
    display: block;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-primary);
}

.fc-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.75rem;
    animation: fadeInUp 1s var(--ease-out) 1s both;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--border-glow);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: var(--primary-light);
    border-radius: 4px;
    animation: scrollWheel 2s infinite;
}

@keyframes scrollWheel {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(12px);
    }
}

/* ===== INFO RIBBON ===== */
.info-ribbon {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2rem 0;
}

.ribbon-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.ribbon-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: background 0.3s;
}

.ribbon-item:hover {
    background: rgba(139, 92, 246, 0.06);
}

.ribbon-icon {
    font-size: 1.6rem;
}

.ribbon-label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ribbon-value {
    display: block;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

/* ===== FEATURES ===== */
.features {
    padding: var(--section-py) 0;
    background: var(--bg-dark);
    position: relative;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: clamp(1.5rem, 3vw, 2rem);
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border);
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon-wrap {
    background: rgba(139, 92, 246, 0.2);
    transform: scale(1.1);
}

.feature-title {
    font-size: 1.15rem;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ===== GAMES ===== */
.games {
    padding: var(--section-py) 0;
    background: var(--bg-surface);
    position: relative;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.2rem;
}

.game-card {
    padding: clamp(1.2rem, 2vw, 1.8rem);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s var(--ease-out);
    position: relative;
    cursor: pointer;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-light);
    box-shadow: var(--shadow-glow);
    background: var(--bg-card-hover);
}

.game-icon {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    transition: transform 0.4s var(--ease-spring);
}

.game-card:hover .game-icon {
    transform: scale(1.2) rotate(-5deg);
}

.game-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.4rem;
    color: var(--text-primary);
}

.game-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.game-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid var(--border);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.game-badge-hot {
    background: rgba(245, 166, 35, 0.15);
    border-color: rgba(245, 166, 35, 0.3);
    color: var(--gold-light);
}

/* ===== DOWNLOAD STEPS ===== */
.download-steps {
    padding: var(--section-py) 0;
    background: var(--bg-dark);
}

.steps-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    position: relative;
}

.steps-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--primary));
    opacity: 0.3;
    z-index: 0;
}

.step-card {
    text-align: center;
    padding: 2rem 1.2rem;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 1;
    transition: all 0.4s var(--ease-out);
}

.step-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.step-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    line-height: 1;
}

.step-content h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Download CTA */
.download-cta-wrap {
    text-align: center;
}

.download-note {
    margin-top: 1rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

/* ===== REFER & EARN ===== */
.refer-earn {
    padding: var(--section-py) 0;
    background: var(--bg-surface);
    position: relative;
    overflow: hidden;
}

.refer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.refer-text {
    font-size: 1rem;
    color: var(--text-secondary);
    margin: 1.2rem 0 1.5rem;
    line-height: 1.75;
}

.refer-benefits {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.refer-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.benefit-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.refer-benefits li strong {
    display: block;
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.refer-benefits li span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Refer Visual */
.refer-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.refer-card-stack {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 420px;
}

.refer-stat-card {
    padding: 1.5rem;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.4s var(--ease-out);
}

.refer-stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.rsc-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.6rem;
}

.rsc-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.rsc-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.rsc-1 {
    border-color: rgba(139, 92, 246, 0.25);
}

.rsc-2 {
    border-color: rgba(245, 166, 35, 0.25);
}

.rsc-3 {
    border-color: rgba(34, 197, 94, 0.25);
}

.rsc-4 {
    border-color: rgba(59, 130, 246, 0.25);
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    padding: var(--section-py) 0;
    background: var(--bg-dark);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    padding: clamp(1.5rem, 3vw, 2rem);
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease-out);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 3px;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.2rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.testimonial-author span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq {
    padding: var(--section-py) 0;
    background: var(--bg-surface);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item:hover,
.faq-item.active {
    border-color: var(--border-glow);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    gap: 12px;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-chevron {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.4s var(--ease-out), color 0.3s;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary-light);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out), padding 0.4s;
}

.faq-item.active .faq-answer {
    max-height: 400px;
}

.faq-answer p {
    padding: 0 24px 18px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ===== FINAL CTA ===== */
.final-cta {
    padding: var(--section-py) 0;
    background: var(--bg-dark);
}

.cta-glass-card {
    text-align: center;
    padding: clamp(2.5rem, 6vw, 4rem);
    background: var(--gradient-card);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.cta-glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, var(--primary-glow) 0%, transparent 50%);
    opacity: 0.15;
    animation: rotateBg 20s linear infinite;
    pointer-events: none;
}

@keyframes rotateBg {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.cta-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    position: relative;
}

.cta-text {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    position: relative;
}

.cta-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    position: relative;
}

.cta-badges span {
    padding: 8px 16px;
    background: rgba(139, 92, 246, 0.1);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border);
    padding: 3.5rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.footer-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 1rem;
    line-height: 1.7;
}

.footer-links-col h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.footer-links-col li {
    margin-bottom: 0.6rem;
}

.footer-links-col a {
    font-size: 0.88rem;
    color: var(--text-muted);
    transition: color 0.3s, padding-left 0.3s;
}

.footer-links-col a:hover {
    color: var(--primary-light);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    text-align: center;
}

.footer-disclaimer {
    font-size: 0.78rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 1rem;
    line-height: 1.6;
}

.footer-copyright {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== FLOATING DOWNLOAD (MOBILE) ===== */
.floating-download {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    padding: 12px 16px;
    background: rgba(10, 10, 20, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid var(--border);
    display: none;
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-out);
}

.floating-download.visible {
    transform: translateY(0);
}

.floating-download .btn {
    width: 100%;
    padding: 14px;
    font-size: 0.95rem;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-cta-group {
        justify-content: center;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-image-wrapper {
        max-width: 450px;
        margin: 0 auto;
    }

    .floating-card-1 {
        right: -5px;
        top: 10%;
    }

    .floating-card-2 {
        left: -5px;
        bottom: 20%;
    }

    .floating-card-3 {
        right: 5%;
        bottom: 5%;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-timeline::before {
        display: none;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .refer-grid {
        grid-template-columns: 1fr;
    }

    .ribbon-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /* Sidebar backdrop overlay */
    .nav-links::before {
        content: '';
        display: none;
    }

    .nav-links.open::before {
        content: '';
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: -1;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: auto;
        width: 280px;
        max-width: 80vw;
        height: 100vh;
        height: 100dvh;
        background: linear-gradient(180deg, #0E0B1A 0%, #130F24 40%, #0E0B1A 100%);
        border-left: 1px solid rgba(139, 92, 246, 0.2);
        justify-content: flex-start;
        align-items: stretch;
        padding: 90px 0 2rem;
        gap: 0;
        z-index: 9999;
        overflow-y: auto;
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
        animation: slideInRight 0.35s var(--ease-out);
    }

    @keyframes slideInRight {
        from {
            transform: translateX(100%);
        }

        to {
            transform: translateX(0);
        }
    }

    .nav-links.open .nav-link {
        font-size: 1.05rem;
        font-weight: 600;
        font-family: var(--font-heading);
        padding: 16px 24px;
        color: var(--text-secondary);
        border-radius: 0;
        width: 100%;
        text-align: left;
        border: none;
        border-bottom: 1px solid rgba(139, 92, 246, 0.08);
        background: transparent;
        position: relative;
        transition: all 0.25s ease;
        letter-spacing: 0.3px;
    }

    .nav-links.open .nav-link::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 3px;
        background: var(--gradient-primary);
        border-radius: 0 4px 4px 0;
        opacity: 0;
        transition: opacity 0.25s ease;
    }

    .nav-links.open .nav-link:hover,
    .nav-links.open .nav-link:active {
        color: var(--text-primary);
        background: rgba(139, 92, 246, 0.08);
        padding-left: 28px;
    }

    .nav-links.open .nav-link:hover::before,
    .nav-links.open .nav-link:active::before {
        opacity: 1;
    }

    .nav-links.open li:last-child .nav-link {
        border-bottom: none;
    }

    .hamburger {
        z-index: 10000;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .logo {
        z-index: 10000;
    }

    .logo-text {
        display: none;
    }

    .logo-img {
        height: 36px;
    }

    .hero {
        padding-top: 80px;
        min-height: auto;
        padding-bottom: 100px;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        white-space: normal;
        text-align: center;
        line-height: 1.4;
    }

    .hero-cta-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        white-space: normal;
        text-align: center;
        line-height: 1.3;
        max-width: 100%;
        word-break: break-word;
    }

    .btn-lg {
        padding: 16px 24px;
        font-size: 0.92rem;
    }

    .download-note {
        flex-direction: column;
        gap: 6px;
        font-size: 0.78rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-timeline {
        grid-template-columns: 1fr;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .ribbon-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .cta-glass-card {
        padding: 2rem 1.2rem;
    }

    .cta-badges {
        flex-direction: column;
        gap: 0.5rem;
    }

    .refer-benefits li {
        flex-direction: column;
        gap: 4px;
    }

    .footer-bottom {
        padding-top: 1rem;
    }

    .footer-disclaimer {
        font-size: 0.72rem;
        text-align: left;
    }

    .floating-download {
        display: block;
        z-index: 9998;
    }

    .floating-card {
        display: none;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }

    .ribbon-grid {
        grid-template-columns: 1fr;
    }

    .refer-card-stack {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    .hero-image-wrapper {
        max-width: 300px;
    }

    .step-card {
        padding: 1.5rem 1rem;
    }

    .step-number {
        font-size: 2rem;
    }

    .testimonial-card {
        padding: 1.2rem;
    }
}

/* ===== FLOATING DOWNLOAD BUTTON (MOBILE) ===== */
.floating-download {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 20px;
    background: rgba(15, 7, 32, 0.9);
    backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(139, 92, 246, 0.3);
    z-index: 9998;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.6);
    transform: translateY(100%);
    transition: transform 0.4s var(--ease-spring);
    pointer-events: none;
    opacity: 0;
}

.floating-download.visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.floating-download .btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-size: 0.95rem;
    height: 48px;
}

@media (max-width: 768px) {
    .floating-download {
        display: block;
    }
}

/* ===== INSTALL PWA BANNER ===== */
.install-banner {
    position: fixed;
    bottom: 16px;
    left: 12px;
    right: 12px;
    background: linear-gradient(135deg, #1A0B3C 0%, #0F0720 100%);
    border: 1px solid rgba(139, 92, 246, 0.35);
    border-radius: 16px;
    padding: 14px 16px;
    display: none; /* Shown via JS */
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    z-index: 10001;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(139,92,246,0.1);
    animation: slideInUp 0.5s var(--ease-spring);
    flex-wrap: nowrap;
}

.ib-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ib-icon img {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(108, 43, 217, 0.3);
}

.ib-text {
    display: flex;
    flex-direction: column;
}

.ib-text strong {
    color: var(--text-primary);
    font-size: 0.95rem;
    margin-bottom: 2px;
}

.ib-text span {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.ib-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

#installBtn {
    padding: 10px 20px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 10px;
    background: linear-gradient(135deg, #6C2BD9, #a855f7);
    color: #fff;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 3px 12px rgba(108,43,217,0.45);
    transition: transform 0.2s, box-shadow 0.2s;
    font-family: var(--font-heading);
}

#installBtn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(108,43,217,0.6);
}

.ib-close {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-secondary);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.ib-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

@keyframes slideInUp {
    from {
        transform: translateY(100px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===== ABOUT SECTION ===== */
.about-section {
    padding: var(--section-py) 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-surface) 50%, var(--bg-dark) 100%);
    position: relative;
}

.about-content-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.about-text-block h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
    padding-left: 14px;
    border-left: 3px solid var(--primary-light);
}

.about-text-block h3:first-child {
    margin-top: 0;
}

.about-text-block p {
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-text-block strong {
    color: var(--text-primary);
}

.about-list {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-list li {
    padding: 12px 16px;
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.97rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.about-list li strong {
    color: var(--primary-light);
}

.about-quick-facts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: sticky;
    top: 100px;
}

.quick-fact-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    transition: all 0.3s var(--ease-out);
}

.quick-fact-card:hover {
    border-color: var(--border-glow);
    transform: translateX(-4px);
}

.qf-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 0.5rem;
}

.quick-fact-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}

.quick-fact-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ===== BLOG SECTION ===== */
.blog-section {
    padding: var(--section-py) 0;
    background: var(--bg-dark);
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.blog-card {
    background: var(--gradient-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    transition: all 0.4s var(--ease-out);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-glow);
    box-shadow: 0 16px 40px rgba(108, 43, 217, 0.2);
}

.blog-card-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
}

.blog-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
}

.blog-card h3 a {
    color: var(--text-primary);
    transition: color 0.25s;
}

.blog-card h3 a:hover {
    color: var(--primary-light);
}

.blog-card p {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
    flex-grow: 1;
}

.blog-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 600;
    transition: gap 0.25s;
    margin-top: auto;
}

.blog-read-more:hover {
    gap: 10px;
}

/* ===== RESPONSIVE — ABOUT & BLOG ===== */
@media (max-width: 1024px) {
    .about-content-grid {
        grid-template-columns: 1fr;
    }

    .about-quick-facts {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        position: static;
    }
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }

    .about-quick-facts {
        grid-template-columns: 1fr;
    }

    .install-banner {
        bottom: 80px; /* Stay above floating download button */
    }
}

/* ===== INSTALL BANNER — SMALL PHONES ===== */
@media (max-width: 420px) {
    .install-banner {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 14px;
        bottom: 80px;
    }

    .ib-content {
        gap: 10px;
    }

    .ib-text strong {
        font-size: 0.9rem;
    }

    .ib-text span {
        font-size: 0.75rem;
    }

    .ib-actions {
        justify-content: space-between;
        width: 100%;
    }

    #installBtn {
        flex: 1;
        text-align: center;
        padding: 11px 16px;
        font-size: 0.9rem;
    }

    .ib-close {
        flex-shrink: 0;
    }
}
