.page-home {
  overflow-x: hidden;
  background: var(--color-bg);
}

.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: 36px 24px 64px;
  background:
    radial-gradient(circle at 82% 10%, rgba(231, 177, 10, 0.22), transparent 240px),
    linear-gradient(135deg, var(--color-secondary) 0%, #1E2A3C 100%);
  color: #F5F7FA;
}

.page-home .hero__red {
  position: absolute;
  width: 340px;
  height: 340px;
  right: -70px;
  top: -96px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 42%), var(--primary);
  transform: rotate(28deg);
  box-shadow: 0 18px 46px rgba(216, 51, 62, 0.32);
  z-index: 0;
}

.page-home .hero__gold {
  position: absolute;
  width: 130px;
  height: 130px;
  right: 10%;
  top: 22%;
  border: 1.5px dashed rgba(231, 177, 10, 0.8);
  border-radius: 50%;
  z-index: 0;
}

.page-home .hero__gold::after {
  content: "";
  position: absolute;
  inset: 26px;
  border: 1px solid rgba(231, 177, 10, 0.4);
  border-radius: 50%;
}

.page-home .hero__leaf {
  position: absolute;
  right: -34px;
  bottom: 120px;
  width: 168px;
  opacity: 0.35;
  z-index: 0;
  transform: rotate(-8deg);
  pointer-events: none;
}

.page-home .hero__leaf img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.page-home .hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 36px;
}

.page-home .hero__crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: rgba(245, 247, 250, 0.7);
}

.page-home .hero__crumb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(231, 177, 10, 0.25);
}

.page-home .hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  margin: 0 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
}

