/* Reply hero v2 — phone mock + kinetic + scene rail + dash peek */
.hero {
  position: relative;
  min-height: min(96vh, 960px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding-bottom: 0;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 55% 50% at 85% 15%, rgba(255, 150, 120, 0.45), transparent 55%),
    radial-gradient(ellipse 40% 45% at 5% 85%, rgba(255, 107, 87, 0.16), transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.4), transparent 60%),
    linear-gradient(165deg, #fff7f2 0%, #ffe3d4 40%, #fff8f4 100%);
}
.hero__bg::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,107,87,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 20%, transparent 75%);
}
.hero__content {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 28px;
  display: grid;
  gap: 28px;
  align-items: center;
}
@media (min-width: 980px) {
  .hero__content {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 24px;
    padding: 32px 0 36px;
  }
}

.hero__copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 3.7rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin: 0 0 16px;
  max-width: 12ch;
}
.kinetic {
  display: block;
  color: var(--coral-deep);
  height: 1.12em;
  overflow: hidden;
  margin: 0.02em 0 0.04em;
}
.kinetic__track {
  display: block;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.kinetic__word {
  display: block;
  height: 1.12em;
  line-height: 1.12em;
  white-space: nowrap;
}
@media (prefers-reduced-motion: reduce) {
  .kinetic__track { transition: none; }
}

.hero__lead {
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 38ch;
  margin: 0 0 24px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-proof {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}
.hero-avatars {
  display: flex;
}
.hero-avatars i {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-left: -8px;
  background: linear-gradient(145deg, #ffd0c0, #ff6b57);
  box-shadow: 0 4px 10px rgba(26,20,18,0.08);
}
.hero-avatars i:first-child { margin-left: 0; background: linear-gradient(145deg, #ffe0a3, #ff9f43); }
.hero-avatars i:nth-child(2) { background: linear-gradient(145deg, #c9f0df, #4ecb8d); }
.hero-avatars i:nth-child(3) { background: linear-gradient(145deg, #ffd5e5, #ff6b9d); }
.hero-proof p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 650;
  color: var(--ink-soft);
  max-width: 22ch;
  line-height: 1.35;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.hero__trust span {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
}

/* Stage */
.hero__visual {
  position: relative;
  min-height: 580px;
  display: grid;
  place-items: center;
}
.hero-stage {
  position: relative;
  width: min(100%, 520px);
  height: 580px;
  margin: 0 auto;
  transform-style: preserve-3d;
  transform: perspective(1100px) rotateX(0deg) rotateY(0deg);
  will-change: transform;
}
.hero-stage.is-tilting {
  transition: none;
}
.hero-stage__glow {
  position: absolute;
  inset: 6% 4%;
  border-radius: 48px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255,180,154,0.6), transparent 45%),
    radial-gradient(circle at 75% 70%, rgba(255,107,87,0.3), transparent 50%);
  filter: blur(10px);
  z-index: 0;
  opacity: 0.85;
  transform: translateZ(-40px);
}

/* CRM dashboard peek behind phone */
.dash-peek {
  position: absolute;
  right: 8px;
  top: 54px;
  width: 250px;
  height: 210px;
  z-index: 2;
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 24px 50px rgba(26,20,18,0.1);
  transform: rotate(7deg) translateZ(-28px);
}
.dash-peek__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.dash-peek__bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
  height: 72px;
  margin-bottom: 12px;
}
.dash-peek__bars span {
  display: block;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, var(--peach), var(--coral));
  opacity: 0.85;
  animation: bar-dance 2.8s ease-in-out infinite;
}
.dash-peek__bars span:nth-child(1) { height: 35%; animation-delay: 0s; }
.dash-peek__bars span:nth-child(2) { height: 55%; animation-delay: 0.1s; }
.dash-peek__bars span:nth-child(3) { height: 42%; animation-delay: 0.2s; }
.dash-peek__bars span:nth-child(4) { height: 78%; animation-delay: 0.3s; }
.dash-peek__bars span:nth-child(5) { height: 60%; animation-delay: 0.4s; }
.dash-peek__bars span:nth-child(6) { height: 90%; animation-delay: 0.5s; }
.dash-peek__bars span:nth-child(7) { height: 50%; animation-delay: 0.6s; }
@keyframes bar-dance {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.72); }
}
.dash-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 650;
  margin-bottom: 6px;
}
.dash-row em {
  margin-left: auto;
  font-style: normal;
  color: #1a9f5c;
  font-weight: 800;
  font-size: 0.7rem;
}

/* Phone device */
.phone {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-54%, -50%);
  width: 292px;
  z-index: 5;
  padding: 10px;
  border-radius: 36px;
  background: linear-gradient(160deg, #2a221f 0%, #1a1412 100%);
  box-shadow:
    0 40px 80px rgba(232, 79, 58, 0.22),
    0 16px 32px rgba(26, 20, 18, 0.25),
    inset 0 1px 0 rgba(255,255,255,0.12);
}
.phone__notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 22px;
  border-radius: 999px;
  background: #0d0a09;
  z-index: 2;
}
.phone__screen {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  min-height: 430px;
}
.phone__home {
  width: 104px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,0.28);
  margin: 8px auto 2px;
}

