html {
    scroll-behavior: smooth;
}

:root {
    --p7-blue-deep: #000814;
    --p7-blue-accent: #00a2ff;
    --p7-blue-glow: rgba(0, 162, 255, 0.5);
    --p7-bg: #010204;
    --p7-surface: rgba(10, 14, 20, 0.7);
    --p7-surface-light: rgba(20, 26, 35, 0.8);
    --text-primary: #ffffff;
    --text-secondary: #a0aec0;
    --p7-gradient: linear-gradient(135deg, #0047ab 0%, #00a2ff 100%);
    --p7-border: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* Glassmorphism Effect */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--p7-bg);
    background-image: 
        radial-gradient(circle at 50% 0%, rgba(0, 162, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 20% 30%, rgba(0, 162, 255, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 71, 171, 0.08) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
}

section {
    position: relative;
    background: transparent !important;
    border: none !important;
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Typography */
h1, h2, h3, .nav-logo {
    font-family: 'Syncopate', sans-serif;
    text-transform: uppercase;
}

.p7-accent {
    color: var(--p7-blue-accent);
    text-shadow: 0 0 10px var(--p7-blue-glow);
}

.p7-gradient-text {
    background: linear-gradient(to right, #ffffff, #00a2ff, #ffffff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 4s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

/* Enhanced Navigation */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(1, 2, 4, 0.85);
    /* backdrop-filter: blur(10px); */
    border-bottom: 1px solid var(--p7-border);
    z-index: 1000;
    transition: all 0.3s ease;
}

.top-nav.scrolled {
    height: 70px;
    background: rgba(1, 2, 4, 0.95);
}

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

.nav-logo {
    font-size: 1.8rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: -1px;
    color: #ffffff;
    display: flex;
    align-items: center;
}

.logo-7 {
    color: #3b82f6; /* Hellblau wie im Bild */
    margin-left: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    text-shadow: 0 0 8px var(--p7-blue-glow);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--p7-surface);
    padding: 8px 15px;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.online-pulse {
    width: 8px;
    height: 8px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff88;
    animation: pulse 2s infinite;
}

.count {
    font-size: 0.8rem;
    font-weight: 600;
    color: #00ff88;
}

.btn-play-nav {
    background: var(--p7-blue-accent);
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-play-nav:hover {
    background: #0056d2;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--p7-blue-glow);
}

.mobile-menu-btn {
    display: none;
}

/* Hero Section Refinement */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
}

.hero-visuals {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.floating-orb {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--p7-blue-glow) 0%, transparent 70%);
    filter: blur(50px);
    opacity: 0.3;
    animation: float 15s infinite alternate;
}

.orb-1 { top: 10%; left: 10%; }
.orb-2 { bottom: 10%; right: 10%; animation-delay: -5s; }

@keyframes float {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.hero::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    opacity: 0.03;
    animation: rotate 60s linear infinite;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero-content {
    max-width: 900px;
    z-index: 10;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 71, 171, 0.1);
    border: 1px solid var(--p7-blue-accent);
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 30px;
    color: var(--p7-blue-accent);
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-primary {
    background: var(--p7-blue-accent);
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    font-weight: 700;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-secondary {
    background: transparent;
    color: white;
    text-decoration: none;
    padding: 18px 40px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px var(--p7-blue-glow);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: white;
}

.hero-stats {
    position: absolute;
    bottom: 50px;
    display: flex;
    gap: 80px;
    z-index: 10;
}

.stat-card {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--p7-blue-accent);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Features Section */
.features {
    padding: 150px 40px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-underline {
    width: 80px;
    height: 4px;
    background: var(--p7-blue-accent);
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Feature Card Enhancements */
.feature-card {
    background: var(--p7-surface);
    /* backdrop-filter: blur(5px); */
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--p7-border);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--p7-blue-accent);
    background: var(--p7-surface-light);
    box-shadow: 0 25px 50px -12px rgba(0, 162, 255, 0.25);
}

.feature-icon {
    margin-bottom: 25px;
    color: var(--p7-blue-accent);
    filter: drop-shadow(0 0 8px var(--p7-blue-glow));
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* FAQ Section */
.faq {
    padding: 100px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.faq-item h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--p7-blue-accent);
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Server Status Section */
.server-status-section {
    padding: 100px 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.status-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 50px;
}

/* Status Card Polish */
.status-card.main-status {
    background: var(--p7-surface);
    /* backdrop-filter: blur(10px); */
    padding: 50px;
    border-radius: 24px;
    border: 1px solid var(--p7-border);
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.02);
}

.status-icon-large {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-bottom: 25px;
    background: #555;
    transition: all 0.5s ease;
}

.status-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

#ip-display {
    color: var(--text-secondary);
    font-family: monospace;
    letter-spacing: 1px;
}

.status-grid-small {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 20px;
}

.small-card {
    background: var(--p7-surface);
    padding: 25px;
    border-radius: 15px;
    border: 1px solid var(--p7-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.small-label {
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
}

.small-value {
    font-family: 'Syncopate', sans-serif;
    font-size: 1rem;
}

.small-value.online {
    color: #00ff88;
}

/* Community CTA */
.community-cta {
    padding: 100px 40px;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px;
    background: var(--p7-surface);
    border: 1px solid var(--p7-border);
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    /* backdrop-filter: blur(10px); */
}

.cta-content::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.btn-discord {
    background: #5865F2;
    color: white;
    text-decoration: none;
    padding: 18px 45px;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    transform: translateY(-3px);
    background: #4752c4;
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

/* Footer */
footer {
    padding: 80px 40px;
    background: transparent;
    text-align: center;
}

.footer-logo {
    font-family: 'Syncopate', sans-serif;
    font-size: 1.8rem;
    font-weight: 900;
    font-style: italic;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: #ffffff;
}

footer p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 30px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.social-links a:hover {
    color: var(--p7-blue-accent);
}

/* Animations */
@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.5; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-container { padding: 0 20px; }
    .nav-links { gap: 20px; }
    .hero h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .top-nav { height: 70px; }
    
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        gap: 6px;
        background: transparent;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 10px;
    }

    .mobile-menu-btn span {
        display: block;
        width: 25px;
        height: 2px;
        background: white;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .mobile-menu-btn.active span:nth-child(2) { opacity: 0; }
    .mobile-menu-btn.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(1, 8, 20, 0.98);
        /* backdrop-filter: blur(20px); */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        z-index: 1000;
        border-left: 1px solid var(--p7-border);
    }

    .nav-links.active { right: 0; }

    .nav-right { gap: 15px; }
    .online-status { display: none; } /* Hide in small header, show in mobile menu if needed */

    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1rem; }
    .hero-btns { 
        flex-direction: column; 
        width: 100%; 
        max-width: 300px; 
        margin: 0 auto;
        align-items: center;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        box-sizing: border-box;
    }
    .hero-stats { gap: 30px; bottom: 30px; }
    .stat-value { font-size: 1.2rem; }

    .status-container { grid-template-columns: 1fr; }
    .status-card.main-status { padding: 30px; }

    .features { padding: 80px 20px; }
    .section-title { font-size: 2rem; }

    .cta-content { padding: 40px 20px; }
    .cta-content h2 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-stats { position: relative; bottom: 0; margin-top: 50px; flex-wrap: wrap; justify-content: center; }
    .nav-logo { font-size: 1.4rem; }
    .btn-play-nav { padding: 8px 15px; font-size: 0.7rem; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--p7-bg);
}

::-webkit-scrollbar-thumb {
    background: #222;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--p7-blue-accent);
}
