/* ==========================================================================
   LIQUID GLASS ULTIMATE DESIGN SYSTEM
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background-color: #030305;
    color: #FFFFFF;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Hide native cursor on desktop */
@media (pointer: fine) {
    body, a, button, input, [role="button"] {
        cursor: none !important;
    }
}

/* Custom Liquid Cursor Elements */
.custom-cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: #FFFFFF;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease, transform 0.1s ease;
    display: none;
}

.custom-cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, background 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    display: none;
}

/* Hover effect on interactive elements */
body.cursor-hover .custom-cursor-ring {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

body.cursor-hover .custom-cursor-dot {
    transform: translate(-50%, -50%) scale(1.5);
}

/* Background Grid Overlay */
.bg-grid-overlay {
    position: fixed;
    inset: 0;
    background-image: 
        radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 32px 32px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

/* Dynamic Ambient Glows */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(140px);
    transition: all 1s ease;
}

.bg-glow-hero {
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(0, 0, 0, 0) 80%);
}

.bg-glow-ranks {
    top: 35%;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(0, 0, 0, 0) 75%);
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Ultra Glass Panel Styling */
.glass-panel {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 100%);
    backdrop-filter: blur(30px) saturate(190%);
    -webkit-backdrop-filter: blur(30px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.glow-border {
    position: relative;
}

.glow-border::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.02));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* ==========================================================================
   BUTTONS & TYPOGRAPHY
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 600;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    border: none;
    outline: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: #FFFFFF;
    color: #000000;
}

.glow-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    background: #FFFFFF;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: #FFFFFF;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.glass-hover-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-sm { padding: 8px 16px; font-size: 0.8rem; }
.btn-md { padding: 10px 20px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1rem; }
.btn-block { width: 100%; }

.text-gradient {
    background: linear-gradient(180deg, #FFFFFF 30%, rgba(255, 255, 255, 0.5) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar-wrapper {
    position: fixed;
    top: 20px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0 20px;
}

.navbar {
    max-width: 1040px;
    margin: 0 auto;
    border-radius: 100px;
    padding: 10px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-logo {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #FFFFFF;
    text-decoration: none;
}

.logo-dot { color: #FFFFFF; opacity: 0.5; }

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

.nav-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.nav-link:hover { color: #FFFFFF; }

.server-ip-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
    padding: 7px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.server-ip-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.15);
    transform: scale(1.03);
}

.ip-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00FF87;
    box-shadow: 0 0 8px #00FF87;
}

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

.mobile-toggle .bar {
    width: 22px;
    height: 2px;
    background-color: #FFFFFF;
    transition: all 0.3s ease;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    padding-top: 180px;
    padding-bottom: 90px;
    text-align: center;
    z-index: 1;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-glass {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 18px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 24px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.badge-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #FFFFFF;
    box-shadow: 0 0 10px #FFFFFF;
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.hero-title {
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: rgba(255, 255, 255, 0.65);
    max-width: 600px;
    font-weight: 400;
    margin-bottom: 32px;
}

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

/* ==========================================================================
   COMPACT RANKS SECTION & 3D TILT CARDS
   ========================================================================== */
.ranks-section {
    position: relative;
    padding: 70px 0;
    z-index: 1;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.4);
    display: block;
    margin-bottom: 6px;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.section-subtitle {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.ranks-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    perspective: 1000px;
}

.rank-card {
    border-radius: 20px;
    padding: 22px 18px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, background 0.3s ease, border-color 0.3s ease;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    will-change: transform;
}

.rank-card:hover {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 20px 45px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(255, 255, 255, 0.08);
}

.rank-card[data-rank="king"] {
    border-color: rgba(255, 255, 255, 0.3);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.rank-card[data-rank="king"]::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #FFFFFF;
    color: #000000;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    padding: 3px 10px;
    border-radius: 100px;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

.card-top { margin-bottom: 16px; }

.rank-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.rank-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.rank-badge {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.rank-price-container {
    display: flex;
    align-items: baseline;
    margin-bottom: 8px;
}

.rank-price {
    font-size: 1.65rem;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.rank-description {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    min-height: 34px;
    line-height: 1.35;
}

.rank-features-preview {
    list-style: none;
    margin-bottom: 20px;
    flex-grow: 1;
}

.rank-features-preview li {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    padding: 7px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s ease;
}

.rank-card:hover .rank-features-preview li {
    color: rgba(255, 255, 255, 0.9);
}

.rank-features-preview li::before {
    content: "✦";
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   DISCORD CTA SECTION
   ========================================================================== */
.cta-section {
    padding: 50px 0 100px;
    position: relative;
    z-index: 1;
}

.cta-card {
    border-radius: 28px;
    padding: 50px 24px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.cta-glow-bg {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
}

.cta-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.65);
    max-width: 500px;
    margin: 0 auto 28px;
    font-size: 0.95rem;
}

.cta-footer-note {
    margin-top: 20px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.04em;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px 0 24px;
    position: relative;
    z-index: 1;
    background: #020203;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.footer-logo {
    font-size: 1.1rem;
    font-weight: 900;
}

.footer-tagline {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 4px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-links a:hover { color: #FFFFFF; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
}

/* ==========================================================================
   MODALS & TOAST
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    border-radius: 24px;
    width: 100%;
    max-width: 480px;
    padding: 36px;
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-card {
    transform: scale(1) translateY(0);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.6);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #FFFFFF;
}

.modal-header { text-align: center; margin-bottom: 24px; }
.modal-rank-name { font-size: 1.75rem; font-weight: 900; }
.modal-rank-price { font-size: 1.4rem; font-weight: 800; margin-top: 4px; }
.modal-rank-type { font-size: 0.7rem; font-weight: 800; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.4); margin-top: 4px; }

.modal-features-list { list-style: none; margin-bottom: 28px; }
.modal-features-list li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-features-list li .check { color: #FFFFFF; font-weight: bold; }

.purchase-info-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 16px;
    margin: 20px 0;
}

.purchase-info-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.85rem;
}

.purchase-info-row:last-child {
    margin-bottom: 0;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #FFFFFF;
    color: #000000;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3000;
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast-check { font-weight: bold; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .ranks-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 768px) {
    .navbar { border-radius: 20px; }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-top: 10px;
        background: rgba(8, 8, 12, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 20px;
        padding: 24px;
        flex-direction: column;
        gap: 16px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-links.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .mobile-toggle { display: flex; }
    .hero-section { padding-top: 140px; }
}

@media (max-width: 580px) {
    .ranks-grid { grid-template-columns: 1fr; }
    .footer-container, .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
    .modal-card { padding: 28px 20px; }
}