.hero-chat {
  background: #fff;
  overflow: hidden;
  height: 100%;
  min-height: 430px;
  display: flex;
  flex-direction: column;
}
.hero-chat__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 28px 14px 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #fff8f4);
}
.hero-chat__bar img {
  width: 30px; height: 30px; border-radius: 9px;
}
.hero-chat__bar strong {
  display: block; font-size: 0.86rem; letter-spacing: -0.02em;
}
.hero-chat__bar span {
  display: block; font-size: 0.68rem; color: var(--coral-deep); font-weight: 700;
}
.hero-chat__live {
  margin-left: auto;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a9f5c;
  background: #e8f7ef;
  padding: 4px 8px;
  border-radius: 999px;
}
.hero-chat__live::before {
  content: "";
  display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: #1a9f5c; margin-right: 5px; vertical-align: middle;
  animation: live-blink 1.6s ease-in-out infinite;
}
@keyframes live-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.hero-chat__thread {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 12px 16px;
  flex: 1;
  background:
    radial-gradient(ellipse 80% 40% at 100% 0%, rgba(255,180,154,0.18), transparent),
    #faf7f5;
}
.bubble {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.4;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.bubble.is-in { opacity: 1; transform: none; }
.bubble--client {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fff;
  border-bottom-right-radius: 5px;
}
.bubble--bot {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-bottom-left-radius: 5px;
  box-shadow: 0 6px 16px rgba(26,20,18,0.04);
}
.bubble--bot small {
  display: block; margin-bottom: 3px;
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--coral-deep);
}
.bubble--meta {
  align-self: center; max-width: none; padding: 0;
  font-size: 0.66rem; color: var(--ink-soft);
  background: transparent; border: 0; box-shadow: none;
}
.typing {
  align-self: flex-start;
  display: none; align-items: center; gap: 5px;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  border-bottom-left-radius: 5px;
}
.typing.is-on { display: inline-flex; }
.typing i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--peach);
  animation: typing-dot 1s infinite ease-in-out;
}
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-dot {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

/* Float cards */
.float-card {
  position: absolute;
  z-index: 6;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.75);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(26, 20, 18, 0.1);
  padding: 12px 14px;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.float-card.is-on { opacity: 1; transform: none; }
.float-card--product {
  top: 10px; left: 0; width: 170px;
}
.float-card--speed {
  top: 22px; right: 4px; width: 142px;
}
.float-card--order {
  bottom: 88px; right: -6px; width: 188px;
}
.float-card--ttn {
  bottom: 52px; left: -4px; width: 172px;
}
.float-card__label {
  font-size: 0.62rem; font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 4px;
}
.float-card__title {
  font-family: var(--font-display);
  font-size: 0.92rem; letter-spacing: -0.02em;
  font-weight: 700; margin: 0;
}
.float-card__sub { margin: 3px 0 0; font-size: 0.76rem; color: var(--ink-soft); }
.float-card__row { display: flex; align-items: center; gap: 10px; }
.float-card__swatch {
  width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(145deg, #ffd0c0, #ff7a6e 60%, #e84f3a);
}
.float-card__value {
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 700;
  letter-spacing: -0.03em; color: var(--coral-deep); line-height: 1;
}
.float-card__ok {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.76rem; font-weight: 700; color: #146c43; margin-top: 6px;
}
.float-card__ok::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1a9f5c;
}

/* Scene progress rail */
.scene-rail {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  z-index: 8;
  display: flex;
  gap: 6px;
  padding: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.82);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 28px rgba(26,20,18,0.08);
}
.scene-rail button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ink-soft);
  padding: 7px 10px;
  border-radius: 999px;
  cursor: default;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}
.scene-rail button.is-active {
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fff;
}

