.page-home#main-content {
  padding-top: 0;
  overflow-x: clip;
  scroll-padding-top: calc(var(--header-h, 76px) + 16px);
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 46, 151, 0.10), transparent 42%),
    radial-gradient(circle at 86% 70%, rgba(0, 217, 255, 0.08), transparent 36%),
    var(--bg-deep);
}

/* ============ HERO ============ */
.page-home .hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  padding-block: 120px 72px;
  isolation: isolate;
}

.page-home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 16% 30%, rgba(255, 46, 151, 0.16), transparent 44%),
    radial-gradient(circle at 82% 64%, rgba(0, 217, 255, 0.12), transparent 40%),
    linear-gradient(180deg, var(--bg-deep), #130A1C 70%, var(--bg-deep));
}

.page-home .hero-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.page-home .hero-sky__stars {
  width: 100%;
  height: 100%;
}

.page-home .hero-sky__star circle {
  fill: var(--accent-secondary);
  opacity: 0.8;
}

.page-home .hero-sky__star:nth-child(3n) circle { fill: var(--accent-primary); }
.page-home .hero-sky__star:nth-child(4n) circle { fill: var(--accent-gold); }
.page-home .hero-sky__star:nth-child(5n) circle { fill: var(--text-bright); }

@keyframes pageHomeTwinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

.page-home .hero-sky__star { animation: pageHomeTwinkle 3.6s ease-in-out infinite; }
.page-home .hero-sky__star:nth-child(2n) { animation-delay: 0.8s; }
.page-home .hero-sky__star:nth-child(3n) { animation-delay: 1.6s; }

.page-home .hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.page-home .hero__copy {
  max-width: 680px;
}

.page-home .hero .breadcrumb {
  margin-bottom: 18px;
  color: var(--text-muted);
}

.page-home .hero__version {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 3px solid var(--accent-secondary);
  font-family: var(--font-code);
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-secondary);
}

.page-home .hero__title {
  margin: 18px 0 8px;
  padding-left: 22px;
  border-left: 6px solid var(--accent-primary);
  transform: skew(-4deg);
  transform-origin: left center;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2.1rem, 8vw, 5.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--text-bright);
  text-shadow: 0 0 32px rgba(255, 46, 151, 0.35);
}

.page-home .hero__subtitle {
  margin: 6px 0 18px;
  padding-left: 22px;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-home .hero__desc {
  margin: 0 0 26px;
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}

.page-home .hero__search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 560px;
  padding: 10px 18px;
  border: 1px solid var(--border-neon);
  border-radius: 999px;
  background: rgba(26, 15, 34, 0.88);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.55);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.page-home .hero__search:focus-within {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px rgba(0, 217, 255, 0.22), 6px 6px 0 rgba(0, 0, 0, 0.55);
}

.page-home .hero__search-icon {
  color: var(--accent-secondary);
  flex: 0 0 auto;
}

.page-home .hero__search-input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text-bright);
  caret-color: var(--accent-primary);
}

.page-home .hero__search-input::placeholder { color: var(--text-muted); }
.page-home .hero__search-input:focus { outline: none; }

.page-home .hero__search-slash {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--border-gold);
  border-radius: 6px;
  font-family: var(--font-code);
  font-size: 0.85rem;
  color: var(--accent-gold);
  background: rgba(244, 201, 93, 0.08);
}

.page-home .hero__hint {
  margin: 10px 0 0;
  font-family: var(--font-code);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

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

.page-home .hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.page-home .hero__tags .tag {
  background: rgba(26, 15, 34, 0.82);
  border: 1px solid var(--border-pink);
  color: var(--text-bright);
}

.page-home .hero__visual {
  position: relative;
  aspect-ratio: 4 / 3;
  min-height: 240px;
  border: 1px solid var(--border-pink);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-panel), 8px 8px 0 rgba(0, 0, 0, 0.55);
}

.page-home .hero__poster {
  position: absolute;
  inset: 0;
  margin: 0;
}

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

.page-home .hero__grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(0, 217, 255, 0.16) 0 1px, transparent 1px 46px),
    repeating-linear-gradient(90deg, rgba(0, 217, 255, 0.16) 0 1px, transparent 1px 46px);
  mix-blend-mode: screen;
}

.page-home .hero__badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-sm);
  background: rgba(11, 5, 18, 0.78);
  backdrop-filter: blur(10px);
}

