.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
  gap: 40px;
  align-items: center;
}

.hero-copy {
  align-self: center;
  padding-top: 20px;
}

.hero-copy h1,
.section-heading {
  margin: 22px 0 0;
  font-size: clamp(44px, 5.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  color: var(--text);
  font-weight: 800;
}

.hero-copy p {
  max-width: 600px;
  margin: 22px 0 0;
  font-size: 18px;
  line-height: 1.5;
  color: var(--muted);
  font-weight: 500;
}

.hero-messages {
  position: relative;
  height: 332px;
  transition: height 360ms ease;
}

.hero-message {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(18px);
  pointer-events: none;
  transition: opacity 360ms ease, transform 360ms ease;
}

.hero-message.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.hero-message h1 {
  margin: 22px 0 0;
}

.hero-message p {
  margin: 22px 0 0;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: rgba(31, 35, 64, 0.16);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

.hero-dot.is-active {
  background: var(--primary);
  transform: scale(1.18);
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.button--primary {
  box-shadow: 0 16px 32px rgba(197, 4, 113, 0.18), 0 8px 18px rgba(255, 199, 54, 0.16);
}

.button--primary:hover {
  box-shadow: 0 20px 36px rgba(197, 4, 113, 0.22), 0 10px 22px rgba(255, 199, 54, 0.18);
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 34px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 148px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: var(--shadow-soft);
}

.stat:nth-child(1) .stat-icon { background: var(--gradient); }
.stat:nth-child(2) .stat-icon {
  background: var(--gradient-accent);
  color: var(--accent-foreground);
}
.stat:nth-child(3) .stat-icon { background: var(--secondary); }

.stat strong {
  display: block;
  font-size: 31px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.hero-art {
  position: relative;
  min-height: 490px;
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  inset: 4% -6% -2% -10%;
  border-radius: 60px;
  background: var(--gradient-warm);
  opacity: 0.62;
}

.pet-collage {
  position: relative;
  width: min(100%, 560px);
  height: 480px;
  top: -8px;
}

.pet-card {
  position: absolute;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  border: 4px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 40px rgba(25, 27, 48, 0.16);
}

.pet-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pet-card--dog {
  width: 180px;
  height: 250px;
  left: 80px;
  top: 34px;
  transform: rotate(-7deg);
}

.pet-card--cat {
  width: 190px;
  height: 260px;
  right: 42px;
  top: 62px;
  transform: rotate(4deg);
}

.pet-card--pair {
  width: 250px;
  height: 300px;
  left: 180px;
  bottom: 24px;
  z-index: 2;
}

.hero-badge {
  position: absolute;
  right: -10px;
  bottom: 34px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow);
  min-width: 220px;
}

.hero-badge__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--primary-foreground);
  background: var(--gradient);
}

.hero-badge strong {
  display: block;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.hero-badge span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}

.shell--features {
  width: min(1420px, calc(100% - 24px));
}

.section-header {
  max-width: 860px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-header h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.06;
  letter-spacing: -0.05em;
  font-weight: 800;
}

.section-header p {
  max-width: 780px;
  margin: 18px auto 0;
  font-size: 20px;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 500;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.feature-card,
.quote-card {
  padding: 32px;
  border-radius: 30px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(47, 54, 92, 0.06);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 19px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(33, 30, 58, 0.12);
}

.feature-card:nth-child(1) .feature-icon { background: linear-gradient(135deg, #c50471, #ffc736); }
.feature-card:nth-child(2) .feature-icon { background: linear-gradient(135deg, #ffc736, #c50471); }
.feature-card:nth-child(3) .feature-icon { background: linear-gradient(135deg, #c50471, #ffc736); }
.feature-card:nth-child(4) .feature-icon { background: linear-gradient(135deg, #ffc736, #c50471); }

.feature-card h3,
.quote-card strong {
  margin: 26px 0 0;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.04em;
}

.feature-card p,
.quote-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
}

.timeline-wrap {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  padding-top: 24px;
  padding-bottom: 24px;
}

.timeline-wrap::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 86px;
  bottom: 86px;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 199, 54, 0.18), rgba(197, 4, 113, 0.24), rgba(255, 199, 54, 0.18));
  transform: translateX(-50%);
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 96px 1fr;
  column-gap: 56px;
  row-gap: 10px;
  align-items: center;
}

.timeline-step + .timeline-step {
  margin-top: 64px;
}

.timeline-number {
  grid-row: 1;
  align-self: end;
  margin-top: 0;
  font-size: 78px;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-weight: 900;
  color: rgba(197, 4, 113, 0.24);
}

.timeline-step:nth-child(odd) .timeline-number {
  grid-column: 1;
  justify-self: end;
  width: min(100%, 340px);
}

.timeline-step:nth-child(even) .timeline-number {
  grid-column: 3;
  justify-self: start;
  width: min(100%, 340px);
}

.timeline-node {
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: center;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 18px 28px rgba(197, 4, 113, 0.20);
  z-index: 1;
}

.timeline-copy {
  grid-row: 2;
}

.timeline-step:nth-child(odd) .timeline-copy {
  grid-column: 1;
  justify-self: end;
  width: min(100%, 340px);
}

.timeline-step:nth-child(even) .timeline-copy {
  grid-column: 3;
  justify-self: start;
  width: min(100%, 340px);
}

.timeline-copy h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.timeline-copy p {
  max-width: 340px;
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  font-weight: 500;
}

.shell--glimpse {
  width: min(1660px, calc(100% - 28px));
}

.glimpse-strip {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  justify-content: center;
  overflow-x: visible;
  padding: 10px 8px 8px;
  scroll-snap-type: none;
}

.glimpse-strip::-webkit-scrollbar {
  display: none;
}

.glimpse-card {
  flex: 0 0 auto;
  width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  scroll-snap-align: center;
}

.phone-frame {
  position: relative;
  width: 100%;
  border-radius: 34px;
  border: 6px solid rgba(31, 35, 64, 0.08);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 24px 40px rgba(31, 35, 64, 0.12);
  overflow: hidden;
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.glimpse-card:hover .phone-frame {
  transform: translateY(-8px);
  box-shadow: 0 30px 50px rgba(31, 35, 64, 0.16);
}

.phone-notch {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 98px;
  height: 24px;
  background: rgba(31, 35, 64, 0.08);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 1;
}

.phone-frame img {
  width: 100%;
  height: auto;
  display: block;
}

.glimpse-copy {
  max-width: 220px;
  text-align: center;
}

.glimpse-copy h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.glimpse-copy p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 500;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  flex: 0 0 auto;
}

.stars svg {
  width: 16px;
  height: 16px;
  display: block;
  flex: 0 0 auto;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-bottom: 0;
}

.quote-card {
  padding: 28px;
  min-height: 296px;
}

.stars {
  display: flex;
  gap: 4px;
  color: var(--accent);
}

.quote-card p {
  font-size: 16px;
  font-style: italic;
  color: #353b5f;
  min-height: 152px;
}

.quote-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.avatar { background: var(--gradient); }

.quote-author small {
  display: block;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.cta-band {
  margin-top: 80px;
  padding: 94px 0 52px;
}

.cta-shell h2 {
  font-size: clamp(48px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.cta-shell p {
  max-width: 820px;
  font-size: 22px;
  line-height: 1.5;
  color: rgba(255,255,255,0.92);
  font-weight: 500;
}

@media (max-width: 1120px) {
  .hero-grid,
  .features-grid,
  .quote-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid {
    align-items: start;
    gap: 32px;
  }
  .hero-art { min-height: 420px; }
  .pet-collage { transform: scale(0.92); }
  .glimpse-strip {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-inline: 8px;
    scroll-padding-inline: 16px;
  }
}

@media (max-width: 920px) {
  .hero-grid,
  .features-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .timeline-wrap::before {
    left: 41px;
    transform: none;
  }

  .timeline-step {
    grid-template-columns: 82px 1fr;
    gap: 22px;
    min-height: 0;
    padding-bottom: 36px;
  }

  .timeline-node {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .timeline-number,
  .timeline-copy,
  .timeline-step:nth-child(even) .timeline-number,
  .timeline-step:nth-child(even) .timeline-copy,
  .timeline-step:nth-child(odd) .timeline-number,
  .timeline-step:nth-child(odd) .timeline-copy {
    grid-column: 2;
    justify-self: start;
  }

  .timeline-number {
    margin-top: 0;
    font-size: 64px;
  }

  .timeline-copy p { max-width: 100%; }

  .hero-grid { gap: 34px; }
  .hero-art {
    min-height: 0;
    order: 2;
  }
  .hero-copy {
    padding-top: 0;
    order: 1;
  }

  .hero-copy p {
    max-width: 100%;
  }

  .pet-collage {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "dog dog"
      "cat pair"
      "badge badge";
    gap: 14px;
    width: min(100%, 420px);
    height: auto;
    margin: 0 auto;
    top: 0;
    transform: none;
  }

  .pet-card {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    transform: none;
    border-radius: 24px;
    border-width: 3px;
  }

  .pet-card--dog {
    grid-area: dog;
    aspect-ratio: 16 / 10;
  }

  .pet-card--cat,
  .pet-card--pair {
    aspect-ratio: 1 / 1;
  }

  .pet-card--cat { grid-area: cat; }
  .pet-card--pair { grid-area: pair; }

  .hero-badge {
    position: relative;
    grid-area: badge;
    right: auto;
    bottom: auto;
    min-width: 0;
    width: min(100%, 260px);
    margin: -4px auto 0;
    justify-self: center;
  }

  .stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }

  .stat {
    min-width: 0;
  }

  .glimpse-card {
    width: min(220px, 74vw);
  }
}

@media (max-width: 720px) {
  .hero-grid {
    gap: 28px;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .hero-copy p,
  .section-header p,
  .feature-card p,
  .timeline-copy p,
  .cta-shell p {
    font-size: 17px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .stats-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
  }

  .stat {
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .stat strong {
    font-size: 24px;
  }

  .stat span {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.25;
  }

  .section-header {
    margin-bottom: 34px;
  }

  .timeline-wrap {
    padding-top: 0;
    padding-bottom: 0;
  }

  .timeline-wrap::before {
    display: none;
  }

  .timeline-step {
    grid-template-columns: 1fr;
    gap: 14px;
    justify-items: center;
    text-align: center;
    padding-bottom: 0;
  }

  .timeline-step + .timeline-step {
    margin-top: 48px;
  }

  .timeline-number,
  .timeline-copy,
  .timeline-step:nth-child(even) .timeline-number,
  .timeline-step:nth-child(even) .timeline-copy,
  .timeline-step:nth-child(odd) .timeline-number,
  .timeline-step:nth-child(odd) .timeline-copy {
    grid-column: 1;
    justify-self: center;
    width: min(100%, 420px);
    text-align: center;
  }

  .timeline-number {
    grid-row: 1;
    font-size: 58px;
  }

  .timeline-copy {
    grid-row: 2;
  }

  .timeline-node {
    grid-column: 1;
    grid-row: 3;
    width: 72px;
    height: 72px;
  }

  .timeline-copy h3 {
    font-size: 24px;
  }

  .glimpse-strip {
    gap: 20px;
    padding-inline: 6px;
    scroll-padding-inline: 18px;
  }

  .glimpse-card {
    width: min(200px, 74vw);
    gap: 14px;
  }

  .phone-frame {
    border-radius: 30px;
  }

  .phone-notch {
    width: 84px;
    height: 20px;
  }

  .quote-card {
    padding: 24px;
    min-height: 0;
  }

  .quote-card p {
    min-height: 0;
    font-size: 15px;
  }

  .quote-author small {
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  .hero-copy h1,
  .section-header h2,
  .cta-shell h2 {
    font-size: clamp(34px, 12vw, 48px);
  }

  .hero-copy p,
  .section-header p,
  .feature-card p,
  .timeline-copy p,
  .cta-shell p {
    font-size: 16px;
  }

  .feature-card,
  .quote-card {
    padding: 22px;
  }

  .stats-row {
    gap: 8px;
  }

  .stat-icon {
    width: 36px;
    height: 36px;
  }

  .stat strong {
    font-size: 22px;
  }

  .stat span {
    font-size: 10px;
  }

  .pet-collage {
    width: min(100%, 340px);
    gap: 12px;
  }

  .hero-badge {
    width: 100%;
    max-width: 240px;
    margin-top: 2px;
  }

  .glimpse-strip {
    gap: 18px;
    padding-inline: 2px;
  }

  .glimpse-card {
    width: min(184px, 76vw);
  }

  .glimpse-copy h3 {
    font-size: 17px;
  }

  .glimpse-copy p {
    font-size: 13px;
  }

  .cta-band {
    margin-top: 60px;
    padding-top: 72px;
    padding-bottom: 44px;
  }
}
