*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a2e;
    --border: #1e1e2e;
    --border-hover: #2e2e4e;
    --text: #e4e4e7;
    --text-muted: #71717a;
    --accent: #a855f7;
    --accent-2: #6366f1;
    --accent-3: #ec4899;
    --gradient: linear-gradient(135deg, #a855f7, #6366f1, #ec4899);
    --radius: 16px;
    --radius-sm: 10px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Background glows */
.bg-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

.bg-glow--1 {
    width: 500px;
    height: 500px;
    background: var(--accent);
    top: -100px;
    right: -100px;
}

.bg-glow--2 {
    width: 400px;
    height: 400px;
    background: var(--accent-3);
    bottom: -50px;
    left: -100px;
}

/* Header */
.header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 80px 0 40px;
}

.badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 100px;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.25);
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: 0.5px;
}

.title {
    font-size: clamp(32px, 6vw, 56px);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Prizes */
.prizes {
    position: relative;
    z-index: 1;
    padding: 30px 0 50px;
}

.prizes-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.prize-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    transition: border-color 0.3s, transform 0.3s;
}

.prize-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.prize-img-wrap {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    background: rgba(168, 85, 247, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.prize-img {
    width: 48px;
    height: 48px;
}

.prize-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    font-weight: 700;
}

.prize-info h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 4px 0;
}

.prize-info p {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.prize-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.prize-divider span {
    padding: 8px 16px;
    border-radius: 100px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
}

/* Voting */
.voting {
    position: relative;
    z-index: 1;
    padding: 50px 0;
}

.section-title {
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.section-desc {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    max-width: 500px;
    margin: 0 auto 40px;
}

.candidates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}

.candidate-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text);
    transition: all 0.25s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.candidate-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.candidate-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(168, 85, 247, 0.12);
}

.candidate-card:hover::before {
    opacity: 0.06;
}

.candidate-card:hover .candidate-action {
    color: var(--accent);
}

.candidate-avatar {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: hsl(var(--hue), 60%, 15%);
    border: 1px solid hsl(var(--hue), 50%, 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.candidate-avatar span {
    font-size: 14px;
    font-weight: 700;
    color: hsl(var(--hue), 70%, 65%);
}

.candidate-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 1;
}

.candidate-name {
    font-size: 15px;
    font-weight: 600;
}

.candidate-action {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.25s;
}

/* How it works */
.how-it-works {
    position: relative;
    z-index: 1;
    padding: 50px 0 60px;
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 36px;
}

.step {
    text-align: center;
    flex: 1;
    min-width: 160px;
    max-width: 220px;
}

.step-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--gradient);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 14px;
}

.step p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
}

.step-arrow {
    color: var(--text-muted);
    font-size: 24px;
    opacity: 0.3;
}

/* Footer */
.footer {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid var(--border);
}

.footer p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 640px) {
    .header {
        padding: 50px 0 30px;
    }

    .prizes-grid {
        flex-direction: column;
        align-items: stretch;
    }

    .prize-card {
        max-width: 100%;
    }

    .candidates-grid {
        grid-template-columns: 1fr;
    }

    .step-arrow {
        display: none;
    }

    .steps {
        flex-direction: column;
        gap: 24px;
    }
}
