:root {
  --purple: #533afd;
  --purple-hover: #4434d4;
  --navy: #061b31;
  --brand-dark: #1c1e54;
  --slate: #64748d;
  --label: #273951;
  --border: #e5edf5;
  --surface: #ffffff;
  --soft: #f6f9fc;
  --success: #15be53;
  --success-text: #108c3d;
  --ruby: #ea2261;
  --magenta: #f96bee;
  --shadow: rgba(50, 50, 93, 0.25) 0 30px 45px -30px, rgba(0, 0, 0, 0.1) 0 18px 36px -18px;
  --ambient: rgba(23, 23, 23, 0.08) 0 15px 35px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Source Sans 3', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-feature-settings: 'ss01';
  color: var(--navy);
  background:
    radial-gradient(circle at 5% 8%, rgba(83, 58, 253, 0.16), transparent 28rem),
    radial-gradient(circle at 92% 12%, rgba(249, 107, 238, 0.16), transparent 24rem),
    #fff;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(6, 27, 49, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(6, 27, 49, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 56%);
}

a { color: inherit; text-decoration: none; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(229, 237, 245, 0.72);
}

.brand, nav, .actions, .proof-strip, .flow-row, footer, .pricing-top {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #fff;
  background: linear-gradient(135deg, var(--purple), var(--ruby));
  border-radius: 7px;
  box-shadow: var(--ambient);
}

nav { gap: 22px; font-size: 15px; color: var(--label); }
nav a { transition: color 160ms ease, background 160ms ease; }
nav a:hover { color: var(--purple); }
.nav-cta {
  color: #fff;
  background: var(--purple);
  padding: 8px 14px;
  border-radius: 4px;
}
.nav-cta:hover { color: #fff; background: var(--purple-hover); }

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 88px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 72px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--purple);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 600;
}

.eyebrow.inverted { color: #b9b9f9; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 22px;
  max-width: 760px;
  font-size: clamp(46px, 7.2vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.052em;
  font-weight: 300;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 4.2vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 300;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.08;
  letter-spacing: -0.026em;
  font-weight: 300;
}

p { color: var(--slate); font-size: 18px; line-height: 1.48; }

.lede { max-width: 660px; font-size: clamp(20px, 2vw, 24px); line-height: 1.36; }

.actions { gap: 12px; flex-wrap: wrap; margin-top: 30px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 400;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button.primary { color: #fff; background: var(--purple); box-shadow: var(--ambient); }
.button.primary:hover { background: var(--purple-hover); box-shadow: var(--shadow); }
.button.secondary { color: var(--purple); border: 1px solid #b9b9f9; background: rgba(255,255,255,0.72); }
.button.light { color: var(--brand-dark); background: #fff; margin-top: 14px; }

.proof-strip {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.proof-strip span {
  padding: 5px 9px;
  color: var(--label);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
}

.hero-card {
  position: relative;
}
.hero-card::before {
  content: '';
  position: absolute;
  inset: -28px -24px auto auto;
  width: 210px;
  height: 210px;
  background: linear-gradient(135deg, var(--ruby), var(--magenta));
  border-radius: 40% 60% 52% 48%;
  opacity: 0.86;
  filter: blur(0.3px);
}
.phone-frame {
  position: relative;
  padding: 22px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.phone-frame::after {
  content: '';
  position: absolute;
  inset: auto -20% -44% 18%;
  height: 240px;
  background: radial-gradient(circle, rgba(83,58,253,0.18), transparent 70%);
}
.phone-top {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--label);
  font-size: 14px;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 5px rgba(21, 190, 83, 0.12);
}
.message {
  position: relative;
  z-index: 1;
  margin: 22px 0;
  padding: 16px;
  border-radius: 6px;
  color: var(--label);
  font-size: 18px;
  line-height: 1.34;
}
.message.guest { background: var(--soft); margin-right: 34px; }
.message.agent { background: #f0efff; margin-left: 34px; color: #2e2b8c; }
.flow-card {
  position: relative;
  z-index: 1;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255,255,255,0.88);
}
.label, .code-label {
  margin-bottom: 12px;
  color: var(--label);
  font-family: 'Source Code Pro', ui-monospace, monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.flow-row {
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  color: var(--slate);
}
.flow-row strong { color: var(--navy); font-weight: 500; }
.flow-row.success strong { color: var(--success-text); }

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 0;
}
.metrics div {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: rgba(23,23,23,0.06) 0 8px 24px;
}
.metrics strong {
  display: block;
  font-size: 42px;
  font-weight: 300;
  letter-spacing: -0.04em;
}
.metrics span { color: var(--slate); }

.split, .dark-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.stacked-cards { display: grid; gap: 16px; }
.mini-card, .process-grid article {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: rgba(50,50,93,0.18) 0 24px 36px -30px, rgba(0,0,0,0.08) 0 12px 24px -18px;
}
.icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  border-radius: 5px;
  background: #f0efff;
  color: var(--purple);
  font-weight: 600;
}
.mini-card p, .process-grid p { font-size: 16px; margin-bottom: 0; }

.dark-section {
  background:
    radial-gradient(circle at 80% 8%, rgba(249, 107, 238, 0.25), transparent 28rem),
    radial-gradient(circle at 15% 80%, rgba(83, 58, 253, 0.3), transparent 24rem),
    var(--brand-dark);
  color: #fff;
}
.dark-section h2, .dark-section h3 { color: #fff; }
.dark-section p { color: rgba(255,255,255,0.72); }
.pricing-card {
  padding: 28px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.09);
  box-shadow: rgba(3,3,39,0.25) 0 28px 60px -24px;
}
.pricing-top { justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,0.18); }
.pricing-top span { color: rgba(255,255,255,0.78); }
.pricing-top strong { font-size: 46px; font-weight: 300; letter-spacing: -0.04em; }
ul { margin: 22px 0 0; padding-left: 20px; color: rgba(255,255,255,0.8); font-size: 18px; line-height: 1.7; }

.section-heading { max-width: 760px; margin-bottom: 34px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.code-label {
  display: inline-block;
  color: var(--purple);
  background: #f0efff;
  padding: 5px 7px;
  border-radius: 4px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 64px;
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}
.cta-panel p { margin-bottom: 0; max-width: 720px; }

footer {
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(20px, 5vw, 64px);
  border-top: 1px solid var(--border);
  color: var(--slate);
  font-size: 14px;
}
footer span:last-child { max-width: 640px; text-align: right; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero, .split, .dark-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero { padding-top: 64px; }
  .metrics, .process-grid { grid-template-columns: 1fr 1fr; }
  .cta-panel { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 620px) {
  .section { width: min(100% - 28px, 1120px); padding: 56px 0; }
  h1 { font-size: 44px; }
  .metrics, .process-grid { grid-template-columns: 1fr; }
  .message.agent { margin-left: 10px; }
  .message.guest { margin-right: 10px; }
  footer { flex-direction: column; align-items: flex-start; }
  footer span:last-child { text-align: left; }
}
