@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;600;700&display=swap');

:root {
    /* Colors */
    --bg: #050507;
    --surface: rgba(255, 255, 255, 0.03);
    --surface-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --primary: #6366f1;
    --primary-light: #818cf8;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #a855f7;
    --accent: #22d3ee;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    
    /* Gradients */
    --grad-nebula: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --grad-glass: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

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

/* --- Layout --- */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
    background: rgba(5, 5, 7, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

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

.logo {
    font-size: 1.4rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

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

.nav-links a:hover {
    color: white;
}

/* --- Background Nebula --- */
.nebula-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: 
        radial-gradient(circle at 80% 20%, var(--primary-glow) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.15) 0%, transparent 40%);
}

.nebula-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("assets/hero-bg.png");
    background-size: cover;
    background-position: center;
    opacity: 0.05;
    mix-blend-mode: overlay;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.8rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Outfit', sans-serif;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--grad-nebula);
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border);
    color: white;
}

.btn-outline:hover {
    background: var(--surface-hover);
    border-color: var(--primary);
}

.btn-paypal {
    border-color: rgba(0, 156, 222, 0.45);
}

.btn-paypal:hover {
    border-color: rgba(0, 156, 222, 0.85);
    box-shadow: 0 8px 25px rgba(0, 156, 222, 0.15);
}

/* --- Modal --- */
.modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal.open {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.modal-panel {
    position: relative;
    width: min(560px, calc(100vw - 2rem));
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(10, 10, 14, 0.9);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--border);
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.modal-body {
    padding: 1.2rem;
    display: grid;
    gap: 0.9rem;
}

.modal-note {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* --- Controls --- */
.section-header {
    text-align: center;
    margin-bottom: 5rem;
    margin-top: 8rem;
}

.section-header h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: var(--grad-nebula);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.control-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.tab-switcher {
    background: rgba(255, 255, 255, 0.03);
    padding: 0.4rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    display: flex;
    gap: 0.2rem;
}

.tab-btn {
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    font-family: 'Outfit';
}

.tab-btn.active {
    background: var(--surface-hover);
    color: white;
    box-shadow: inset 0 0 0 1px var(--border);
}

.billing-toggle {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.switch {
    width: 50px;
    height: 26px;
    position: relative;
    display: inline-block;
}

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

.slider {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 34px;
    transition: 0.4s;
    cursor: pointer;
}

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

input:checked + .slider { background: var(--primary); }
input:checked + .slider:before { transform: translateX(24px); }

/* --- Pricing Grid --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 8rem;
}

.card {
    background: var(--grad-glass);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.card.popular {
    border-color: var(--primary);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%);
}

.badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--grad-nebula);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
}

.card-header h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.card-header p { color: var(--text-muted); font-size: 0.95rem; }

.price-display {
    margin-top: 1.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.original-price {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.6;
    width: 100%;
    margin-bottom: -0.5rem;
}

.price-display .currency { font-size: 1.5rem; color: var(--text-muted); }
.price-display .amount { font-size: 3.5rem; font-weight: 700; font-family: 'Outfit'; }
.price-display .period { color: var(--text-muted); font-size: 1rem; }

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.feature-list svg {
    width: 20px;
    height: 20px;
    color: var(--primary-light);
    flex-shrink: 0;
    margin-top: 2px;
}

.action-area {
    margin-top: auto;
    width: 100%;
}

/* PayPal Button Fix */
.paypal-wrapper {
    width: 100%;
    min-height: 48px;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 968px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .section-header h1 { font-size: 2.5rem; }
}
