/* ============================================
   DESIGN SYSTEM — SmartSpin247
   Cosmic Space Theme
   ============================================ */

:root {
    /* Colors — Hot Crimson & Fiery Orange */
    --primary: #FF0A4B;
    --primary-light: #FF2D6B;
    --primary-dark: #D50040;
    --accent: #FF6B00;
    --accent-light: #FF8A2B;

    --bg-dark: #0A0A12;
    --bg-card: #141420;
    --bg-card-hover: #1C1C2E;
    --bg-elevated: #101018;

    --text-primary: #F1F5F9;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    --border: rgba(255, 10, 75, 0.15);
    --border-hover: rgba(255, 10, 75, 0.35);

    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-text: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    --glow: 0 0 40px rgba(255, 10, 75, 0.3), 0 0 80px rgba(255, 107, 0, 0.15);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1200px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Shadows */
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 40px rgba(255, 10, 75, 0.25);
}

/* ============================================
   RESET & BASE
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   UTILITY
   ============================================ */

.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(255, 10, 75, 0.12);
    border: 1px solid rgba(255, 10, 75, 0.25);
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-light);
    letter-spacing: 0.02em;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 48px;
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.25s ease;
    border: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 16px rgba(255, 10, 75, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(255, 10, 75, 0.55);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-hover);
}

.btn-outline:hover {
    transform: translateY(-2px);
    border-color: var(--primary-light);
    background: rgba(255, 10, 75, 0.08);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.85rem;
}

/* ============================================
   NAVBAR
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.35s ease;
}

.navbar.scrolled {
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
}

.logo-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.25s ease;
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-cta {
    padding: 10px 24px;
    font-size: 0.88rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.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);
}

/* ============================================
   HERO
   ============================================ */

.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    overflow: hidden;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 10, 75, 0.18) 0%, rgba(255, 107, 0, 0.1) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 10, 75, 0.12);
    border: 1px solid rgba(255, 10, 75, 0.25);
    border-radius: 100px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 24px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5.5vw, 4rem);
    font-weight: 700;
    max-width: 800px;
    margin: 0 auto 24px;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   TRUST BANNER
   ============================================ */

.trust-banner {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.trust-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 28px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex-wrap: wrap;
}

.trust-logos img {
    width: 120px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.trust-logos img:hover {
    opacity: 1;
}

/* ============================================
   GAMES SECTION
   ============================================ */

.games-section {
    padding: var(--section-padding);
    text-align: center;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.game-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.35s ease;
}

.game-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
    background: var(--bg-card-hover);
}

.game-image-wrapper {
    position: relative;
    overflow: hidden;
}

.game-image-wrapper img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.game-card:hover .game-image-wrapper img {
    transform: scale(1.05);
}

.game-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.badge-popular {
    background: rgba(255, 10, 75, 0.9);
    color: #fff;
}

.badge-new {
    background: rgba(255, 107, 0, 0.9);
    color: #fff;
}

.game-info {
    padding: 20px;
    text-align: left;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.game-tag {
    font-size: 0.78rem;
    color: var(--accent);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.game-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.85rem;
    color: #FBBF24;
    font-weight: 600;
}

.game-info h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.game-info p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.game-info .btn-sm {
    width: 100%;
    justify-content: center;
}

/* ============================================
   FEATURES
   ============================================ */

.features-section {
    padding: var(--section-padding);
    text-align: center;
    background: var(--bg-elevated);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all 0.35s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    background: rgba(255, 10, 75, 0.1);
    border-radius: var(--radius-md);
    color: var(--primary-light);
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ============================================
   HOW IT WORKS
   ============================================ */

.how-it-works {
    padding: var(--section-padding);
    text-align: center;
}

.steps-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 48px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    flex: 1;
    max-width: 300px;
    position: relative;
    transition: all 0.35s ease;
}

.step-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-hover);
}

.step-number {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.step-icon {
    color: var(--primary-light);
    margin-bottom: 16px;
}

.step-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-arrow {
    color: var(--text-muted);
    flex-shrink: 0;
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-section {
    padding: var(--section-padding);
}

.cta-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 10, 75, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.cta-card h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    max-width: 600px;
    margin: 0 auto 16px;
    position: relative;
    z-index: 1;
}

.cta-card p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 32px;
    position: relative;
    z-index: 1;
}

.cta-card .btn {
    position: relative;
    z-index: 1;
}

.cta-card .section-badge {
    position: relative;
    z-index: 1;
}

/* ============================================
   FAQ
   ============================================ */

.faq-section {
    padding: var(--section-padding);
    background: var(--bg-elevated);
    text-align: center;
}

.faq-list {
    max-width: 740px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
    background: var(--bg-card);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.active {
    border-color: var(--border-hover);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.2s ease;
    text-align: left;
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--primary-light);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 0 24px 18px;
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   LEGAL BANNER
   ============================================ */

.legal-banner {
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(255, 10, 75, 0.08) 0%, var(--bg-dark) 50%, rgba(255, 107, 0, 0.06) 100%);
    border-top: 1px solid var(--border);
}

.legal-banner-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}

.legal-brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.legal-brand h3 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-brand p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 400px;
}

.legal-features {
    display: flex;
    gap: 32px;
    flex-shrink: 0;
}

.legal-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.legal-feature svg {
    color: var(--primary-light);
}

.legal-feature span {
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    padding: 60px 0 32px;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-logo span {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-about p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 360px;
}

.footer-links-group h4 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-links-group ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-group a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-links-group a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-disclaimer {
    margin-top: 8px;
    font-size: 0.8rem !important;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* ============================================
   RESPONSIVE — Tablet (768px)
   ============================================ */

@media (max-width: 768px) {
    :root {
        --section-padding: 72px 0;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(10, 14, 26, 0.98);
        backdrop-filter: blur(20px);
        justify-content: center;
        align-items: center;
        gap: 28px;
        z-index: 999;
    }

    .nav-links.active a {
        font-size: 1.3rem;
        color: var(--text-primary);
    }

    .hero {
        padding: 140px 0 80px;
        min-height: auto;
    }

    .hero h1 {
        font-size: clamp(2rem, 6vw, 2.8rem);
    }

    .hero-stats {
        gap: 32px;
    }

    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .steps-grid {
        flex-direction: column;
        gap: 16px;
    }

    .step-arrow {
        transform: rotate(90deg);
    }

    .step-card {
        max-width: 100%;
        width: 100%;
    }

    .legal-banner-inner {
        flex-direction: column;
        text-align: center;
    }

    .legal-brand {
        flex-direction: column;
        align-items: center;
    }

    .legal-brand p {
        max-width: 100%;
    }

    .legal-features {
        flex-wrap: wrap;
        justify-content: center;
        gap: 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-about p {
        max-width: 100%;
    }

    .cta-card {
        padding: 60px 24px;
    }
}

/* ============================================
   RESPONSIVE — Mobile (480px)
   ============================================ */

@media (max-width: 480px) {
    :root {
        --section-padding: 56px 0;
    }

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

    .hero h1 {
        font-size: 1.85rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

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

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

    .section-title {
        font-size: 1.65rem;
    }

    .trust-logos {
        gap: 24px;
    }

    .trust-logos img {
        width: 90px;
        height: 32px;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 0.92rem;
    }

    .faq-answer p {
        padding: 0 18px 16px;
    }

    .legal-features {
        gap: 16px;
    }
}
