:root {
    --bg-color: #030014;
    --text-color: #ffffff;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(255, 255, 255, 0.03);
    --primary-color: #7042f8;
    --primary-glow: #a855f7;
    --secondary-glow: #0ea5e9;
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --container-width: 1200px;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
}

/* Cosmic Background */
.background-gradients {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, #1a103c 0%, #030014 60%);
}

/* Stars */
.background-gradients::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(white 1px, transparent 1.2px),
        radial-gradient(white 1px, transparent 1.2px);
    background-size: 50px 50px, 100px 100px;
    background-position: 0 0, 25px 25px;
    opacity: 0.3;
    animation: twinkle 5s ease-in-out infinite alternate;
}

/* Nebula Glow */
.background-gradients::after {
    content: '';
    position: absolute;
    top: -20%;
    left: 20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(112, 66, 248, 0.2) 0%, transparent 70%);
    filter: blur(60px);
    animation: float 10s ease-in-out infinite;
}

@keyframes twinkle {
    0% {
        opacity: 0.2;
    }

    100% {
        opacity: 0.4;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, 20px);
    }
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(3, 0, 20, 0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(112, 66, 248, 0.5));
}

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

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-links a:hover {
    color: var(--text-color);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Buttons */
.btn {
    padding: 10px 24px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn.btn-primary {
    background: linear-gradient(90deg, #7042f8, #a855f7);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(112, 66, 248, 0.3);
}

.btn.btn-primary:hover {
    box-shadow: 0 0 30px rgba(112, 66, 248, 0.6);
    transform: translateY(-1px);
}

.btn.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn.btn-primary:hover::before {
    left: 100%;
}

.btn.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

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

.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-color);
}

/* Hero Section */
.hero {
    padding: 220px 0 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
    /* Ensure planet doesn't spill out */
}

.hero h1 {
    font-size: 5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    background: linear-gradient(180deg, #fff, #a5a5a5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.1);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 48px;
    line-height: 1.6;
}

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

/* Features Section (Glass Cards) */
.features {
    padding: 120px 0;
}

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

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    backdrop-filter: blur(10px);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

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

/* Spotlight Effect */
.card-spotlight {
    pointer-events: none;
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(112, 66, 248, 0.15), transparent 40%);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 1;
}

.card:hover .card-spotlight {
    opacity: 1;
}

.icon-box {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(112, 66, 248, 0.2), rgba(168, 85, 247, 0.1));
    border: 1px solid rgba(112, 66, 248, 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: #a855f7;
    box-shadow: 0 0 20px rgba(112, 66, 248, 0.1);
}

.card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-color);
    position: relative;
    z-index: 2;
}

.card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* Integrations Section */
.integrations {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.2);
}

.integrations-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.integration-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 12px 28px;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: all 0.3s;
    backdrop-filter: blur(5px);
}

.integration-item:hover {
    color: var(--text-color);
    border-color: var(--primary-color);
    background: rgba(112, 66, 248, 0.1);
    box-shadow: 0 0 15px rgba(112, 66, 248, 0.2);
    transform: translateY(-2px);
}

/* Pricing Section */
.pricing {
    padding: 140px 0;
}

.pricing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid var(--border-color);
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.toggle-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.toggle-label.active {
    color: var(--text-color);
    font-weight: 600;
}

.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: var(--primary-color);
}

input:checked+.slider:before {
    transform: translateX(20px);
}

.discount-badge {
    background: linear-gradient(90deg, #7042f8, #a855f7);
    color: white;
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 100px;
    font-weight: 700;
    box-shadow: 0 0 10px rgba(112, 66, 248, 0.4);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: start;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 40px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(112, 66, 248, 0.3);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

.pricing-card.popular {
    background: linear-gradient(180deg, rgba(112, 66, 248, 0.05), rgba(0, 0, 0, 0));
    border-color: rgba(112, 66, 248, 0.5);
    box-shadow: 0 0 30px rgba(112, 66, 248, 0.1);
}

.popular-badge {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 6px 16px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(112, 66, 248, 0.4);
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.plan-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
    min-height: 48px;
}

.price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 32px;
    display: flex;
    align-items: baseline;
    gap: 4px;
    color: var(--text-color);
}

.price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.features-list {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.features-list li svg {
    width: 20px;
    height: 20px;
    color: var(--primary-glow);
    flex-shrink: 0;
}

.btn-full {
    width: 100%;
    text-align: center;
}

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--border-color);
    background: rgba(0, 0, 0, 0.3);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
}

.footer-brand h4 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    font-weight: 700;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.95rem;
    max-width: 300px;
    line-height: 1.6;
}

.footer-links-group {
    display: flex;
    gap: 80px;
}

.link-col h5 {
    font-size: 1rem;
    margin-bottom: 24px;
    color: var(--text-color);
    font-weight: 600;
}

.link-col a {
    display: block;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    margin-bottom: 14px;
    transition: color 0.2s;
}

.link-col a:hover {
    color: var(--primary-glow);
}

.copyright {
    text-align: center;
    color: #52525b;
    font-size: 0.9rem;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Advanced Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.5s;
}

/* Responsive */
@media (max-width: 1024px) {

    .grid-3,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {

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

    .hero h1 {
        font-size: 2.5rem;
    }

    .nav-links {
        display: none;
    }

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

    .footer-content {
        flex-direction: column;
        gap: 40px;
    }

    .footer-links-group {
        flex-wrap: wrap;
        gap: 40px;
    }
}

/* Canvas Background */
#starfield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}