.page-home {
  overflow-x: clip;
  --home-radius: 14px;
  --home-card: linear-gradient(180deg, rgba(11, 20, 32, .92), rgba(6, 11, 20, .92));
}

/* ---------- hero ---------- */
.page-home .hero {
  position: relative;
  isolation: isolate;
  padding: clamp(56px, 14vw, 104px) 0 clamp(40px, 8vw, 64px);
}

.page-home .hero__shapes {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.page-home .hero__shape {
  position: absolute;
  display: block;
}

.page-home .hero__shape--cyan {
  top: -80px;
  right: -70px;
  width: min(460px, 86vw);
  height: 340px;
  background: linear-gradient(150deg, rgba(20, 224, 198, .26), rgba(20, 224, 198, 0) 72%);
  clip-path: polygon(100% 0, 100% 100%, 6% 0);
}

.page-home .hero__shape--orange {
  bottom: 10%;
  right: 6%;
  width: min(200px, 42vw);
  height: 120px;
  background: linear-gradient(120deg, rgba(255, 106, 43, .32), rgba(255, 106, 43, 0));
  clip-path: polygon(0 100%, 100% 100%, 62% 0);
}

.page-home .hero__inner {
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-home .hero__kicker {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--cyan);
}

.page-home .hero__title {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 7.6vw, 52px);
  line-height: 1.16;
  letter-spacing: -.02em;
  color: var(--ink);
}

.page-home .hero__lead {
  margin: 0;
  max-width: 34em;
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink-mute);
}

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

.page-home .hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin: 28px 0 0;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-mute);
}

.page-home .hero__facts .mono {
  display: block;
  font-family: var(--font-mono);
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
}

.page-home .hero__aside {
  display: grid;
  gap: 14px;
}

.page-home .hero__figure {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: 0 18px 44px -28px rgba(0, 0, 0, .9);
}

.page-home .hero__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.page-home .hero__badge {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--bg);
  background: var(--cyan);
  border-top-right-radius: 10px;
}

.page-home .hero__sync {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: rgba(11, 20, 32, .86);
}

.page-home .hero__sync-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--ink-mute);
}

.page-home .hero__sync-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-dim);
}

.page-home .hero__sync-dot--orange {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 106, 43, .16);
}

.page-home .hero__sync-bar {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.page-home .hero__sync-bar > span {
  display: block;
  height: 100%;
  width: 78%;
  background: var(--grad-cyan);
}

/* ---------- section skeleton ---------- */
.page-home .section {
  position: relative;
  padding: clamp(44px, 9vw, 72px) 0;
}

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

.page-home .section__index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--cyan);
}

.page-home .section__index::after {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--line);
}

.page-home .section__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(23px, 5.4vw, 38px);
  line-height: 1.24;
  letter-spacing: -.015em;
  color: var(--ink);
}

.page-home .section__lead {
  margin: 0;
  max-width: 46em;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--ink-mute);
}

.page-home .section__more,
.page-home .stats__note {
  margin: 22px 0 0;
  max-width: 52em;
  font-size: 14px;
  line-height: 1.8;
  color: var(--ink-mute);
}

.page-home .section__more a,
.page-home .stats__note a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(20, 224, 198, .38);
  transition: border-color .18s var(--ease), color .18s var(--ease);
}

.page-home .section__more a:hover,
.page-home .section__more a:focus-visible,
.page-home .stats__note a:hover,
.page-home .stats__note a:focus-visible {
  border-bottom-color: var(--cyan-soft);
  color: var(--cyan-soft);
}

/* ---------- 01 entry ---------- */
.page-home .entry__grid {
  display: grid;
  gap: 20px;
}

.page-home .steps {
  counter-reset: step;
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .steps li {
  position: relative;
  counter-increment: step;
  padding: 16px 18px 16px 60px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: var(--home-card);
  transition: border-color .18s var(--ease);
}

.page-home .steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .06em;
  color: var(--cyan);
}

.page-home .steps li:hover {
  border-color: rgba(20, 224, 198, .55);
}

.page-home .steps strong {
  display: block;
  margin-bottom: 3px;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}

.page-home .steps span {
  display: block;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-mute);
}

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

.page-home .cat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: linear-gradient(180deg, rgba(11, 20, 32, .82), rgba(6, 11, 20, .92));
  transition: border-color .18s var(--ease), background .18s var(--ease);
}

.page-home .cat:hover {
  border-color: rgba(20, 224, 198, .5);
}

.page-home .cat__name {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: .08em;
  color: var(--ink);
}

.page-home .cat__desc {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-mute);
}

/* ---------- 02 board ---------- */
.page-home .board {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: var(--bg-panel);
  overflow: hidden;
}

.page-home .board__visual {
  position: relative;
  height: 148px;
  background: var(--bg-deep);
}

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

.page-home .board__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 20, 32, .2), rgba(11, 20, 32, .96));
}

.page-home .board__spark {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 78%;
}

.page-home .board__body {
  padding: 20px 18px 22px;
}

.page-home .rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(216px, 76%);
  gap: 12px;
  margin: 0;
  padding: 0 0 10px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
}

.page-home .rail__item {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: linear-gradient(180deg, rgba(6, 11, 20, .7), rgba(11, 20, 32, .88));
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}

