/* ═══════════════════════════════════════════════════════ */
/*  m2khan v2 — STYLE.CSS                                  */
/*  Lineage2M-inspired dark cinematic design               */
/* ═══════════════════════════════════════════════════════ */

:root {
    --red: #C41E3A;
    --red-light: #FF4444;
    --red-dark: #8B0000;
    --gold: #D4A843;
    --gold-light: #F0C860;
    --warm: #aa8060;

    --bg: #000;
    --bg-2: #0a0a0a;
    --bg-card: rgba(255,255,255,0.03);
    --text: #fff;
    --text-2: hsla(0,0%,100%,0.7);
    --text-3: hsla(0,0%,100%,0.38);
    --border: hsla(0,0%,100%,0.1);

    --font-d: 'Cinzel', serif;
    --font-b: 'Inter', sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-b);
    font-size: 20px;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-size-adjust: none;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

::selection { background: var(--red); color: #fff; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--red-dark); border-radius: 3px; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════ NAVBAR (Lineage2M 2-row style) ═══════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0,0,0,0.5);
    transition: background 0.4s ease, top 0.4s ease;
}

.navbar.scrolled {
    background: hsla(0,0%,9%,0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 var(--border);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    height: 56px;
    padding: 0 36px;
    transition: height 0.35s ease;
}

.navbar-logo {
    font-family: var(--font-d);
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 3px;
    line-height: 1;
}

.navbar-menu {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border);
    margin-top: -1px;
}

.nav-link {
    display: block;
    font-size: 15px;
    font-weight: 400;
    color: var(--text-3);
    padding: 0 16px;
    line-height: 56px;
    height: 58px;
    position: relative;
    transition: color 0.4s ease;
}

.nav-link:hover { color: var(--text); }

.nav-link.active {
    color: var(--text);
}

/* Active underline bar */
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--gold);
}

.navbar-actions { display: flex; align-items: center; }

/* Burger */
.navbar-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.navbar-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.3s, opacity 0.3s;
}

.navbar-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-burger.open span:nth-child(2) { opacity: 0; }
.navbar-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    background: rgba(0,0,0,0.97);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu ul { display: flex; flex-direction: column; gap: 24px; }

.mobile-menu a {
    font-family: var(--font-d);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-3);
    transition: color 0.3s;
}

.mobile-menu a:hover { color: var(--text); }

/* ═══════ LEFT SIDEBAR NAV (Lineage2M-style) ═══════ */
.side-nav {
    position: fixed;
    left: 0;
    top: 50%;
    margin-left: 40px;
    margin-top: -100px;
    z-index: 900;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.side-nav-item {
    display: flex;
    align-items: center;
    gap: 0;
    height: 40px;
    color: var(--text-3);
    transition: color 0.2s ease;
    text-decoration: none;
    position: relative;
}

.side-nav-item:hover { color: hsla(0,0%,100%,0.6); }

.side-nav-item.active { color: var(--text); }

/* Animated >> arrow indicator */
.side-nav-arrow {
    display: inline-block;
    width: 36px;
    font-family: var(--font-d);
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    opacity: 0;
    transform: translateX(-12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
    text-shadow: 0 0 12px rgba(212,168,67,0.4);
    filter: drop-shadow(0 0 6px rgba(212,168,67,0.3));
}

.side-nav-item.active .side-nav-arrow {
    opacity: 1;
    transform: translateX(0);
}

.side-nav-label {
    font-family: var(--font-d);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: opacity 0.2s ease;
}

.side-nav-item:not(.active) .side-nav-label {
    opacity: 0.7;
}

.side-nav-item.active .side-nav-label {
    opacity: 1;
    text-shadow: 0 0 8px rgba(255,255,255,0.1);
}

/* ═══════ BUTTONS ═══════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-b);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 14px 36px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
    color: #fff;
    border-color: var(--red);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(196,30,58,0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--text-3);
}

.btn-outline:hover {
    border-color: var(--text);
    transform: translateY(-2px);
}

.btn-lg { padding: 18px 48px; font-size: 15px; }
.btn-sm { padding: 10px 24px; font-size: 12px; border-radius: 5px; }

.btn-red {
    background: linear-gradient(135deg, var(--red-dark), var(--red));
    color: #fff;
    border-color: rgba(196,30,58,0.4);
}
.btn-red:hover {
    box-shadow: 0 4px 20px rgba(196,30,58,0.35);
    transform: translateY(-2px);
}

.btn-gold-btn {
    background: linear-gradient(135deg, #2a1f00, #3d2e00);
    color: var(--gold-light);
    border-color: rgba(212,168,67,0.4);
}
.btn-gold-btn:hover {
    box-shadow: 0 4px 20px rgba(212,168,67,0.3);
    transform: translateY(-2px);
}

/* ═══════ HERO ═══════ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(54.5% 50% at 50% 50%, rgba(13,9,7,0) 0%, rgba(0,0,0,0.65) 100%),
        radial-gradient(ellipse at 30% 50%, rgba(196,30,58,0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(212,168,67,0.04) 0%, transparent 60%),
        #000;
}

/* VIDEO / IMAGE BG */
.vid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.vid-bg video,
.vid-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px;
}

/* Logo */
.logo, .footer-logo {
    font-family: var(--font-d);
    font-weight: 900;
    letter-spacing: 4px;
    line-height: 1;
}

.hero .logo {
    font-size: clamp(64px, 14vw, 130px);
    margin-bottom: 20px;
}

.logo-m2 { color: var(--text); }

.logo-khan {
    background: linear-gradient(135deg, var(--red-light), var(--red));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(196,30,58,0.3));
}

