:root {
  --bg: #f7f8ff;
  --surface: #ffffff;
  --surface-2: #eef1ff;
  --text: #10182f;
  --muted: #586174;
  --line: #dfe4f5;
  --primary: #573cff;
  --primary-dark: #3724c7;
  --accent: #11c5b5;
  --warning: #fff6df;
  --shadow: 0 20px 60px rgba(37, 43, 92, 0.12);
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1120px;
}

* { 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, #eef0ff 0, transparent 36%), var(--bg);
  line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 20px;
  background: rgba(247, 248, 255, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(223, 228, 245, 0.65);
}

.brand, .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand img { width: 36px; height: 36px; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: #2f3855; font-weight: 650; }
.site-nav a[aria-current="page"] { color: var(--primary); }
.nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(28, 38, 87, 0.08);
}
.nav-toggle { display: none; border: 0; background: var(--surface); border-radius: 12px; padding: 10px 12px; font-size: 22px; }

main { max-width: var(--max); margin: 0 auto; padding: 0 20px 60px; }
.section, .page-hero, .hero, .split-section, .cta-section, .trust-strip { margin-top: 54px; }
.section-grid, .hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 42px;
  align-items: center;
  min-height: 640px;
}
.hero-copy h1, .page-hero h1 {
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.94;
  letter-spacing: -0.06em;
  margin: 14px 0 24px;
}
.page-hero { max-width: 820px; padding-top: 40px; }
.page-hero h1 { font-size: clamp(42px, 7vw, 68px); }
.lead { color: var(--muted); font-size: clamp(18px, 2.2vw, 22px); max-width: 740px; }
.eyebrow { color: var(--primary); text-transform: uppercase; letter-spacing: 0.14em; font-size: 13px; font-weight: 800; margin: 0 0 10px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: var(--primary); box-shadow: 0 16px 30px rgba(87, 60, 255, 0.25); }
.btn-primary:hover { color: #fff; background: var(--primary-dark); }
.btn-secondary { color: var(--text); background: var(--surface); border-color: var(--line); }
.microcopy, .small { color: var(--muted); font-size: 14px; }

.hero-card {
  background: linear-gradient(145deg, rgba(87,60,255,.12), rgba(17,197,181,.18));
  border: 1px solid rgba(87,60,255,.18);
  padding: 22px;
  border-radius: 34px;
  box-shadow: var(--shadow);
}
.chat-window { background: var(--surface); border-radius: 26px; padding: 20px; min-height: 420px; box-shadow: inset 0 0 0 1px var(--line); }
.chat-header { display: flex; align-items: center; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.status-dot { width: 10px; height: 10px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 6px rgba(17,197,181,.12); }
.chat-message { max-width: 82%; padding: 14px 16px; margin: 18px 0; border-radius: 18px; }
.chat-message.bot { background: var(--surface-2); }
.chat-message.user { background: var(--primary); color: #fff; margin-left: auto; }
.lead-summary { margin-top: 30px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fbfcff; }
.lead-summary span { display: block; color: var(--accent); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.lead-summary strong { display: block; margin-top: 4px; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}
.trust-strip div { background: var(--surface); padding: 22px; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip span { color: var(--muted); font-size: 14px; }

.section-heading { text-align: center; max-width: 760px; margin: 0 auto 28px; }
.section-heading.left { text-align: left; margin-left: 0; }
.section-heading h2, .split-section h2, .cta-section h2 { font-size: clamp(32px, 5vw, 52px); line-height: 1.04; letter-spacing: -0.04em; margin: 0 0 14px; }
.section-heading p, .split-section p, .cta-section p { color: var(--muted); font-size: 18px; }
.card-grid { display: grid; gap: 18px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.feature-card, .pricing-card, .compliance-card, .contact-card, .contact-form, .mission-card, .pricing-note, .steps article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 10px 40px rgba(28, 38, 87, 0.06);
}
.feature-card.muted { background: #fbfcff; }
.feature-card h3, .pricing-note h3 { margin-top: 0; font-size: 22px; letter-spacing: -0.02em; }
.feature-card p, .pricing-note p, .mission-card p { color: var(--muted); }
.icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 14px; background: var(--surface-2); color: var(--primary); font-weight: 900; margin-bottom: 14px; }

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, #fff, #f4f6ff);
}
.usecase-list { display: flex; flex-wrap: wrap; gap: 12px; }
.usecase-list span { padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-weight: 750; }

.pricing-preview, .pricing-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; align-items: stretch; }
.pricing-card.featured { background: linear-gradient(145deg, #ffffff, #f0f2ff); border-color: rgba(87,60,255,.22); }
.pricing-card.large h2, .pricing-card h2 { font-size: 58px; line-height: 1; margin: 0 0 18px; letter-spacing: -0.05em; }
.pricing-card h2 span { color: var(--muted); font-size: 22px; letter-spacing: normal; }
ul { padding-left: 0; list-style: none; }
.check-list li, .x-list li { position: relative; padding-left: 28px; margin: 10px 0; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 900; }
.x-list li::before { content: "–"; position: absolute; left: 0; color: var(--muted); font-weight: 900; }
.policy-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.policy-links a { padding: 10px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps span { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; background: var(--primary); color: #fff; border-radius: 12px; font-weight: 900; }
.steps p { color: var(--muted); }

.faq-section details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin: 12px 0; }
.faq-section summary { cursor: pointer; font-weight: 800; }
.faq-section p { color: var(--muted); }

.cta-section { text-align: center; background: var(--text); color: #fff; border-radius: 34px; padding: 56px 28px; overflow: hidden; position: relative; }
.cta-section::before { content: ""; position: absolute; inset: auto -20% -80% -20%; height: 220px; background: radial-gradient(circle, rgba(87,60,255,.6), transparent 60%); }
.cta-section * { position: relative; }
.cta-section p { color: #d9dded; max-width: 680px; margin-left: auto; margin-right: auto; }

.contact-layout { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 22px; }
.contact-card p { color: var(--muted); }
.contact-form label { display: block; font-weight: 800; margin: 14px 0 6px; }
.contact-form input, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  background: #fbfcff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: 3px solid rgba(87,60,255,.14); border-color: var(--primary); }
.contact-form button { margin-top: 16px; }

.legal-page { max-width: 940px; }
.legal-content { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); box-shadow: 0 10px 40px rgba(28, 38, 87, 0.06); }
.legal-content h2 { margin-top: 32px; font-size: 24px; letter-spacing: -0.02em; }
.legal-content p { color: var(--muted); }
.not-found { min-height: 100vh; display: grid; place-content: center; text-align: center; padding: 20px; }

.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 20px 50px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
}
.site-footer p { color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 18px; justify-content: flex-end; max-width: 520px; }
.footer-links a { color: #2f3855; font-weight: 700; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 860px) {
  .site-header { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 10px; padding-top: 10px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; }
  .nav-cta { text-align: center; }
  .section-grid, .hero, .split-section, .pricing-preview, .pricing-layout, .contact-layout, .card-grid.three, .card-grid.two, .steps, .trust-strip { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 34px; }
  .hero-copy h1, .page-hero h1 { letter-spacing: -0.045em; }
  .trust-strip { gap: 1px; }
  .site-footer { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}