.page-home .rail__item:hover {
  border-color: rgba(20, 224, 198, .5);
  transform: translateY(-2px);
}

.page-home .mgroup__name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.page-home .mgroup__count {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--amber);
}

.page-home .mgroup__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 6px 0 0;
}

.page-home .board__note {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-mute);
}

/* ---------- 03 mobile ---------- */
.page-home .mobile-grid {
  display: grid;
  gap: 24px;
}

.page-home .mobile-figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  overflow: hidden;
  background: var(--bg-deep);
}

.page-home .mobile-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.page-home .mobile-body {
  min-width: 0;
}

.page-home .points {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .points li {
  position: relative;
  padding: 14px 0 14px 24px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.page-home .points li:first-child {
  border-top: 1px solid var(--line-soft);
}

.page-home .points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 8px;
  height: 8px;
  border: 1px solid var(--cyan);
  transform: rotate(45deg);
}

.page-home .points span {
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-mute);
}

.page-home .mobile-foot {
  margin: 20px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--orange);
  border-radius: 10px;
  background: rgba(11, 20, 32, .7);
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-mute);
}

/* ---------- 04 favorites ---------- */
.page-home .fav__grid {
  display: grid;
  gap: 12px;
}

.page-home .fav__card {
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: var(--home-card);
  transition: border-color .18s var(--ease);
}

.page-home .fav__card:hover {
  border-color: rgba(20, 224, 198, .5);
}

.page-home .fav__card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.page-home .fav__card p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--ink-mute);
}

.page-home .fav__card .mgroup__tags {
  margin-top: 14px;
}

/* ---------- band ---------- */
.page-home .band {
  position: relative;
  margin: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg-deep);
}

.page-home .band img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  opacity: .62;
}

/* ---------- 05 flow ---------- */
.page-home .flow {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .flow__step {
  position: relative;
  padding: 22px 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: var(--home-card);
  transition: border-color .18s var(--ease), transform .18s var(--ease);
}

.page-home .flow__step::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 0;
  height: 2px;
  background: var(--grad-cyan);
  opacity: .45;
  transition: opacity .18s var(--ease);
}

.page-home .flow__step:hover {
  border-color: rgba(20, 224, 198, .5);
  transform: translateY(-2px);
}

.page-home .flow__step:hover::before {
  opacity: 1;
}

.page-home .flow__num {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .2em;
  color: var(--cyan);
}

.page-home .flow__name {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}

.page-home .flow__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--ink-mute);
}

/* ---------- stats ---------- */
.page-home .stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: var(--line);
  overflow: hidden;
}

.page-home .stats__cell {
  display: grid;
  gap: 6px;
  padding: 20px 18px;
  background: var(--bg-panel);
}

.page-home .stats__num {
  font-family: var(--font-mono);
  font-size: clamp(22px, 5.5vw, 28px);
  line-height: 1.1;
  color: var(--ink);
}

.page-home .stats__label {
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-mute);
}

/* ---------- closing ---------- */
.page-home .closing {
  padding: clamp(44px, 9vw, 76px) 0 clamp(56px, 10vw, 96px);
}

.page-home .closing__title {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(22px, 5vw, 32px);
  letter-spacing: -.015em;
  color: var(--ink);
}

.page-home .closing__grid {
  display: grid;
  gap: 12px;
}

.page-home .linkcard {
  display: grid;
  gap: 8px;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--home-radius);
  background: linear-gradient(180deg, rgba(11, 20, 32, .8), rgba(6, 11, 20, .92));
  text-decoration: none;
  transition: border-color .18s var(--ease), transform .18s var(--ease), background .18s var(--ease);
}

.page-home .linkcard:hover,
.page-home .linkcard:focus-visible {
  border-color: var(--cyan);
  transform: translateY(-3px);
}

.page-home .linkcard__name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.page-home .linkcard__desc {
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--ink-mute);
}

.page-home .linkcard:hover .linkcard__name,
.page-home .linkcard:focus-visible .linkcard__name {
  color: var(--cyan);
}

/* ---------- responsive ---------- */
@media (min-width: 700px) {
  .page-home .catgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .fav__grid,
  .page-home .closing__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .page-home .hero__inner {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: clamp(32px, 4vw, 64px);
  }

  .page-home .hero__aside {
    padding-bottom: 26px;
  }

  .page-home .hero__sync {
    margin: -34px 24px 0 24px;
    position: relative;
    z-index: 2;
  }

  .page-home .entry__grid {
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: 28px;
    align-items: start;
  }

  .page-home .board__visual {
    height: 178px;
  }

  .page-home .board__body {
    padding: 24px 22px 26px;
  }

  .page-home .rail {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    overflow-x: visible;
    padding-bottom: 0;
  }

  .page-home .mobile-grid {
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    gap: 40px;
    align-items: center;
  }

  .page-home .mobile-figure img {
    aspect-ratio: 4 / 5;
  }

  .page-home .fav__grid,
  .page-home .closing__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-home .closing__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .page-home .flow {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .rail__item,
  .page-home .flow__step,
  .page-home .linkcard {
    transition: none;
  }

  .page-home .rail__item:hover,
  .page-home .flow__step:hover,
  .page-home .linkcard:hover,
  .page-home .linkcard:focus-visible {
    transform: none;
  }
}
