:root {
  --bg: #f7f9fc;
  --surface: rgba(255,255,255,.82);
  --surface-solid: #ffffff;
  --surface-strong: #eef4ff;
  --text: #0f172a;
  --muted: #64748b;
  --muted-2: #475569;
  --line: rgba(15,23,42,.11);
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: rgba(37,99,235,.12);
  --secondary: #14b8a6;
  --accent: #7c3aed;
  --shadow: 0 24px 70px rgba(15,23,42,.12);
  --shadow-soft: 0 12px 34px rgba(15,23,42,.09);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
}

html[data-theme="dark"] {
  --bg: #050b18;
  --surface: rgba(15,23,42,.78);
  --surface-solid: #0f172a;
  --surface-strong: #111d35;
  --text: #f8fafc;
  --muted: #a8b3c7;
  --muted-2: #cbd5e1;
  --line: rgba(226,232,240,.13);
  --primary: #60a5fa;
  --primary-dark: #3b82f6;
  --primary-soft: rgba(96,165,250,.15);
  --secondary: #2dd4bf;
  --accent: #a78bfa;
  --shadow: 0 24px 80px rgba(0,0,0,.42);
  --shadow-soft: 0 16px 44px rgba(0,0,0,.34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.18), transparent 34rem),
    radial-gradient(circle at 80% 20%, rgba(20,184,166,.14), transparent 30rem),
    radial-gradient(circle at 70% 80%, rgba(124,58,237,.12), transparent 32rem),
    var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: min(var(--container), calc(100% - 40px)); margin: 0 auto; }
.section-pad { padding: 104px 0; }
.skip-link { position: absolute; left: -999px; top: 16px; background: var(--text); color: var(--bg); padding: 12px 16px; border-radius: 999px; z-index: 100; }
.skip-link:focus { left: 16px; }

