/* Landing page. Layout and tokens copied from bp-web (HomeHero + globals.css). */
:root {
  --ink: #0c2d52;
  --cyan: #1b8fc7;
  --cyan-bright: #5bc8ee;
  --accent-soft: rgba(27, 143, 199, 0.16);
  --muted: #54677c;
  --on-dark: #eaf4fb;
  --font-display: "Zilla Slab", Georgia, serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body {
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding: 24px 32px 0;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 27px;
  line-height: 0.86;
  letter-spacing: -0.015em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 150ms;
}
.btn-ink { background: var(--ink); color: var(--on-dark); }
.btn-ink:hover { background: var(--cyan); }
.btn-lg { margin-top: 40px; padding: 12px 24px; font-size: 16px; border-radius: 10px; }

/* Hero */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 24px 16px;
  text-align: center;
}
.hero h1 {
  margin: 0;
  max-width: 100%;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5.4vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.gradient {
  background: linear-gradient(to right, var(--cyan), var(--cyan-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.subhead {
  max-width: 56rem;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.625;
}

/* Tilted phone mockup */
.mock {
  margin: 56px 0 0;
  perspective: 1800px;
}
.mock-phone {
  width: 300px;
  padding: 10px;
  border-radius: 46px;
  background: #0b1a2c;
  box-shadow:
    inset 0 0 0 2px #2a3d55,
    -30px 40px 80px rgba(12, 45, 82, 0.28),
    -8px 12px 24px rgba(12, 45, 82, 0.18);
  transform: rotateY(-16deg) rotateX(8deg) rotateZ(5deg);
  transform-style: preserve-3d;
}
.mock-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 610px;
  padding: 44px 16px 22px;
  border-radius: 36px;
  background: linear-gradient(180deg, #f4f9fd 0%, #ffffff 40%);
  overflow: hidden;
  text-align: left;
}
.mock-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  width: 84px;
  height: 22px;
  border-radius: 12px;
  background: #0b1a2c;
  transform: translateX(-50%);
}
.mock-caller { text-align: center; }
.mock-avatar {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan-bright), var(--cyan));
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  animation: speak 1.6s ease-out infinite;
}
@keyframes speak {
  0%   { box-shadow: 0 0 0 0 rgba(27, 143, 199, 0.45); }
  100% { box-shadow: 0 0 0 16px rgba(27, 143, 199, 0); }
}
.mock-name { margin: 0; font-size: 18px; font-weight: 600; }
.mock-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.live { width: 6px; height: 6px; border-radius: 50%; background: #22a447; }

.mock-chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  min-height: 0;
  margin: 10px 0 8px;
  padding: 0;
  list-style: none;
  transition: opacity 400ms;
}
.mock-chat.fade { opacity: 0; }
.mock-chat.restart li { animation: none; }
.mock-chat li {
  max-width: 86%;
  padding: 7px 11px;
  border-radius: 14px;
  font-size: 12.5px;
  line-height: 1.4;
  opacity: 0;
  animation: bubble-in 400ms ease-out forwards;
}
.mock-chat .agent { align-self: flex-start; background: #eaf2f8; border-bottom-left-radius: 4px; }
.mock-chat .user { align-self: flex-end; background: var(--ink); color: var(--on-dark); border-bottom-right-radius: 4px; }
.mock-chat .booked {
  display: flex;
  align-items: center;
  gap: 10px;
  align-self: stretch;
  max-width: none;
  margin-top: 4px;
  padding: 10px 12px;
  border: 1px solid rgba(34, 164, 71, 0.3);
  border-radius: 12px;
  background: #f0faf3;
  color: #1a7f37;
  font-size: 12px;
}
.booked span { color: var(--ink); }
.booked strong { color: #1a7f37; font-weight: 600; }
.mock-chat li:nth-child(1) { animation-delay: 0.3s; }
.mock-chat li:nth-child(2) { animation-delay: 1.1s; }
.mock-chat li:nth-child(3) { animation-delay: 1.9s; }
.mock-chat li:nth-child(4) { animation-delay: 2.7s; }
.mock-chat li:nth-child(5) { animation-delay: 3.5s; }
.mock-chat li:nth-child(6) { animation-delay: 4.3s; }
@keyframes bubble-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.mock-hangup {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin: 0 auto;
  border-radius: 50%;
  background: #d93a30;
}

@media (prefers-reduced-motion: reduce) {
  .mock-avatar { animation: none; }
  .clients-list { animation: none; }
  .mock-chat li { opacity: 1; animation: none; }
}

/* Client logos */
.clients { margin: 0; text-align: center; }
.clients h2 {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.clients-marquee {
  --logo-w: 140px;
  --logo-gap: 40px;
  display: flex;
  overflow: hidden;
  /* at most 5 logos visible at once; fewer on narrow screens */
  width: 100%;
  max-width: calc(5 * var(--logo-w) + 4 * var(--logo-gap));
  margin: 0 auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.clients-list {
  flex: none;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  animation: marquee 28s linear infinite;
}
.clients-marquee:hover .clients-list { animation-play-state: paused; }
.clients-list li {
  flex: none;
  width: var(--logo-w);
  margin-right: var(--logo-gap);
}
.clients-list img {
  display: block;
  width: 100%;
  height: 40px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
}
@keyframes marquee {
  to { transform: translateX(-100%); }
}

.footer {
  padding: 8px 16px;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
}

@media (min-width: 640px) {
  .subhead { font-size: 18px; }
}

/* Side by side: copy on the left, phone on the right. */
@media (min-width: 960px) {
  .hero {
    flex-direction: row;
    gap: 64px;
    width: 100%;
    max-width: 72rem;
    margin: 0 auto;
    padding: 48px 32px 16px;
    text-align: left;
  }
  .hero-copy { flex: 1; }
  .mock { flex: none; margin: 0 24px 0 0; }
}

@media (max-width: 639px) {
  .header { padding: 16px 16px 0; }
  .hero { padding: 48px 16px 16px; }
  .mock { margin-top: 40px; }
  .mock-phone { width: 270px; transform: rotateY(-10deg) rotateX(6deg) rotateZ(4deg); }
  .mock-screen { height: 570px; }
}