/* Badges */
.hero-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.badge {
    padding: 6px 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    border-radius: 4px;
    text-transform: uppercase;
}

.badge-red {
    background: rgba(196,30,58,0.15);
    color: var(--red-light);
    border: 1px solid rgba(196,30,58,0.3);
}

.badge-gold {
    background: rgba(212,168,67,0.12);
    color: var(--gold-light);
    border: 1px solid rgba(212,168,67,0.3);
}

.badge-sep {
    font-family: var(--font-d);
    font-size: 18px;
    color: var(--text-3);
}

.hero-date {
    font-size: 14px;
    letter-spacing: 4px;
    color: var(--text-3);
    margin-bottom: 32px;
}

/* Countdown */
.countdown {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 40px;
}

.cd-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    padding: 14px 12px;
    background: rgba(196,30,58,0.08);
    border: 1px solid rgba(196,30,58,0.2);
    border-radius: 10px;
}

.cd-num {
    font-family: var(--font-d);
    font-size: 36px;
    font-weight: 900;
    color: var(--red-light);
    line-height: 1;
    text-shadow: 0 0 20px rgba(196,30,58,0.4);
}

.cd-lbl {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-3);
    margin-top: 4px;
}

.cd-colon {
    font-family: var(--font-d);
    font-size: 28px;
    color: var(--red);
    opacity: 0.4;
    padding-bottom: 16px;
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Scroll Indicator */
.scroll-down {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-mouse {
    width: 22px;
    height: 34px;
    border: 2px solid var(--text-3);
    border-radius: 11px;
    position: relative;
}

.scroll-wheel {
    width: 3px;
    height: 7px;
    background: var(--red);
    border-radius: 2px;
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}

/* ═══════ SECTIONS COMMON ═══════ */
.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 115px 0 119px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Section background overlay — cinematic dark vignette (L2M style) */
.section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(54.5% 50% at 50% 50%, rgba(13,9,7,0) 0%, rgba(0,0,0,0.65) 100%),
        rgba(0,0,0,0.4);
    z-index: 1;
}

.section > .container {
    position: relative;
    z-index: 2;
}

.tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 16px;
}

