/* Modern Web Styling System */

:root {
    /* Color Palette */
    --bg-dark: #07060f;
    --card-bg: rgba(18, 16, 32, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    
    --primary: #10b981; /* Emerald/Teal */
    --primary-glow: rgba(16, 185, 129, 0.3);
    
    --accent-purple: #8b5cf6; /* Violet */
    --accent-purple-glow: rgba(139, 92, 246, 0.3);
    
    --accent-gold: #f59e0b; /* Amber */
    --accent-gold-glow: rgba(245, 158, 11, 0.3);
    
    --red: #ef4444;
    
    /* Transitions */
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --header-height: 80px;
    --max-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-dark);
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
}

/* Background Ambient Glows */
.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.25;
}

.glow-1 {
    width: 600px;
    height: 600px;
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--accent-purple-glow) 0%, transparent 70%);
    animation: pulseGlow 15s infinite alternate ease-in-out;
}

.glow-2 {
    width: 500px;
    height: 500px;
    top: 50%;
    left: -200px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    animation: pulseGlow 12s infinite alternate-reverse ease-in-out;
}

@keyframes pulseGlow {
    0% { transform: scale(1) translate(0, 0); opacity: 0.2; }
    100% { transform: scale(1.15) translate(40px, 40px); opacity: 0.3; }
}

/* Glassmorphism utility */
.glass {
    background: var(--card-bg);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Header & Navigation */
.header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(7, 6, 15, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--accent-gold);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition-smooth);
    position: relative;
    padding: 8px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-gold);
    transition: var(--transition-smooth);
}

.nav-link.active, .nav-link:hover {
    color: var(--text-primary);
}

.nav-link.active::after, .nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Buttons */
.btn {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 var(--primary-glow);
    background-color: #0fa271;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.btn-glow {
    position: relative;
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
    color: #000;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 20px 0 var(--accent-gold-glow);
}

.btn-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px 0 var(--accent-gold-glow);
}

.btn-glow .btn-text {
    font-size: 16px;
    letter-spacing: 0.5px;
}

.btn-glow .btn-subtext {
    font-size: 10px;
    opacity: 0.8;
    margin-top: 2px;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.server-badge {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: var(--primary);
    font-weight: 600;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot.online {
    background-color: var(--primary);
    box-shadow: 0 0 8px var(--primary);
}

.status-dot.offline {
    background-color: var(--red);
    box-shadow: 0 0 8px var(--red);
}

.hero-title {
    font-size: 58px;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -1px;
}

.text-glow-gold {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #fbbf24 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-glow-purple {
    background: linear-gradient(135deg, var(--accent-purple) 0%, #a78bfa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-glow-teal {
    background: linear-gradient(135deg, var(--primary) 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    align-items: center;
}

/* Status Widget Card */
.hero-widget-container {
    display: flex;
    justify-content: center;
}

.status-card {
    width: 100%;
    max-width: 380px;
    padding: 24px;
    transition: var(--transition-smooth);
}

.status-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px;
    margin-bottom: 20px;
}

.server-brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.server-icon-container {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.server-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.server-name {
    font-size: 15px;
    font-weight: 700;
}

.server-version {
    font-size: 12px;
    color: var(--text-secondary);
}

.ping-badge {
    font-size: 11px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 8px;
    border-radius: 6px;
    color: var(--text-secondary);
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 10px;
}

.stat-label {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
}

.text-green {
    color: var(--primary);
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    margin-bottom: 24px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-gold) 0%, var(--primary) 100%);
    border-radius: 3px;
    transition: width 1s ease-in-out;
}

.recent-events h4 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.event-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.event-item i {
    margin-top: 4px;
    font-size: 16px;
}

.event-text {
    font-size: 13px;
    font-weight: 600;
}

.event-time {
    font-size: 11px;
    color: var(--text-secondary);
}

/* Sections General */
section {
    padding: 100px 0;
}

.section-header {
    max-width: 600px;
    margin: 0 auto 60px auto;
    text-align: center;
    padding: 0 24px;
}

.section-title {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Features Grid */
.features-section {
    background-color: rgba(18, 16, 32, 0.2);
}

.features-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px 0 rgba(0, 0, 0, 0.45);
}

.feature-icon {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 24px;
}

.bg-gold {
    background: rgba(245, 158, 11, 0.1);
    color: var(--accent-gold);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.bg-purple {
    background: rgba(139, 92, 246, 0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.bg-teal {
    background: rgba(16, 185, 129, 0.1);
    color: var(--primary);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
    flex-grow: 1;
}

.feature-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    font-weight: 500;
}

.feature-bullets li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-bullets i {
    font-size: 14px;
}

/* Join Section */
.join-platforms {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.platform-card {
    padding: 40px;
    transition: var(--transition-smooth);
}

.platform-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.platform-header {
    display: flex;
    gap: 16px;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.platform-header i {
    font-size: 36px;
}

.platform-header h3 {
    font-size: 22px;
    font-weight: 700;
}

.platform-header p {
    font-size: 13px;
    color: var(--text-secondary);
}

.join-steps {
    list-style-type: decimal;
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 15px;
    color: var(--text-secondary);
}

.join-steps li strong {
    color: var(--text-primary);
}

.code-block {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2px 8px;
    border-radius: 4px;
    color: var(--accent-gold);
    font-family: 'Space Grotesk', monospace;
    font-size: 14px;
}

/* Commands List */
.commands-section {
    background-color: rgba(18, 16, 32, 0.2);
}

.commands-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 32px;
}

.commands-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px 16px;
    gap: 12px;
    margin-bottom: 24px;
    transition: var(--transition-smooth);
}

.commands-search:focus-within {
    border-color: var(--accent-gold);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.15);
}

.commands-search i {
    color: var(--text-secondary);
}

.commands-search input {
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    width: 100%;
    font-size: 15px;
    font-family: inherit;
}

.commands-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.command-row {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    padding: 16px 20px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    align-items: center;
    transition: var(--transition-smooth);
}

.command-row:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
}

.command-syntax {
    color: var(--accent-gold);
    font-weight: 700;
    font-family: 'Space Grotesk', monospace;
    font-size: 15px;
}

.command-desc {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 0;
    margin-top: 60px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.copyright {
    color: var(--text-secondary);
    font-size: 13px;
}

.socials {
    display: flex;
    gap: 20px;
}

.socials a {
    color: var(--text-secondary);
    font-size: 20px;
    transition: var(--transition-smooth);
}

.socials a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 8px 30px rgba(16, 185, 129, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        height: 70px;
    }
    
    .mobile-nav-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(7, 6, 15, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding-top: 60px;
        gap: 32px;
        transform: translateY(-150%);
        transition: var(--transition-smooth);
        z-index: 99;
    }
    
    .nav-links.active {
        transform: translateY(0);
    }
    
    .nav-link {
        font-size: 20px;
    }
    
    .hero-section {
        padding-top: calc(var(--header-height) + 20px);
        padding-bottom: 40px;
    }

    .hero-title {
        font-size: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .join-platforms {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .command-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn-glow {
        width: 100%;
    }

    .hero-ctas .btn-secondary {
        width: 100%;
    }

    #btnCopyIpNav {
        display: none;
    }

    .section-title {
        font-size: 30px;
    }

    .features-section, .join-section, .commands-section {
        padding: 60px 0;
    }

    .platform-card {
        padding: 24px;
    }

    .commands-container {
        padding: 20px 16px;
    }
}
