.page-home {
  --home-line-soft: rgba(23, 70, 95, .55);
  --home-gap: 20px;
  position: relative;
  background: var(--deep);
  color: var(--cream);
  overflow-x: hidden;
}

.page-home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(23, 70, 95, .28) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(23, 70, 95, .28) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  z-index: 0;
}

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

.page-home .num {
  font-family: var(--font-num);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}

/* ---------- HERO ---------- */

.page-home .hero {
  position: relative;
  overflow: hidden;
  padding: 28px 0 56px;
  border-bottom: 2px solid var(--line);
}

.page-home .hero__glow {
  position: absolute;
  top: -180px;
  right: -140px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: conic-gradient(from 200deg,
    rgba(53, 242, 214, .26),
    rgba(255, 198, 97, .12) 38%,
    rgba(53, 242, 214, 0) 72%);
  filter: blur(58px);
  pointer-events: none;
  z-index: 0;
}

.page-home .hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
}

.page-home .hero__coord {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--neon);
}

.page-home .hero__coord .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 22px;
  padding: 0 6px;
  font-size: 14px;
  border: 1px solid var(--neon-45);
  border-radius: 3px;
  background: var(--neon-08);
}

.page-home .hero__coord-txt {
  color: var(--mist);
  letter-spacing: .06em;
}

.page-home .hero__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(32px, 7vw, 66px);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--cream);
}

.page-home .hero__title em {
  font-style: normal;
  color: var(--neon);
  text-shadow: 0 0 26px var(--neon-30);
}

.page-home .hero__lead {
  max-width: 46ch;
  margin: 0 0 22px;
  color: var(--mist);
}

.page-home .hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.page-home .hero__actions .btn {
  text-decoration: none;
}

/* ---------- ENTRY MATRIX ---------- */

.page-home .entry-matrix {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.page-home .entry-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(135deg, rgba(11, 44, 70, .92), rgba(7, 32, 51, .94));
  box-shadow: var(--shadow-hard);
  color: var(--cream);
  text-decoration: none;
  transition: transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              background var(--dur) var(--ease);
}

.page-home .entry-item:hover,
.page-home .entry-item:focus-visible {
  transform: translate(-2px, -2px);
  border-color: var(--neon);
  background: linear-gradient(135deg, rgba(14, 56, 88, .95), rgba(7, 32, 51, .95));
  outline: none;
}

.page-home .entry-item__num {
  min-width: 42px;
  padding-right: 12px;
  font-size: 25px;
  line-height: 1;
  color: var(--gold);
  border-right: 1px dashed var(--line);
}

.page-home .entry-item__body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.page-home .entry-item__label {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .01em;
}

.page-home .entry-item__hint {
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--mist);
}

/* ---------- HERO SIDE VISUAL ---------- */

.page-home .hero__side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .hero-figure {
  position: relative;
  margin: 0;
  border: 2px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--panel), var(--deep-2));
  box-shadow: var(--shadow-hard);
}

.page-home .hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .hero-figure__cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--cream);
  background: linear-gradient(to top, rgba(3, 19, 31, .94), rgba(3, 19, 31, 0));
}

.page-home .hero-figure__cap .num {
  color: var(--gold);
  margin-right: 6px;
}

.page-home .hero-figure__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

/* ---------- SHARED SECTION RHYTHM ---------- */

.page-home .section {
  padding: 56px 0;
  border-bottom: 1px solid var(--home-line-soft);
}

.page-home .section-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  margin-bottom: 26px;
  border-bottom: 2px solid var(--line);
}

.page-home .section-head__num {
  font-size: 15px;
  color: var(--gold);
}

.page-home .section-head__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(24px, 3.6vw, 36px);
  line-height: 1.15;
  letter-spacing: .01em;
}

.page-home .section-head__meta {
  margin: 0;
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--mist);
}

/* ---------- UPDATES ---------- */

.page-home .updates-figure {
  margin: 0 0 22px;
  border: 2px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--panel), var(--deep-2));
  box-shadow: var(--shadow-hard);
}

.page-home .updates-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .update-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .update-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 18px;
  border: 2px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(11, 44, 70, .9), rgba(5, 24, 42, .94));
  box-shadow: var(--shadow-hard);
}

.page-home .update-card--moss { border-top: 6px solid var(--moss); }
.page-home .update-card--clay { border-top: 6px solid var(--clay); }
.page-home .update-card--coral { border-top: 6px solid var(--coral); }

.page-home .update-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.25;
}

