* { margin: 0; padding: 0; box-sizing: border-box; }

body { font-family: 'Inter', sans-serif; color: #1e293b; background: #fff; }

/* Design tokens */
:root {
    --cvg-bg: #ffffff;
    --cvg-surface: #ffffff;
    --cvg-surface-2: #f8fafc;
    --cvg-border: #e2e8f0;
    --cvg-text: #0f172a;
    --cvg-muted: #64748b;
    --cvg-primary: #2563eb;
    --cvg-primary-2: #7c3aed;
    --cvg-success: #22c55e;
    --cvg-shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --cvg-shadow-md: 0 10px 40px rgba(0,0,0,0.08);
    --cvg-radius: 16px;
}

/* Better mobile tap/scroll behavior */
html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* Subtle gradient background */
.page-bg {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(147, 51, 234, 0.03) 0%, transparent 50%);
    z-index: -1;
}

nav {
    background: rgba(255,255,255,0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav .container { max-width: 1200px; margin: 0 auto; padding: 20px 40px; display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 24px; font-weight: 900; background: linear-gradient(135deg, #2563eb, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; text-decoration: none; }
nav a { color: #64748b; text-decoration: none; margin-left: 35px; font-weight: 600; transition: color 0.2s; }
nav a:hover { color: #2563eb; }

.hero { padding: 120px 40px 100px; text-align: center; position: relative; }
h1 {
    font-size: 64px;
    font-weight: 900;
    background: linear-gradient(135deg, #0f172a 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 24px;
    line-height: 1.1;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.subtitle { font-size: 24px; color: #475569; margin-bottom: 48px; animation: fadeInUp 0.8s ease-out 0.2s backwards; }

.stats-bar {
    background: white;
    max-width: 1200px;
    margin: -60px auto 0;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.stat { text-align: center; transition: transform 0.3s; }
.stat:hover { transform: translateY(-8px); }
.stat-number { font-size: 56px; font-weight: 900; background: linear-gradient(135deg, #2563eb, #7c3aed); -webkit-background-clip: text; -webkit-text-fill-color: transparent; display: block; margin-bottom: 12px; }
.stat-label { font-size: 14px; color: #64748b; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; }

.section { max-width: 1200px; margin: 120px auto; padding: 0 40px; }
.section-title { font-size: 48px; font-weight: 900; color: #0f172a; text-align: center; margin-bottom: 24px; }
.section-subtitle { font-size: 20px; color: #64748b; text-align: center; margin-bottom: 60px; max-width: 800px; margin-left: auto; margin-right: auto; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 32px; }

.feature {
    background: white;
    padding: 48px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #2563eb, #7c3aed);
    transform: scaleX(0);
    transition: transform 0.4s;
}

.feature:hover::before { transform: scaleX(1); }
.feature:hover {
    border-color: #2563eb;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
    transform: translateY(-8px);
}

.feature-icon { font-size: 56px; margin-bottom: 24px; filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.2)); }
.feature h3 { font-size: 24px; font-weight: 700; color: #0f172a; margin-bottom: 16px; }
.feature p { color: #475569; font-size: 16px; line-height: 1.8; }

.btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before { width: 300px; height: 300px; }

.btn-primary { background: linear-gradient(135deg, #2563eb, #1d4ed8); color: white; box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5); }

.btn-success { background: linear-gradient(135deg, #22c55e, #16a34a); color: white; box-shadow: 0 4px 14px rgba(34, 197, 94, 0.4); }
.btn-success:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(34, 197, 94, 0.5); }

.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; max-width: 1400px; margin: 0 auto; }

.price-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 40px;
    transition: all 0.4s;
    position: relative;
}

.price-card:hover { border-color: #2563eb; box-shadow: 0 12px 48px rgba(37, 99, 235, 0.15); transform: translateY(-8px); }

.price-card.popular {
    border-color: #2563eb;
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(37, 99, 235, 0.2);
}

/* Mobile: avoid overflow due to scaled card */
@media (max-width: 768px) {
    .price-card.popular {
        transform: none;
    }
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 32px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    padding: 6px 20px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.cta {
    text-align: center;
    padding: 120px 40px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #7c3aed 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    top: -300px;
    right: -300px;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(50px, 50px) rotate(180deg); }
}

.cta h2 { font-size: 48px; font-weight: 900; margin-bottom: 24px; position: relative; z-index: 1; }
.cta p { font-size: 22px; margin-bottom: 40px; opacity: 0.95; position: relative; z-index: 1; }

footer { background: #0f172a; color: #94a3b8; padding: 80px 40px; text-align: center; }
footer a { color: #60a5fa; text-decoration: none; transition: color 0.2s; }
footer a:hover { color: #93c5fd; }

.faq {
    background: white;
    border: 1px solid #e2e8f0;
    border-left: 4px solid #2563eb;
    border-radius: 12px;
    padding: 32px;
    margin: 20px 0;
    transition: all 0.3s;
}

.faq:hover {
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.1);
    transform: translateX(4px);
}

.faq h4 { color: #0f172a; font-size: 19px; margin-bottom: 12px; font-weight: 700; }
.faq p { color: #475569; line-height: 1.8; font-size: 16px; }

/* Content pages */
.content-page { max-width: 900px; margin: 60px auto; padding: 0 40px; }
.content-page h1 { font-size: 48px; font-weight: 900; color: #0f172a; margin-bottom: 24px; }
.content-page h2 { font-size: 32px; font-weight: 700; color: #0f172a; margin: 48px 0 24px; }
.content-page h3 { font-size: 24px; font-weight: 700; color: #0f172a; margin: 32px 0 16px; }
.content-page p { font-size: 18px; line-height: 1.8; color: #475569; margin-bottom: 20px; }
.content-page ul, .content-page ol { margin: 20px 0 20px 40px; color: #475569; font-size: 18px; line-height: 1.8; }
.content-page li { margin-bottom: 12px; }
.content-page code { background: #f1f5f9; padding: 4px 8px; border-radius: 4px; font-family: 'Courier New', monospace; font-size: 16px; color: #1e293b; }
.content-page pre { background: #0f172a; color: #e2e8f0; padding: 24px; border-radius: 12px; overflow-x: auto; margin: 24px 0; }
.content-page pre code { background: none; color: inherit; padding: 0; }
.content-page a { color: #2563eb; text-decoration: underline; }
.content-page a:hover { color: #1d4ed8; }

.info-box {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(124, 58, 237, 0.05));
    border-left: 4px solid #2563eb;
    padding: 24px;
    border-radius: 8px;
    margin: 32px 0;
}

.info-box strong { color: #2563eb; }

@media (max-width: 768px) {
    h1 { font-size: 40px; }
    .subtitle { font-size: 18px; }
    nav .container { flex-direction: column; gap: 20px; }
    nav a { margin: 0 15px; }
    .features { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .content-page { padding: 0 20px; }
    .content-page h1 { font-size: 32px; }

    /* Reduce huge vertical spacing on mobile */
    .hero { padding: 80px 20px 60px; }
    .section { margin: 70px auto; padding: 0 20px; }
    .stats-bar { margin: -40px auto 0; padding: 28px; gap: 22px; }
    .feature { padding: 28px; }
    .price-card { padding: 28px; }
    .cta { padding: 80px 20px; }
    footer { padding: 60px 20px; }
}

@media (max-width: 480px) {
    h1 { font-size: 34px; }
    .section-title { font-size: 32px; }
    .section-subtitle { font-size: 16px; }
    nav .container { padding: 16px 18px; }
}

/* Better readability & consistent tables inside content pages */
.content-page table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid var(--cvg-border);
    background: var(--cvg-surface);
    margin: 24px 0;
}

.content-page th,
.content-page td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--cvg-border);
    text-align: left;
}

.content-page th {
    background: #f1f5f9;
    color: var(--cvg-text);
    font-weight: 700;
}

.content-page tr:last-child td {
    border-bottom: none;
}

.content-page blockquote {
    border-left: 4px solid var(--cvg-primary);
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05), rgba(124, 58, 237, 0.05));
    border-radius: 10px;
    margin: 22px 0;
    color: #334155;
}

/* Tighter feature cards when used inside content pages */
.content-page .features {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.content-page .feature {
    padding: 28px;
}

.content-page .feature-icon {
    font-size: 44px;
}
