:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f4;
  --ink: #0b0b0c;
  --ink-2: #3b3b3f;
  --muted: #76767b;
  --line: #e8e8e5;
  --accent: #ff5a1f;
  --radius: 20px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

h1,
h2 {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: 24px;
}

section {
  padding-block: 120px;
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.section-head {
  max-width: 680px;
  margin-bottom: 64px;
}

.section-head h2 {
  margin-top: 16px;
  font-size: clamp(34px, 5vw, 56px);
}

.section-head p {
  margin-top: 20px;
  color: var(--muted);
  font-size: 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding-inline: 24px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: opacity 0.2s;
}

.button:hover {
  opacity: 0.85;
}

.button.ghost {
  border-color: var(--line);
  background: transparent;
  color: var(--ink);
}

.device-media {
  display: block;
}

.device-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #1a1a1c;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo img {
  display: block;
  width: 32px;
  height: 32px;
}

.nav-links {
  display: flex;
  gap: 32px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav .button {
  height: 38px;
  padding-inline: 18px;
  font-size: 14px;
}

/* Hero */
.hero {
  padding-block: 96px 0;
  text-align: center;
}

.hero h1 {
  max-width: 880px;
  margin: 20px auto 0;
  font-size: clamp(44px, 8vw, 96px);
}

.hero-sub {
  max-width: 620px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

.hero-media {
  display: block;
  margin-top: 72px;
}

.hero-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  background: #141416;
}

/* Specs strip */
.specs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 48px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.spec {
  padding: 28px 24px;
  text-align: left;
}

.spec + .spec {
  border-left: 1px solid var(--line);
}

.spec strong {
  display: block;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.spec span {
  color: var(--muted);
  font-size: 14px;
}

/* Device */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.split .section-head {
  margin-bottom: 40px;
}

.detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.detail-list li {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.detail-list dt,
.detail-list .k {
  color: var(--muted);
  font-size: 14px;
}

.detail-list .v {
  color: var(--ink-2);
}

/* Steps */
.soft {
  background: var(--bg-soft);
}

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

.step {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg);
}

.step-num {
  display: block;
  margin-bottom: 48px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
}

/* Use cases */
.case + .case {
  margin-top: 120px;
}

.case-media {
  display: block;
}

.case-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.case-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
  margin-top: 40px;
}

.case h3 {
  margin-top: 16px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.case-copy > p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}

.case-copy > .case-note {
  margin-top: 20px;
  font-size: 14px;
}

.chat {
  display: grid;
  gap: 10px;
}

.msg {
  max-width: 88%;
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.5;
}

.msg.you {
  justify-self: end;
  border-bottom-right-radius: 6px;
  background: var(--ink);
  color: #fff;
}

.msg.agent {
  justify-self: start;
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
  background: var(--bg);
  color: var(--ink-2);
}

.msg.agent small {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

/* Dashboard */
.features-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  margin-top: 56px;
}

.features-3 p {
  margin-top: 8px;
  color: var(--muted);
}

.dash-media {
  display: block;
}

.dash-media img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
}

/* Mobile app */
.app-media img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
  margin-inline: auto;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
}

.store-badge {
  display: inline-block;
  border-radius: 10px;
  transition: opacity 0.2s;
}

.store-badge:hover {
  opacity: 0.8;
}

.store-badge img {
  display: block;
  width: auto;
  height: 48px;
}

.store-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 50;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  box-shadow: 0 12px 32px rgba(11, 11, 12, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s, transform 0.2s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* Agents */
.prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 40px;
}

.prompt {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink-2);
  font-size: 14px;
}

.flow {
  display: grid;
  gap: 12px;
}

.flow-node {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
}

.flow-node span {
  color: var(--muted);
  font-size: 14px;
  text-align: right;
}

.flow-arrow {
  justify-self: center;
  width: 1px;
  height: 20px;
  background: var(--line);
}

/* Privacy */
.dark {
  background: var(--ink);
  color: #fff;
}

.dark .label,
.dark .section-head p {
  color: rgba(255, 255, 255, 0.6);
}

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

.privacy-item {
  padding: 32px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
}

.privacy-item p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.6);
}

/* FAQ */
.faq {
  max-width: 780px;
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  color: var(--muted);
  font-weight: 400;
  transition: transform 0.2s;
}

details[open] summary::after {
  transform: rotate(45deg);
}

details p {
  padding-bottom: 24px;
  color: var(--muted);
}

/* CTA */
.cta {
  text-align: center;
}

.cta h2 {
  max-width: 720px;
  margin: 16px auto 0;
  font-size: clamp(40px, 6vw, 72px);
}

.cta p {
  max-width: 520px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 18px;
}

footer {
  padding-block: 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  display: block;
  width: 24px;
  height: 24px;
}

/* Responsive */
@media (max-width: 960px) {
  section {
    padding-block: 88px;
  }

  .nav-links {
    display: none;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .case-body {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 28px;
  }

  .case + .case {
    margin-top: 88px;
  }

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

  .spec:nth-child(3) {
    border-left: 0;
  }

  .spec:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .steps,
  .features-3,
  .privacy-grid {
    grid-template-columns: 1fr;
  }

  .features-3 {
    gap: 28px;
  }
}

@media (max-width: 560px) {
  .wrap {
    padding-inline: 18px;
  }

  section {
    padding-block: 72px;
  }

  .hero {
    padding-block: 64px 0;
  }

  .hero-media {
    margin-top: 48px;
  }

  .spec {
    padding: 20px 16px;
  }

  .detail-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .step,
  .privacy-item {
    padding: 24px;
  }

  .step-num {
    margin-bottom: 28px;
  }

  .msg {
    max-width: 94%;
  }
}