.page-home .hero__badge-num {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 2rem;
  line-height: 1.1;
  color: var(--accent-gold);
}

.page-home .hero__badge-cap {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

@media (min-width: 960px) {
  .page-home .hero { padding-block: 160px 96px; }

  .page-home .hero__inner {
    grid-template-columns: minmax(380px, 42fr) minmax(460px, 58fr);
    gap: 8%;
  }

  .page-home .hero__visual {
    order: 2;
    aspect-ratio: auto;
    min-height: 520px;
    height: calc(100vh - 240px);
    max-height: 640px;
  }
}

/* ============ TICKER ============ */
.page-home .ticker {
  border-block: 1px solid var(--border-neon);
  background: rgba(26, 15, 34, 0.72);
}

.page-home .ticker__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  padding-block: 14px;
  font-family: var(--font-code);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.page-home .ticker__split {
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-secondary);
}

/* ============ STATS ============ */
.page-home .stats {
  padding-block: 64px 40px;
}

.page-home .stats__inner {
  display: grid;
  gap: 44px;
}

.page-home .stats__intro {
  max-width: 520px;
}

.page-home .stats__intro .title-lg {
  margin: 8px 0 14px;
}

.page-home .text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--accent-secondary);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 217, 255, 0.3);
}

.page-home .stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
}

.page-home .stat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 172px;
  padding: 26px 22px;
  border: 1px solid var(--border-neon);
  border-radius: var(--radius);
  background: var(--bg-panel);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
}

.page-home .stat-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 36px;
  height: 12px;
  background: var(--accent-primary);
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}

.page-home .stat-card:nth-child(3n)::before { background: var(--accent-secondary); }
.page-home .stat-card:nth-child(4n)::before { background: var(--accent-status); }
.page-home .stat-card:nth-child(5n)::before { background: var(--accent-gold); }

.page-home .stat-card__label {
  color: var(--text-muted);
}

.page-home .stat-card__num {
  margin: 10px 0 6px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.1;
  color: var(--text-bright);
}

.page-home .stat-card__note {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-muted);
}

.page-home .stat-card--wide {
  grid-column: 1 / -1;
  background: linear-gradient(120deg, rgba(255, 46, 151, 0.14), rgba(0, 217, 255, 0.08));
}

@media (min-width: 960px) {
  .page-home .stats { padding-block: 88px 56px; }

  .page-home .stats__inner {
    grid-template-columns: minmax(280px, 0.8fr) 1.4fr;
    gap: 8%;
    align-items: start;
  }
}

/* ============ CATEGORY ZONE ============ */
.page-home .cat-zone {
  padding-block: 72px 40px;
}

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

.page-home .cat-zone__copy .title-lg {
  margin: 8px 0 14px;
}

.page-home .cat-zone__points {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.page-home .cat-zone__points li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-bright);
}

.page-home .cat-zone__points li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent-secondary);
  transform: rotate(45deg);
}

.page-home .cat-zone__map {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--border-neon);
  border-radius: var(--radius);
  background: rgba(26, 15, 34, 0.72);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.55);
}

.page-home .cat-zone__map-bg {
  display: none;
}

.page-home .category-map {
  display: block;
  min-width: 560px;
  width: 100%;
  height: auto;
}

.page-home .cat-zone__hint {
  margin: 0;
  padding: 12px 18px;
  border-top: 1px solid var(--border-neon);
  color: var(--text-muted);
}

.page-home .cat-block__rect {
  fill: rgba(26, 15, 34, 0.82);
  stroke: rgba(255, 46, 151, 0.5);
  stroke-width: 2;
  transition: fill 0.24s, stroke 0.24s, transform 0.24s;
}

.page-home .cat-block:nth-child(3n) .cat-block__rect { stroke: rgba(0, 217, 255, 0.5); }
.page-home .cat-block:nth-child(4n) .cat-block__rect { stroke: rgba(244, 201, 93, 0.5); }
.page-home .cat-block:nth-child(5n) .cat-block__rect { stroke: rgba(255, 74, 61, 0.5); }

.page-home .cat-block:hover .cat-block__rect {
  fill: rgba(0, 217, 255, 0.2);
  stroke: var(--accent-secondary);
  stroke-width: 3;
}

.page-home .cat-block__idx {
  font-family: var(--font-code);
  font-size: 12px;
  fill: var(--accent-gold);
}