.title {
    font-family: var(--font-d);
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 18px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

/* Ornamental decoration bar (L2M style) */
.bar {
    position: relative;
    width: 200px;
    height: 20px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bar::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.bar::after {
    content: '◆';
    position: relative;
    font-size: 8px;
    color: var(--gold);
    background: var(--bg);
    padding: 0 12px;
    z-index: 1;
    letter-spacing: 8px;
}

/* Centered text sections */
.about, .servers, .features {
    text-align: center;
}

/* ═══════ ABOUT ═══════ */
.about {
    background: var(--bg);
}

.about .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-text {
    max-width: 680px;
    font-size: 20px;
    line-height: 36px;
    color: var(--text-2);
    text-align: center;
}

.about-text strong {
    color: var(--text);
    font-weight: 700;
}

/* ═══════ SERVERS ═══════ */
.servers {
    background: var(--bg);
}

.server-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 24px;
}

.server-card {
    position: relative;
    padding: 56px 40px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.4s ease, border-color 0.4s ease;
}

.server-card:hover {
    transform: translateY(-4px);
}

.card-meta { border-top: 2px solid var(--red); }
.card-alesta { border-top: 2px solid var(--gold); }

.card-meta:hover {
    border-color: rgba(196,30,58,0.3);
    box-shadow:
        0 0 60px rgba(196,30,58,0.08),
        inset 0 1px 0 rgba(196,30,58,0.15);
}

.card-alesta:hover {
    border-color: rgba(212,168,67,0.25);
    box-shadow:
        0 0 60px rgba(212,168,67,0.06),
        inset 0 1px 0 rgba(212,168,67,0.15);
}

.server-card-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196,30,58,0.1), transparent 70%);
    pointer-events: none;
}

.glow-gold {
    background: radial-gradient(circle, rgba(212,168,67,0.08), transparent 70%);
}

.server-badge {
    display: inline-block;
    padding: 5px 16px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    border-radius: 2px;
    background: rgba(196,30,58,0.1);
    color: var(--red-light);
    border: 1px solid rgba(196,30,58,0.2);
    margin-bottom: 20px;
}

.badge-g {
    background: rgba(212,168,67,0.08);
    color: var(--gold-light);
    border-color: rgba(212,168,67,0.2);
}

.server-name {
    font-family: var(--font-d);
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.red { color: var(--red-light); text-shadow: 0 0 20px rgba(196,30,58,0.25); }
.gold { color: var(--gold-light); text-shadow: 0 0 20px rgba(212,168,67,0.25); }

.server-level {
    font-size: 16px;
    color: var(--text-3);
    letter-spacing: 3px;
    margin-bottom: 24px;
}

/* Ornamental line divider */
.server-line {
    width: 60px;
    height: 1px;
    margin: 0 auto 24px;
    position: relative;
    background: linear-gradient(90deg, transparent, var(--red), transparent);
}

.line-gold {
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.server-desc {
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-3);
    margin-bottom: 32px;
    max-width: 380px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════ FEATURES ═══════ */
.features {
    background: var(--bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feat-card {
    padding: 44px 32px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--border);
    border-radius: 4px;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.feat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.feat-card:hover {
    transform: translateY(-4px);
    border-color: hsla(0,0%,100%,0.18);
}

.feat-icon {
    font-size: 40px;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 8px rgba(212,168,67,0.2));
}

.feat-tag {
    display: block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--gold);
    margin-bottom: 12px;
}

.feat-title {
    font-family: var(--font-d);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 14px;
    letter-spacing: 1px;
}

.feat-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-3);
}

/* ═══════ CTA ═══════ */
.cta {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 100px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(54.5% 50% at 50% 50%, rgba(196,30,58,0.06) 0%, transparent 100%);
}

.cta-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(54.5% 50% at 50% 50%, rgba(13,9,7,0) 0%, rgba(0,0,0,0.5) 100%);
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.cta-title {
    font-family: var(--font-d);
    font-size: clamp(30px, 5vw, 48px);
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.cta-desc {
    font-size: 16px;
    color: var(--text-2);
    margin-bottom: 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ═══════ FOOTER ═══════ */
.footer {
    background: var(--bg);
    position: relative;
}

.footer-top {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding: 50px 24px 40px;
}

.footer-logo {
    font-family: var(--font-d);
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 3px;
}

.footer-tagline {
    font-size: 13px;
    color: var(--text-3);
    margin-top: 6px;
}

.footer-trust {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.footer-trust span {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-3);
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
}

.footer-links h5,
.footer-social h5 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 14px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-3);
    transition: color 0.2s;
}

.footer-links a:hover { color: var(--red-light); }

.social-row {
    display: flex;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 8px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    color: var(--text-3);
    transition: all 0.3s ease;
}

.social-btn svg { width: 18px; height: 18px; }

.social-btn:hover {
    color: var(--red-light);
    border-color: var(--red);
    background: rgba(196,30,58,0.08);
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    padding: 20px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-3);
}
