/* ==================== RESET & BASE ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #1e3a5f;
    --secondary-gold: #0d2137;
    --dark-bg: #ffffff;
    --darker-bg: #f5f5f5;
    --purple: #1e3a5f;
    --blue: #1e3a5f;
    --cyan: #2563eb;
    --gradient-primary: linear-gradient(135deg, #1e3a5f 0%, #0d2137 100%);
    --gradient-gold: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #1e3a5f 100%);
    --gradient-hero: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #0d2137 100%);
    --text-dark: #0d2137;
    --text-light: #1e3a5f;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    background: #ffffff;
    color: #0d2137;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== ANIMATED BACKGROUND ==================== */
.stars,
.twinkling {
    display: none;
}

/* ==================== CONTAINER ==================== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==================== HEADER ==================== */
.header {
    background: #ffffff;
    backdrop-filter: blur(10px);
    padding: 35px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid rgba(30, 58, 95, 0.2);
    box-shadow: 0 4px 20px rgba(30, 58, 95, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-family: 'Cinzel', serif;
    font-size: 22px;
    font-weight: 900;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #1e3a5f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.logo .legacy {
    display: inline;
    font-size: 22px;
    margin-left: 5px;
    letter-spacing: 2px;
}

.tagline {
    font-size: 10px;
    color: #1e3a5f;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
}

@keyframes glow-pulse {
    0%, 100% { filter: drop-shadow(0 0 5px rgba(30, 58, 95, 0.2)); }
    50% { filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.3)); }
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 40px;
    align-items: center;
}

.nav-link {
    color: #1e3a5f;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 1px;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 80%;
}

.nav-link:hover {
    color: #2563eb;
    transform: translateY(-2px);
}

.btn-register-nav {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 5px 20px rgba(30, 58, 95, 0.3);
}

.btn-register-nav:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 30px rgba(30, 58, 95, 0.5);
    color: #fff;
}

/* ==================== BUTTONS ==================== */
.btn {
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-block;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn span {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 10px 40px rgba(30, 58, 95, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(30, 58, 95, 0.5);
}

.btn-glow {
    animation: btn-glow-animation 2s ease-in-out infinite;
}

@keyframes btn-glow-animation {
    0%, 100% {
        box-shadow: 0 10px 40px rgba(30, 58, 95, 0.3), 0 0 20px rgba(37, 99, 235, 0.2);
    }
    50% {
        box-shadow: 0 15px 50px rgba(30, 58, 95, 0.5), 0 0 40px rgba(37, 99, 235, 0.4);
    }
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.7s;
}

.btn:hover .btn-shine {
    left: 100%;
}

.btn-secondary {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    box-shadow: 0 10px 40px rgba(30, 58, 95, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(30, 58, 95, 0.5);
}

.btn-download {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.3);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(30, 58, 95, 0.5);
}

.btn-download-alt {
    background: linear-gradient(135deg, #2563eb 0%, #1e3a5f 100%);
    color: #fff;
    width: 100%;
    text-align: center;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.4s;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.btn-download-alt:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.5);
}

.btn-block {
    width: 100%;
    text-align: center;
}

/* ==================== HERO SECTION ==================== */
.hero {
    height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 0;
}

.hero-bg-custom {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/file_000000002cbc720e9e04513509065216.webp') center/cover;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 26, 0.3);
}

.hero-content {
    /* Empty hero content */
}

/* ==================== SECTION TITLES ==================== */
.section-title {
    font-family: 'Cinzel', serif;
    font-size: 56px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 50%, #1e3a5f 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 3px;
}

.title-decoration {
    color: #2563eb;
    margin: 0 20px;
    font-size: 40px;
    animation: spin 4s linear infinite;
    display: inline-block;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.section-subtitle {
    text-align: center;
    font-size: 20px;
    color: #1e3a5f;
    margin-bottom: 60px;
    font-weight: 300;
    letter-spacing: 1px;
}

/* Features section removed */

/* ==================== CLASSES SECTION ==================== */
.classes {
    padding: 120px 0;
    background: #ffffff;
}

.classes-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 30px;
}

.class-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 2px solid rgba(30, 58, 95, 0.1);
    position: relative;
    box-shadow: 0 5px 20px rgba(30, 58, 95, 0.1);
}

.class-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.5), rgba(37, 99, 235, 0.5));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s;
}

.class-card:hover::before {
    opacity: 1;
}

.class-card:hover {
    transform: translateY(-20px) scale(1.05);
    box-shadow: 0 30px 70px rgba(30, 58, 95, 0.3);
}

.class-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.class-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.class-card:hover .class-image-wrapper img {
    transform: scale(1.2);
}

.class-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.95) 100%);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.5s;
}

.class-card:hover .class-overlay {
    opacity: 1;
}

.class-details h4 {
    color: #ffffff;
    margin-bottom: 10px;
    font-size: 18px;
}

.class-details ul {
    list-style: none;
    color: #e0e0e0;
    font-size: 14px;
    line-height: 1.8;
}

.class-info {
    padding: 25px;
}

