/* ─── Reset ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #0F172A;
    color: #F8FAFC;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 14px 0;
    background: transparent;
    transition: all 0.2s ease;
}
.navbar.scrolled {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #334155;
    padding: 10px 0;
}

.nav-container { display: flex; align-items: center; justify-content: space-between; }

.nav-logo {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 1.125rem; color: #F8FAFC;
}

.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 0.875rem; font-weight: 500; color: #94A3B8; transition: color 0.15s; }
.nav-links a:hover { color: #F8FAFC; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.btn-ghost-nav {
    padding: 7px 14px; font-size: 0.875rem; font-weight: 500;
    color: #94A3B8; border-radius: 0.5rem; transition: all 0.15s;
}
.btn-ghost-nav:hover { color: #F8FAFC; background: rgba(255,255,255,0.05); }

.btn-primary-nav {
    padding: 7px 18px; font-size: 0.875rem; font-weight: 600;
    color: white; background: #2563EB; border-radius: 0.5rem; transition: background 0.15s;
}
.btn-primary-nav:hover { background: #1D4ED8; }

.mobile-menu-btn {
    display: none; flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-menu-btn span { width: 20px; height: 2px; background: #94A3B8; border-radius: 1px; }

.mobile-menu {
    display: none; flex-direction: column; padding: 12px 24px 20px; gap: 10px;
    background: #0F172A; border-top: 1px solid #334155;
}
.mobile-menu a { font-size: 0.9rem; font-weight: 500; color: #94A3B8; padding: 8px 0; }
.mobile-menu .mobile-cta { text-align: center; margin-top: 8px; display: block; }

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
    padding: 160px 0 80px;
    border-bottom: 1px solid #334155;
}
.hero-content { max-width: 720px; }

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 16px; border-radius: 9999px;
    background: rgba(16, 185, 129, 0.08); border: 1px solid rgba(16, 185, 129, 0.2);
    font-size: 0.8125rem; font-weight: 500; color: #10B981;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 800; line-height: 1.15;
    letter-spacing: -0.025em; margin-bottom: 20px;
}
.text-primary { color: #2563EB; }

.hero-subtitle {
    font-size: 1.1rem; color: #94A3B8; max-width: 560px;
    line-height: 1.65; margin-bottom: 32px;
}

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }

.btn-primary-lg {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; font-size: 0.9375rem; font-weight: 600;
    color: white; background: #2563EB; border-radius: 0.5rem;
    transition: all 0.15s;
}
.btn-primary-lg:hover { background: #1D4ED8; transform: translateY(-1px); }

.btn-outline-lg {
    display: inline-flex; align-items: center;
    padding: 14px 32px; font-size: 0.9375rem; font-weight: 500;
    color: #94A3B8; border: 1px solid #334155; border-radius: 0.5rem;
    transition: all 0.15s;
}
.btn-outline-lg:hover { border-color: #475569; color: #F8FAFC; }

.hero-social-proof {
    display: flex; align-items: center; gap: 12px;
    font-size: 0.875rem; color: #64748B;
}
.hero-social-proof strong { color: #F8FAFC; font-weight: 600; }

.avatar-stack { display: flex; }
.avatar {
    width: 28px; height: 28px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 600; color: white;
    border: 2px solid #0F172A; margin-left: -6px;
}
.avatar:first-child { margin-left: 0; }

/* ─── Sections (shared) ──────────────────────────────────── */
.section-header { margin-bottom: 48px; }
.section-header-center { text-align: center; }