.site-header {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(18px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 10px 32px rgba(15,23,42,.06); }
.header-inner { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: -.03em; }
.brand-mark { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; color: white; background: linear-gradient(135deg, var(--primary), var(--accent)); box-shadow: 0 10px 24px rgba(37,99,235,.28); font-size: 14px; }
.brand-text { font-size: 1.08rem; }
.desktop-nav { display: flex; align-items: center; gap: 28px; color: var(--muted-2); font-weight: 700; font-size: .95rem; }
.desktop-nav a:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(15,23,42,.05); }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: block; }
.menu-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); flex-direction: column; justify-content: center; gap: 5px; padding: 0 10px; cursor: pointer; }
.menu-toggle span { height: 2px; background: var(--text); border-radius: 99px; }
.mobile-nav { display: none; border-top: 1px solid var(--line); padding: 10px 20px 22px; }
.mobile-nav a { display: block; padding: 13px 0; color: var(--muted-2); font-weight: 800; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 999px; border: 1px solid transparent; font-weight: 850; letter-spacing: -.01em; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: .92rem; }
.btn-large { min-height: 56px; padding: 0 24px; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--accent)); color: white; box-shadow: 0 14px 34px rgba(37,99,235,.28); }
.btn-primary:hover { box-shadow: 0 18px 42px rgba(37,99,235,.36); }
.btn-secondary { background: var(--surface-solid); color: var(--text); border-color: var(--line); box-shadow: var(--shadow-soft); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-block { width: 100%; min-height: 54px; }

.hero { padding-top: 86px; }
.hero-grid { display: grid; grid-template-columns: 1fr .92fr; align-items: center; gap: 54px; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--primary); border-radius: 999px; padding: 8px 13px; font-size: .82rem; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.pulse-dot { width: 9px; height: 9px; border-radius: 99px; background: var(--secondary); box-shadow: 0 0 0 7px color-mix(in srgb, var(--secondary) 18%, transparent); }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(3rem, 6vw, 5.95rem); line-height: .94; letter-spacing: -.075em; margin: 22px 0 24px; max-width: 860px; }
.hero-lead { font-size: clamp(1.08rem, 1.8vw, 1.35rem); color: var(--muted-2); max-width: 710px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-actions.center { justify-content: center; }
.trust-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span { background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 8px 12px; font-weight: 850; font-size: .9rem; }

.hero-panel { position: relative; min-height: 560px; display: flex; align-items: center; justify-content: center; }
.panel-shell { width: 100%; border: 1px solid var(--line); background: linear-gradient(180deg, color-mix(in srgb, var(--surface-solid) 84%, transparent), var(--surface)); border-radius: 34px; box-shadow: var(--shadow); overflow: hidden; transform: rotate(1deg); }
.panel-topbar { height: 58px; display: flex; align-items: center; gap: 9px; padding: 0 20px; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 800; }
.panel-topbar span { width: 11px; height: 11px; border-radius: 99px; background: var(--line); }
.panel-topbar p { margin: 0 0 0 10px; }
.dashboard-preview { padding: 22px; }
.score-card, .mini-card, .insight-card, .workflow-card, .proof-card, .audience-card, .pricing-card, .mock-table, .final-cta-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.primary-card { padding: 24px; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 17%, var(--surface-solid)), var(--surface)); }
.score-card p, .mini-card span, .insight-card p { color: var(--muted); font-weight: 800; margin-bottom: 4px; }
.score-card h3 { font-size: 1.55rem; margin-bottom: 24px; letter-spacing: -.03em; }
.metric-line { display: flex; justify-content: space-between; font-weight: 850; margin-bottom: 10px; }
.progress { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: inherit; }
.mini-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 14px; }
.mini-card { padding: 18px; }
.mini-card strong { display: block; font-size: 1.15rem; }
.insight-card { margin-top: 14px; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.insight-card strong { display: block; line-height: 1.3; }
.insight-card a { color: var(--primary); font-weight: 900; }
.floating-chip { position: absolute; padding: 11px 15px; border-radius: 999px; background: var(--surface-solid); border: 1px solid var(--line); box-shadow: var(--shadow-soft); font-weight: 900; color: var(--primary); }
.chip-one { top: 60px; left: -10px; }
.chip-two { bottom: 58px; right: -4px; color: var(--secondary); }

.logos-section { padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 68%, transparent); text-align: center; }
.logos-section p { margin: 0; color: var(--muted-2); font-weight: 800; }
.section-heading { text-align: center; max-width: 820px; margin: 0 auto 46px; }
.section-heading.left { text-align: left; margin-left: 0; margin-bottom: 0; }
.section-heading h2 { font-size: clamp(2.05rem, 4vw, 4.15rem); line-height: 1; letter-spacing: -.06em; margin: 16px 0 18px; }
.section-heading p { color: var(--muted-2); font-size: 1.08rem; }
.workflow-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.workflow-card { padding: 24px; min-height: 280px; }
.step-number { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--primary-soft); color: var(--primary); font-weight: 950; margin-bottom: 28px; }
.workflow-card h3, .audience-card h3 { font-size: 1.35rem; letter-spacing: -.03em; margin-bottom: 10px; }
.workflow-card p, .proof-card p, .audience-card p { color: var(--muted-2); margin-bottom: 0; }
.tools-section { background: color-mix(in srgb, var(--surface) 55%, transparent); }
.tools-layout, .split-layout { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 56px; }
.tool-list { display: grid; gap: 14px; }
.tool-row { display: flex; gap: 16px; padding: 18px; border: 1px solid var(--line); background: var(--surface-solid); border-radius: 20px; box-shadow: 0 8px 24px rgba(15,23,42,.05); }
.tool-row span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--primary-soft); }
.tool-row h3 { margin-bottom: 4px; letter-spacing: -.025em; }
.tool-row p { margin: 0; color: var(--muted-2); }
.proof-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.proof-card { padding: 24px; }
.proof-card strong { display: block; font-size: 1.2rem; margin-bottom: 8px; }
.tracking-section { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-strong) 65%, transparent)); }
.mock-table { padding: 20px; }
.mock-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; }
.mock-header span { color: var(--primary); font-size: .84rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 900; }
.mock-header h3 { margin: 4px 0 0; font-size: 1.45rem; letter-spacing: -.035em; }
.mock-header button { border: 0; background: var(--primary); color: white; border-radius: 999px; padding: 10px 14px; font-weight: 900; }
.table-row { display: grid; grid-template-columns: 1.2fr .8fr .8fr 1fr; gap: 10px; padding: 14px 8px; border-top: 1px solid var(--line); align-items: center; color: var(--muted-2); }
.table-row.head { color: var(--muted); font-weight: 900; font-size: .86rem; text-transform: uppercase; letter-spacing: .05em; }
.table-row strong { color: var(--primary); font-size: .92rem; }
.check-list { padding: 0; margin: 22px 0 0; list-style: none; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 30px; color: var(--muted-2); font-weight: 700; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 99px; background: var(--primary-soft); color: var(--primary); font-size: .8rem; }
.audience-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.audience-card { padding: 24px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.pricing-card { position: relative; padding: 30px; background: var(--surface-solid); display: flex; flex-direction: column; }
.pricing-featured { border-color: color-mix(in srgb, var(--primary) 46%, var(--line)); box-shadow: 0 24px 70px color-mix(in srgb, var(--primary) 20%, transparent); transform: translateY(-10px); }
.badge { position: absolute; top: 18px; right: 18px; background: var(--primary-soft); color: var(--primary); border-radius: 999px; padding: 7px 11px; font-size: .8rem; font-weight: 950; }
.pricing-card h3 { font-size: 1.5rem; letter-spacing: -.035em; margin-top: 12px; }
.pricing-card p, .pricing-card small { color: var(--muted-2); }
.price { margin: 20px 0; padding: 18px; border-radius: 20px; background: var(--surface-strong); }
.price span { display: block; color: var(--muted); font-weight: 900; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.price strong { display: inline-block; font-size: 3.1rem; line-height: 1; letter-spacing: -.06em; }
.price em { color: var(--muted-2); font-style: normal; font-weight: 850; margin-left: 4px; }
.pricing-card ul { padding: 0; list-style: none; margin: 20px 0; display: grid; gap: 10px; flex: 1; }
.pricing-card li { color: var(--muted-2); font-weight: 750; }
.pricing-card li::before { content: "✓"; color: var(--primary); margin-right: 9px; }
.pricing-card small { display: block; margin-top: 14px; text-align: center; }
.final-cta { padding-top: 40px; }
.final-cta-card { padding: clamp(30px, 6vw, 70px); text-align: center; background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 11%, var(--surface-solid)), var(--surface)); }
.final-cta-card h2 { font-size: clamp(2.2rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.065em; margin: 16px auto 18px; max-width: 820px; }
.final-cta-card p { color: var(--muted-2); max-width: 720px; margin: 0 auto 28px; font-size: 1.1rem; }
.site-footer { padding: 58px 0 28px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 34px; }
.footer-grid p { color: var(--muted-2); max-width: 330px; }
.footer-grid h4 { margin: 0 0 13px; }
.footer-grid a:not(.brand) { display: block; color: var(--muted-2); padding: 5px 0; }
.footer-grid a:hover { color: var(--primary); }
.footer-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 14px; color: var(--muted); font-weight: 700; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .08s; }
.delay-2 { transition-delay: .16s; }
.delay-3 { transition-delay: .24s; }

