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

:root {
    --primary: #00d4aa;
    --primary-dark: #00a88a;
    --primary-light: #33e0bc;
    --secondary: #252542;
    --background: #1a1a30;
    --background-light: #222240;
    --text: #ffffff;
    --text-muted: #b0b0c0;
    --discord: #5865F2;
    --discord-hover: #4752c4;
    --gradient: linear-gradient(135deg, var(--primary) 0%, #00a8cc 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 15, 26, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 50px;
    width: auto;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text);
    text-decoration: none;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
}

.nav-links a svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.nav-links a:hover svg {
    opacity: 1;
}

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

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

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

.nav-links a.nav-vote {
    border: 2px solid var(--primary);
    border-radius: 8px;
    padding: 10px 16px;
    background: rgba(0, 212, 170, 0.1);
}

.nav-links a.nav-vote::after {
    display: none;
}

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

.nav-links a.nav-vote:hover svg {
    color: var(--background);
}

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

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url('background.png') center center / cover no-repeat;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 48, 0.3) 0%,
        rgba(26, 26, 48, 0.5) 50%,
        rgba(34, 34, 64, 0.85) 80%,
        rgba(34, 34, 64, 1) 100%
    );
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 1;
    padding: 20px;
}

.hero-logo {
    max-width: 400px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 10px 30px rgba(0, 212, 170, 0.3));
}

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

.hero-tagline {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 500;
    letter-spacing: 2px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: var(--gradient);
    color: var(--background);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 212, 170, 0.4);
}

.btn-discord {
    background: var(--discord);
    color: white;
}

.btn-discord:hover {
    background: var(--discord-hover);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4);
}

.btn-large {
    padding: 18px 36px;
    font-size: 1.2rem;
}

.btn-vote {
    background: var(--background-light);
    color: var(--text);
    border: 2px solid var(--primary);
}

.btn-vote:hover {
    background: var(--primary);
    color: var(--background);
    transform: translateY(-3px);
}

/* IP Field */
.ip-field {
    display: flex;
    align-items: stretch;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.ip-input {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--primary);
    border-right: none;
    padding: 14px 20px;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 1px;
    min-width: 180px;
    text-align: center;
    border-radius: 8px 0 0 8px;
}

.ip-input:focus {
    outline: none;
}

.ip-copy-btn {
    background: var(--gradient);
    border: none;
    padding: 14px 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border-radius: 0 8px 8px 0;
}

.ip-copy-btn svg {
    color: var(--background);
}

.ip-copy-btn:hover {
    filter: brightness(1.1);
    box-shadow: 0 5px 20px rgba(0, 212, 170, 0.4);
}

.ip-field-large .ip-input {
    padding: 18px 24px;
    font-size: 1.2rem;
    min-width: 200px;
}

.ip-field-large .ip-copy-btn {
    padding: 18px 22px;
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    color: var(--text);
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--gradient);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* About Section */
.about {
    background: var(--background-light);
}

.about-header {
    text-align: center;
    margin-bottom: 50px;
}

.about-title {
    font-size: 2.8rem;
    color: var(--text);
    margin-bottom: 20px;
}

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

.about-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 20px;
}

.stat-card {
    background: var(--background);
    border: 1px solid rgba(0, 212, 170, 0.15);
    border-radius: 16px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 212, 170, 0.15);
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card .stat-icon {
    width: 55px;
    height: 55px;
    background: rgba(0, 212, 170, 0.1);
    border: 2px solid rgba(0, 212, 170, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon {
    background: var(--gradient);
    border-color: transparent;
}

.stat-card .stat-icon svg {
    color: var(--primary);
    transition: color 0.3s ease;
}

.stat-card:hover .stat-icon svg {
    color: var(--background);
}

.stat-card .stat-number {
    font-family: 'Rajdhani', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card .stat-number span {
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-card .stat-label {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Featured stat card */
.stat-featured {
    background: linear-gradient(145deg, var(--background) 0%, rgba(0, 212, 170, 0.05) 100%);
    border-color: rgba(0, 212, 170, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stat-featured .stat-number {
    font-size: 4.5rem;
}

.stat-featured .stat-number span {
    font-size: 2rem;
}

.stat-featured .stat-label {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.stat-bar {
    height: 8px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-top: auto;
}

.stat-bar-fill {
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    position: relative;
}

.stat-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
    animation: barShine 2s ease-in-out infinite;
}

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

@media (max-width: 1000px) {
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-featured {
        grid-column: span 2;
    }
}

@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-featured {
        grid-column: span 1;
    }

    .about-title {
        font-size: 2.2rem;
    }

    .stat-card .stat-number {
        font-size: 2.5rem;
    }

    .stat-featured .stat-number {
        font-size: 3.5rem;
    }
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--background-light);
    padding: 40px 30px;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 212, 170, 0.1);
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 212, 170, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.feature-icon svg {
    color: var(--background);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Join Section */
.join {
    background: var(--background-light);
    text-align: center;
}

.join-text {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.join-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Vote Section */
.vote {
    text-align: center;
}

.vote-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.vote-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--secondary);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    height: 60px;
    width: auto;
    opacity: 0.8;
}

.social-links {
    display: flex;
    gap: 20px;
    margin: 10px 0;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(0, 212, 170, 0.3);
    border-radius: 50%;
    color: var(--text-muted);
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--background);
    transform: translateY(-3px);
}

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

.footer-disclaimer {
    font-size: 0.8rem !important;
    opacity: 0.6;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--primary);
    color: var(--background);
    padding: 15px 30px;
    border-radius: 8px;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: var(--secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: right 0.3s ease;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    .hero-logo {
        max-width: 280px;
    }

    .hero-tagline {
        font-size: 1.2rem;
    }

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

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

    .btn {
        padding: 12px 24px;
        font-size: 1rem;
    }

    .btn-large {
        padding: 14px 28px;
        font-size: 1.1rem;
    }

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

@media (max-width: 480px) {
    .hero-logo {
        max-width: 220px;
    }

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

    section {
        padding: 60px 0;
    }

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

    .about-content p {
        font-size: 1rem;
    }

    .feature-card {
        padding: 30px 20px;
    }
}
