:root {
  --ink: #14202a;
  --muted: #5d6874;
  --line: #dbe3e7;
  --paper: #f7faf8;
  --panel: #ffffff;
  --green: #168f64;
  --teal: #0f7180;
  --blue: #2563eb;
  --amber: #d89b1d;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 6vw;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 250, 248, 0.92);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-size: 0.8rem;
  letter-spacing: 0;
}

nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

nav a,
footer a {
  text-decoration: none;
}

nav a:hover,
footer a:hover {
  color: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  align-items: center;
  gap: 64px;
  min-height: calc(100vh - 72px);
  padding: 64px 6vw 80px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 8vw, 7.4rem);
  line-height: 0.95;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.22rem;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.button.secondary {
  background: #fff;
}

.product-shot {
  position: relative;
  min-height: 520px;
}

.phone,
.dashboard {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(20, 32, 42, 0.12);
}

.phone {
  position: absolute;
  right: 8%;
  top: 0;
  width: min(330px, 48vw);
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
}

.phone-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  color: #fff;
  background: var(--green);
}

.phone-header span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--amber);
}

.thread {
  display: grid;
  gap: 14px;
  padding: 22px;
}

.bubble {
  width: fit-content;
  max-width: 88%;
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 0.95rem;
}

.bubble.customer {
  background: #eef5f7;
}

.bubble.bot {
  justify-self: end;
  color: #fff;
  background: var(--teal);
}

.bubble.admin {
  border: 1px solid var(--line);
  background: #fff8e7;
}

.dashboard {
  position: absolute;
  left: 0;
  bottom: 24px;
  width: min(440px, 62vw);
  border-radius: 10px;
  padding: 24px;
}

.dash-header,
.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.dash-header {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.dash-header span {
  color: var(--green);
  font-weight: 800;
}

.metric-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.metric-row:last-child {
  border-bottom: 0;
}

.metric-row strong {
  color: var(--ink);
}

.section {
  padding: 84px 6vw;
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 36px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-grid article {
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.feature-grid p,
.split p,
.legal p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 56px 6vw;
  color: #fff;
  background: var(--ink);
}

.contact .eyebrow,
.contact h2 {
  color: #fff;
}

.contact .button.primary {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.legal {
  max-width: 820px;
  min-height: calc(100vh - 180px);
  padding: 72px 6vw;
}

.legal h1 {
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.legal h2 {
  margin-top: 34px;
  font-size: 1.45rem;
  line-height: 1.15;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 6vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}

footer span:last-child {
  display: flex;
  gap: 18px;
}

@media (max-width: 860px) {
  .topbar,
  nav,
  footer,
  .contact {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    gap: 12px;
  }

  .hero,
  .split {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 36px;
  }

  .product-shot {
    min-height: 560px;
  }

  .phone {
    right: 0;
    width: min(330px, 82vw);
  }

  .dashboard {
    width: min(420px, 88vw);
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 3.5rem;
  }

  .topbar,
  .hero,
  .section,
  .contact,
  .legal,
  footer {
    padding-left: 22px;
    padding-right: 22px;
  }

  .product-shot {
    min-height: 620px;
  }

  .phone,
  .dashboard {
    position: relative;
    inset: auto;
    width: 100%;
  }

  .dashboard {
    margin-top: 18px;
  }
}