.page-home .update-card__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .update-card__go {
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--neon);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

.page-home a.update-card__go:hover,
.page-home a.update-card__go:focus-visible {
  color: var(--gold);
  text-decoration: underline;
}

.page-home .index-figure {
  margin: 26px 0 0;
  border: 2px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(150deg, var(--panel), var(--deep-2));
  box-shadow: var(--shadow-hard);
}

.page-home .index-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ---------- SCREEN / SMALL VIEWPORT ---------- */

.page-home .screen-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: start;
}

.page-home .phone-frame {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 12px 10px 10px;
  border: 3px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(165deg, rgba(11, 44, 70, .95), rgba(4, 18, 31, .95));
  box-shadow: var(--shadow-hard);
}

.page-home .phone-frame__notch {
  display: block;
  width: 76px;
  height: 5px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: var(--line);
}

.page-home .phone-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.page-home .screen-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.page-home .screen-copy__lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--cream);
}

.page-home .screen-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.page-home .screen-fact {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--neon);
  border-radius: 3px;
  background: rgba(11, 44, 70, .6);
}

.page-home .screen-fact__k {
  flex: none;
  min-width: 88px;
  font-size: 20px;
  color: var(--gold);
}

.page-home .screen-fact__v {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mist);
}

.page-home .width-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-home .width-chip {
  padding: 5px 12px;
  font-family: var(--font-num);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--mist);
  border: 1px solid var(--line);
  border-radius: 3px;
}

.page-home .width-chip--on {
  color: var(--deep);
  background: var(--neon);
  border-color: var(--neon);
  font-weight: 700;
}

.page-home .screen-copy .btn {
  align-self: flex-start;
  text-decoration: none;
}

/* ---------- WHY ---------- */

.page-home .reason-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.page-home .reason {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}

.page-home .reason:first-child { padding-top: 4px; }
.page-home .reason:last-child { border-bottom: none; padding-bottom: 4px; }

.page-home .reason__idx {
  font-size: 44px;
  line-height: 1;
  color: var(--neon);
  text-shadow: 0 0 20px var(--neon-30);
}

.page-home .reason__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.3;
}

.page-home .reason__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--mist);
}

/* ---------- ROUTES ---------- */

.page-home .route-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .route-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 18px;
  text-decoration: none;
  color: var(--cream);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .route-card:hover,
.page-home .route-card:focus-visible {
  transform: translate(-3px, -3px);
  border-color: var(--neon);
  outline: none;
}

.page-home .route-card .card__index {
  font-size: 22px;
  color: var(--gold);
}

.page-home .route-card .card__text {
  color: var(--mist);
}

.page-home .route-card__go {
  margin-top: auto;
  padding-top: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--neon);
}

.page-home .routes-tail {
  margin: 24px 0 0;
  padding: 16px 18px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--mist);
  border: 1px dashed var(--line);
  border-radius: 3px;
  background: rgba(11, 44, 70, .5);
}

.page-home .routes-tail a {
  color: var(--neon);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- RESPONSIVE ---------- */

@media (min-width: 560px) {
  .page-home .entry-matrix {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .update-row {
    grid-template-columns: 1fr 1fr;
  }

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

@media (min-width: 900px) {
  .page-home .hero {
    padding: 40px 0 72px;
  }

  .page-home .hero__inner {
    grid-template-columns: 2fr 1fr;
    gap: 44px;
    align-items: start;
  }

  .page-home .hero__side {
    padding-top: 54px;
  }

  .page-home .update-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .screen-panel {
    grid-template-columns: 300px 1fr;
    gap: 44px;
    align-items: center;
  }

  .page-home .phone-frame {
    margin: 0;
  }

  .page-home .reason {
    grid-template-columns: 76px 1fr;
    padding: 24px 0;
  }

  .page-home .reason__idx {
    font-size: 54px;
  }

  .page-home .section {
    padding: 72px 0;
  }

  .page-home .section-head {
    flex-direction: row;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 14px;
  }

  .page-home .section-head__title {
    flex: 1 1 auto;
  }

  .page-home .section-head__meta {
    flex: 0 0 auto;
  }
}

@media (min-width: 1140px) {
  .page-home .route-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .route-card:nth-child(1),
  .page-home .route-card:nth-child(2) {
    grid-column: span 1;
  }

  .page-home .entry-item {
    padding: 15px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .entry-item,
  .page-home .route-card {
    transition: none;
  }

  .page-home .entry-item:hover,
  .page-home .route-card:hover {
    transform: none;
  }
}
