* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #5865F2;
    --secondary-color: #4752C4;
    --accent-color: #7289DA;
    --text-primary: #FFFFFF;
    --text-secondary: #B9BBBE;
    --bg-dark: #0D0F14;
    --bg-darker: #060708;
    --bg-card: #1A1D24;
    --gradient-start: #5865F2;
    --gradient-end: #7289DA;
    --border-color: #2F3136;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-darker);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 15, 20, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(13, 15, 20, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.btn-invite {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    color: var(--text-primary) !important;
    font-weight: 600;
}

.btn-invite::after {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.stars {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle 3s infinite;
}

.stars:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.stars:nth-child(2) {
    top: 60%;
    left: 80%;
    animation-delay: 1s;
}

.stars:nth-child(3) {
    top: 40%;
    left: 50%;
    animation-delay: 2s;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.5); }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    z-index: 1;
}

.ascii-logo {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.galaxy-ascii {
    font-family: 'Courier New', monospace;
    font-size: 0.7rem;
    line-height: 1.2;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 5s ease infinite;
    margin: 0;
    white-space: pre;
    overflow-x: auto;
    text-align: center;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@media (max-width: 768px) {
    .galaxy-ascii {
        font-size: 0.4rem;
    }
}

@media (max-width: 480px) {
    .galaxy-ascii {
        font-size: 0.3rem;
    }
}

.hero-subtitle {
    font-size: 1.8rem;
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: 4px;
    text-align: center;
}

.hero-box {
    background: rgba(26, 29, 36, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    padding: 1rem 2.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: var(--text-primary);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-secondary:hover {
    border-color: var(--accent-color);
    background: rgba(114, 137, 218, 0.1);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 15px;
    position: relative;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--text-secondary);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}

@keyframes scroll {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(15px); }
}

/* Sections */
.section {
    padding: 6rem 0;
    position: relative;
}

.section-box {
    background: rgba(26, 29, 36, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 3rem;
    margin-top: 2rem;
}

.section-header {
    font-size: 1.8rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 1rem;
}

/* Feature Tables */
.features-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-column {
    background: rgba(13, 15, 20, 0.6);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.feature-column:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.15);
    background: rgba(13, 15, 20, 0.8);
}

.feature-column h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.feature-column p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.feature-sub {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(47, 49, 54, 0.5);
}

.feature-sub h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: var(--accent-color);
    font-weight: 600;
}

.feature-sub p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Section Backgrounds */
.security-section {
    background: linear-gradient(180deg, var(--bg-darker) 0%, rgba(88, 101, 242, 0.05) 100%);
}

.moderation-section {
    background: var(--bg-dark);
}

.logging-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(114, 137, 218, 0.05) 100%);
}

.performance-section {
    background: var(--bg-darker);
}

/* Stats Section */
.stats-section {
    background: var(--bg-dark);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
    background: rgba(26, 29, 36, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
}

/* Commands Section */
.commands-section {
    background: linear-gradient(180deg, var(--bg-darker) 0%, rgba(88, 101, 242, 0.05) 100%);
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.command-item {
    background: rgba(13, 15, 20, 0.6);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.command-item:hover {
    transform: translateX(5px);
    border-color: var(--accent-color);
    background: rgba(13, 15, 20, 0.8);
}

.command-code {
    display: block;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--accent-color);
    background: rgba(88, 101, 242, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.75rem;
    border-left: 3px solid var(--accent-color);
}

.command-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

/* Future Section */
.future-section {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1), rgba(114, 137, 218, 0.1));
    text-align: center;
}

.future-content {
    max-width: 900px;
    margin: 0 auto;
}

.future-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 2;
    margin-top: 2rem;
    text-align: left;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    text-align: center;
    padding: 6rem 0;
}

.cta-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.cta-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

.cta-content .btn-primary {
    background: var(--text-primary);
    color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.cta-content .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Footer */
.footer {
    background: var(--bg-darker);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-text {
    color: var(--text-secondary);
    margin-top: 1rem;
}

.footer-links {
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-separator {
    color: var(--text-secondary);
    opacity: 0.5;
}

/* Legal Pages Styles */
.legal-section {
    padding-top: 120px;
    padding-bottom: 4rem;
    min-height: 100vh;
}

.legal-content {
    max-width: 900px;
    margin: 0 auto;
}

.legal-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
}

.legal-updated {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 0.95rem;
}

.legal-section-box {
    background: rgba(26, 29, 36, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.legal-section-box:hover {
    border-color: var(--accent-color);
    background: rgba(26, 29, 36, 0.8);
}

.legal-section-box h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.legal-section-box p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section-box ul {
    color: var(--text-secondary);
    line-height: 2;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section-box li {
    margin-bottom: 0.5rem;
}

.legal-section-box strong {
    color: var(--text-primary);
    font-weight: 600;
}

.legal-back {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

.fade-in-delay-3 {
    animation: fadeIn 1s ease-out 0.9s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.8s ease-out both;
}

.slide-up-delay {
    animation: slideUp 0.8s ease-out 0.2s both;
}

.slide-up-delay-2 {
    animation: slideUp 0.8s ease-out 0.4s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .nav-links a:not(.btn-invite) {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .section-header {
        font-size: 1.4rem;
    }

    .features-table {
        grid-template-columns: 1fr;
    }

    .section-box {
        padding: 2rem 1.5rem;
    }

    .hero-box {
        padding: 1.5rem;
    }

    .cta-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .commands-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .feature-column {
        padding: 1.5rem;
    }

    .galaxy-ascii {
        font-size: 0.25rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-number {
        font-size: 2rem;
    }

    .legal-title {
        font-size: 2rem;
    }

    .legal-section-box {
        padding: 1.5rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-separator {
        display: none;
    }
}

