/* ============================================
   CRAFASY - Landing Page Styles
   Hero, features, leaderboard preview, CTA, how-it-works
   ============================================ */

/* ---- Hero Section ---- */

.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 5%;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background:
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 50%);
    animation: wave 15s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-50px, 50px) scale(1.1); }
}

/* Floating elements */
.float-element {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: float-up 20s infinite ease-in-out;
}

@keyframes float-up {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) scale(1); opacity: 0; }
}

.float-element:nth-child(1) { width: 80px; height: 80px; left: 10%; animation-delay: 0s; }
.float-element:nth-child(2) { width: 60px; height: 60px; left: 30%; animation-delay: 3s; }
.float-element:nth-child(3) { width: 100px; height: 100px; left: 50%; animation-delay: 6s; }
.float-element:nth-child(4) { width: 70px; height: 70px; left: 70%; animation-delay: 9s; }
.float-element:nth-child(5) { width: 90px; height: 90px; left: 85%; animation-delay: 12s; }

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 64px;
    font-weight: 900;
    color: var(--color-text-white);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    animation: slideInLeft 0.8s ease-out;
}

.hero-text .highlight {
    display: block;
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 20px;
    color: var(--color-text-white);
    margin-bottom: 30px;
    line-height: 1.6;
    animation: slideInLeft 0.8s ease-out 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: slideInLeft 0.8s ease-out 0.4s both;
}

.hero-image {
    position: relative;
    animation: slideInRight 0.8s ease-out 0.3s both;
}

.hero-image img {
    width: 100%;
    max-width: 500px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

.hero-placeholder {
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 120px;
    backdrop-filter: blur(10px);
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ---- Stats Bar ---- */

.stats-bar {
    background: var(--color-bg-white);
    padding: 40px 5%;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
}

.stats-bar .stats-grid {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
}

.stat-item .number {
    font-size: 48px;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.stat-item .label {
    color: var(--color-text-gray);
    font-weight: 600;
}

/* ---- Features Section ---- */

.features {
    padding: 100px 5%;
    background: linear-gradient(180deg, var(--color-bg-white) 0%, var(--color-bg-light) 100%);
}

.feature-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
    border: 2px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(108, 92, 231, 0.15);
    border-color: var(--color-purple);
}

.feature-icon {
    font-size: 56px;
    margin-bottom: 20px;
    display: inline-block;
}

.feature-card h3 {
    font-size: 24px;
    color: var(--color-text-dark);
    margin-bottom: 15px;
    font-weight: 800;
}

.feature-card p {
    color: var(--color-text-gray);
    line-height: 1.7;
    font-size: 15px;
}

/* ---- Leaderboard Preview Section ---- */

.leaderboard-section {
    padding: 100px 5%;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.leaderboard-section::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -300px;
    left: -300px;
}

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

.leaderboard-header {
    text-align: center;
    margin-bottom: 40px;
}

.leaderboard-header h2 {
    font-size: 48px;
    color: var(--color-text-white);
    margin-bottom: 10px;
    font-weight: 900;
}

.leaderboard-header .league-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    color: var(--color-text-white);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 15px;
}

.leaderboard-header p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
}

.leaderboard-card {
    background: var(--color-bg-white);
    border-radius: var(--radius-xl);
    padding: 30px;
    box-shadow: var(--shadow-card);
}

.leaderboard-row {
    display: grid;
    grid-template-columns: 60px 1fr 100px;
    gap: 20px;
    align-items: center;
    padding: 15px 10px;
    border-bottom: 2px solid var(--color-bg-light);
    transition: var(--transition);
}

.leaderboard-row:last-child {
    border-bottom: none;
}

.leaderboard-row:hover {
    background: var(--color-bg-light);
    border-radius: var(--radius-md);
}

.leaderboard-row.header {
    font-weight: 700;
    color: var(--color-text-gray);
    font-size: 13px;
    text-transform: uppercase;
    padding: 10px;
    border-bottom: 3px solid var(--color-purple);
}

.leaderboard-row.header:hover {
    background: transparent;
}

.rank {
    font-size: 24px;
    font-weight: 900;
    text-align: center;
}

.rank.gold { color: #FFD700; }
.rank.silver { color: #C0C0C0; }
.rank.bronze { color: #CD7F32; }

.player-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-white);
    font-weight: 700;
    font-size: 16px;
}

.player-details .username {
    font-weight: 700;
    color: var(--color-text-dark);
    font-size: 16px;
}

.player-details .team-name {
    color: var(--color-text-gray);
    font-size: 13px;
}

.points {
    font-size: 20px;
    font-weight: 900;
    color: var(--color-purple);
    text-align: right;
}

.leaderboard-cta {
    text-align: center;
    margin-top: 30px;
}

/* ---- How It Works ---- */

.how-it-works {
    padding: 100px 5%;
    background: var(--color-bg-white);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

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

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--gradient-primary);
    color: var(--color-text-white);
    font-size: 36px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 10px 30px rgba(108, 92, 231, 0.3);
}

.step-card h3 {
    font-size: 22px;
    color: var(--color-text-dark);
    margin-bottom: 10px;
    font-weight: 800;
}

.step-card p {
    color: var(--color-text-gray);
    line-height: 1.6;
}

/* ---- CTA Section ---- */

.cta-section {
    padding: 100px 5%;
    background: var(--gradient-primary);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    top: -200px;
    right: -200px;
}

.cta-section h2 {
    font-size: 48px;
    color: var(--color-text-white);
    margin-bottom: 20px;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.cta-section p {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    position: relative;
    z-index: 1;
}

/* ---- Mobile Responsive ---- */

@media (max-width: 968px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .leaderboard-header h2 {
        font-size: 36px;
    }

    .cta-section h2 {
        font-size: 36px;
    }
}
