:root {
    --bs-primary: #6366f1;
    --bs-primary-rgb: 99, 102, 241;
    --bs-secondary: #0ea5e9;
    --bs-secondary-rgb: 14, 165, 233;
    --bs-success: #10b981;
    --bs-warning: #f59e0b;
    --bs-danger: #ef4444;
    --bs-dark: #0f172a;
    --bs-gray: #64748b;
    --bs-light: #f1f5f9;
    
    --gradient: linear-gradient(135deg, #6366f1 0%, #0ea5e9 100%);
    --gradient-card: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(14, 165, 233, 0.1) 100%);
}

body {
    font-family: 'Space Grotesk', sans-serif;
    color: var(--bs-dark);
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
}

.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'DM Sans', sans-serif;
}

.nav-link {
    font-weight: 500;
    color: var(--bs-dark) !important;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--bs-primary) !important;
}

.btn-primary {
    background: var(--gradient);
    border: none;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

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

.hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: white;
    padding: 8rem 0 10rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.15) 0%, transparent 50%);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.02)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
}

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

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

/* Section Headers */
.section-label {
    display: inline-block;
    background: var(--gradient-card);
    color: var(--bs-primary);
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(99, 102, 241, 0.2);
    margin-bottom: 1rem;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

.premium-card {
    background: white;
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border-top: 6px solid;
    border-image: var(--gradient) 1;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
}

.premium-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.15);
}

.card-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.3);
}

.feature-card {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-card);
    opacity: 0;
    transition: opacity 0.4s;
}

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

.feature-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.15);
}

.feature-icon {
    width: 90px;
    height: 90px;
    background: var(--gradient);
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: white;
    position: relative;
    z-index: 1;
    box-shadow: 0 12px 28px rgba(99, 102, 241, 0.3);
}

.feature-card h3,
.feature-card p {
    position: relative;
    z-index: 1;
}

.pricing-card {
    background: white;
    border-radius: 28px;
    padding: 3rem 2.5rem;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border: 2px solid transparent;
    transition: all 0.4s;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(99, 102, 241, 0.2);
    border-color: var(--bs-primary);
}

.pricing-card.featured {
    border: 3px solid var(--bs-primary);
    transform: scale(1.05);
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: white;
    padding: 0.6rem 2rem;
    border-radius: 25px;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
}

.price-main {
    font-size: 32px;
    font-weight: 900;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.price-old {
    font-size: 1.75rem;
    color: var(--bs-gray);
    text-decoration: line-through;
}

.accordion-button {
    font-weight: 600;
    font-size: 1.1rem;
    background: white;
}

.accordion-button:not(.collapsed) {
    background: var(--gradient-card);
    color: var(--bs-primary);
    box-shadow: none;
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--bs-primary);
}

.accordion-item {
    border-radius: 16px;
    margin-bottom: 1rem;
    border: 1px solid rgba(0,0,0,0.08);
    overflow: hidden;
}

.accordion-item:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}

.page-hero {
    background: var(--gradient);
    color: white;
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.docs-sidebar {
    position: sticky;
    top: 100px;
}

.docs-sidebar .nav-link {
    color: var(--bs-gray);
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.docs-sidebar .nav-link:hover,
.docs-sidebar .nav-link.active {
    background: var(--bs-light);
    color: var(--bs-primary);
}

.code-block {
    background: #0f172a;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
}

.alert-info {
    background: #eff6ff;
    border-left: 4px solid var(--bs-primary);
    border-radius: 8px;
}

footer {
    background: var(--bs-dark);
    color: white;
    padding: 4rem 0 2rem;
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.social-links a:hover {
    background: var(--bs-primary);
    transform: translateY(-3px);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}