@media (max-width: 1020px) {
  .desktop-nav, .header-actions .btn { display: none; }
  .menu-toggle { display: flex; }
  .mobile-nav.open { display: block; }
  .hero-grid, .tools-layout, .split-layout { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-featured { transform: none; }
  .hero-panel { min-height: auto; }
  .panel-shell { transform: none; }
  .workflow-grid, .audience-grid { grid-template-columns: repeat(2,1fr); }
  .proof-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .container { width: min(100% - 28px, var(--container)); }
  .section-pad { padding: 72px 0; }
  .hero { padding-top: 56px; }
  .header-inner { height: 70px; }
  h1 { font-size: clamp(2.75rem, 14vw, 4.2rem); }
  .hero-actions .btn { width: 100%; }
  .workflow-grid, .audience-grid, .mini-grid { grid-template-columns: 1fr; }
  .floating-chip { display: none; }
  .table-row { grid-template-columns: 1fr 1fr; }
  .table-row.head { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
}

/* Legal and contact pages */
.page-hero { padding-bottom: 46px; }
.legal-hero { max-width: 920px; text-align: center; }
.legal-hero h1 { margin-left: auto; margin-right: auto; }
.legal-hero p { color: var(--muted-2); font-size: clamp(1.06rem, 1.7vw, 1.25rem); max-width: 760px; margin: 0 auto; }
.compact-pad { padding-top: 36px; }
.legal-layout { display: grid; grid-template-columns: 330px 1fr; gap: 30px; align-items: start; }
.legal-card, .legal-content, .contact-card, .contact-form { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.legal-card { padding: 24px; position: sticky; top: 100px; }
.legal-card h2, .contact-card h2 { margin-bottom: 10px; letter-spacing: -.04em; }
.legal-card p, .contact-card p, .form-note { color: var(--muted-2); }
.legal-content { padding: clamp(24px, 4vw, 46px); }
.legal-content h2 { margin: 28px 0 8px; letter-spacing: -.035em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { color: var(--muted-2); }
.legal-content a { color: var(--primary); font-weight: 850; }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 30px; align-items: start; }
.contact-card, .contact-form { padding: clamp(24px, 4vw, 36px); }
.contact-methods { display: grid; gap: 12px; margin-top: 24px; }
.contact-methods a { display: block; padding: 17px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-solid); }
.contact-methods strong { display: block; letter-spacing: -.025em; }
.contact-methods span { display: block; color: var(--muted-2); font-size: .94rem; margin-top: 2px; }
.contact-form { display: grid; gap: 16px; }
.contact-form label { display: grid; gap: 8px; color: var(--text); font-weight: 850; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; border: 1px solid var(--line); background: var(--surface-solid); color: var(--text); border-radius: 16px; padding: 13px 14px; outline: none; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.form-note { margin: 0; font-size: .92rem; text-align: center; }
@media (max-width: 900px) {
  .legal-layout, .contact-layout { grid-template-columns: 1fr; }
  .legal-card { position: static; }
}
