*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --primary: #6EB5FF;
    --primary-dark: #5A9FE6;
    --primary-light: #8EC5FF;
    --primary-glow: rgba(110, 181, 255, 0.15);
    --bg-dark: #0a0e17;
    --bg-card: #111827;
    --bg-card-hover: #1a2332;
    --bg-surface: #0f1520;
    --text-primary: #e8edf5;
    --text-secondary: #8896aa;
    --text-muted: #5a6577;
    --border: rgba(110, 181, 255, 0.08);
    --border-hover: rgba(110, 181, 255, 0.2);
    --discord-color: #5865F2;
    --success: #4ade80;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-sm: 8px;
}

html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--primary-dark) var(--bg-dark); }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg-dark); color: var(--text-primary); line-height: 1.6; overflow-x: hidden; }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 4px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }

.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 16px 0; transition: all 0.3s ease; }
.navbar.scrolled { background: rgba(10, 14, 23, 0.9); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); padding: 10px 0; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); font-weight: 700; font-size: 18px; }
.logo-img { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(110, 181, 255, 0.3)); transition: transform 0.3s ease; }
.nav-logo:hover .logo-img { transform: scale(1.08) rotate(-5deg); }
.hero-logo { width: 140px; height: 140px; object-fit: contain; margin: 0 auto 24px; display: block; filter: drop-shadow(0 8px 24px rgba(110, 181, 255, 0.4)); animation: float-logo 4s ease-in-out infinite; }
@keyframes float-logo { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.footer-logo .logo-img { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a { text-decoration: none; color: var(--text-secondary); font-size: 14px; font-weight: 500; padding: 8px 16px; border-radius: var(--radius-sm); transition: all 0.2s ease; }
.nav-links a:hover { color: var(--text-primary); background: var(--primary-glow); }
.nav-store-btn { background: var(--primary) !important; color: var(--bg-dark) !important; font-weight: 600 !important; padding: 8px 20px !important; }
.nav-store-btn:hover { background: var(--primary-light) !important; transform: translateY(-1px); }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span { width: 24px; height: 2px; background: var(--text-primary); border-radius: 2px; transition: all 0.3s ease; }

.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; position: relative; padding: 120px 24px 80px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(110, 181, 255, 0.08) 0%, transparent 60%), radial-gradient(ellipse at 80% 50%, rgba(110, 181, 255, 0.04) 0%, transparent 50%); }
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle { position: absolute; width: 2px; height: 2px; background: var(--primary); border-radius: 50%; opacity: 0; animation: float-particle linear infinite; }
@keyframes float-particle { 0% { opacity: 0; transform: translateY(100vh) scale(0); } 10% { opacity: 0.6; } 90% { opacity: 0.6; } 100% { opacity: 0; transform: translateY(-10vh) scale(1); } }
.hero-content { text-align: center; max-width: 720px; position: relative; z-index: 1; }
.hero-badge { display: inline-block; padding: 6px 16px; background: var(--primary-glow); border: 1px solid var(--border-hover); border-radius: 20px; font-size: 13px; font-weight: 600; color: var(--primary); margin-bottom: 24px; letter-spacing: 0.5px; }
.hero h1 { font-size: clamp(42px, 8vw, 72px); font-weight: 800; line-height: 1.1; margin-bottom: 20px; letter-spacing: -1.5px; }
.accent { background: linear-gradient(135deg, var(--primary), var(--primary-light)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { font-size: 17px; color: var(--text-secondary); max-width: 540px; margin: 0 auto 32px; line-height: 1.7; }
.server-status { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 20px; flex-wrap: wrap; }
.status-indicator { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); transition: background 0.3s; }
.status-dot.online { background: var(--success); box-shadow: 0 0 8px rgba(74, 222, 128, 0.5); animation: pulse-dot 2s infinite; }
.status-dot.offline { background: #f87171; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
.player-count { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-secondary); }
.motd-preview { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 24px; margin: 0 auto 32px; max-width: 480px; }
.motd-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 8px; font-weight: 600; }
.motd-content { font-family: 'Courier New', monospace; font-size: 14px; color: var(--text-primary); line-height: 1.5; }
.hero-buttons { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }

.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600; text-decoration: none; transition: all 0.25s ease; cursor: pointer; border: none; }
.btn-primary { background: var(--primary); color: var(--bg-dark); }
.btn-primary:hover { background: var(--primary-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(110, 181, 255, 0.25); }
.btn-secondary { background: var(--bg-card); color: var(--text-primary); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--border-hover); background: var(--bg-card-hover); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 1px solid var(--primary); }
.btn-outline:hover { background: var(--primary-glow); transform: translateY(-2px); }
.btn-discord { background: var(--discord-color); color: white; padding: 14px 28px; font-size: 15px; }
.btn-discord:hover { background: #4752c4; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(88, 101, 242, 0.3); }
.apply-cta-btn { margin-top: 24px; padding: 14px 28px; font-size: 15px; }
.apply-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(110, 181, 255, 0.3); }
.scroll-indicator { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text-muted); font-size: 12px; animation: bounce-scroll 2s infinite; }
.scroll-arrow { width: 20px; height: 20px; border-right: 2px solid var(--text-muted); border-bottom: 2px solid var(--text-muted); transform: rotate(45deg); }
@keyframes bounce-scroll { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

.section-header { text-align: center; margin-bottom: 60px; }
.section-tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--primary); margin-bottom: 12px; }
.section-header h2 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; margin-bottom: 16px; letter-spacing: -0.5px; }
.section-header p { font-size: 16px; color: var(--text-secondary); max-width: 560px; margin: 0 auto; line-height: 1.7; }

.gamemodes-section { background: var(--bg-surface); }
.gamemodes-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.gamemode-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 32px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.gamemode-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3); }
.gamemode-card.featured { border-color: rgba(110, 181, 255, 0.2); background: linear-gradient(135deg, var(--bg-card), rgba(110, 181, 255, 0.05)); }
.gamemode-card.featured::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--primary), var(--primary-light)); }
.gamemode-season { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; color: var(--primary); margin-bottom: 16px; }
.gamemode-icon { color: var(--primary); margin-bottom: 20px; }
.gamemode-card h3 { font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.gamemode-card p { color: var(--text-secondary); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.gamemode-features { display: flex; flex-wrap: wrap; gap: 8px; }
.gamemode-features span { padding: 4px 12px; background: var(--primary-glow); border-radius: 20px; font-size: 12px; font-weight: 500; color: var(--primary); }
.gamemode-live-badge { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; padding: 6px 14px; background: rgba(74, 222, 128, 0.1); border-radius: 20px; font-size: 12px; font-weight: 600; color: var(--success); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); animation: pulse-dot 1.5s infinite; }

.connect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.connect-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 32px; transition: all 0.3s ease; }
.connect-card:hover { border-color: var(--border-hover); }
.connect-icon { width: 56px; height: 56px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 24px; color: var(--primary); background: var(--primary-glow); }
.connect-card h3 { font-size: 22px; font-weight: 700; margin-bottom: 24px; }
.connect-steps { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.step { display: flex; align-items: flex-start; gap: 14px; }
.step-num { width: 28px; height: 28px; min-width: 28px; border-radius: 50%; background: var(--primary-glow); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; margin-top: 2px; }
.step p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.step strong { color: var(--text-primary); }
.ip-box { background: var(--bg-dark); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; transition: all 0.2s ease; user-select: none; }
.ip-box:hover { border-color: var(--primary); background: var(--primary-glow); }
.ip-box code { font-family: 'Courier New', monospace; font-size: 16px; font-weight: 600; color: var(--primary); }
.copy-hint { font-size: 12px; color: var(--text-muted); transition: color 0.2s; }
.ip-box:hover .copy-hint { color: var(--primary); }
.port-box { margin-top: 12px; display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-secondary); }
.port-box code { background: var(--bg-dark); border: 1px solid var(--border); padding: 6px 14px; border-radius: var(--radius-sm); font-family: 'Courier New', monospace; font-weight: 600; color: var(--primary); cursor: pointer; transition: all 0.2s ease; }
.port-box code:hover { border-color: var(--primary); background: var(--primary-glow); }

