﻿:root {
    --bg-color: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #6c757d;
    --border-color: rgba(0, 0, 0, 0.08);
    --accent-color: #5865F2;
    --card-bg: rgba(255, 255, 255, 0.8);
    --spacing-unit: 1rem;
    --container-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #ffffff;
    background-image:
        radial-gradient(at 0% 0%, rgba(88, 101, 242, 0.08) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(155, 89, 182, 0.06) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(88, 101, 242, 0.04) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(46, 204, 113, 0.04) 0px, transparent 50%);
    background-size: 100% 100%;
    /* Fixed background removed for mobile performance */
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

@keyframes backgroundShift {
    /* Removed for performance */
}

/* Technical Dot Grid - Static for performance */
body::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.6;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2.5rem;
    position: relative;
    z-index: 2;
}

/* Header & Nav */
header {
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

nav {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    /* Ensures all items are vertically centered */
    list-style: none;
    gap: 0.6rem;
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.98);
    /* Increased opacity to replace blur */
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
}

.nav-links a {
    text-decoration: none;
    color: #1a1a1a;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    /* Adjusted for Outfit */
    padding: 0 1.4rem;
    height: 42px;
    /* Set explicit height for perfect centering */
    display: flex;
    align-items: center;
    border-radius: 12px;
    /* Smoother corner for highlights */
    position: relative;
    line-height: 1;
}

.nav-links a:hover {
    background: rgba(88, 101, 242, 0.1);
    color: #5865F2;
}

.nav-links a::after {
    display: none;
}

.nav-logo-item {
    display: flex;
    align-items: center;
    margin-right: 0.4rem;
    padding-right: 0.6rem;
    border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none !important;
    padding: 0 1rem 0 0.5rem !important;
    height: 42px;
    /* Match height of other links */
    line-height: 1;
}

.nav-logo {
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
    flex-shrink: 0;
    display: block;
}

.logo-text {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
    line-height: 1;
    display: flex;
    align-items: center;
}

.nav-logo-item:hover .nav-logo {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    header {
        display: block;
        padding: 0.6rem 0;
    }

    nav.container {
        padding: 0 0.9rem;
    }

    .nav-links {
        width: 100%;
        padding: 0.4rem;
        gap: 0.25rem;
        justify-content: space-between;
        flex-wrap: wrap;
        border-radius: 14px;
    }

    .nav-links li {
        flex: 1 1 auto;
    }

    .nav-links a {
        justify-content: center;
        padding: 0 0.55rem;
        font-size: 0.69rem;
        letter-spacing: 0.04em;
        height: 34px;
        width: 100%;
    }

    .nav-logo-item {
        flex: 0 0 auto !important;
        padding-right: 0.4rem;
        margin-right: 0.2rem;
    }

    .logo-text {
        display: none;
    }

    .logo-link {
        padding: 0 0.4rem !important;
        width: auto !important;
    }

    .hero {
        padding-top: 8.2rem;
    }
}

/* Hero Section */
.hero {
    min-height: 45vh;
    display: flex;
    align-items: center;
    padding: 7rem 0 0rem;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.hero-text {
    max-width: 1000px;
}

.hero-text h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 6.5vw, 4.5rem);
    /* Reduced for cleaner look */
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 3.5rem;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.hero-sub {
    font-size: clamp(1rem, 3vw, 1.5rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.5;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0;
    flex-wrap: wrap;
    /* Stack on mobile if needed */
}

.hero-cta .btn {
    width: 260px;
    padding-left: 0;
    padding-right: 0;
}

@media (min-width: 769px) {
    .hero-cta {
        margin-bottom: 6rem;
    }
}

.video-caption-container {
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    z-index: 10;
}

.video-feature-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.desc-highlight {
    color: #5865F2;
    /* Discord blue */
    font-weight: 700;
}

.desc-highlight-red {
    color: #5865F2;
    /* Match Discord blue highlight */
    font-weight: 700;
}


/* Feature Highlight styles updated */
.feature-highlight {
    font-family: 'Outfit', sans-serif;
    /* Changed from Courier New */
    color: #5865F2;
    /* Discord blue */
    font-weight: 700;
    background: rgba(88, 101, 242, 0.1);
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.02em;
    border: 1px solid rgba(88, 101, 242, 0.2);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.1);
}

.free-highlight {
    color: #2ecc71;
    font-weight: 900;
    text-transform: uppercase;
    text-shadow: 0 0 15px rgba(46, 204, 113, 0.3);
}


.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    /* Smoother corner like the image */
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.15rem;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: #5865F2;
    /* Official Discord Blue */
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    border: 1px solid #000000;
    /* Black Border */
}

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

.btn-secondary {
    background-color: #f2f3f5;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 15px rgba(18, 18, 18, 0.05);
}

.btn-secondary:hover {
    background-color: #e3e5e8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.discord-icon,
.support-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Video Showcase */
.video-preview {
    margin: -1rem auto 3rem;
    /* Reduced bottom margin */
    position: relative;
    max-width: 1200px;
    z-index: 5;
}

.video-container {
    position: relative;
    border-radius: 32px;
    padding: 8px;
    /* Modern Frame Border */
    background: #ffffff;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.15), 0 40px 100px rgba(0, 0, 0, 0.12);
    /* More pronounced, surrounding shadow */
    border: 1px solid #000000;
    /* Black Border */
    aspect-ratio: 16 / 9;
    line-height: 0;
    transition: transform 0.4s ease;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
    /* Inner rounding to match frame */
    opacity: 0.98;
    transition: opacity 0.5s ease;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(255, 255, 255, 0.1));
    pointer-events: none;
}

