:root {
    --primary: #1a1b4b;
    --primary-light: #2d2f6b;
    --primary-dark: #0f1035;
    --accent: #FF6B4A;
    --accent-light: #FF8A70;
    --accent-dark: #E5553A;
    --accent-growth: #12C2A3;
    --accent-growth-dark: #0A7D68;
    --accent-growth-soft: rgba(18,194,163,0.10);
    --text: #1a1a2e;
    --text-muted: #6B7280;
    --bg: #FFFFFF;
    --bg-alt: #F8F8FC;
    --border: #E5E7EB;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--text); -webkit-font-smoothing: antialiased; }

/* --- Nav --- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding: 0 48px; height: 72px; display: flex; align-items: center; justify-content: space-between; background: rgba(15,16,53,0.85); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.06); transition: background 0.3s; }
.nav.scrolled { background: rgba(255,255,255,0.95); backdrop-filter: blur(16px); border-bottom-color: var(--border); }
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 22px; color: #fff; }
.nav.scrolled .nav-logo { color: var(--primary); }
.nav-logo svg { width: 28px; height: 28px; }
.nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
.nav-links a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav.scrolled .nav-links a { color: var(--text-muted); }
.nav.scrolled .nav-links a:hover, .nav.scrolled .nav-links a.active { color: var(--text); font-weight: 600; }
.nav-cta { padding: 10px 24px; background: var(--accent); color: #fff; border-radius: 100px; font-size: 14px; font-weight: 600; text-decoration: none; transition: background 0.2s; }
.nav-cta:hover { background: var(--accent-dark); }
.nav-right { display: flex; align-items: center; gap: 24px; }
.nav-signin { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav.scrolled .nav-signin { color: var(--text-muted); }

/* --- Section shared --- */
.section { padding: 100px 48px; }
.section-dark { background: var(--primary-dark); color: #fff; }
.section-alt { background: var(--bg-alt); }
.section-center { text-align: center; }
.section-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--accent); margin-bottom: 12px; }
.section-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(28px, 3.5vw, 44px); font-weight: 700; letter-spacing: -1px; margin-bottom: 16px; line-height: 1.15; }
.section-desc { font-size: 17px; color: var(--text-muted); max-width: 600px; line-height: 1.6; }
.section-dark .section-desc { color: rgba(200,201,224,0.7); }
.container { max-width: 1200px; margin: 0 auto; }

/* --- Page hero (subpages) --- */
.page-hero { background: linear-gradient(145deg, #1a1b4b 0%, #0f1035 100%); padding: 140px 48px 80px; text-align: center; }
.page-hero .section-title { color: #fff; }
.page-hero .section-desc { color: rgba(200,201,224,0.7); margin: 0 auto; }

/* --- Comparison --- */
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.comp-card { border-radius: 16px; padding: 40px; }
.comp-old { background: #f3f4f6; border: 1px solid var(--border); }
.comp-new { background: var(--primary); color: #fff; }
.comp-logo { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 24px; display: flex; align-items: center; gap: 8px; }
.comp-old .comp-logo { color: var(--text-muted); }
.comp-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.comp-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; line-height: 1.5; }
.comp-list svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.comp-old .comp-list svg { color: var(--text-muted); }
.comp-new .comp-list svg { color: var(--accent-light); }

/* --- Features --- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.feat-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 32px; transition: all 0.2s; }
.feat-card:hover { border-color: var(--accent); box-shadow: 0 4px 24px rgba(255,107,74,0.08); transform: translateY(-2px); }
.feat-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.feat-icon svg { width: 24px; height: 24px; }
.feat-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feat-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* --- Stats --- */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; margin-top: 48px; text-align: center; }
.stat-num { font-family: 'Space Grotesk', sans-serif; font-size: 48px; font-weight: 700; color: var(--accent); letter-spacing: -2px; }
.stat-txt { font-size: 15px; color: rgba(200,201,224,0.6); margin-top: 8px; }

/* --- Compliance --- */
.compliance-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.compliance-card { border: 1px solid rgba(255,255,255,0.08); border-radius: 16px; padding: 32px; text-align: center; background: rgba(255,255,255,0.02); }
.compliance-card-light { border-color: var(--border); background: var(--bg); }
.compliance-icon { width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--accent); display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.compliance-icon svg { width: 24px; height: 24px; color: var(--accent); }
.compliance-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.compliance-card p { font-size: 14px; color: rgba(200,201,224,0.6); line-height: 1.5; }
.compliance-card-light h3 { color: var(--text); }
.compliance-card-light p { color: var(--text-muted); }

/* --- Pricing --- */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.price-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 32px; position: relative; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 8px 40px rgba(255,107,74,0.12); }
.price-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; padding: 4px 16px; border-radius: 100px; font-size: 12px; font-weight: 700; }
.price-name { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.price-amount { font-family: 'Space Grotesk', sans-serif; font-size: 40px; font-weight: 700; margin: 16px 0 4px; letter-spacing: -1px; }
.price-amount span { font-size: 16px; font-weight: 400; color: var(--text-muted); }
.price-period { font-size: 14px; color: var(--text-muted); margin-bottom: 24px; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.price-features li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-muted); }
.price-features li svg { width: 16px; height: 16px; color: #34D399; flex-shrink: 0; }
.price-cta { display: block; text-align: center; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; transition: all 0.2s; font-family: inherit; cursor: pointer; border: none; width: 100%; }
.price-cta-primary { background: var(--accent); color: #fff; }
.price-cta-primary:hover { background: var(--accent-dark); }
.price-cta-secondary { background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); }
.price-cta-secondary:hover { background: var(--border); }

/* --- CTA --- */
.cta-section { position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: 50%; left: 50%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,107,74,0.1) 0%, transparent 70%); transform: translate(-50%, -50%); pointer-events: none; }
.cta-content { position: relative; z-index: 1; text-align: center; }
.cta-content h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(32px, 4vw, 52px); font-weight: 700; color: #fff; margin-bottom: 16px; letter-spacing: -1px; }
.cta-content h2 span { color: var(--accent); }
.cta-content p { color: rgba(200,201,224,0.7); font-size: 18px; margin-bottom: 40px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; }
.cta-primary { padding: 14px 32px; background: var(--accent); color: #fff; border-radius: 100px; font-size: 16px; font-weight: 600; text-decoration: none; transition: all 0.2s; font-family: inherit; border: none; cursor: pointer; }
.cta-primary:hover { background: var(--accent-light); transform: translateY(-1px); box-shadow: 0 8px 32px rgba(255,107,74,0.3); }
.cta-secondary { padding: 14px 32px; background: transparent; color: #fff; border-radius: 100px; font-size: 16px; font-weight: 500; text-decoration: none; border: 1.5px solid rgba(255,255,255,0.2); transition: all 0.2s; }
.cta-secondary:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.04); }

