:root {
    --bg-dark: #07090e;
    --surface-glass: rgba(15, 22, 35, 0.65);
    --border-glass: rgba(255, 255, 255, 0.1);
    
    --emerald: #34d399;
    --sky-blue: #38bdf8;
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    animation: pageFadeIn 0.8s ease-out forwards;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Starea de bază și Starea 'Checking' (Galben) */
.status-badge,
.status-badge.checking {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 99px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;

    /* Culori vizibile pentru galben/checking */
    background: rgba(234, 179, 8, 0.22);
    border: 1px solid rgba(234, 179, 8, 0.5);
    color: #facc15;
}

.status-badge .badge-dot,
.status-badge.checking .badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #facc15;
    box-shadow: 0 0 8px #facc15;
}

/* Starea Online (Verde) */
.status-badge.online {
    background: rgba(52, 211, 153, 0.2);
    border-color: rgba(52, 211, 153, 0.5);
    color: var(--emerald);
}

.status-badge.online .badge-dot {
    background-color: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
}

/* Starea Offline (Roșu) */
.status-badge.offline {
    background: rgba(248, 113, 113, 0.2);
    border-color: rgba(248, 113, 113, 0.5);
    color: #f87171;
}

.status-badge.offline .badge-dot {
    background-color: #f87171;
    box-shadow: 0 0 8px #f87171;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

html {
    scroll-behavior: smooth;
}

/* Visible state triggered by scroll */
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Header Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(7, 9, 14, 0.6);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    z-index: 1000;
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.brand-logo {
    height: 36px;
    width: auto;
}

.brand-name {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--emerald);
    letter-spacing: 0.02em;
}

.brand-name span { color: var(--sky-blue); }

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--text-main); }

/* Push the store button away from standard links */
.nav-links .nav-btn-store {
    margin-left: 0.5rem;
    padding: 0.5rem 1.1rem;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: #ffffff;
    font-weight: 600;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hover effect */
.nav-links .nav-btn-store:hover {
    background: rgba(99, 102, 241, 0.3);
    border-color: rgba(99, 102, 241, 0.7);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}

/* Hero Section with Left Glass Card */
.hero-section {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-left: 5rem;
    background-image: linear-gradient(180deg, rgba(7, 9, 14, 0.4) 0%, rgba(11, 15, 25, 0.95) 100%), 
                      url('../assets/earthmap.png');
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.hero-card {
    max-width: 540px;
    margin-left: 5%;
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    padding: 3rem;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 99px;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.status-badge.checking {
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.3);
    color: #facc15;
}

.status-badge.checking .badge-dot {
    background-color: #facc15;
}

.status-badge.online {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.25);
    color: var(--emerald);
}
.status-badge.online .badge-dot {
    background-color: var(--emerald);
}

/* Offline State (Red) */
.status-badge.offline {
    background: rgba(248, 113, 113, 0.12);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #f87171;
}
.status-badge.offline .badge-dot {
    background-color: #f87171;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background-color: var(--emerald);
    border-radius: 50%;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-title span {
    color: var(--sky-blue);
}

.hero-description {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.ip-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--sky-blue);
    padding: 0.75rem 1.25rem;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.ip-btn:hover {
    background: rgba(56, 189, 248, 0.22);
    border-color: var(--sky-blue);
}

.discord-btn {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    transition: color 0.2s;
}

.discord-btn:hover { color: var(--text-main); }

/* Features Section */
.section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 6rem 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-tag {
    color: var(--sky-blue);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-top: 0.25rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(15, 22, 35, 0.4);
    border: 1px solid var(--border-glass);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: transform 0.25s, border-color 0.25s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.3);
}

.card-tag {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--emerald);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-glass);
    text-align: center;
    padding: 3rem 2rem;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* FAQ Glass Card Section */
.faq-glass-card {
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    padding: 3.5rem 3rem;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.faq-grid {
    display: flex;
    gap: 2.5rem;
    position: relative;
}

.faq-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.faq-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--sky-blue);
    margin-bottom: 0.6rem;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-item strong {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .faq-grid {
        flex-direction: column;
        gap: 2rem;
    }
}

.community-container {
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.community-card {
    flex: 2;
    display: flex;
    background: var(--surface-glass);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.community-media {
    flex: 1;
    background: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    border-right: 1px solid var(--border-glass);
}

.community-logo {
    max-width: 100%;
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.5));
}

.community-text {
    flex: 1.2;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.community-text h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.community-text p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.community-text p:last-child {
    margin-bottom: 0;
}

.community-text a {
    color: var(--sky-blue);
    text-decoration: none;
    font-weight: 700;
}

.community-text a:hover {
    text-decoration: underline;
}

.discord-widget-wrapper {
    flex: 1;
    min-width: 320px;
    height: 480px;
    background: var(--surface-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

@media (max-width: 992px) {
    .hero-section {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    .hero-card {
        margin-left: 0;
    }
    .community-container {
        flex-direction: column;
    }
    .community-card {
        flex-direction: column;
    }
    .community-media {
        border-right: none;
        border-bottom: 1px solid var(--border-glass);
        padding: 2rem;
    }
    .discord-widget-wrapper {
        width: 100%;
        min-width: auto;
    }
}

/* Typewriter Effect Styles */
#typewriter {
    position: relative;
    color: var(--sky-blue);
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}

#typewriter::after {
    content: '|';
    margin-left: 2px;
    color: var(--sky-blue);
    animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}
