/* ==========================================================================
   Local Fonts & Base
   ========================================================================== */
@font-face {
    font-family: 'Outfit';
    src: url('fonts/outfit-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Outfit';
    src: url('fonts/outfit-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: block;
}

@font-face {
    font-family: 'Outfit';
    src: url('fonts/outfit-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: block;
}

:root {
    /* Colors */
    --color-bg: #0a0a0f;
    --color-bg-subtle: #12121a;
    --color-bg-card: #1a1a24;
    --color-text: #e5e5e5;
    --color-text-muted: #8b8b8b;
    --color-accent: #C000FF;
    --color-accent-hover: #d633ff;
    --color-accent-subtle: rgba(192, 0, 255, 0.15);
    --color-gold: #d4af37;
    
    /* Typography */
    --font-family: 'Outfit', sans-serif;
    --font-size-base: 1rem;
    --font-size-sm: 0.875rem;
    --font-size-lg: 1.25rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 3rem;
    --font-size-4xl: 4rem;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 5rem;
    
    /* Layout */
    --container-width: 1200px;
    --header-height: 100px;
    
    /* Borders */
    --radius-sm: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
}

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

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* ==========================================================================
   Layout
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-2xl) 0;
    position: relative;
    overflow: hidden;
}

.section--alt {
    background-color: var(--color-bg-subtle);
}

.section__header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-xl);
}

.section__title {
    font-size: clamp(2rem, 5vw, var(--font-size-3xl));
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
}

.section__subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-muted);
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav__container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    height: 75px;
    width: auto;
}

.nav__links {
    display: none;
}

@media (min-width: 768px) {
    .nav__links {
        display: flex;
        gap: var(--spacing-lg);
        align-items: center;
    }
    
    .nav__link {
        font-weight: 500;
        color: var(--color-text-muted);
    }
    
    .nav__link:hover {
        color: var(--color-text);
    }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    padding-top: calc(var(--header-height) + var(--spacing-2xl));
    min-height: 90vh;
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Animated gradient background */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(
        circle,
        rgba(192, 0, 255, 0.25) 0%,
        rgba(192, 0, 255, 0.15) 30%,
        transparent 70%
    );
    pointer-events: none;
    z-index: 0;
    animation: pulseGlow 8s ease-in-out infinite;
}

/* Subtle grid pattern */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.5;
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }
}

/* Animated color blobs */
.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
}

.hero__blob--1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, #C000FF 0%, #7000FF 100%);
    top: 10%;
    left: -10%;
    animation: float1 20s ease-in-out infinite;
}

.hero__blob--2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #d633ff 0%, #C000FF 100%);
    top: 60%;
    right: -5%;
    animation: float2 15s ease-in-out infinite;
}

.hero__blob--3 {
    width: 350px;
    height: 350px;
    background: linear-gradient(135deg, #9000cc 0%, #C000FF 100%);
    bottom: 10%;
    left: 50%;
    animation: float3 18s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

@keyframes float2 {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(-40px, 30px) rotate(-120deg);
    }
    66% {
        transform: translate(20px, -20px) rotate(-240deg);
    }
}

@keyframes float3 {
    0%, 100% {
        transform: translate(-50%, 0) rotate(0deg);
    }
    50% {
        transform: translate(-50%, -40px) rotate(180deg);
    }
}

.hero__content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero__title {
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1;
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.02em;
}

.hero__title span {
    color: var(--color-accent);
    display: block;
}

.hero__description {
    font-size: clamp(1.125rem, 4vw, 1.5rem);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero__cta-group {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-2xl);
}

/* ==========================================================================
   How It Works
   ========================================================================== */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-xl);
    counter-reset: step;
}

.step {
    position: relative;
    padding: var(--spacing-lg);
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    transition: transform var(--transition-normal);
}

.step:hover {
    transform: translateY(-5px);
    border-color: var(--color-accent);
}

.step__number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--color-accent);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(192, 0, 255, 0.3);
}

.step__icon {
    width: 64px;
    height: 64px;
    margin: var(--spacing-md) auto;
    color: var(--color-accent);
}

.step__title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.step__text {
    color: var(--color-text-muted);
}

/* ==========================================================================
   Games Grid
   ========================================================================== */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
}

.game-card {
    position: relative;
    background: var(--color-bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: var(--spacing-xl) var(--spacing-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--transition-normal);
    cursor: pointer;
}

.game-card:hover {
    border-color: var(--color-accent);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    transform: translateY(-5px);
}

.game-card__icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-md);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-card__title {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-xs);
}

.game-card__desc {
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
}

.game-card__badge {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    background: var(--color-gold);
    color: #000;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
}

/* ==========================================================================
   Components
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-xl);
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn--primary {
    background: var(--color-accent);
    color: white;
    box-shadow: 0 4px 15px rgba(192, 0, 255, 0.3);
}

.btn--primary:hover {
    background: var(--color-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 0, 255, 0.4);
}

.btn--outline {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--color-text);
}

.btn--outline:hover {
    border-color: var(--color-text);
    background: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: var(--spacing-2xl) 0 var(--spacing-lg);
    background: var(--color-bg-subtle);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.footer__col h3 {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.footer__links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.footer__links a {
    color: var(--color-text-muted);
}

.footer__links a:hover {
    color: var(--color-accent);
}

.footer__bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

/* Mobile Nav */
.menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
}

@media (min-width: 768px) {
    .menu-btn { display: none; }
}

/* Social Links in Footer */
.footer .social__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--color-text-muted);
    background: var(--color-bg-subtle);
    border-radius: var(--radius-md);
    transition: color var(--transition-fast), 
                background var(--transition-fast), 
                transform var(--transition-fast);
}

.footer .social__link:hover {
    color: var(--color-accent);
    background: var(--color-accent-subtle);
    transform: translateY(-2px);
}

/* Utilities */
.text-gold { color: var(--color-gold); }
.text-center { text-align: center; }
.mb-lg { margin-bottom: var(--spacing-lg); }

/* SVG Icon styles */
.icon-lg { width: 32px; height: 32px; }

/* Responsive logo */
@media (max-width: 768px) {
    .nav__logo {
        height: 50px;
    }
    
    :root {
        --header-height: 70px;
    }
    
    /* Reduce blob sizes on mobile */
    .hero__blob--1 {
        width: 250px;
        height: 250px;
    }
    
    .hero__blob--2 {
        width: 200px;
        height: 200px;
    }
    
    .hero__blob--3 {
        width: 220px;
        height: 220px;
    }
}

/* Accessibility: Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero__blob {
        animation: none;
    }
}