.staff-section { background: var(--bg-surface); }
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.staff-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; transition: all 0.3s ease; }
.staff-card:hover { border-color: var(--border-hover); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25); }
.staff-card.owner { border-color: rgba(110, 181, 255, 0.2); }
.staff-avatar { width: 72px; height: 72px; border-radius: var(--radius); overflow: hidden; margin: 0 auto 16px; border: 2px solid var(--border); transition: border-color 0.3s; }
.staff-card:hover .staff-avatar { border-color: var(--primary); }
.staff-avatar img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.staff-info h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.staff-role { display: inline-block; padding: 3px 12px; border-radius: 20px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.role-owner { background: rgba(110, 181, 255, 0.15); color: var(--primary); }
.role-dev { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.role-admin { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.role-srmod { background: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.role-mod { background: rgba(34, 197, 94, 0.15); color: #22c55e; }

.discord-layout { display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.discord-info { max-width: 500px; }
.discord-info h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; margin-bottom: 16px; }
.discord-info p { color: var(--text-secondary); font-size: 16px; line-height: 1.7; margin-bottom: 28px; }
.discord-widget iframe { border-radius: var(--radius-lg); border: 1px solid var(--border); }

.socials-section { background: var(--bg-surface); }
.socials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.social-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; text-decoration: none; color: var(--text-primary); transition: all 0.3s ease; }
.social-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25); }
.tiktok-card:hover { border-color: #ff0050; }
.youtube-card:hover { border-color: #ff0000; }
.discord-card-social:hover { border-color: var(--discord-color); }
.social-icon { width: 56px; height: 56px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.tiktok-card .social-icon { background: rgba(255, 0, 80, 0.1); color: #ff0050; }
.youtube-card .social-icon { background: rgba(255, 0, 0, 0.1); color: #ff0000; }
.discord-card-social .social-icon { background: rgba(88, 101, 242, 0.1); color: var(--discord-color); }
.social-card h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.social-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.5; }

.hosting-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 60px; display: grid; grid-template-columns: 1fr auto; gap: 60px; align-items: center; }
.hosting-info h2 { font-size: clamp(28px, 4vw, 36px); font-weight: 800; margin-bottom: 16px; }
.hosting-info p { color: var(--text-secondary); font-size: 16px; line-height: 1.7; margin-bottom: 28px; }
.hosting-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.server-rack { display: flex; flex-direction: column; gap: 8px; }
.rack-unit { width: 160px; height: 24px; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 4px; position: relative; overflow: hidden; }
.rack-unit.active::after { content: ''; position: absolute; left: 8px; top: 50%; transform: translateY(-50%); width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 6px rgba(74, 222, 128, 0.5); animation: pulse-dot 2s infinite; }
.rack-unit.active::before { content: ''; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 60px; height: 4px; background: repeating-linear-gradient(90deg, var(--border) 0px, var(--border) 4px, transparent 4px, transparent 8px); border-radius: 2px; }

.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; background: var(--bg-surface); }
.footer-content { display: flex; justify-content: space-between; gap: 60px; margin-bottom: 40px; }
.footer-brand { max-width: 360px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.footer-brand p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.footer-links { display: flex; gap: 60px; }
.footer-col h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 16px; }
.footer-col a { display: block; text-decoration: none; color: var(--text-secondary); font-size: 14px; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { padding-top: 24px; border-top: 1px solid var(--border); text-align: center; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }

.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .nav-links { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--bg-card); flex-direction: column; align-items: stretch; padding: 80px 24px 24px; gap: 4px; transition: right 0.3s ease; border-left: 1px solid var(--border); z-index: 999; }
    .nav-links.active { right: 0; }
    .nav-links a { padding: 12px 16px; font-size: 15px; }
    .mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .mobile-toggle.active span:nth-child(2) { opacity: 0; }
    .mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .hero { padding: 100px 20px 60px; }
    .hero-logo { width: 100px; height: 100px; }
    .hero h1 { font-size: 38px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .gamemodes-grid, .connect-grid { grid-template-columns: 1fr; }
    .discord-layout { grid-template-columns: 1fr; gap: 40px; }
    .discord-widget iframe { width: 100%; max-width: 350px; }
    .staff-grid { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
    .hosting-card { grid-template-columns: 1fr; padding: 36px 28px; }
    .server-rack { display: none; }
    .footer-content { flex-direction: column; gap: 36px; }
    .footer-links { gap: 40px; }
    .socials-grid { grid-template-columns: 1fr; }
    .section { padding: 70px 0; }
}
@media (max-width: 480px) {
    .server-status { flex-direction: column; gap: 10px; }
    .staff-grid { grid-template-columns: 1fr 1fr; }
    .footer-links { flex-direction: column; gap: 24px; }
}