.section-overline {
    font-size: 0.75rem; font-weight: 600; color: #2563EB;
    text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px;
}
.section-title {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 800; line-height: 1.2; letter-spacing: -0.02em;
    max-width: 540px;
}
.section-title-center { margin: 0 auto; }
.section-desc { font-size: 1rem; color: #94A3B8; margin-top: 8px; }

/* ─── Pain Calculator ───────────────────────────────────── */
.pain-calculator { padding: 80px 0; border-bottom: 1px solid #334155; }

.calculator-card {
    max-width: 800px; margin: 0 auto;
    padding: 40px; border-radius: 0.75rem;
    background: #1E293B; border: 1px solid #334155;
}

.calc-row {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; flex-wrap: wrap; margin-bottom: 32px;
}

.calc-item { text-align: center; }
.calc-number {
    font-size: 2rem; font-weight: 800; color: #F8FAFC; line-height: 1;
}
.calc-label { font-size: 0.75rem; color: #64748B; margin-top: 4px; }

.calc-operator {
    font-size: 1.5rem; font-weight: 300; color: #475569;
}

.calc-result {
    text-align: center; padding: 24px;
    border-radius: 0.5rem; background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15); margin-bottom: 20px;
}
.calc-result-label { font-size: 0.875rem; color: #EF4444; font-weight: 600; margin-bottom: 4px; }
.calc-result-amount {
    font-size: 2.5rem; font-weight: 800; color: #EF4444; line-height: 1.2;
}
.calc-result-amount span { font-size: 1rem; font-weight: 500; color: #94A3B8; }
.calc-result-annual { font-size: 1rem; color: #F87171; margin-top: 4px; }

.calc-conclusion {
    text-align: center; font-size: 1rem; color: #94A3B8;
}
.calc-conclusion strong { color: #F8FAFC; }

/* ─── Features ───────────────────────────────────────────── */
.features { padding: 80px 0; border-bottom: 1px solid #334155; }

.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

.feature-card {
    padding: 28px; border-radius: 0.75rem;
    background: #1E293B; border: 1px solid #334155;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { border-color: #475569; transform: translateY(-2px); }

.feature-lg { grid-column: span 2; }

.feature-icon {
    width: 40px; height: 40px; border-radius: 0.5rem;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.icon-blue { background: rgba(37, 99, 235, 0.1); color: #2563EB; }
.icon-green { background: rgba(16, 185, 129, 0.1); color: #10B981; }
.icon-yellow { background: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.icon-red { background: rgba(239, 68, 68, 0.1); color: #EF4444; }
.icon-accent { background: rgba(6, 182, 212, 0.1); color: #06B6D4; }

.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.feature-card p { font-size: 0.875rem; color: #94A3B8; line-height: 1.6; }

.feature-killer {
    margin-top: 12px; padding-top: 12px; border-top: 1px solid #334155;
    font-size: 0.8125rem !important; color: #2563EB !important;
    font-weight: 500 !important; font-style: italic;
}

.feature-sub-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.feature-sub-tags span {
    padding: 3px 10px; border-radius: 0.375rem;
    background: rgba(37, 99, 235, 0.08); border: 1px solid rgba(37, 99, 235, 0.15);
    font-size: 0.75rem; font-weight: 500; color: #3B82F6;
}

/* ─── AI Section ─────────────────────────────────────────── */
.ai-section { padding: 80px 0; border-bottom: 1px solid #334155; }

.ai-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}

.ai-desc { font-size: 1rem; color: #94A3B8; line-height: 1.7; margin-bottom: 24px; margin-top: 16px; }

.ai-features { list-style: none; }
.ai-features li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 0.9375rem; color: #CBD5E1; padding: 6px 0;
}
.ai-features li svg { flex-shrink: 0; margin-top: 3px; }

.chat-window {
    border-radius: 12px; overflow: hidden;
    background: #1E293B; border: 1px solid #334155;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.chat-header {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 16px; border-bottom: 1px solid #334155;
    background: #0F172A;
}
.chat-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: #2563EB; display: flex; align-items: center; justify-content: center;
    font-size: 16px;
}
.chat-name { font-size: 0.875rem; font-weight: 600; color: #F8FAFC; }
.chat-status { font-size: 0.6875rem; color: #64748B; }

.chat-messages { padding: 16px; display: flex; flex-direction: column; gap: 12px; }

.chat-msg {
    max-width: 85%; padding: 10px 14px; border-radius: 12px;
    font-size: 0.8125rem; line-height: 1.55;
}
.chat-msg.user {
    background: #2563EB; color: white; align-self: flex-end;
    border-bottom-right-radius: 4px;
}
.chat-msg.bot {
    background: #0F172A; color: #CBD5E1; align-self: flex-start;
    border: 1px solid #334155; border-bottom-left-radius: 4px;
}

/* ─── Security ───────────────────────────────────────────── */
.security { padding: 80px 0; border-bottom: 1px solid #334155; background: #0F172A; }

.security-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

.security-item {
    padding: 24px; border-radius: 0.75rem;
    background: #1E293B; border: 1px solid #334155;
    text-align: center;
    transition: border-color 0.2s;
}
.security-item:hover { border-color: #475569; }

.security-icon { font-size: 1.75rem; margin-bottom: 12px; }
.security-item h4 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 6px; }
.security-item p { font-size: 0.8125rem; color: #94A3B8; line-height: 1.5; }

/* ─── How it Works ───────────────────────────────────────── */
.how-it-works { padding: 80px 0; border-bottom: 1px solid #334155; }

.steps-grid { display: flex; align-items: center; justify-content: center; gap: 20px; }

.step-card {
    flex: 1; max-width: 260px; padding: 28px;
    border-radius: 0.75rem; background: #1E293B; border: 1px solid #334155;
    text-align: center;
}
.step-number {
    font-size: 2rem; font-weight: 800; color: #2563EB; margin-bottom: 10px;
}
.step-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.step-card p { font-size: 0.8125rem; color: #94A3B8; }

.step-divider { width: 32px; height: 2px; background: #334155; flex-shrink: 0; }

/* ─── Pricing ────────────────────────────────────────────── */
.pricing { padding: 80px 0; border-bottom: 1px solid #334155; }

/* Toggle */
.pricing-toggle {
    display: flex; align-items: center; justify-content: center;
    gap: 12px; margin-bottom: 40px;
}
.toggle-label { font-size: 0.875rem; font-weight: 500; color: #64748B; transition: color 0.2s; }
.toggle-label.toggle-active { color: #F8FAFC; font-weight: 600; }

.toggle-switch {
    position: relative; width: 48px; height: 26px;
    background: #334155; border: none; border-radius: 9999px;
    cursor: pointer; transition: background 0.2s;
}
.toggle-knob {
    position: absolute; top: 3px; left: 3px;
    width: 20px; height: 20px; border-radius: 50%;
    background: #F8FAFC; transition: transform 0.2s;
}
.toggle-switch.monthly .toggle-knob { transform: translateX(22px); }
.toggle-switch.monthly { background: #475569; }

.toggle-save {
    font-size: 0.75rem; font-weight: 600; color: #10B981;
    background: rgba(16, 185, 129, 0.1); padding: 3px 10px; border-radius: 9999px;
    transition: opacity 0.2s;
}

/* Grid */
.pricing-grid {
    display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px;
    align-items: start;
}

.price-card {
    position: relative; padding: 32px; border-radius: 0.75rem;
    background: #1E293B; border: 1px solid #334155;
}

.price-featured {
    border-color: #2563EB;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3), 0 8px 24px rgba(37, 99, 235, 0.1);
    padding: 36px;
}

.featured-badge {
    position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
    padding: 3px 14px; border-radius: 9999px;
    background: #2563EB; font-size: 0.75rem; font-weight: 600;
    color: white; white-space: nowrap;
}

.price-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 4px; }
.price-desc { font-size: 0.8125rem; color: #64748B; margin-bottom: 16px; }

.price-amount { display: flex; align-items: baseline; gap: 2px; margin-bottom: 4px; }
.price-currency { font-size: 1.25rem; font-weight: 600; color: #94A3B8; }
.price-value { font-size: 3rem; font-weight: 800; line-height: 1; color: #F8FAFC; }
.price-period { font-size: 0.875rem; color: #64748B; font-weight: 500; }

.price-billing {
    font-size: 0.75rem; color: #64748B; margin-bottom: 20px;
    min-height: 18px;
}

.price-features { list-style: none; margin-bottom: 24px; }
.price-features li {
    padding: 5px 0; font-size: 0.875rem; color: #94A3B8;
    display: flex; align-items: flex-start; gap: 8px;
}
.price-features li .check { color: #10B981; font-weight: 700; flex-shrink: 0; }
.price-features li strong { color: #F8FAFC; }

.btn-outline-card {
    display: block; text-align: center; padding: 10px 20px;
    border-radius: 0.5rem; font-size: 0.875rem; font-weight: 600;
    color: #94A3B8; background: transparent; border: 1px solid #334155;
    transition: all 0.15s;
}
.btn-outline-card:hover { border-color: #475569; color: #F8FAFC; }

.btn-primary-card {
    display: block; text-align: center; padding: 12px 20px;
    border-radius: 0.5rem; font-size: 0.9375rem; font-weight: 700;
    color: white; background: #2563EB; transition: all 0.15s;
}
.btn-primary-card:hover { background: #1D4ED8; transform: translateY(-1px); }

.pricing-guarantee {
    text-align: center; max-width: 640px; margin: 32px auto 0;
    font-size: 0.875rem; color: #64748B; line-height: 1.6;
}
.pricing-guarantee strong { color: #F8FAFC; }

/* price monthly strike */
.price-value.monthly-strike {
    text-decoration: line-through; text-decoration-color: #EF4444;
    color: #64748B;
}

/* ─── FAQ ────────────────────────────────────────────────── */
.faq { padding: 80px 0; border-bottom: 1px solid #334155; }
.faq-list { max-width: 640px; }

.faq-item { border-bottom: 1px solid #334155; padding: 16px 0; }
.faq-item summary {
    font-size: 0.9375rem; font-weight: 600; color: #F8FAFC;
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary:hover { color: #3B82F6; }
.faq-item summary::after { content: '+'; font-size: 1.25rem; color: #64748B; }
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 10px; font-size: 0.875rem; color: #94A3B8; line-height: 1.7; }

/* ─── Final CTA ──────────────────────────────────────────── */
.final-cta {
    padding: 80px 0; text-align: center;
    background: #1E293B;
}
.final-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; margin-bottom: 10px; }
.final-cta p { font-size: 1rem; color: #94A3B8; margin-bottom: 24px; }
.final-cta .btn-primary-lg { display: inline-flex; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer { padding: 48px 0 24px; border-top: 1px solid #334155; }

.footer-top { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 32px; }
.footer-brand p { margin-top: 10px; font-size: 0.8125rem; color: #64748B; max-width: 280px; line-height: 1.6; }

.footer-links { display: flex; gap: 48px; }
.footer-col h4 {
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.08em; color: #64748B; margin-bottom: 12px;
}
.footer-col a { display: block; font-size: 0.875rem; color: #94A3B8; padding: 3px 0; transition: color 0.15s; }
.footer-col a:hover { color: #F8FAFC; }

.footer-bottom { padding-top: 24px; border-top: 1px solid #334155; text-align: center; }
.footer-bottom p { font-size: 0.75rem; color: #64748B; }

/* ─── Animations (Scroll Reveal) ─────────────────────────── */
.reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1; transform: translateY(0);
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 968px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .feature-lg { grid-column: span 2; }
    .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
    .price-featured { padding: 32px; }
    .ai-grid { grid-template-columns: 1fr; gap: 32px; }
    .security-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { flex-direction: column; }
    .step-divider { width: 2px; height: 24px; }
    .calc-row { gap: 12px; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-btn { display: flex; }
    .mobile-menu.open { display: flex; }
    .hero { padding: 120px 0 60px; }
    .features-grid { grid-template-columns: 1fr; }
    .feature-lg { grid-column: span 1; }
    .security-grid { grid-template-columns: 1fr; }
    .footer-top { flex-direction: column; }
    .footer-links { flex-direction: column; gap: 24px; }
    .calc-operator { display: none; }
    .calc-row { gap: 20px; }
    .calc-result-amount { font-size: 2rem; }
}

@media (max-width: 480px) {
    .hero-cta { flex-direction: column; }
    .btn-primary-lg, .btn-outline-lg { width: 100%; justify-content: center; }
    .hero-social-proof { flex-direction: column; text-align: center; }
    .pricing-toggle { flex-wrap: wrap; }
}