/* --- Integrations --- */
.integ-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; margin-bottom: 56px; }
.integ-card { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 28px; display: flex; flex-direction: column; align-items: center; text-align: center; transition: all 0.2s; }
.integ-card:hover { border-color: var(--accent); box-shadow: 0 4px 24px rgba(255,107,74,0.08); transform: translateY(-2px); }
.integ-icon { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.integ-icon svg { width: 32px; height: 32px; }
.integ-card h3 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.integ-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 16px; flex: 1; }
.integ-btn { padding: 8px 20px; border-radius: 100px; font-size: 13px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--primary); color: var(--primary); background: transparent; cursor: pointer; transition: all 0.2s; font-family: inherit; }
.integ-btn:hover { background: var(--primary); color: #fff; }
.integ-btn.configure { background: var(--primary); color: #fff; border-color: var(--primary); }
.integ-btn.configure:hover { background: var(--primary-light); }
.integ-btn.contact { border-color: var(--text-muted); color: var(--text-muted); }
.integ-btn.contact:hover { background: var(--text-muted); color: #fff; }
.integ-section-label { font-family: 'Space Grotesk', sans-serif; font-size: 20px; font-weight: 700; margin-top: 24px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* --- FAQ --- */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.faq-item { background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.faq-item h3 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* --- Compliance detail --- */
.compliance-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; margin-top: 64px; align-items: center; }
.compliance-detail h3 { font-family: 'Space Grotesk', sans-serif; font-size: 28px; font-weight: 700; margin-bottom: 16px; }
.compliance-detail p { font-size: 16px; color: var(--text-muted); line-height: 1.7; }
.compliance-checklist { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.compliance-checklist li { display: flex; align-items: center; gap: 12px; font-size: 15px; padding: 12px 16px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--border); }
.compliance-checklist li svg { width: 20px; height: 20px; color: #34D399; flex-shrink: 0; }

/* --- Shared link styles --- */
.section-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 600; font-size: 15px; text-decoration: none; margin-top: 24px; transition: gap 0.2s; }
.section-link:hover { gap: 10px; }
.section-link svg { width: 18px; height: 18px; }

/* --- Footer --- */
.footer { background: #0a0b2e; padding: 60px 48px 40px; color: rgba(200,201,224,0.5); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: flex-start; gap: 48px; }
.footer-brand { font-family: 'Space Grotesk', sans-serif; font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer-brand svg { width: 24px; height: 24px; }
.footer-desc { font-size: 14px; line-height: 1.6; max-width: 300px; }
.footer-links { display: flex; gap: 64px; }
.footer-col h4 { color: rgba(255,255,255,0.8); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(200,201,224,0.5); text-decoration: none; font-size: 14px; margin-bottom: 10px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { max-width: 1200px; margin: 40px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; justify-content: space-between; font-size: 13px; }

/* --- Animate --- */
.animate { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.animate.visible { opacity: 1; transform: translateY(0); }
.animate.d1 { transition-delay: 0.1s; }
.animate.d2 { transition-delay: 0.2s; }
.animate.d3 { transition-delay: 0.3s; }
.animate.d4 { transition-delay: 0.4s; }

/* --- Product/solutions page template (shared across generated pages) --- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px; border: 1px solid rgba(255,107,74,0.3); background: rgba(255,107,74,0.08); color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 0.3px; margin-bottom: 20px; }
.page-hero .eyebrow { border-color: rgba(255,138,110,0.4); }
.hero-actions { display: flex; gap: 14px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 52px; }
.step { position: relative; padding: 28px; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; }
.step-n { width: 44px; height: 44px; border-radius: 12px; background: var(--primary); color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 18px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.step h3 { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

/* Split feature rows (text + media) */
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 64px; }
.split-row:first-of-type { margin-top: 40px; }
.split-row.flip .split-txt { order: 2; }
.split-txt h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; color: var(--primary); letter-spacing: -0.5px; margin-bottom: 16px; line-height: 1.2; }
.split-txt > p { font-size: 16px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }
.split-media { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: 0 24px 60px rgba(15,16,53,0.08); }
.split-media img { width: 100%; border-radius: 10px; display: block; border: 1px solid var(--border); }
.split-media.plain { display: flex; align-items: center; justify-content: center; min-height: 260px; }

/* Check lists */
.checks { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text); line-height: 1.5; }
.checks svg { width: 20px; height: 20px; color: #16A34A; flex-shrink: 0; margin-top: 1px; }

/* Pill / chip list */
.pill-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.pill { padding: 8px 16px; border-radius: 100px; background: var(--bg-alt); border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--primary); }

/* Cross-links */
.crosslinks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.xlink { display: block; padding: 24px; border: 1px solid var(--border); border-radius: 14px; text-decoration: none; transition: all 0.2s; background: var(--bg); }
.xlink:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,107,74,0.08); }
.xlink h4 { font-family: 'Space Grotesk', sans-serif; font-size: 16px; color: var(--primary); margin-bottom: 6px; }
.xlink p { font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }
.xlink span { display: inline-block; margin-top: 12px; color: var(--accent); font-weight: 700; font-size: 13px; }

/* FAQ (accordion-free, always open) */
.faq2 { max-width: 780px; margin: 44px auto 0; }
.faq2-item { border-bottom: 1px solid var(--border); padding: 22px 0; }
.faq2-item h4 { font-family: 'Space Grotesk', sans-serif; font-size: 17px; color: var(--primary); margin-bottom: 8px; }
.faq2-item p { font-size: 15px; color: var(--text-muted); line-height: 1.65; }

/* Metrics strip */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 8px; }
.metric { text-align: center; }
.metric b { display: block; font-family: 'Space Grotesk', sans-serif; font-size: clamp(30px, 4vw, 44px); font-weight: 700; color: var(--accent); line-height: 1; }
.metric span { font-size: 14px; color: var(--text-muted); }
.section-dark .metric b { color: var(--accent-light); }
.section-dark .metric span { color: rgba(200,201,224,0.7); }

/* Code snippet block */
.code-block { background: #0f1035; border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 22px 24px; overflow-x: auto; text-align: left; }
.code-block pre { margin: 0; font-family: 'SFMono-Regular', ui-monospace, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.7; color: #c8c9e0; white-space: pre; }
.code-block .tok { color: #FF8A70; }
.code-block .str { color: #8ee7a6; }

/* Contextual live-agent strip */
.embed-strip { background: linear-gradient(145deg, #1a1b4b 0%, #0f1035 100%); border-radius: 22px; padding: 48px; text-align: center; position: relative; overflow: hidden; }
.embed-strip h2 { font-family: 'Space Grotesk', sans-serif; color: #fff; font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin-bottom: 12px; letter-spacing: -0.5px; }
.embed-strip p { color: rgba(200,201,224,0.75); font-size: 16px; max-width: 560px; margin: 0 auto 8px; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .comp-grid, .feat-grid { grid-template-columns: 1fr 1fr; }
    .pricing-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .compliance-grid { grid-template-columns: 1fr; }
    .integ-grid { grid-template-columns: 1fr 1fr; }
    .compliance-detail { grid-template-columns: 1fr; gap: 32px; }
    .faq-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .crosslinks { grid-template-columns: 1fr; }
    .split-row { grid-template-columns: 1fr; gap: 32px; }
    .split-row.flip .split-txt { order: 0; }
    .metrics { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .nav { padding: 0 24px; }
    .nav-links { display: none; }
    .page-hero { padding: 120px 24px 60px; }
    .section { padding: 64px 24px; }
    .comp-grid, .feat-grid, .pricing-grid, .integ-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer { padding: 48px 24px 32px; }
    .footer-inner { flex-direction: column; }
    .footer-links { gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 8px; }
}