.page-home .cat-block__label {
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 26px;
  text-anchor: middle;
  fill: var(--text-bright);
}

.page-home .cat-block__sub {
  font-family: var(--font-body);
  font-size: 12px;
  text-anchor: middle;
  fill: var(--text-muted);
}

@media (min-width: 760px) {
  .page-home .cat-zone__map-bg {
    display: block;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.32;
  }

  .page-home .cat-zone__map {
    overflow: hidden;
  }

  .page-home .category-map {
    min-width: 0;
  }
}

@media (min-width: 960px) {
  .page-home .cat-zone { padding-block: 96px 56px; }

  .page-home .cat-zone__inner {
    grid-template-columns: minmax(300px, 0.8fr) 1.3fr;
    gap: 7%;
  }
}

/* ============ SYNC ZONE ============ */
.page-home .sync-zone {
  padding-block: 72px 40px;
}

.page-home .sync-zone__head {
  margin-bottom: 28px;
  max-width: 760px;
}

.page-home .sync-zone__head .title-lg {
  margin: 8px 0 14px;
}

.page-home .sync-zone__stage {
  position: relative;
  display: grid;
  gap: 24px;
  padding: 24px;
  border: 1px solid var(--border-neon);
  border-radius: 20px;
  background: rgba(11, 5, 18, 0.55);
  overflow: hidden;
}

.page-home .sync-zone__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
}

.page-home .sync-card {
  position: relative;
  z-index: 1;
  max-width: 460px;
  padding: 26px;
  border: 1px solid var(--border-pink);
  border-radius: var(--radius);
  background: rgba(26, 15, 34, 0.92);
  box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.55);
}

.page-home .sync-card__index {
  font-family: var(--font-code);
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--accent-gold);
}

.page-home .sync-card__title {
  margin: 8px 0 14px;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--text-bright);
}

.page-home .sync-card__copy {
  margin-bottom: 18px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.page-home .sync-card__steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--text-bright);
}

.page-home .sync-card__steps li::marker {
  color: var(--accent-secondary);
}

@media (min-width: 760px) {
  .page-home .sync-zone__stage {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 40px;
  }

  .page-home .sync-card--desk {
    justify-self: end;
    align-self: start;
  }

  .page-home .sync-card--simp {
    margin-top: 64px;
    justify-self: start;
    align-self: start;
  }
}

@media (min-width: 960px) {
  .page-home .sync-zone { padding-block: 96px 56px; }
}

/* ============ TIDE SECTION ============ */
.page-home .tide-section {
  padding-block: 72px 112px;
}

.page-home .tide-section__head {
  max-width: 760px;
  margin-bottom: 32px;
}

.page-home .tide-section__head .title-lg {
  margin: 8px 0 14px;
}

.page-home .tide-track {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 22px;
}

.page-home .tide-card {
  overflow: hidden;
  border: 1px solid var(--border-neon);
  border-radius: var(--radius);
  background: var(--bg-panel);
  box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.5);
  transition: transform 0.25s, box-shadow 0.25s;
}

.page-home .tide-card:hover {
  transform: translateY(-6px);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.5);
}

.page-home .tide-card .poster-frame {
  aspect-ratio: 3 / 4;
  background: #130A1C;
}

.page-home .tide-card .poster-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .tide-card__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 16px 18px;
}

.page-home .tide-card__code {
  font-family: var(--font-code);
  letter-spacing: 0.08em;
  color: var(--accent-gold);
}

.page-home .tide-card__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.page-home .tide-section__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border-neon);
  color: var(--text-muted);
}

@media (min-width: 960px) {
  .page-home .tide-section { padding-block: 96px 128px; }
}

/* ============ RESPONSIVE FINE-TUNING ============ */
@media (max-width: 379px) {
  .page-home .hero__title {
    font-size: 1.9rem;
    padding-left: 16px;
  }

  .page-home .hero__actions .btn {
    width: 100%;
  }

  .page-home .hero__search {
    flex-wrap: wrap;
    border-radius: 18px;
  }

  .page-home .hero__search-input {
    width: calc(100% - 40px);
  }

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

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .page-home .hero-sky__star {
    animation: none;
  }

  .page-home .cat-block__rect,
  .page-home .tide-card,
  .page-home .sync-card {
    transition: none;
  }
}
