:root {
    --primary-bg: #1e1433;
    --secondary-bg: #2a1b45;
    --card-bg: #2d1e4a;
    --accent: #ff7a59;
    --accent-hover: #ff9579;
    --text: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --green: #4cd964;
    --popular: #4cd964;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--primary-bg);
    color: var(--text);
    overflow-x: hidden;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 15px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: rgba(30, 20, 51, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 24px;
    color: var(--text);
    text-decoration: none;
    gap: 8px;
    flex-shrink: 0;
}

.logo img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.auth-buttons {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-shrink: 0;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 15px;
    position: relative;
}

.user-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.user-menu a:hover {
    color: var(--accent);
}

.user-dropdown {
    position: relative;
    display: inline-block;
}

.user-dropdown-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px;
}

.user-dropdown-toggle:hover {
    color: var(--accent);
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background-color: var(--card-bg);
    border-radius: 8px;
    padding: 8px 0;
    min-width: 160px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-dropdown.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu a {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--text);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.user-dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.user-dropdown-menu i {
    margin-right: 8px;
    width: 16px;
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text);
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-wrapper {
    margin-top: 80px;
}

/* Flash Messages */
.flash-messages-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 10px;
    background-color: var(--card-bg);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.alert .btn-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem;
    filter: invert(1);
    opacity: 0.75;
}

.alert .btn-close:hover {
    opacity: 1;
}

.alert-dismissible {
    position: relative;
    padding-right: 3rem;
}

.alert-success {
    border-left: 4px solid var(--green);
}

.alert-danger {
    border-left: 4px solid #ff4444;
}

.alert-warning {
    border-left: 4px solid #ffbb33;
}

.alert-info {
    border-left: 4px solid #33b5e5;
}

/* Footer */
footer {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 60px 0 30px;
    position: relative;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-bottom p {
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .auth-buttons {
        gap: 10px;
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    padding: 80px 0 40px;
    text-align: center;
    position: relative;
}

.hero h1 {
    font-size: 56px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ffffff, #b19eff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: gradient 8s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-button {
    background: linear-gradient(90deg, var(--accent), #ff9d7a);
    color: white;
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 122, 89, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 122, 89, 0.5);
    color: white;
}

/* Features Overview */
.features-overview {
    padding: 40px 0 80px;
}

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

.feature-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), #b19eff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

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

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, #6e45e2, #88d3ce);
}

.feature-card:nth-child(2) .feature-icon {
    background: linear-gradient(135deg, #ff7a59, #ff4f81);
}

.feature-card:nth-child(3) .feature-icon {
    background: linear-gradient(135deg, #4cd964, #5ac8fa);
}

.feature-card:nth-child(4) .feature-icon {
    background: linear-gradient(135deg, #ffcc00, #ff9500);
}

.feature-title {
    font-size: 22px;
    margin-bottom: 15px;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Feature Showcase */
.feature-showcase {
    padding: 100px 0;
    position: relative;
}

.feature-showcase:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.2);
}

.showcase-container {
    display: flex;
    align-items: center;
    gap: 60px;
}

.showcase-content {
    flex: 1;
}

.showcase-image {
    flex: 1;
    position: relative;
}

.showcase-image img, .showcase-image video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.showcase-badge {
    display: inline-block;
    background-color: rgba(255, 122, 89, 0.2);
    color: var(--accent);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

.showcase-title {
    font-size: 36px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ffffff, #b19eff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.showcase-description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 18px;
    margin-bottom: 30px;
}

.showcase-features {
    margin-bottom: 30px;
}

.showcase-feature {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
}

.showcase-feature svg {
    color: var(--green);
    margin-right: 15px;
    min-width: 24px;
}

.showcase-feature-text {
    color: var(--text-secondary);
}

.showcase-feature-text strong {
    color: var(--text);
    font-weight: 600;
}

.showcase-cta {
    background-color: transparent;
    color: var(--text);
    border: 2px solid var(--accent);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.showcase-cta:hover {
    background-color: var(--accent);
    color: white;
}

.showcase-cta svg {
    width: 20px;
    height: 20px;
}

/* Reverse layout for alternating sections */
.showcase-container.reverse {
    flex-direction: row-reverse;
}

/* Discord Preview */
.discord-preview {
    background-color: var(--secondary-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    transition: transform 0.3s ease;
    max-width: 500px;
    margin: 0 auto;
}

.discord-preview:hover {
    transform: translateY(-5px);
}

.discord-header {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 12px 20px;
    display: flex;
    align-items: center;
}

.discord-logo {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

.discord-content {
    padding: 20px;
    min-height: 300px;
}

.discord-message {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 15px;
    background-color: #7289da;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.message-content {
    flex: 1;
}

.message-header {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.username {
    font-weight: 600;
    margin-right: 10px;
}

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

.message-text {
    line-height: 1.5;
}

.bot-response {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-top: 5px;
}

.bot-image {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 15px;
}

/* Testimonials */
.testimonials {
    padding: 100px 0;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.2);
}

.testimonials-title {
    font-size: 36px;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.testimonials-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--accent);
    border-radius: 2px;
}

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

.testimonial-card {
    background-color: var(--card-bg);
    border-radius: 16px;
    padding: 30px;
    text-align: left;
    position: relative;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-quote {
    font-size: 60px;
    position: absolute;
    top: -20px;
    left: 20px;
    color: rgba(255, 255, 255, 0.1);
}

.testimonial-text {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    margin-right: 15px;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.author-info {
    flex: 1;
}

.author-name {
    font-weight: 600;
    margin-bottom: 5px;
}

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

/* CTA Section */
.cta-section {
    padding: 100px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(110, 69, 226, 0.2), rgba(255, 122, 89, 0.2));
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-size: 42px;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ffffff, #b19eff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-description {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.secondary-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Floating elements */
.floating-element {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(110, 69, 226, 0.3), rgba(255, 122, 89, 0.3));
    filter: blur(60px);
    z-index: -1;
}

.floating-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
}

.floating-2 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    right: -200px;
}

/* Responsive */
@media (max-width: 992px) {
    .showcase-container {
        flex-direction: column;
        gap: 40px;
    }
    
    .showcase-container.reverse {
        flex-direction: column;
    }
    
    .showcase-image {
        order: -1;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .hero h1, .showcase-title, .cta-title {
        font-size: 32px;
    }
    
    .features-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .discord-preview {
        max-width: 100%;
    }
}

.glassmorphic-container {
    background: rgba(31, 23, 51, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    min-height: 400px;
}

.table {
    width: 100%;
    margin-bottom: 1rem;
    color: var(--text);
    background-color: transparent;
    border-collapse: separate;
    border-spacing: 0 5px;
    
    th, td {
        padding: 1rem 1.25rem;
        vertical-align: middle;
        border: none;
        text-align: left;
    }
    
    thead th {
        background-color: rgba(255, 255, 255, 0.05);
        color: var(--text);
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.85rem;
        letter-spacing: 0.5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    tbody tr {
        background-color: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        transition: background-color 0.2s ease, transform 0.2s ease;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    tbody tr:nth-of-type(odd) {
        background-color: rgba(255, 255, 255, 0.04);
    }

    tbody tr:hover {
        background-color: rgba(255, 255, 255, 0.08);
        transform: translateY(-2px);
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    }
}