/* =========================================
   THEME & VARIABLES
   ========================================= */
:root {
    /* Colors from App Theme */
    --primary: #8480DE;
    --primary-dark: #6B65C8;
    --secondary: #35B0E8;
    --accent: #5A9EE8;
    --coin: #FFD700;
    --gift: #FF6B9D;
    
    /* Dark Mode Base */
    --bg-dark: #0B0B15;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.07);
    --text-main: #FFFFFF;
    --text-muted: #A0A0B0;
    --border-color: rgba(255, 255, 255, 0.1);
    
    /* Dimensions */
    --container-width: 1200px;
    --header-height: 80px;
    --border-radius: 24px;
    
    /* Fonts */
    --font-display: 'ClashDisplay', system-ui, sans-serif;
    --font-body: 'ClashGrotesk', system-ui, sans-serif;
}

/* Fonts */
@font-face {
    font-family: 'ClashDisplay';
    src: url('assets/fonts/ClashDisplay-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

@font-face {
    font-family: 'ClashGrotesk';
    src: url('assets/fonts/ClashGrotesk-Variable.ttf') format('truetype');
    font-weight: 100 900;
    font-display: swap;
}

/* Reset */
*, *::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-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

/* Utilities */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Background Effects */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    z-index: 9999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.glow-spot {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.15;
    z-index: -1;
    pointer-events: none;
}

.glow-top-right {
    top: -200px;
    right: -100px;
    background: var(--primary);
}

.glow-bottom-left {
    bottom: -200px;
    left: -100px;
    background: var(--secondary);
}

/* =========================================
   HEADER
   ========================================= */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 100;
    background: rgba(11, 11, 21, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    height: 32px;
    width: auto;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.5px;
}

.main-nav {
    display: none;
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
        gap: 32px;
    }
    
    .main-nav a {
        color: var(--text-muted);
        font-weight: 500;
        transition: color 0.3s ease;
    }
    
    .main-nav a:hover {
        color: var(--text-main);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    box-shadow: 0 4px 20px rgba(132, 128, 222, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(132, 128, 222, 0.6);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    position: relative;
    overflow: visible;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    align-items: center;
}

@media (min-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.badge-pill {
    background: rgba(255, 255, 255, 0.1);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dot {
    width: 8px;
    height: 8px;
    background-color: var(--coin);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--coin);
    animation: pulse 2s infinite;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(40px, 8vw, 72px);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

@media (min-width: 600px) {
    .hero-actions {
        flex-direction: row;
        align-items: center;
    }
}

.store-badge {
    height: 56px;
    transition: transform 0.3s ease;
}

.store-badge:hover {
    transform: scale(1.05);
}

.trust-pill {
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-dark);
    background: #2A2A35;
    padding: 4px;
    margin-left: -12px;
}

.avatars img:first-child {
    margin-left: 0;
}

/* Hero Visual & Animations */
.hero-visual {
    position: relative;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: #1a1a24;
    border-radius: 40px;
    border: 8px solid #2a2a35;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.screen-content {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    overflow: hidden;
    background: linear-gradient(180deg, #1A1A2E 0%, #2D2D44 100%);
    position: relative;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.floating {
    animation: float 6s ease-in-out infinite;
}

.floating-card {
    position: absolute;
    background: rgba(30, 30, 40, 0.9);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 20;
}

.floating-card img {
    width: 32px;
    height: 32px;
}

.floating-card span {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
}

.floating-card strong {
    display: block;
    font-size: 14px;
    color: white;
}

.card-win {
    top: 60px;
    left: -60px;
    animation: float 5s ease-in-out infinite reverse;
}

.card-draw {
    bottom: 80px;
    right: -40px;
    animation: float 7s ease-in-out infinite 1s;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

/* =========================================
   TICKER
   ========================================= */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--primary);
    padding: 12px 0;
    transform: rotate(-2deg) scale(1.02);
    margin-bottom: 80px;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 20s linear infinite;
}

.ticker-item {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: white;
    padding: 0 20px;
    text-transform: uppercase;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* =========================================
   FEATURES (BENTO GRID)
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 18px;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 300px);
    }
    
    .feature-free {
        grid-column: span 1; /* Changed from span 2 to simplify */
        grid-row: span 2;
    }
    
    .feature-daily {
        grid-column: span 1;
    }
    
    .feature-prizes {
        grid-column: span 1;
    }
    
    .feature-fair {
        grid-column: span 2;
    }

    /* Alternate layout for better aesthetic */
    .feature-free { grid-column: 1 / 2; grid-row: 1 / 3; }
    .feature-daily { grid-column: 2 / 3; grid-row: 1 / 2; }
    .feature-prizes { grid-column: 3 / 4; grid-row: 1 / 2; }
    .feature-fair { grid-column: 2 / 4; grid-row: 2 / 3; }
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, background 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-5px);
    background: var(--bg-card-hover);
    border-color: rgba(255, 255, 255, 0.2);
}

.card-bg-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(132, 128, 222, 0.2), transparent 60%);
    pointer-events: none;
}

.card-content {
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.bento-card h3 {
    font-family: var(--font-display);
    font-size: 24px;
    margin-bottom: 12px;
}

.bento-card p {
    color: var(--text-muted);
    font-size: 15px;
}

.row-content {
    flex-direction: row;
    align-items: center;
    gap: 32px;
}

.visual-side {
    flex: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.code-block {
    width: 100%;
    background: rgba(0,0,0,0.3);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.line {
    height: 8px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px;
}

.w-70 { width: 70%; }
.w-50 { width: 50%; }
.w-90 { width: 90%; background: var(--primary); opacity: 0.5; }
.w-60 { width: 60%; }

/* =========================================
   STEPS
   ========================================= */
.steps-section {
    padding: 100px 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    position: relative;
}

@media (min-width: 768px) {
    .steps-grid {
        grid-template-columns: 1fr auto 1fr auto 1fr;
        align-items: start;
    }
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: 16px;
}

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

.step-card p {
    color: var(--text-muted);
    font-size: 14px;
}

.step-connector {
    display: none;
}

@media (min-width: 768px) {
    .step-connector {
        display: block;
        width: 100px;
        height: 1px;
        background: linear-gradient(90deg, transparent, var(--primary), transparent);
        margin-top: 40px;
    }
}

/* =========================================
   FAQ
   ========================================= */
.faq-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.small-container {
    max-width: 800px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.faq-item[open] {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.faq-item summary {
    padding: 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    list-style: none;
}

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

.faq-item summary .icon {
    font-size: 24px;
    font-weight: 300;
    color: var(--primary);
}

.faq-content {
    padding: 0 20px 20px 20px;
    color: var(--text-muted);
    font-size: 15px;
}

/* =========================================
   CTA BOTTOM
   ========================================= */
.cta-bottom {
    padding: 100px 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 32px;
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.cta-content {
    z-index: 2;
    max-width: 500px;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

.cta-mascot {
    position: absolute;
    right: 40px;
    bottom: -50px;
    height: 350px;
    transform: rotate(10deg);
    transition: transform 0.3s ease;
}

.cta-card:hover .cta-mascot {
    transform: rotate(0deg) scale(1.05);
}

@media (max-width: 768px) {
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }
    
    .cta-mascot {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 40px;
        height: 200px;
    }
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px;
    background: #08080F;
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 14px;
}

.copyright {
    margin-top: 32px;
    font-size: 12px;
    opacity: 0.5;
}

.footer-links h4, .footer-social h4 {
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.social-icons {
    display: flex;
    gap: 12px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    transition: all 0.3s;
}

.social-icons a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
}