.class-info h3 {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    color: #1e3a5f;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.class-info p {
    color: #4a5568;
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.class-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stat-bar span {
    width: 50px;
    font-size: 12px;
    font-weight: 700;
    color: #1e3a5f;
}

.stat-bar .bar {
    flex: 1;
    height: 8px;
    background: rgba(30, 58, 95, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.stat-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, #1e3a5f 0%, #2563eb 100%);
    border-radius: 10px;
    animation: fill-bar 1.5s ease-out;
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.stat-bar .fill.magic {
    background: linear-gradient(90deg, #2563eb 0%, #1e3a5f 100%);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

.stat-bar .fill.ranger {
    background: linear-gradient(90deg, #1e3a5f 0%, #2563eb 100%);
    box-shadow: 0 0 10px rgba(30, 58, 95, 0.4);
}

.stat-bar .fill.assassin {
    background: linear-gradient(90deg, #0d2137 0%, #1e3a5f 100%);
    box-shadow: 0 0 10px rgba(13, 33, 55, 0.4);
}

.stat-bar .fill.priest {
    background: linear-gradient(90deg, #2563eb 0%, #1e3a5f 100%);
    box-shadow: 0 0 10px rgba(37, 99, 235, 0.4);
}

@keyframes fill-bar {
    from { width: 0; }
}

/* Rankings section removed */

/* ==================== DOWNLOAD SECTION ==================== */
.download {
    padding: 120px 0;
    background: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.download-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.download-grid.download-single {
    grid-template-columns: 1fr;
    max-width: 500px;
}

.download-card {
    background: #ffffff;
    border: 2px solid rgba(30, 58, 95, 0.1);
    border-radius: 25px;
    padding: 50px 40px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(30, 58, 95, 0.1);
}

.download-card::before {
    content: '';
    position: absolute;
    top: -100%;
    left: -100%;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    animation: rotate-gradient 10s linear infinite;
}

@keyframes rotate-gradient {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.download-card:hover {
    transform: translateY(-15px);
    border-color: rgba(30, 58, 95, 0.3);
    box-shadow: 0 30px 80px rgba(30, 58, 95, 0.2);
}

.download-icon {
    font-size: 100px;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 30px rgba(37, 99, 235, 0.3));
    animation: float 3s ease-in-out infinite;
}

.download-card h3 {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    color: #1e3a5f;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.download-card p {
    color: #4a5568;
    font-size: 16px;
    margin-bottom: 25px;
    line-height: 1.6;
}

.file-info {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 25px 0;
}

.file-size,
.file-version {
    background: rgba(30, 58, 95, 0.1);
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    color: #1e3a5f;
    font-size: 14px;
    border: 1px solid rgba(30, 58, 95, 0.2);
}

.requirements {
    font-size: 13px;
    color: #4a5568;
    margin-top: 20px;
    line-height: 1.8;
}

/* ==================== REGISTER SECTION ==================== */
.register {
    padding: 120px 0;
    background: #ffffff;
}

.register-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.register-info h2 {
    font-family: 'Cinzel', serif;
    font-size: 56px;
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 25px;
    line-height: 1.2;
}

.register-info p {
    font-size: 20px;
    color: #1e3a5f;
    margin-bottom: 40px;
    line-height: 1.6;
}

.register-benefits {
    list-style: none;
}

.register-benefits li {
    font-size: 18px;
    color: #4a5568;
    margin-bottom: 18px;
    padding-left: 10px;
    line-height: 1.6;
}

.register-form-wrapper {
    background: #ffffff;
    border: 2px solid rgba(30, 58, 95, 0.1);
    border-radius: 25px;
    padding: 50px;
    box-shadow: 0 20px 60px rgba(30, 58, 95, 0.15);
}

.register-form h3 {
    font-family: 'Cinzel', serif;
    font-size: 32px;
    color: #1e3a5f;
    margin-bottom: 35px;
    text-align: center;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group input {
    width: 100%;
    padding: 18px 25px;
    background: #f5f5f5;
    border: 2px solid rgba(30, 58, 95, 0.2);
    border-radius: 12px;
    color: #0d2137;
    font-size: 16px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: rgba(37, 99, 235, 0.6);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
    background: #ffffff;
}

.form-group input::placeholder {
    color: #718096;
}

.form-message {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background: rgba(74, 222, 128, 0.2);
    border: 1px solid rgba(74, 222, 128, 0.5);
    color: #4ade80;
}

.form-message.error {
    background: rgba(245, 87, 108, 0.2);
    border: 1px solid rgba(245, 87, 108, 0.5);
    color: #f5576c;
}

/* ==================== POPUP ==================== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.popup-overlay.active {
    opacity: 1;
}

.popup-box {
    background: #ffffff;
    border-radius: 20px;
    padding: 40px 50px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.popup-overlay.active .popup-box {
    transform: scale(1);
}

.popup-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
}

.popup-icon-success {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #fff;
}

.popup-icon-error {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: #fff;
}

.popup-title {
    font-family: 'Cinzel', serif;
    font-size: 28px;
    color: #1e3a5f;
    margin-bottom: 15px;
}

.popup-message {
    color: #4a5568;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.popup-btn {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 100%);
    color: #fff;
    border: none;
    padding: 14px 50px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.popup-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(30, 58, 95, 0.4);
}

.form-footer {
    text-align: center;
    margin-top: 25px;
    color: #4a5568;
    font-size: 14px;
}

.form-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
}

.form-footer a:hover {
    color: #1e3a5f;
    text-decoration: underline;
}

/* ==================== FOOTER ==================== */
.footer {
    background: #1e3a5f;
    padding: 80px 0 30px;
    border-top: 2px solid rgba(30, 58, 95, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 50px;
}

.footer-section h4 {
    font-family: 'Cinzel', serif;
    font-size: 24px;
    color: #ffffff;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 10px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-btn {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.warning-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.8;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1200px) {
    .classes-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .hero-title-main {
        font-size: 50px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .features-grid,
    .classes-grid,
    .download-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .register-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-title {
        font-size: 36px;
    }
}
