/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #0d1117;
    --bg-card: #161b22;
    --bg-card-hover: #1c2128;
    --primary: #3fb950;
    --primary-dark: #2ea043;
    --accent: #58a6ff;
    --gold: #f0c14b;
    --text: #e6edf3;
    --text-muted: #8b949e;
    --border: #30363d;
    --vip: #4ade80;
    --vipplus: #60a5fa;
    --mvp: #a78bfa;
    --mvpplus: #fbbf24;
    --radius: 12px;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 800;
}

.logo-icon {
    font-size: 1.6rem;
}

.logo-text span {
    color: var(--primary);
}

.nav {
    display: flex;
    gap: 28px;
}

.nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

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

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* Hero */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(63, 185, 80, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(88, 166, 255, 0.08) 0%, transparent 40%),
        linear-gradient(180deg, var(--bg-dark) 0%, #0a0e14 100%);
    z-index: -1;
}

.hero-content {
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.3;
}

.highlight {
    color: var(--primary);
    text-shadow: 0 0 40px rgba(63, 185, 80, 0.4);
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.server-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.ip-box, .port-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 28px;
    text-align: center;
    min-width: 200px;
}

.ip-label, .port-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.ip-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-family: monospace;
}

.port-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
}

.copy-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, transform 0.15s;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.copy-btn.copied {
    background: var(--accent);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(63, 185, 80, 0.35);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Sections */
section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 48px;
    font-size: 1.05rem;
}

/* Game Modes */
.modes {
    background: linear-gradient(180deg, transparent, rgba(63, 185, 80, 0.03), transparent);
}

.modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.mode-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.mode-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.mode-icon {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.mode-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.mode-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Ranks */
.ranks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

.rank-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 22px;
    text-align: center;
    position: relative;
    transition: transform 0.25s, box-shadow 0.25s;
}

.rank-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.rank-card.featured {
    border-color: var(--mvpplus);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.15);
}

.rank-badge {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.rank-vip .rank-badge { color: var(--vip); }
.rank-vipplus .rank-badge { color: var(--vipplus); }
.rank-mvp .rank-badge { color: var(--mvp); }
.rank-mvpplus .rank-badge { color: var(--mvpplus); }

.rank-price {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.rank-tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--mvpplus);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
}

.rank-features {
    list-style: none;
    text-align: right;
}

.rank-features li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
    position: relative;
    padding-right: 20px;
}

.rank-features li::before {
    content: "✓";
    position: absolute;
    right: 0;
    color: var(--primary);
    font-weight: 700;
}

.rank-features li:last-child {
    border-bottom: none;
}

.buy-info {
    text-align: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
}

.buy-info p {
    color: var(--text-muted);
    margin-bottom: 10px;
}

.buy-link {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
    cursor: pointer;
}

.buy-link:hover {
    text-decoration: underline;
}

/* Rules */
.rules-box {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 30px;
    text-align: center;
}

.rules-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.rules-box p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.rules-note {
    margin-top: 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Support */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.support-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.25s;
}

.support-card:hover {
    border-color: var(--primary);
}

.support-icon {
    font-size: 2.5rem;
    margin-bottom: 14px;
}

.support-card h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.support-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 14px;
}

.support-link {
    display: inline-block;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.15rem;
    text-decoration: none;
}

.support-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: #010409;
    border-top: 1px solid var(--border);
    padding: 40px 0;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

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

.footer-copy {
    margin-top: 8px;
    font-size: 0.8rem !important;
}

/* Responsive */
@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        flex-direction: column;
        padding: 20px;
        border-bottom: 1px solid var(--border);
        gap: 16px;
    }

    .nav.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .server-info {
        flex-direction: column;
        align-items: center;
    }

    .ip-box, .port-box {
        width: 100%;
        max-width: 320px;
    }

    section {
        padding: 60px 0;
    }
}
