.hero.hero-demo {
  display: grid;
  grid-template-columns: minmax(280px, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(36px, 5vw, 88px);
  align-items: center;
  padding-block: clamp(48px, 8vh, 96px) clamp(40px, 6vh, 72px);
  width: min(1120px, 100%);
  max-width: 100%;
}

.hero-demo .hero-copy {
  max-width: 36em;
  position: relative;
  z-index: 2;
}

@keyframes hero-dot-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.2;
  }
}

.hero-demo h1 {
  max-width: 11em;
  margin: 0;
  font-size: clamp(36px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 800;
  text-wrap: balance;
}

.hero-demo .lede {
  max-width: 28em;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.hero-demo .hero-pipe {
  margin-top: 16px;
  font-size: clamp(17px, 1.8vw, 22px);
}

.hero-demo .actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
}

.hero-demo .btn-hero {
  appearance: none;
  border: 2px solid var(--accent);
  border-radius: 999px;
  padding: 14px 20px 14px 22px;
  min-height: 48px;
  background: #fff;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 22px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 250ms cubic-bezier(0.22, 1, 0.36, 1), background 250ms ease, color 250ms ease;
}

.hero-demo .btn-hero:hover {
  transform: translateY(-2px);
  background: var(--accent);
  color: #fff;
}

.hero-demo .btn-hero:hover .arrow {
  color: #fff;
}

.hero-demo .btn-hero:focus-visible,
.hero-demo .hero-replay:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 28%, transparent);
  outline-offset: 3px;
}

.hero-demo .btn-hero .arrow {
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

.hero-demo .hero-replay {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  padding: 8px 0;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  transition: color 200ms ease;
}

.hero-demo .hero-replay:hover {
  color: var(--ink);
}

.hero-stage {
  position: relative;
  min-width: 0;
  aspect-ratio: 1.12 / 1;
  display: grid;
  place-items: center;
}

.hero-browser {
  position: relative;
  width: min(100%, 640px);
  height: 82%;
  min-height: 380px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.06);
}

.hero-browser-bar {
  height: 42px;
  border-bottom: 1px solid var(--rule);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 6px;
}

.hero-browser-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d6d6d2;
}

.hero-browser-address {
  width: 34%;
  height: 6px;
  border-radius: 5px;
  background: var(--paper-2);
  margin: 0 auto;
  transform: translateX(-10px);
}

.hero-site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(20px, 3.5vw, 40px);
  font-size: 10px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.hero-site-links {
  display: flex;
  gap: 16px;
  color: #8c8c88;
}

.hero-site-main {
  height: calc(100% - 104px);
  padding: clamp(24px, 4vw, 48px) clamp(20px, 4.5vw, 48px) 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  gap: 0;
}

.hero-site-kicker {
  margin-bottom: 14px;
  color: #9a9a96;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-sample-title {
  position: relative;
  max-width: 18em;
  margin: 0;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-weight: 700;
}

.hero-page-url {
  margin: 12px 0 22px;
  color: #999;
  font-size: 10px;
}

.hero-seo-data {
  width: 100%;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr 0.75fr;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  flex: 0 0 auto;
}

.hero-seo-metric {
  min-width: 0;
  padding: 14px 12px;
  border-right: 1px solid var(--rule);
}

.hero-seo-metric:first-child {
  padding-left: 0;
}

.hero-seo-metric:last-child {
  border-right: 0;
}

.hero-metric-label {
  display: block;
  margin-bottom: 8px;
  color: #999;
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-metric-value {
  display: block;
  min-height: 1.25em;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  position: relative;
  overflow: hidden;
}

.hero-metric-value.is-danger {
  color: var(--accent);
}

.hero-value-before,
.hero-value-after {
  display: block;
  transition: opacity 400ms ease, transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-value-after {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.hero-browser.is-fixed .hero-value-before {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

.hero-browser.is-fixed .hero-value-after {
  opacity: 1;
  transform: none;
}

.hero-index-status {
  display: block;
  white-space: nowrap;
  padding-left: 14px;
}

.hero-index-status::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--accent);
  transition: background 400ms ease;
}

.hero-index-status .hero-value-after {
  left: 14px;
}

.hero-browser.is-fixed .hero-index-status::before {
  background: #1b9c61;
}

.hero-finding {
  position: absolute;
  z-index: 4;
  width: min(250px, 46%);
  right: 16px;
  top: 64px;
  padding: 14px 15px;
  border-radius: 12px;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  transition: opacity 350ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.hero-finding.is-on {
  opacity: 1;
  transform: none;
}

.hero-finding-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #ff8f86;
}

.hero-finding-label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-finding p {
  font-size: 13px;
  line-height: 1.35;
  margin: 8px 0 0;
}

.hero-issues {
  width: 100%;
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 32px;
  align-items: center;
  pointer-events: none;
}

.hero-issue {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  font-size: 10px;
  color: #666;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 350ms ease, transform 500ms cubic-bezier(0.22, 1, 0.36, 1), color 400ms ease, border-color 400ms ease;
}

.hero-issue.is-on {
  opacity: 1;
  transform: none;
}

.hero-issue-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  flex: 0 0 auto;
}

.hero-issue.is-done {
  color: #aaa;
  border-color: #ebebeb;
}

.hero-issue.is-done .hero-issue-dot {
  border-color: #bbb;
  background: #bbb;
}

.hero-focus {
  position: absolute;
  z-index: 10;
  left: 0;
  top: 0;
  width: 48px;
  height: 48px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
  will-change: transform, width, height, opacity;
}

.hero-stage-status {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  color: #999;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .hero.hero-demo {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 56px;
  }

  .hero-demo h1 {
    font-size: clamp(36px, 9vw, 56px);
  }

  .hero-stage {
    width: min(640px, 100%);
    margin: 0 auto;
    aspect-ratio: 1.2 / 1;
  }

  .hero-browser {
    height: 86%;
  }
}

@media (max-width: 600px) {
  .hero.hero-demo {
    padding-block: 40px 48px;
    gap: 40px;
  }

  .hero-demo .actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .hero-demo .actions .btn,
  .hero-demo .actions .btn-hero {
    width: 100%;
    justify-content: center;
  }

  .hero-stage {
    aspect-ratio: 0.88 / 1;
  }

  .hero-browser {
    height: 90%;
    min-height: 420px;
    border-radius: 16px;
  }

  .hero-site-main {
    justify-content: flex-start;
    padding: 28px 18px 18px;
  }

  .hero-finding {
    width: calc(100% - 32px);
    right: 16px;
    top: 56px;
    bottom: auto;
  }

  .hero-issues {
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .hero-issue {
    white-space: nowrap;
    font-size: 9px;
  }

  .hero-stage-status {
    bottom: -6px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .hero-demo .hero-replay {
    display: none;
  }
}
