/* ========== Reset & Base ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0b0f1a;
    color: #e0e0e0;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* ========== Particles Canvas ========== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ========== Navbar ========== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(11, 15, 26, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 0 0;
    transition: background 0.3s;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    -webkit-text-fill-color: #7c3aed;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links li a {
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #a0a0b0;
    transition: all 0.3s;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: #fff;
    background: rgba(124, 58, 237, 0.15);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 1.4rem;
    cursor: pointer;
}

/* ========== Hero ========== */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 20px 80px;
    background: radial-gradient(ellipse at top, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #9ca3af;
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

/* ========== Page Header (for sub-pages) ========== */
.page-header {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 140px 20px 60px;
    background: radial-gradient(ellipse at top, rgba(124, 58, 237, 0.15) 0%, transparent 60%);
}

.page-header h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, #fff 0%, #c4b5fd 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-header p {
    color: #9ca3af;
    font-size: 1.1rem;
    max-width: 560px;
    margin: 0 auto;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: #fff;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(124, 58, 237, 0.5);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
    border-radius: 12px;
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2, #7c3aed);
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(88, 101, 242, 0.5);
}

/* ========== Sections ========== */
.services,
.features,
.contact,
.pricing-section {
    position: relative;
    z-index: 1;
    padding: 80px 20px;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.section-subtitle {
    text-align: center;
    color: #9ca3af;
    font-size: 1.05rem;
    margin-bottom: 48px;
}

/* ========== Service Cards ========== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 28px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.15);
    background: rgba(255, 255, 255, 0.05);
}

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

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.2));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: #7c3aed;
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}

.service-card p {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.card-price {
    font-size: 0.95rem;
    color: #a0a0b0;
    margin-bottom: 24px;
}

.card-price span {
    font-size: 1.4rem;
    font-weight: 700;
    color: #06b6d4;
}

/* ========== Pricing Cards ========== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
    max-width: 1000px;
    margin: 0 auto;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7c3aed, #06b6d4);
    opacity: 0;
    transition: opacity 0.4s;
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 58, 237, 0.3);
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.15),
                0 0 60px rgba(124, 58, 237, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

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

.pricing-card.featured {
    border-color: rgba(124, 58, 237, 0.3);
    background: rgba(124, 58, 237, 0.06);
}

.pricing-card.featured::before {
    opacity: 1;
}

.plan-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.pricing-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 2.4rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.pricing-card .price span {
    font-size: 0.95rem;
    font-weight: 400;
    color: #9ca3af;
}

.pricing-card .price-period {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 28px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: #c0c0d0;
}

.pricing-features li i {
    color: #06b6d4;
    font-size: 0.8rem;
    width: 16px;
    text-align: center;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-note {
    text-align: center;
    color: #9ca3af;
    font-size: 0.85rem;
    margin-top: 32px;
    font-style: italic;
}

/* ========== Features Grid ========== */
.features {
    background: rgba(124, 58, 237, 0.03);
}

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

.feature-item {
    text-align: center;
    padding: 32px 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.3s;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-4px);
}

.feature-item i {
    font-size: 2rem;
    color: #7c3aed;
    margin-bottom: 16px;
}

.feature-item h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.feature-item p {
    color: #9ca3af;
    font-size: 0.85rem;
}

/* ========== Contact ========== */
.contact-options {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-item {
    text-align: center;
    padding: 32px 40px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.3s;
    min-width: 220px;
}

.contact-item:hover {
    transform: translateY(-4px);
    border-color: rgba(124, 58, 237, 0.3);
}

.contact-item i {
    font-size: 2rem;
    color: #7c3aed;
    margin-bottom: 12px;
}

.contact-item h4 {
    color: #fff;
    margin-bottom: 4px;
}

.contact-item p {
    color: #9ca3af;
    font-size: 0.9rem;
}

/* ========== Discord Section ========== */
.discord-section {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 40px 20px 60px;
}

/* ========== Footer ========== */
.footer {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 60px 20px 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    background: linear-gradient(135deg, #7c3aed, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-about p {
    color: #9ca3af;
    font-size: 0.9rem;
    line-height: 1.7;
}

.footer-links h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
}

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

.footer-links ul li a {
    color: #9ca3af;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: #7c3aed;
}

.footer-bottom {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: #6b7280;
    font-size: 0.85rem;
}

/* ========== Powered Popup ========== */
.powered-popup {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    background: rgba(124, 58, 237, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 16px 24px;
    color: #fff;
    font-size: 0.9rem;
    box-shadow: 0 8px 32px rgba(124, 58, 237, 0.3);
    animation: popupSlideIn 0.5s ease forwards;
    display: flex;
    align-items: center;
    gap: 16px;
}

.powered-popup.hidden {
    animation: popupSlideOut 0.4s ease forwards;
    pointer-events: none;
}

.popup-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    flex-shrink: 0;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.35);
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: translateX(60px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes popupSlideOut {
    from {
        opacity: 1;
        transform: translateX(0);
    }
    to {
        opacity: 0;
        transform: translateX(60px);
    }
}

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

.hero-title,
.hero-subtitle,
.hero .btn {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-subtitle {
    animation-delay: 0.15s;
    opacity: 0;
}

.hero .btn {
    animation-delay: 0.3s;
    opacity: 0;
}

/* ========== Responsive ========== */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(11, 15, 26, 0.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        padding: 16px 20px;
        gap: 4px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li a {
        display: block;
        padding: 12px 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .page-header h1 {
        font-size: 1.8rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .contact-options {
        flex-direction: column;
        align-items: center;
    }

    .powered-popup {
        right: 12px;
        bottom: 12px;
        font-size: 0.8rem;
        padding: 12px 16px;
    }
}

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

    .hero {
        padding: 100px 16px 60px;
    }

    .hero-title {
        font-size: 1.65rem;
    }
}
