:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --surface-2: #f0effa;
  --text: #15142b;
  --muted: #5d5b75;
  --line: #e3e1f0;
  --brand: #5b4cf0;
  --brand-2: #7c3aed;
  --brand-ink: #ffffff;
  --bubble-user: #5b4cf0;
  --bubble-bot: #ffffff;
  --done: #157f4c;
  --shadow: 0 20px 50px -20px rgba(54, 40, 160, 0.35);
  --radius: 18px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0d18;
    --surface: #17162a;
    --surface-2: #1d1b33;
    --text: #edecf8;
    --muted: #a9a7c4;
    --line: #2b2946;
    --brand: #7b6ff7;
    --brand-2: #9b6bf2;
    --bubble-user: #6a5cf3;
    --bubble-bot: #23213b;
    --done: #4cd08a;
    --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { border-radius: 8px; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang select {
  appearance: none; -webkit-appearance: none;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%238a88a6' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 10px center / 12px;
  color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 30px 7px 12px; font: inherit; font-size: 14px; cursor: pointer;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: var(--brand-ink); text-decoration: none; font-weight: 650;
  border-radius: 14px; padding: 14px 22px; font-size: 17px;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.btn:hover { filter: brightness(1.07); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.btn-small { padding: 8px 14px; font-size: 14px; border-radius: 10px; box-shadow: none; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; box-shadow: none; }

/* Hero */
.hero { padding: 56px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.badge {
  display: inline-block; margin-bottom: 18px; padding: 5px 12px; border-radius: 999px;
  background: var(--surface-2); color: var(--brand); font-size: 13px; font-weight: 650;
  border: 1px solid var(--line);
}
h1 { font-size: clamp(34px, 5.2vw, 54px); font-weight: 800; }
.lead { margin-top: 18px; font-size: clamp(17px, 2vw, 19px); color: var(--muted); max-width: 34em; }
.get { margin-top: 30px; }
.get-meta { margin-top: 10px; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.get-soon { margin-top: 10px; font-size: 14px; color: var(--muted); }
.get-ios { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.get-ios svg { width: 16px; height: 16px; fill: currentColor; flex: none; }

/* Phone with the demo chat */
.phone {
  justify-self: center; width: 100%; max-width: 340px;
  border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2a2747, #121124);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}
.screen {
  border-radius: 34px; padding: 26px 14px 22px; min-height: 520px;
  background: var(--surface-2);
  display: flex; flex-direction: column; gap: 10px; justify-content: flex-end;
  font-size: 14px; line-height: 1.4;
}
.msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; }
.msg-user { align-self: flex-end; background: var(--bubble-user); color: #fff; border-bottom-right-radius: 5px; }
.msg-bot { align-self: flex-start; background: var(--bubble-bot); border-bottom-left-radius: 5px; border: 1px solid var(--line); }
.msg-done { font-weight: 600; }
.msg-done span { color: var(--done); }
.card {
  align-self: flex-start; width: 92%;
  background: var(--bubble-bot); border: 1px solid var(--line); border-radius: 16px; padding: 12px 13px;
}
.card-title { font-weight: 700; margin-bottom: 8px; }
.card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; font-size: 13px; }
.card dt { color: var(--muted); }
.card dd { margin: 0; font-weight: 550; }
.card-action {
  margin-top: 10px; text-align: center; padding: 8px; border-radius: 10px;
  background: var(--surface-2); color: var(--brand); font-weight: 650; font-size: 13px;
}

/* Sections */
.section { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; margin-bottom: 32px; }
h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.section p { color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.num {
  display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 16px;
  border-radius: 12px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 800;
}

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 4px 0; }
.feature .icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 14px; background: var(--surface-2); font-size: 22px;
}

/* Download */
.download {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 40px;
}
.download-text { max-width: 560px; }
.download-icon { border-radius: 18px; margin-bottom: 18px; }
.download h2 { margin-bottom: 24px; font-size: clamp(24px, 3vw, 30px); }
.hint { margin-top: 14px; font-size: 14px; }
.qr { margin: 0; text-align: center; flex: none; }
.qr img { display: block; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 10px; width: 180px; height: 180px; }
.qr figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* Footer */
.foot { padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.foot-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .hero { padding: 36px 0 24px; }
  .steps, .features { grid-template-columns: 1fr; }
  .section { padding: 48px 0; }
  .download { flex-direction: column; align-items: flex-start; padding: 24px; border-radius: 22px; }
  .qr { display: none; }
  .btn { width: 100%; }
  .btn-small { width: auto; }
  .top .btn-small { display: none; }
  .screen { min-height: 0; }
}