@media (max-width: 979px) {
  .hero {
    min-height: 0;
    align-items: start;
  }
  .hero__content {
    padding: 12px 0 16px;
    gap: 18px;
    width: min(1200px, calc(100% - 24px));
  }
  .hero__copy h1 {
    font-size: clamp(1.7rem, 7.2vw, 2.35rem);
    max-width: none;
    margin: 0 0 10px;
    line-height: 1.08;
    letter-spacing: -0.04em;
  }
  .kinetic {
    height: 1.15em;
    margin: 0.04em 0 0.06em;
  }
  .kinetic__word {
    height: 1.15em;
    line-height: 1.15em;
  }
  .hero__lead {
    font-size: 0.94rem;
    line-height: 1.45;
    max-width: none;
    margin: 0 0 16px;
  }
  .hero__visual {
    min-height: auto;
    width: 100%;
    place-items: start center;
  }
  .hero-stage {
    height: auto;
    min-height: 0;
    width: 100%;
    max-width: 340px;
    padding-bottom: 56px;
    transform: none !important;
    transform-style: flat;
  }
  .hero-stage__glow {
    display: none;
  }
  .dash-peek,
  .float-card--product,
  .float-card--speed,
  .float-card--ttn,
  .float-card--order {
    display: none !important;
  }
  .phone {
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    margin: 4px auto 0;
    width: min(100%, 292px);
    border-radius: 32px;
    padding: 9px;
    box-shadow:
      0 22px 48px rgba(232, 79, 58, 0.18),
      0 10px 24px rgba(26, 20, 18, 0.16);
  }
  .phone__notch {
    top: 14px;
    width: 84px;
    height: 18px;
  }
  .phone__screen {
    border-radius: 24px;
    min-height: 360px;
  }
  .hero-chat {
    min-height: 360px;
  }
  .hero-chat__bar {
    padding: 24px 12px 10px;
    gap: 8px;
  }
  .hero-chat__bar img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }
  .hero-chat__bar strong { font-size: 0.82rem; }
  .hero-chat__bar span { font-size: 0.64rem; }
  .hero-chat__live {
    font-size: 0.58rem;
    padding: 3px 7px;
  }
  .hero-chat__thread {
    gap: 8px;
    padding: 12px 10px 14px;
  }
  .bubble {
    font-size: 0.84rem;
    line-height: 1.35;
    padding: 8px 11px;
    max-width: 92%;
  }
  .bubble--meta { font-size: 0.7rem; }
  .bubble--bot small { font-size: 0.62rem; }
  .scene-rail {
    left: 50%;
    bottom: 4px;
    transform: translateX(-50%);
    width: min(100%, 312px);
    max-width: none;
    padding: 5px;
    gap: 3px;
    backdrop-filter: none;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: 0 8px 20px rgba(26, 20, 18, 0.08);
  }
  .scene-rail button {
    flex: 1 1 0;
    min-height: 36px;
    padding: 6px 2px;
    font-size: 0.62rem;
    line-height: 1.15;
    white-space: normal;
    text-align: center;
    border-radius: 999px;
  }
  .scene-rail .sr-full { display: none; }
  .scene-rail .sr-short { display: inline; }
}

@media (min-width: 980px) {
  .scene-rail .sr-short { display: none; }
  .scene-rail .sr-full { display: inline; }
}

@media (max-width: 560px) {
  .hero__content {
    padding: 8px 0 12px;
    gap: 14px;
    width: calc(100% - 20px);
  }
  .hero__copy h1 {
    font-size: clamp(1.55rem, 7.8vw, 2.05rem);
  }
  .hero__lead {
    font-size: 0.9rem;
    margin-bottom: 14px;
  }
  .hero-stage {
    max-width: 300px;
    padding-bottom: 50px;
  }
  .phone {
    width: min(100%, 270px);
    margin-top: 0;
    border-radius: 28px;
    padding: 8px;
  }
  .phone__screen,
  .hero-chat { min-height: 340px; }
  .scene-rail {
    width: min(100%, 286px);
  }
  .scene-rail button {
    min-height: 34px;
    font-size: 0.6rem;
  }
}

@media (max-width: 380px) {
  .hero__copy h1 { font-size: 1.45rem; }
  .phone {
    width: 100%;
    border-radius: 26px;
    padding: 7px;
  }
  .phone__screen { border-radius: 20px; }
  .phone__screen,
  .hero-chat { min-height: 320px; }
  .bubble { font-size: 0.8rem; padding: 7px 10px; }
  .scene-rail button { font-size: 0.56rem; min-height: 32px; }
}

/* Lite: kill heavy hero effects */
html.lite .hero-stage__glow { display: none; }
html.lite .dash-peek__bars span { animation: none; }
html.lite .float-card { animation: none !important; box-shadow: 0 8px 20px rgba(26,20,18,0.08); }
html.lite .kinetic__track { transition: none !important; }