.video-container:hover video {
    opacity: 1;
}

.video-maximize {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 12px;
    color: #000;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.video-maximize svg {
    width: 20px;
    height: 20px;
}

.video-container:hover .video-maximize {
    opacity: 1;
    transform: translateY(0);
}

.video-maximize:hover {
    background: #fff;
    transform: scale(1.1);
}

/* Stats Section - Image Layout */
.stats {
    padding: 3rem 0;
    position: relative;
    z-index: 10;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Stretch to grid cell height */
}

.stat-minimal-card {
    cursor: pointer;
    background: var(--stat-bg-rest);
    border: 1px solid var(--stat-border);
    border-radius: 12px;
    padding: 2rem 1.8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.05);
    /* Enhanced Shadow */
}

.stat-minimal-card:hover {
    background: var(--stat-bg-hover);
    border-color: var(--stat-color);
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15), 0 10px 20px rgba(0, 0, 0, 0.08);
}

/* Individual Stat Colors defined on the card */
.stat-servers {
    --stat-color: #5865F2;
    --stat-border: rgba(88, 101, 242, 0.6);
    --stat-bg-rest: rgba(88, 101, 242, 0.08);
    --stat-bg-hover: rgba(88, 101, 242, 0.15);
}

.stat-users {
    --stat-color: #2ecc71;
    --stat-border: rgba(46, 204, 113, 0.6);
    --stat-bg-rest: rgba(46, 204, 113, 0.08);
    --stat-bg-hover: rgba(46, 204, 113, 0.15);
}

.stat-pings {
    --stat-color: #9b59b6;
    --stat-border: rgba(155, 89, 182, 0.6);
    --stat-bg-rest: rgba(155, 89, 182, 0.08);
    --stat-bg-hover: rgba(155, 89, 182, 0.15);
}

.stat-uptime {
    --stat-color: #3498db;
    --stat-border: rgba(52, 152, 219, 0.6);
    --stat-bg-rest: rgba(52, 152, 219, 0.08);
    --stat-bg-hover: rgba(52, 152, 219, 0.15);
}

.stat-icon-mini {
    width: 24px;
    height: 24px;
    margin-bottom: 0.5rem;
    color: var(--stat-color);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.stat-minimal-card:hover .stat-icon-mini {
    opacity: 1;
    transform: scale(1.1);
}

.stat-value {
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.4;
    font-weight: 500;
}



@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-interactive.reveal {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .stat-label {
        font-size: 0.82rem;
        /* Avoid 2-line wrap on medium screens */
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat-minimal-card {
        padding: 1.2rem 1rem;
        min-height: 110px;
        display: flex;
        align-items: center;
        /* Center horizontally for balance */
        text-align: center;
    }

    .stat-label {
        font-size: 0.75rem;
        /* Force 1-line on almost all small screens */
        white-space: nowrap;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-description-slot {
        padding: 1rem;
        font-size: 0.8rem;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    /* Matched to stats grid width */
    margin: 0 auto;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: #ffffff;
    padding: 2.5rem;
    /* Reduced padding for smaller height */
    border-radius: 20px;
    border: 1px solid #000000;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    /* Consistent with stats shadow style */
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, var(--accent-color), transparent 70%);
    opacity: 0;
    transition: opacity 0.6s ease;
}

.feature-card:hover {
    transform: translateY(-12px);
    border-color: var(--accent-color);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.06);
}

.feature-card:hover::before {
    opacity: 0.04;
}

.feature-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

.feature-icon {
    width: 32px;
    /* Smaller icon for horizontal layout */
    height: 32px;
    color: var(--accent-color);
    transition: transform 0.4s ease;
    flex-shrink: 0;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-card h3 {
    font-size: 1.25rem;
    /* Slightly smaller title */
    font-weight: 700;
    margin-bottom: 0;
    /* Aligned with icon */
    letter-spacing: -0.02em;
}

.feature-card p {
    color: #000000;
    /* Black text */
    font-size: 0.9rem;
    /* Reduced from 1rem */
    line-height: 1.7;
    font-weight: 500;
}

/* Animations and Reveal */
.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    animation: fadeUp 1.2s cubic-bezier(0.19, 1, 0.22, 1) forwards;
}

.reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.98);
    filter: blur(10px);
    transition: all 1s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    padding: 3rem 0;
    text-align: center;
    background: #1a1b2e;
}

footer p {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* Sticky CTA Style */
.sticky-cta {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    z-index: 1000;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
}

.sticky-cta.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.sticky-cta .btn {
    box-shadow: 0 10px 30px rgba(88, 101, 242, 0.4), 0 0 20px rgba(88, 101, 242, 0.2);
    padding: 0.8rem 2rem;
    font-size: 1rem;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .sticky-cta {
        bottom: 20px;
        width: 90%;
        max-width: 400px;
    }

    .sticky-cta .btn {
        width: 100%;
        max-width: none;
    }
}

/* Responsive fixes */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }


    .hero-cta {
        margin-bottom: 3.5rem;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 320px;
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        border-radius: 10px;
        gap: 0.55rem;
    }

    .hero-cta .discord-icon,
    .hero-cta .support-icon {
        width: 18px;
        height: 18px;
    }

    .video-preview {
        margin: 0 0 3.5rem;
        width: 100vw;
        max-width: none;
        position: relative;
        left: auto;
        transform: none;
        padding: 0 0.7rem;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        /* Full-viewport centering prevents right-crop and keeps the video perfectly centered */
    }

    .video-container {
        border-radius: 24px;
        padding: 6px;
    }

    .video-container video {
        border-radius: 18px;
    }
}
