.home-hero-stage {
  --home-cat-width: clamp(126px, 16vw, 170px);
  --home-cat-height: clamp(70px, 8.89vw, 94px);
  position: relative;
  padding-top: calc(var(--home-cat-height) - 1px);
  isolation: isolate;
}

.home-hero {
  position: relative;
  z-index: 1;
}

.home-hero-cat {
  position: absolute;
  top: 0;
  right: clamp(30px, 9vw, 112px);
  z-index: 0;
  width: var(--home-cat-width);
  height: var(--home-cat-height);
  color: var(--color-cat-fill);
  line-height: 0;
  pointer-events: none;
  user-select: none;
  display: block;
}

.home-hero-cat__head,
.home-hero-cat__pupils {
  fill: currentColor;
}

.home-hero-cat__head {
  stroke: var(--color-cat-outline);
  stroke-width: 2;
  stroke-linejoin: round;
}

.home-hero-cat__eyes {
  fill: var(--color-cat-eyes);
}

.home-hero-cat__pupils {
  transform-box: fill-box;
  transform-origin: center;
  animation: home-cat-look 14s ease-in-out infinite;
}

@keyframes home-cat-look {
  0%, 42%, 60%, 68%, 86%, 100% {
    transform: translateX(0);
  }

  47%, 55% {
    transform: translateX(-7px);
  }

  73%, 81% {
    transform: translateX(7px);
  }
}

.home-hero-actions {
  align-items: center;
  gap: var(--space-5);
}

.home-hero-link {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  color: var(--color-primary);
  font-weight: 750;
  text-underline-offset: 4px;
}

.home-hero-link:hover,
.home-hero-link:focus-visible {
  text-decoration: underline;
}

.home-roadmap {
  display: grid;
  gap: clamp(24px, 4vw, 36px);
  overflow: hidden;
}

.home-roadmap__head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-divider);
}

.home-roadmap__head h2 {
  margin: 14px 0 0;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  line-height: 1.1;
}

.home-roadmap__timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-roadmap__timeline::before,
.home-roadmap__timeline::after {
  position: absolute;
  top: 11px;
  left: 12.5%;
  height: 2px;
  content: "";
}

.home-roadmap__timeline::before {
  right: 12.5%;
  background: var(--color-divider);
}

.home-roadmap__timeline::after {
  width: 25%;
  background: var(--color-primary);
}

.home-roadmap__timeline li {
  position: relative;
  z-index: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  padding-inline: 8px;
  text-align: center;
}

.home-roadmap__marker {
  width: 24px;
  height: 24px;
  margin-bottom: 13px;
  border: 2px solid var(--color-divider);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  box-shadow: 0 0 0 5px var(--color-surface);
}

.home-roadmap__timeline .is-complete .home-roadmap__marker,
.home-roadmap__timeline .is-current .home-roadmap__marker {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.home-roadmap__timeline .is-current .home-roadmap__marker {
  box-shadow:
    inset 0 0 0 5px var(--color-surface),
    0 0 0 5px var(--color-surface),
    0 0 0 7px var(--color-primary-soft);
}

.home-roadmap__timeline strong {
  line-height: 1.3;
}

.home-roadmap__timeline time {
  margin-top: 4px;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.home-roadmap__status {
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: var(--radius-full);
  background: var(--color-primary-soft);
  color: var(--color-primary);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.home-roadmap__news {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 12px;
  align-items: center;
}

.home-roadmap__news-heading {
  grid-column: 1 / -1;
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.home-roadmap__news-arrow {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  background: var(--color-surface);
  color: var(--color-primary);
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  transition: border-color var(--transition), background var(--transition);
}

.home-roadmap__news-arrow:hover:not(:disabled) {
  border-color: var(--color-primary);
  background: var(--color-primary-soft);
}

.home-roadmap__news-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.home-roadmap__news-items {
  min-width: 0;
}

.home-roadmap__message {
  min-height: 160px;
  padding: clamp(18px, 3vw, 26px);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: var(--color-primary-soft);
}

.home-roadmap__message time {
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
}

.home-roadmap__message h4 {
  margin: 7px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.35;
}

.home-roadmap__message p {
  margin: 10px 0 0;
  color: var(--color-text-muted);
}

.home-section-heading {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-divider);
}

.home-section-heading h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1.5em;
  line-height: normal;
}

.home-purpose-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.home-purpose-grid .feature-card {
  display: flex;
  min-height: 250px;
  align-items: flex-start;
  flex-direction: column;
}

.home-purpose-grid h3 {
  font-size: var(--text-xl);
}

.home-purpose-grid a {
  display: inline-block;
  margin-top: auto;
  color: var(--color-primary);
  font-weight: 750;
  text-decoration: none;
}

.home-quick-start {
  display: grid;
  grid-template-columns: minmax(230px, 0.55fr) minmax(0, 1.45fr);
  gap: 32px;
  align-items: start;
  padding: clamp(26px, 5vw, 50px);
  scroll-margin-top: 110px;
}

.home-quick-start__head h2,
.home-about-panel h2 {
  margin: 14px 0 10px;
  font-family: var(--font-display);
}

.home-quick-start__head p,
.home-about-panel__copy p {
  margin: 0;
  color: var(--color-text-muted);
}

.home-quick-start__steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-quick-start__steps a {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
}

.home-quick-start__steps a:hover {
  transform: translateY(-1px);
  border-color: var(--color-border-strong);
}

.home-quick-start__steps a > span {
  color: var(--color-primary);
  font-weight: 800;
}

.home-quick-start__steps p {
  margin: 5px 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.home-about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: stretch;
}

.home-about-panel__copy {
  align-self: center;
  max-width: 74ch;
}

.home-about-panel__copy h2 {
  margin-top: 0;
}

.home-contact {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding-left: clamp(24px, 4vw, 44px);
  border-left: 1px solid var(--color-divider);
}

.home-contact h3 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: var(--text-lg);
}

.home-contact a {
  color: var(--color-primary);
  font-size: var(--text-sm);
  font-weight: 700;
  overflow-wrap: anywhere;
  text-underline-offset: 3px;
}

.home-contact a span {
  color: var(--color-text-muted);
  font-weight: 600;
}

.home-contact p {
  margin: 18px 0 0;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.home-contact strong {
  margin-top: 2px;
}

@media (max-width: 820px) {
  .home-purpose-grid,
  .home-quick-start,
  .home-about-panel {
    grid-template-columns: 1fr;
  }

  .home-contact {
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid var(--color-divider);
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .home-roadmap__news {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 5px;
  }

  .home-roadmap__news-arrow {
    width: 34px;
    height: 34px;
  }

  .home-purpose-grid {
    grid-template-columns: 1fr;
  }

  .home-roadmap__timeline li {
    padding-inline: 3px;
  }

  .home-roadmap__timeline strong,
  .home-roadmap__timeline time {
    font-size: 0.74rem;
  }

  .home-roadmap__status {
    padding-inline: 5px;
    font-size: 0.58rem;
  }
}

@media (max-width: 560px) {
  .home-hero-stage {
    --home-cat-width: 112px;
    --home-cat-height: 62px;
  }

  .home-hero-cat {
    right: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero-cat__pupils {
    animation: none;
    transform: none;
  }
}

@media print {
  .home-hero-cat {
    display: none;
  }

  .home-hero-stage {
    padding-top: 0;
  }
}
