:root {
  --bg: #0f0d0b;
  --text: #f0e8df;
  --muted: #9a8a7e;
  --accent: #e85c2e;
  --accent-hover: #ff6d3f;
  --border: rgba(240, 232, 223, 0.08);
  --step-bg: rgba(240, 232, 223, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body { height: 100%; }

body {
  min-height: 100vh;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 60% at 60% -10%, rgba(232, 92, 46, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 0% 100%, rgba(180, 60, 20, 0.12) 0%, transparent 50%),
    var(--bg);
}

.shell {
  width: min(100%, 1100px);
  margin: 0 auto;
  padding: 24px 28px 40px 37px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.header { flex-shrink: 0; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.brand-icon {
  width: 30px;
  height: 28px;
  flex-shrink: 0;
  position: relative;
  top: -1px;
}

/* Two-column layout */
.content-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 5vh 0 3vh;
}

/* Hero */
.hero {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.eyebrow-new {
  color: #4ade80;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 24px;
}

.sub {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.6;
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 36px;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  padding: 17px 30px;
  border-radius: 100px;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  box-shadow: 0 8px 40px rgba(232, 92, 46, 0.4);
  align-self: flex-start;
  letter-spacing: -0.01em;
}

.cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 50px rgba(232, 92, 46, 0.5);
}

.cta:active { transform: translateY(0); }

.cta-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.9;
}

.hint {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Steps */
.steps {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--step-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  flex-wrap: nowrap;
  overflow-x: auto;
  flex-shrink: 0;
}

.step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}

.step-sep {
  color: var(--border);
  font-size: 0.9rem;
  flex-shrink: 0;
  padding: 0 4px;
}

/* ─── iPhone mockup ─── */

.iphone-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iphone {
  width: 270px;
  height: 550px;
  background: #0a0a0a;
  border: 2px solid rgba(255,255,255,0.12);
  border-radius: 42px;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.8),
    0 40px 80px rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.04);
  overflow: hidden;
  padding: 14px 8px 10px;
  display: flex;
  flex-direction: column;
}

/* Dynamic island */
.iphone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 20px;
  background: #000;
  border-radius: 12px;
  z-index: 10;
  border: 1px solid rgba(255,255,255,0.06);
}

/* Screen */
.iphone-screen {
  flex: 1;
  background: #1c1c1e;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

/* Chat header */
.chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 28px 12px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: #1c1c1e;
  flex-shrink: 0;
}

.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.chat-name-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chat-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: #f0e8df;
}

.chat-number {
  font-size: 0.55rem;
  color: rgba(240, 232, 223, 0.45);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Messages */
.chat-messages {
  flex: 1;
  padding: 10px 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow: hidden;
}

.bubble {
  max-width: 80%;
  padding: 7px 10px;
  border-radius: 16px;
  font-size: 0.65rem;
  line-height: 1.4;
  font-weight: 400;
  opacity: 0;
}

.bubble-in {
  align-self: flex-start;
  background: #2c2c2e;
  color: #f0e8df;
  border-bottom-left-radius: 4px;
}

.bubble-out {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* ─── Chat animation ───
   Total loop: 22s
   Bubbles appear at: 0.4, 1.9, 3.4, 5.0, 6.5, 8.0, 9.5, 11.0s
   All visible 11s–15s, fade out 15s–17s, dark 17s–22s
*/

.b1 { animation: b1 22s ease infinite; }
.b2 { animation: b2 22s ease infinite; }
.b3 { animation: b3 22s ease infinite; }
.b4 { animation: b4 22s ease infinite; }
.b5 { animation: b5 22s ease infinite; }
.b6 { animation: b6 22s ease infinite; }
.b7 { animation: b7 22s ease infinite; }
.b8 { animation: b8 22s ease infinite; }

/* helper mixin pattern — each bubble fades in at its start %, stays, fades out at 68% */
@keyframes b1 {
  0%      { opacity: 0; transform: translateY(5px) scale(0.96); }
  1.8%    { opacity: 0; transform: translateY(5px) scale(0.96); }
  4%      { opacity: 1; transform: translateY(0)   scale(1);    }
  68%     { opacity: 1; }
  77%     { opacity: 0; }
  100%    { opacity: 0; }
}
@keyframes b2 {
  0%      { opacity: 0; transform: translateY(5px) scale(0.96); }
  8.6%    { opacity: 0; transform: translateY(5px) scale(0.96); }
  11%     { opacity: 1; transform: translateY(0)   scale(1);    }
  68%     { opacity: 1; }
  77%     { opacity: 0; }
  100%    { opacity: 0; }
}
@keyframes b3 {
  0%      { opacity: 0; transform: translateY(5px) scale(0.96); }
  15.5%   { opacity: 0; transform: translateY(5px) scale(0.96); }
  18%     { opacity: 1; transform: translateY(0)   scale(1);    }
  68%     { opacity: 1; }
  77%     { opacity: 0; }
  100%    { opacity: 0; }
}
@keyframes b4 {
  0%      { opacity: 0; transform: translateY(5px) scale(0.96); }
  22.7%   { opacity: 0; transform: translateY(5px) scale(0.96); }
  25.5%   { opacity: 1; transform: translateY(0)   scale(1);    }
  68%     { opacity: 1; }
  77%     { opacity: 0; }
  100%    { opacity: 0; }
}
@keyframes b5 {
  0%      { opacity: 0; transform: translateY(5px) scale(0.96); }
  29.5%   { opacity: 0; transform: translateY(5px) scale(0.96); }
  32%     { opacity: 1; transform: translateY(0)   scale(1);    }
  68%     { opacity: 1; }
  77%     { opacity: 0; }
  100%    { opacity: 0; }
}
@keyframes b6 {
  0%      { opacity: 0; transform: translateY(5px) scale(0.96); }
  36.4%   { opacity: 0; transform: translateY(5px) scale(0.96); }
  39%     { opacity: 1; transform: translateY(0)   scale(1);    }
  68%     { opacity: 1; }
  77%     { opacity: 0; }
  100%    { opacity: 0; }
}
@keyframes b7 {
  0%      { opacity: 0; transform: translateY(5px) scale(0.96); }
  43.2%   { opacity: 0; transform: translateY(5px) scale(0.96); }
  46%     { opacity: 1; transform: translateY(0)   scale(1);    }
  68%     { opacity: 1; }
  77%     { opacity: 0; }
  100%    { opacity: 0; }
}
@keyframes b8 {
  0%      { opacity: 0; transform: translateY(5px) scale(0.96); }
  50%     { opacity: 0; transform: translateY(5px) scale(0.96); }
  52.5%   { opacity: 1; transform: translateY(0)   scale(1);    }
  68%     { opacity: 1; }
  77%     { opacity: 0; }
  100%    { opacity: 0; }
}

/* ─── Mobile ─── */
@media (max-width: 860px) {
  .iphone-wrap { display: none; }

  .content-wrap {
    padding: 6vh 0 2vh;
  }

  .shell {
    padding: 20px 20px 28px;
  }

  h1 {
    font-size: clamp(2.6rem, 11vw, 3.4rem);
  }

  .cta {
    padding: 16px 24px;
    font-size: 1rem;
    align-self: stretch;
    justify-content: center;
  }

  .steps {
    gap: 6px;
    padding: 14px 16px;
  }
}
