:root {
    /* Colors */
    --bg-dark: #050505;
    --bg-card: rgba(20, 20, 25, 0.4);
    --accent-purple: #a855f7;
    --accent-glow: #c084fc;
    --accent-gold: #fbbf24;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Effects */
    --glass-blur: blur(20px) saturate(180%);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    
    /* Layout */
    --container-max: 1200px;
    --section-padding: 160px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-dark);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo {
    font-family: 'Cinzel', serif;
    font-weight: 700;
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 30px;
}

/* --- Immersive Background --- */
.bg-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background-size: cover;
    background-position: center;
}

.layer-1 {
    background-image: url('assets/hero-bg.png');
    filter: brightness(0.4) contrast(1.1);
}

.layer-2 {
    background: radial-gradient(circle at 50% 50%, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
}

.bg-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 20%, rgba(0,0,0,0.8) 100%);
}

/* --- Navigation --- */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 90px;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#navbar.scrolled {
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: var(--glass-blur);
    height: 70px;
    border-bottom: var(--glass-border);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.8rem;
    letter-spacing: 2px;
}

.logo span {
    color: var(--accent-purple);
    font-weight: 900;
}

.nav-links {
    display: flex;
    gap: 40px;
    align-items: center;
}

.nav-item {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.3s;
}

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

.btn-join {
    background: var(--accent-purple);
    color: white;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    transition: all 0.3s;
}

.btn-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
}

/* --- Hero Section --- */
#hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    position: relative;
    padding-top: 15vh;
    padding-bottom: 100px;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-content {
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    width: 100%;
}

.badge-new {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid var(--accent-purple);
    color: var(--accent-purple);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(168, 85, 247, 0); }
    100% { box-shadow: 0 0 0 0 rgba(168, 85, 247, 0); }
}

.online-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.3);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0;
    transition: opacity 1s;
}

.pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-subtitle {
    font-family: 'Outfit', sans-serif;
    color: var(--text-secondary);
    letter-spacing: 0.4em;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 30px;
}

/* --- Utilities --- */
.glass {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
}

.text-gradient {
    background: linear-gradient(to right, #fff, var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.accent-glow {
    color: var(--accent-purple);
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.status-text {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0 auto 30px;
    letter-spacing: 1px;
    text-align: center;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    max-width: 600px;
}

/* Countdown Glass */
.countdown-glass {
    display: flex;
    gap: 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: var(--glass-blur);
    padding: 30px 50px;
    border-radius: 30px;
    border: var(--glass-border);
    margin-bottom: 50px;
    width: fit-content;
}

.count-item {
    text-align: center;
}

.count-num {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.count-label {
    font-size: 0.7rem;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 5px;
}

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

.status-accent {
    color: var(--accent-gold);
    font-weight: 600;
}

.hero-btns {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center; /* Explicitly center buttons */
    width: 100%;
    margin: 0 auto;
}

.btn-primary {
    background: white;
    color: black;
    padding: 20px 45px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.3);
}

.server-pill {
    background: rgba(255, 255, 255, 0.05);
    border: var(--glass-border);
    backdrop-filter: var(--glass-blur);
    padding: 10px 25px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

.server-pill:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--accent-purple);
}

.pill-label {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-weight: 800;
}

.pill-value {
    font-family: monospace;
    color: var(--text-primary);
    font-size: 1rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.6;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid white;
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: white;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
    animation: mouseScroll 2s infinite;
}

@keyframes mouseScroll {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, 20px); }
}

/* --- Sections General --- */
.section {
    padding: var(--section-padding) 0;
}

.section-header {
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-badge {
    color: var(--accent-purple);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 30px;
}

.section-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
}

/* --- Timeline V2 --- */
.timeline-v2 {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.timeline-entry {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.entry-number {
    font-size: 5rem;
    font-family: 'Cinzel', serif;
    color: rgba(168, 85, 247, 0.2);
    line-height: 1;
    margin-top: -10px;
}

.entry-content {
    flex: 1;
    padding: 50px;
    border-radius: 40px;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    transition: all 0.4s;
}

.entry-content:hover {
    border-color: var(--accent-purple);
    transform: translateX(10px);
}

.entry-content.highlight {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(0,0,0,0.4));
    border-color: rgba(168, 85, 247, 0.3);
}

.entry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.phase-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.phase-tag.danger {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.entry-content h3 {
    font-size: 2.2rem;
    color: white;
}

.phase-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.detail-item .label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 5px;
}

.detail-item .value {
    font-weight: 700;
    color: var(--text-primary);
}

/* --- Hall of Fame --- */
.hall-glass {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: 60px;
    padding: 100px;
    text-align: center;
}

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

.winner-display {
    margin-bottom: 80px;
}

.winner-trophy {
    font-size: 5rem;
    margin-bottom: 30px;
    filter: drop-shadow(0 0 30px var(--accent-gold));
}

.winner-name {
    font-size: 4rem;
    color: var(--accent-gold);
    margin-bottom: 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.benefit-card {
    padding: 40px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s;
}

.benefit-card:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-5px);
}

.benefit-icon {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* --- Footer --- */
footer {
    padding: 100px 0 60px;
}

.footer-cta {
    padding: 80px;
    text-align: center;
    border-radius: 50px;
    background: linear-gradient(to bottom, var(--bg-card), transparent);
    border: var(--glass-border);
    margin-bottom: 80px;
}

.logo-small {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.footer-cta h2 {
    font-size: 3rem;
    margin-bottom: 40px;
}

.server-ip-large {
    background: white;
    color: black;
    padding: 30px;
    border-radius: 30px;
    max-width: 500px;
    margin: 0 auto 40px;
    cursor: pointer;
    transition: all 0.3s;
}

.server-ip-large:hover {
    transform: scale(1.02);
}

.server-ip-large span {
    font-family: monospace;
    font-size: 1.8rem;
    font-weight: 800;
}

.copy-hint {
    font-size: 0.8rem;
    margin-top: 10px;
    opacity: 0.5;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-purple);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
}

.admin-link {
    color: inherit;
    text-decoration: none;
    cursor: default;
}

/* --- Phase Comparison Table --- */
.phase-comparison {
    margin: 120px auto 0;
    padding: 60px;
    border-radius: 40px;
    max-width: 1000px;
}

.phase-comparison h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

th, td {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

th {
    font-family: 'Cinzel', serif;
    color: var(--accent-purple);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

td.muted { color: var(--text-muted); }
td.accent { color: var(--accent-purple); font-weight: 700; }
td.danger { color: #ef4444; font-weight: 800; }

/* --- Mobile --- */
@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .nav-links { display: none; }
    
    .hero-title { font-size: 3.5rem; }
    
    .countdown-glass {
        padding: 20px;
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .timeline-entry {
        flex-direction: column;
        gap: 10px;
    }
    
    .entry-number { font-size: 3rem; }
    
    .hall-glass { padding: 40px 20px; }
    
    .winner-name { font-size: 2.5rem; }
    
    .footer-cta { padding: 40px 20px; }
    
    .server-ip-large span { font-size: 1.2rem; }
}