:root {
  --field: #F3F5F8;
  --ink: #0F1A2B;
  --slate: #4A5568;
  --mist: #D5DBE4;
  --cobalt: #2747E8;
  --amber: #FF9F1C;
  --night: #121D33;
  --night-2: #1B2843;

  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--field);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  font-variation-settings: "opsz" 18;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; }
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--cobalt); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.top, .foot, main > section {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding-block: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -0.02em; font-variation-settings: "opsz" 24, "wdth" 90; }
.top nav { display: flex; align-items: center; gap: 28px; font-size: 16px; }
.top nav a:not(.btn) { text-decoration: none; color: var(--slate); }
.top nav a:not(.btn):hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--cobalt); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 17px;
  transition: background-color .2s ease, transform .2s ease;
}
.btn:hover { background: #1C36C4; }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-light { background: var(--field); color: var(--ink); }
.btn-light:hover { background: #fff; }
.link { color: var(--ink); font-weight: 600; text-underline-offset: 5px; text-decoration-thickness: 2px; text-decoration-color: var(--mist); }
.link:hover { text-decoration-color: var(--cobalt); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding-block: clamp(40px, 8vw, 112px) clamp(64px, 9vw, 128px);
}
h1 {
  font-size: clamp(46px, 7.4vw, 104px);
  line-height: .95;
  letter-spacing: -0.025em;
  font-weight: 700;
  font-variation-settings: "opsz" 96, "wdth" 84;
  max-width: 11ch;
  text-wrap: balance;
}
.lede { margin-top: 28px; font-size: clamp(18px, 1.6vw, 21px); color: var(--slate); max-width: 34em; }
.hero-actions { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

/* Call card: the one loud element on the page */
.call {
  margin: 0;
  background: var(--night);
  color: #E8ECF3;
  border-radius: 32px;
  padding: 26px 26px 22px;
  min-height: 560px;
  display: flex; flex-direction: column;
  box-shadow: 0 40px 80px -40px rgba(15, 26, 43, .55);
}
.call-head { display: flex; align-items: center; gap: 14px; }
.live { width: 12px; height: 12px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 0 rgba(255,159,28,.6); flex: none; }
.call.on .live { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(255,159,28,0); } }
.call-title { font-weight: 600; font-size: 17px; }
.call-sub { font-size: 14px; color: #93A0B8; }
.timer { margin-left: auto; font-size: 15px; color: #93A0B8; font-variant-numeric: tabular-nums; }

.wave {
  height: 112px; margin: 26px 0 18px;
  display: flex; align-items: center; justify-content: center; gap: 7px;
}
.wave span {
  width: 16px; height: 100%; border-radius: 8px; background: #3A4763;
  transform: scaleY(.18); transform-origin: center;
  transition: background-color .3s ease;
}
.call[data-speaker="agent"] .wave span { background: #5B78FF; }
.call[data-speaker="caller"] .wave span { background: #C6CEDD; }

.transcript { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.msg, .tool {
  opacity: 0; transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease;
}
.msg.in, .tool.in { opacity: 1; transform: none; }
.msg { max-width: 86%; padding: 11px 15px; border-radius: 18px; font-size: 16px; line-height: 1.45; }
.msg.caller { align-self: flex-start; background: var(--night-2); border-bottom-left-radius: 6px; }
.msg.agent { align-self: flex-end; background: var(--cobalt); color: #fff; border-bottom-right-radius: 6px; }
.tool {
  align-self: center; font-size: 14px; color: #C6CEDD;
  border: 1px dashed #3A4763; border-radius: 10px; padding: 7px 12px;
}
.tool span { color: var(--amber); font-weight: 600; margin-right: 6px; }
.call-foot {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid #26334F;
  font-size: 15px; color: #93A0B8;
  opacity: 0; transition: opacity .6s ease;
}
.call-foot.in { opacity: 1; }

/* Sections */
main > section + section { margin-top: clamp(88px, 11vw, 160px); }
h2 {
  font-size: clamp(34px, 4.4vw, 60px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-weight: 700;
  font-variation-settings: "opsz" 72, "wdth" 82;
  text-wrap: balance;
}
h3 { font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; font-variation-settings: "opsz" 32, "wdth" 92; }

.build { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px clamp(32px, 6vw, 96px); }
.rows { display: grid; }
.row {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 40px;
  padding: 30px 0; border-top: 1px solid var(--mist);
}
.row:last-child { border-bottom: 1px solid var(--mist); }
.row p { color: var(--slate); grid-column: 2; }
.row h3 { grid-row: span 2; }
.row .proof { color: var(--ink); font-size: 15px; display: flex; gap: 10px; align-items: baseline; }
.row .proof::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); flex: none; transform: translateY(-1px); }

.demo {
  background: var(--ink); color: #E8ECF3;
  border-radius: 36px;
  padding-block: clamp(48px, 7vw, 96px);
  max-width: calc(var(--max) + 2 * var(--gutter)) !important;
}
.demo .demo-intro { max-width: 760px; padding-inline: clamp(0px, 3vw, 40px); }
.demo .demo-intro p { margin-top: 22px; color: #AEB8CB; font-size: 19px; max-width: 36em; }
.steps {
  list-style: none; margin: clamp(40px, 6vw, 72px) 0 0; padding: 0 clamp(0px, 3vw, 40px);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px;
  counter-reset: step;
}
.steps li { counter-increment: step; padding-top: 22px; border-top: 2px solid #2A3854; }
.steps li::before {
  content: counter(step); display: block; margin-bottom: 18px;
  font-size: 44px; line-height: 1; font-weight: 300; color: #5B78FF;
  font-variation-settings: "opsz" 96, "wdth" 75;
}
.steps h3 { font-size: 20px; color: #fff; }
.steps p { margin-top: 10px; color: #AEB8CB; font-size: 16px; }

.langs { text-align: left; }
.hello {
  display: flex; flex-wrap: wrap; gap: 6px 36px; align-items: baseline;
  font-size: clamp(30px, 4.6vw, 64px); letter-spacing: -0.03em; line-height: 1.15; font-weight: 500;
  font-variation-settings: "opsz" 72, "wdth" 85;
}
.hello span:nth-child(1) { color: var(--ink); font-family: var(--font), "Noto Sans Arabic", "Segoe UI", Tahoma, sans-serif; letter-spacing: 0; }
.hello span:nth-child(2) { color: var(--cobalt); }
.hello span:nth-child(3) { color: #8D99AE; }
.langs-note { margin-top: 26px; max-width: 36em; color: var(--slate); }

.faq { max-width: calc(880px + 2 * var(--gutter)) !important; }
.faq h2 { margin-bottom: 28px; }
details { border-top: 1px solid var(--mist); }
details:last-of-type { border-bottom: 1px solid var(--mist); }
summary {
  cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative;
  font-size: 21px; font-weight: 600; letter-spacing: -0.01em;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -10px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg); transition: transform .25s ease, margin-top .25s ease;
}
details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
details p { padding: 0 0 24px; color: var(--slate); max-width: 40em; }

.cta {
  text-align: center;
  background: var(--cobalt); color: #fff;
  border-radius: 36px;
  padding-block: clamp(56px, 8vw, 112px);
  display: flex; flex-direction: column; align-items: center;
}
.cta img { margin-bottom: 26px; }
.cta h2 { max-width: 15ch; }
.cta p { margin: 22px 0 34px; max-width: 32em; color: #DDE3FF; }

.foot {
  margin-top: clamp(64px, 8vw, 112px);
  padding-block: 32px 40px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px;
  font-size: 15px; color: var(--slate);
}
.foot .brand { font-size: 17px; color: var(--ink); margin-right: auto; }

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .call { min-height: 520px; }
  .build { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  body { font-size: 17px; }
  .top nav a:not(.btn) { display: none; }
  .row { grid-template-columns: 1fr; }
  .row p, .row h3 { grid-column: 1; grid-row: auto; }
  .steps { grid-template-columns: 1fr; }
  .demo, .cta { border-radius: 24px; }
  .call { border-radius: 24px; padding: 20px 18px; }
  .wave { height: 88px; }
  .wave span { width: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .msg, .tool, .call-foot { transition: none; }
  .call.on .live { animation: none; }
}
