/* ---------- Reset & tokens ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #0a0a0a;
  --ink-soft: #6b6b6b;
  --line: #ececec;
  --bg: #ffffff;
  --accent: #0a0a0a;
  --radius: 40px;
  --max: 1120px;
}

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

body {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -0.011em;
}

a { color: inherit; text-decoration: none; }
mark { background: #fff2b0; color: inherit; padding: 0 2px; border-radius: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 100px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: transform .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-2px); opacity: .9; }
.btn--sm { padding: 10px 20px; font-size: 15px; }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: #f5f5f5; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  margin: 0 auto;
  padding: 22px 24px;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(14px);
}
.nav__logo { font-weight: 800; font-size: 22px; letter-spacing: -.03em; }
.nav__logo span { color: var(--ink-soft); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.nav__links a:hover { color: var(--ink); }
.nav__links a.btn { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px 40px;
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border: 1.5px solid var(--line);
  padding: 7px 16px;
  border-radius: 100px;
  margin-bottom: 30px;
}
.hero__title {
  font-weight: 700;
  font-size: clamp(44px, 8vw, 92px);
  line-height: .98;
  letter-spacing: -.045em;
}
.hero__sub {
  max-width: 560px;
  margin: 28px auto 0;
  font-size: clamp(17px, 2.2vw, 21px);
  color: var(--ink-soft);
  font-weight: 500;
}
.hero__cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-top: 38px;
  flex-wrap: wrap;
}
.hero__device { margin-top: 56px; display: flex; justify-content: center; }

/* ---------- Device stage: phone floats on white, bottom fades into a soft shadow pocket ---------- */
.stage {
  position: relative;
  width: 100%;
  max-width: 440px;
}
/* A soft "hole" at the bottom: darkest in the middle, fading out to the side edges */
.stage::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 7%;
  height: 30px;
  background: radial-gradient(ellipse 46% 130% at 50% 100%,
    rgba(0, 0, 0, .34) 0%,
    rgba(0, 0, 0, .16) 38%,
    rgba(0, 0, 0, 0) 74%);
  filter: blur(9px);
  z-index: 0;
  pointer-events: none;
}
.stage .shot {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: -8%;                 /* pull following content up into the fade */
  /* dissolve the wrist so there is never a hard crop line */
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, transparent 94%);
          mask-image: linear-gradient(to bottom, #000 74%, transparent 94%);
}
.stage--hero { max-width: 560px; }

/* ---------- Phone frame (legacy CSS mockups, unused) ---------- */
.phone {
  position: relative;
  width: 290px;
  aspect-ratio: 9 / 19.5;
  background: #0a0a0a;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.35), 0 0 0 2px #111;
}
.phone--hero { width: 320px; }
.phone__notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 26px;
  background: #0a0a0a;
  border-radius: 0 0 18px 18px;
  z-index: 3;
}
.phone__screen {
  width: 100%; height: 100%;
  background: #fff;
  border-radius: 36px;
  overflow: hidden;
  position: relative;
}

/* ---------- Mock screens ---------- */
.mock { position: absolute; inset: 0; padding: 46px 22px 24px; display: flex; flex-direction: column; }
.mock__label { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }

.mock--hero { background: linear-gradient(180deg,#fafafa,#fff); }
.mock__status { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink); }
.mock__rec { color: #e5484d; }
.mock__caller { margin-top: auto; font-weight: 800; font-size: 20px; }
.mock__transcript { margin-top: 8px; font-size: 15px; color: var(--ink-soft); font-weight: 500; }

/* waveform */
.mock__wave { display: flex; align-items: center; gap: 4px; height: 60px; margin: 26px 0; }
.mock__wave span {
  flex: 1;
  background: var(--ink);
  border-radius: 4px;
  animation: wave 1.1s ease-in-out infinite;
}
.mock__wave--tall { height: 120px; margin: 30px 0; }
.mock__wave span:nth-child(odd) { animation-delay: .15s; }
.mock__wave span:nth-child(3n) { animation-delay: .35s; }
.mock__wave span:nth-child(4n) { animation-delay: .5s; }
@keyframes wave { 0%,100%{ height: 18%; } 50%{ height: 92%; } }

.mock--rec { align-items: center; text-align: center; }
.mock--rec .mock__label { color: #e5484d; }
.mock__time { font-size: 40px; font-weight: 800; letter-spacing: -.03em; margin-top: 8px; }

/* chat / transcript bubbles */
.mock--chat { gap: 10px; }
.bubble {
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}
.bubble--them { align-self: flex-start; background: #f0f0f0; border-bottom-left-radius: 6px; }
.bubble--you { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bubble--typing { align-self: flex-start; background: #f0f0f0; display: flex; gap: 5px; padding: 14px; border-bottom-left-radius: 6px; }
.bubble--typing span { width: 7px; height: 7px; border-radius: 50%; background: #b0b0b0; animation: blink 1.2s infinite; }
.bubble--typing span:nth-child(2){ animation-delay: .2s; }
.bubble--typing span:nth-child(3){ animation-delay: .4s; }
@keyframes blink { 0%,60%,100%{ opacity:.3; } 30%{ opacity:1; } }

/* to-do */
.mock--todo { gap: 14px; }
.todo { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; cursor: default; }
.todo input { width: 20px; height: 20px; accent-color: var(--ink); }
.todo input:checked + span { color: var(--ink-soft); text-decoration: line-through; }

/* music */
.mock--music { align-items: center; text-align: center; }
.disc {
  width: 130px; height: 130px; border-radius: 50%;
  margin: 26px 0 20px;
  background: repeating-radial-gradient(circle at center, #1a1a1a 0 3px, #2b2b2b 3px 6px);
  box-shadow: inset 0 0 0 6px #0a0a0a, 0 10px 30px -10px rgba(0,0,0,.5);
  position: relative;
  animation: spin 6s linear infinite;
}
.disc::after { content:""; position: absolute; inset: 46%; background:#fff; border-radius:50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.mock__track { font-weight: 800; font-size: 17px; }
.eq { display: flex; gap: 5px; align-items: flex-end; height: 36px; margin-top: 18px; }
.eq span { width: 6px; background: var(--ink); border-radius: 3px; animation: wave 1s ease-in-out infinite; }
.eq span:nth-child(2){ animation-delay:.2s; } .eq span:nth-child(3){ animation-delay:.4s; }
.eq span:nth-child(4){ animation-delay:.1s; } .eq span:nth-child(5){ animation-delay:.3s; }

/* voice fx */
.mock--fx { gap: 10px; }
.fx-pill {
  display: inline-block; align-self: flex-start;
  padding: 9px 16px; border-radius: 100px;
  border: 1.5px solid var(--line);
  font-weight: 700; font-size: 14px; color: var(--ink-soft);
}
.fx-pill--on { background: var(--ink); color: #fff; border-color: var(--ink); }
.knob-row { display: flex; gap: 20px; margin-top: auto; justify-content: center; padding-bottom: 6px; }
.knob {
  width: 54px; height: 54px; border-radius: 50%;
  border: 3px solid var(--ink);
  position: relative;
}
.knob span { position: absolute; top: 5px; left: 50%; width: 3px; height: 18px; background: var(--ink); transform-origin: bottom; transform: translateX(-50%) rotate(-40deg); }
.knob--mid span { transform: translateX(-50%) rotate(20deg); }
.knob--high span { transform: translateX(-50%) rotate(60deg); }

/* ---------- Section shells ---------- */
.section-eyebrow {
  text-align: center;
  font-weight: 700; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft);
}
.section-title {
  text-align: center;
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -.04em;
  margin-top: 14px;
}

/* ---------- Features ---------- */
.features { max-width: var(--max); margin: 0 auto; padding: 120px 24px 0; }
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 90px 0;
  border-bottom: 1px solid var(--line);
}
.features .feature:first-of-type { margin-top: 40px; }
.feature--reverse .feature__text { order: 2; }
.feature__num { font-weight: 800; font-size: 15px; color: var(--ink-soft); letter-spacing: .04em; }
.feature__text h3 { font-weight: 700; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.05; letter-spacing: -.035em; margin: 14px 0 18px; }
.feature__text p { font-size: 18px; color: var(--ink-soft); font-weight: 500; max-width: 440px; }
.feature__tag { margin-top: 16px !important; font-weight: 700; font-size: 14px; color: var(--ink) !important; }
.feature__media { display: flex; justify-content: center; }

/* ---------- How it works ---------- */
.how { max-width: var(--max); margin: 0 auto; padding: 120px 24px; text-align: center; }
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 60px;
  text-align: left;
}
.step { padding: 34px; border: 1.5px solid var(--line); border-radius: 28px; }
.step__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 18px;
}
.step h4 { font-weight: 800; font-size: 21px; margin: 20px 0 10px; letter-spacing: -.02em; }
.step p { color: var(--ink-soft); font-weight: 500; font-size: 16px; }

/* ---------- CTA ---------- */
.cta {
  max-width: var(--max);
  margin: 0 auto 40px;
  padding: 90px 24px;
  text-align: center;
  background: #0a0a0a;
  color: #fff;
  border-radius: var(--radius);
}
.cta__title { font-weight: 700; font-size: clamp(34px, 6vw, 64px); line-height: 1; letter-spacing: -.045em; }
.cta__sub { color: #b0b0b0; font-size: 19px; font-weight: 500; margin-top: 20px; }
.cta__form { display: flex; gap: 12px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.cta__form input {
  padding: 15px 22px; border-radius: 100px; border: none;
  font-size: 16px; font-family: inherit; width: 300px; max-width: 100%;
  background: #1c1c1c; color: #fff;
}
.cta__form input::placeholder { color: #7a7a7a; }
.cta__form .btn { background: #fff; color: #0a0a0a; border-color: #fff; }

/* ---------- Footer ---------- */
.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 50px 24px 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.footer__logo { font-weight: 800; font-size: 20px; letter-spacing: -.03em; }
.footer__logo span { color: var(--ink-soft); }
.footer p { color: var(--ink-soft); font-weight: 500; }
.footer__copy { color: var(--ink-soft); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  .nav__links a:not(.btn) { display: none; }
  .feature { grid-template-columns: 1fr; gap: 40px; text-align: center; padding: 70px 0; }
  .feature--reverse .feature__text { order: 0; }
  .feature__text p, .feature__text { margin-left: auto; margin-right: auto; }
  .feature__media { order: -1; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero { padding-top: 50px; }
  .phone, .phone--hero { width: 260px; }
  .nav__logo { font-size: 18px; }
  .nav { padding: 18px 18px; }
}

/* ---------- Entrance animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Block-level fade-in-up on scroll */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1),
                transform .7s cubic-bezier(.2, .7, .2, 1);
  }
  .reveal.in-view { opacity: 1; transform: none; }
  .reveal[data-delay="1"] { transition-delay: .09s; }
  .reveal[data-delay="2"] { transition-delay: .18s; }
  .reveal[data-delay="3"] { transition-delay: .27s; }

  /* Per-character fade-in-up — high timing overlap (long duration, tiny step) */
  .split-chars .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.62em);
    will-change: transform, opacity;
  }
  .split-chars.in-view .char {
    animation: charUp .74s cubic-bezier(.2, .75, .2, 1) both;
    animation-delay: calc(var(--i) * 18ms);
  }
  @keyframes charUp {
    from { opacity: 0; transform: translateY(0.62em); }
    to   { opacity: 1; transform: translateY(0); }
  }
}

/* ---------- Benefits grid ---------- */
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 90px;
}
.benefit { padding: 34px; border: 1.5px solid var(--line); border-radius: 28px; }
.benefit__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--ink); color: #fff;
}
.benefit h4 { font-weight: 800; font-size: 20px; margin: 20px 0 10px; letter-spacing: -.02em; }
.benefit p { color: var(--ink-soft); font-weight: 500; font-size: 15px; }

@media (max-width: 820px) {
  .benefits { grid-template-columns: 1fr; margin-top: 60px; }
}
