:root {
  --surface: #faf8ff;
  --paper: #ffffff;
  --muted-surface: #f4f7fa;
  --navy: #00081e;
  --navy-2: #0a1f44;
  --muted: #596173;
  --line: #e2e8f0;
  --green: #25d366;
  --emerald: #10b981;
  --red: #dc3f4c;
  --blue-soft: #d9e2ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--surface);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(217, 226, 255, 0.7), transparent 26rem),
    linear-gradient(180deg, #faf8ff 0%, #f7f8fc 42%, #ffffff 100%);
}

button,
a,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  width: min(1200px, calc(100% - 40px));
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  background: rgba(250, 248, 255, 0.88);
  backdrop-filter: blur(12px);
}

.brand,
.topbar nav,
.hero-actions,
.phone-header,
.phone-top,
.system-card,
.quick-prompts,
.chat-form,
footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 9px;
  color: var(--navy);
  font-weight: 900;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: white;
  background: var(--navy-2);
}

.topbar nav {
  gap: 28px;
}

.topbar nav a,
.nav-cta {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.nav-cta {
  padding: 10px 14px;
  border-radius: 8px;
  color: white;
  background: var(--navy-2);
}

main {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 440px;
  gap: 56px;
  align-items: center;
  padding: 56px 0 72px;
}

.hero-copy {
  max-width: 700px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #596b9c;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  letter-spacing: -0.02em;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 0.96;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.02;
}

h3 {
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 1.08;
}

.hero-copy p:not(.eyebrow),
.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

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

.primary-action,
.secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.primary-action {
  color: white;
  background: var(--navy-2);
  box-shadow: 0 18px 34px rgba(10, 31, 68, 0.18);
}

.secondary-action {
  color: var(--navy);
  border: 1px solid var(--line);
  background: white;
}

.hero-phone,
.setup-panel,
.operator-panel,
.contrast-grid article,
.steps article {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  box-shadow: 0 18px 48px rgba(10, 31, 68, 0.09);
}

.hero-phone {
  overflow: hidden;
  color: white;
  background:
    linear-gradient(180deg, rgba(10, 31, 68, 0.06), rgba(0, 8, 30, 0.95)),
    linear-gradient(135deg, #263f74, #071428);
}

.phone-header,
.phone-top {
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.phone-header div,
.phone-top div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.phone-header span:last-child,
.phone-top span:last-child {
  color: #b9c9eb;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.live-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(37, 211, 102, 0.14);
}

.preview-chat {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  padding: 22px;
}

.bubble {
  max-width: min(84%, 560px);
  padding: 13px 15px;
  border-radius: 13px;
  color: var(--navy);
  background: #eef3ff;
  line-height: 1.45;
}

.bubble.agent {
  align-self: flex-start;
}

.bubble.lead {
  align-self: flex-end;
  color: white;
  background: #061631;
}

.bubble small {
  display: block;
  margin-top: 6px;
  color: rgba(0, 8, 30, 0.5);
  font-size: 11px;
  font-weight: 900;
}

.bubble.lead small {
  color: rgba(255, 255, 255, 0.6);
}

.system-card {
  justify-content: space-between;
  gap: 18px;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid rgba(37, 211, 102, 0.22);
  border-radius: 14px;
  background: rgba(37, 211, 102, 0.12);
}

.system-card span {
  color: #98f2bd;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.system-card strong {
  font-size: 14px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin: 0 calc(50% - 50vw);
  padding: 36px max(40px, calc((100vw - 1200px) / 2));
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metrics div {
  text-align: center;
}

.metrics strong {
  display: block;
  font-family: "Plus Jakarta Sans", Inter, sans-serif;
  font-size: 40px;
  line-height: 1;
}

.metrics span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.contrast,
.how,
.demo-section {
  padding: 110px 0;
}

.section-heading {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.contrast-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.contrast-grid article {
  padding: 34px;
}

.good-card {
  color: white;
  background: var(--navy-2) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  margin-bottom: 22px;
  font-size: 22px;
  font-weight: 900;
}

.danger {
  color: var(--red);
  background: #ffe8ea;
}

.success {
  color: white;
  background: var(--green);
}

ul {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  color: var(--muted);
  line-height: 1.45;
}

.good-card li {
  color: rgba(255, 255, 255, 0.82);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.steps article {
  min-height: 260px;
  padding: 26px;
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 34px;
  margin-bottom: 26px;
  border-radius: 8px;
  color: white;
  background: var(--navy-2);
  font-weight: 900;
}

.steps p {
  color: var(--muted);
  line-height: 1.55;
}

.demo-section {
  margin: 0 calc(50% - 50vw);
  padding-left: max(40px, calc((100vw - 1200px) / 2));
  padding-right: max(40px, calc((100vw - 1200px) / 2));
  background: var(--muted-surface);
}

.demo-grid {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
}

.setup-panel,
.operator-panel {
  padding: 24px;
}

.panel-head {
  margin-bottom: 22px;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

select,
input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy);
  background: white;
  padding: 10px 12px;
}

.phone-shell {
  min-height: 690px;
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  overflow: hidden;
  border-radius: 18px;
  color: white;
  background: #060b14;
  box-shadow: 0 24px 60px rgba(0, 8, 30, 0.25);
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  overflow: auto;
}

.quick-prompts {
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 18px;
}

.quick-prompts button {
  min-height: 38px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  color: #dbe7ff;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 900;
}

.chat-form {
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.chat-form button {
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  padding: 0 18px;
  color: #052313;
  background: var(--green);
  font-weight: 950;
}

.state-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.state-grid div,
.step,
.data-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.state-grid div {
  min-height: 94px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px;
}

.state-grid span,
.data-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.state-grid strong {
  font-size: 17px;
  line-height: 1.18;
}

.pipeline {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.step {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 900;
}

.step.done {
  color: #006d2f;
  border-color: rgba(37, 211, 102, 0.28);
  background: #ecfff3;
}

.step.active {
  color: var(--navy-2);
  border-color: rgba(10, 31, 68, 0.25);
  background: #edf3ff;
}

.data-card {
  padding: 16px;
}

.data-card h4 {
  margin: 12px 0 8px;
  font-size: 18px;
}

.data-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

footer {
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
  margin: 0 calc(50% - 50vw);
  padding: 0 max(40px, calc((100vw - 1200px) / 2));
  color: white;
  background: var(--navy);
}

footer span {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 1080px) {
  .hero,
  .contrast-grid,
  .demo-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 24px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-phone {
    max-width: 620px;
  }
}

@media (max-width: 760px) {
  .topbar {
    width: calc(100% - 24px);
  }

  .topbar nav {
    display: none;
  }

  main {
    width: calc(100% - 24px);
  }

  .hero {
    min-height: auto;
    padding: 38px 0 48px;
  }

  .metrics {
    grid-template-columns: repeat(2, 1fr);
    padding-left: 12px;
    padding-right: 12px;
  }

  .contrast,
  .how,
  .demo-section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .demo-section {
    padding-left: 12px;
    padding-right: 12px;
  }

  .steps,
  .state-grid {
    grid-template-columns: 1fr;
  }

  .quick-prompts {
    grid-template-columns: 1fr;
  }

  .chat-form {
    grid-template-columns: 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 12px;
  }
}