.page-home .hero__title {
  margin: 0 0 18px;
  font-family: var(--font-title);
  font-size: var(--text-hero);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.page-home .hero__lead {
  margin: 0 0 28px;
  max-width: 34rem;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: rgba(245, 247, 250, 0.9);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .hero__ghost-btn {
  border-color: rgba(255, 255, 255, 0.5);
  color: #F5F7FA;
}

.page-home .hero__ghost-btn:hover {
  background: #F5F7FA;
  color: var(--color-secondary);
}

.page-home .hero__media {
  position: relative;
  z-index: 2;
  padding: 10px;
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: rotate(-1deg);
  transition: transform 0.3s ease;
}

.page-home .hero__media:hover {
  transform: rotate(0deg) scale(1.01);
}

.page-home .hero__shot {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: var(--color-bg);
}

.page-home .hero__status {
  position: absolute;
  left: -10px;
  bottom: -16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: var(--text-small);
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.page-home .hero__status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.page-home .hero__routes {
  position: relative;
  z-index: 2;
  margin-top: 44px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.page-home .hero__route {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-top: 4px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-home .hero__route:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.page-home .hero__route--red {
  border-top-color: var(--primary);
}
.page-home .hero__route--dark {
  border-top-color: var(--secondary);
}
.page-home .hero__route--gold {
  border-top-color: var(--gold);
}
.page-home .hero__route--blue {
  border-top-color: var(--blue);
}

.page-home .hero__route-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

.page-home .hero__route-name {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.0625rem;
}

.page-home .hero__route-desc {
  font-size: 0.8125rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.page-home .hero__stats {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(245, 247, 250, 0.72);
}

.page-home .hero__stats strong {
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
}

.page-home .panel-section {
  padding: 84px 0 40px;
}

.page-home .nav-board {
  display: grid;
  gap: 18px;
  margin-top: 44px;
}

.page-home .nav-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 5px solid var(--color-border);
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.page-home .nav-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.page-home .nav-card--n1 {
  border-top-color: var(--blue);
}
.page-home .nav-card--n2 {
  border-top-color: var(--secondary);
}
.page-home .nav-card--n3 {
  border-top-color: var(--gold);
}
.page-home .nav-card--n4 {
  border-top-color: var(--primary);
}

.page-home .nav-card__idx {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--secondary);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.125rem;
  margin-bottom: 8px;
}

.page-home .nav-card--n1 .nav-card__idx {
  background: var(--blue);
}
.page-home .nav-card--n2 .nav-card__idx {
  background: var(--secondary);
}
.page-home .nav-card--n3 .nav-card__idx {
  background: var(--gold);
  color: var(--color-text);
}
.page-home .nav-card--n4 .nav-card__idx {
  background: var(--primary);
}

.page-home .nav-card__title {
  font-family: var(--font-title);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.page-home .nav-card__text {
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.page-home .nav-card__action {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--primary);
}

.page-home .steps-section {
  padding: 84px 0 48px;
  background-color: var(--color-bg);
  background-image:
    linear-gradient(rgba(47, 59, 86, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 59, 86, 0.05) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px;
}

.page-home .steps-grid {
  display: grid;
  gap: 18px;
  margin-top: 44px;
}

.page-home .step-card {
  position: relative;
  padding: 30px 26px;
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease;
}

.page-home .step-card:hover {
  box-shadow: var(--shadow-md);
}

.page-home .step-card__idx {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.25rem;
}

.page-home .step-card__title {
  margin: 0 0 10px;
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
}

.page-home .step-card__text {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.75;
}

.page-home .update-section {
  padding: 84px 0 72px;
  background: var(--color-surface);
}

.page-home .update-grid {
  display: grid;
  gap: 40px;
}

.page-home .update-list {
  list-style: none;
  margin: 32px 0 36px;
  padding: 0;
}

.page-home .update-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--color-border);
}

.page-home .update-item:last-child {
  border-bottom: 0;
}

.page-home .update-item .tag {
  flex: none;
  margin-top: 4px;
}

.page-home .update-item strong {
  display: block;
  font-size: 1.0625rem;
  margin-bottom: 6px;
}

.page-home .update-item p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.page-home .update-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.page-home .sync-section {
  position: relative;
  padding: 84px 0 76px;
  background:
    radial-gradient(circle at 14% 18%, rgba(231, 177, 10, 0.16), transparent 240px),
    linear-gradient(145deg, var(--color-secondary) 0%, #1E2A3C 100%);
  color: #F5F7FA;
}

.page-home .sync-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}

.page-home .sync-media {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

.page-home .sync-media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}

.page-home .sync-copy .section__title {
  color: #fff;
}

.page-home .sync-copy .section__desc {
  color: rgba(245, 247, 250, 0.72);
}

.page-home .sync-points {
  list-style: none;
  margin: 28px 0 34px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-home .sync-point {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  line-height: 1.7;
  color: rgba(245, 247, 250, 0.9);
}

.page-home .sync-point::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(231, 177, 10, 0.18);
}

.page-home .hero__actions .btn:focus-visible,
.page-home .hero__route:focus-visible,
.page-home .nav-card:focus-visible,
.page-home .update-copy .btn:focus-visible,
.page-home .sync-copy .btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

@media (min-width: 640px) {
  .page-home .hero__routes {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .hero__stats {
    justify-content: center;
  }
}

@media (min-width: 820px) {
  .page-home .hero {
    padding: 64px 24px 40px;
  }

  .page-home .hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
    align-items: center;
  }

  .page-home .hero__brand {
    padding-top: 24px;
  }

  .page-home .hero__routes {
    width: min(600px, 72%);
    margin-left: auto;
    margin-right: max(24px, calc((100vw - var(--container-w)) / 2));
    margin-top: 32px;
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .hero__stats {
    justify-content: center;
    padding-top: 28px;
    gap: 12px 36px;
  }

  .page-home .panel-section,
  .page-home .steps-section,
  .page-home .update-section,
  .page-home .sync-section {
    padding-top: 96px;
    padding-bottom: 64px;
  }

  .page-home .nav-board {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .page-home .steps-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .page-home .step-card:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -26px;
    top: 50%;
    width: 28px;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--gold) 0 6px, transparent 6px 10px);
    z-index: 2;
  }

  .page-home .update-grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
  }

  .page-home .sync-grid {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: center;
  }
}

@media (min-width: 1180px) {
  .page-home .hero__routes {
    grid-template-columns: repeat(4, 1fr);
    width: 640px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
