.page-home {
  --home-gap: clamp(1.5rem, 3vw, 2.5rem);
  --home-pad: clamp(4rem, 8vw, 7rem);
  background: var(--sf-bg-night);
  color: var(--sf-mist);
}

.page-home .section-head {
  margin-bottom: 2.25rem;
}

.page-home .section-index {
  display: inline-flex;
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--sf-purple);
  border-bottom: 2px solid var(--sf-orange);
  padding-bottom: 0.25rem;
}

.page-home .section-head-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 1rem;
}

.page-home .section-kicker {
  margin: 0 0 0.5rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.28em;
  color: var(--sf-blue);
}

.page-home .section-title {
  margin: 0 0 0.75rem;
}

.page-home .section-desc {
  max-width: 46em;
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.8;
}

.page-home a:focus-visible,
.page-home .catalog-card:focus-within {
  outline: 2px solid var(--sf-orange);
  outline-offset: 3px;
}

.home-hero {
  position: relative;
  padding: clamp(2rem, 5vw, 4.5rem) 0 0;
  background:
    radial-gradient(1200px 480px at 85% -10%, rgba(181, 55, 242, 0.35), transparent 60%),
    radial-gradient(900px 420px at 10% 110%, rgba(30, 144, 255, 0.22), transparent 55%),
    var(--sf-bg-night);
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 52%;
  height: 60%;
  background: linear-gradient(135deg, var(--sf-purple), transparent 75%);
  opacity: 0.16;
  clip-path: polygon(0 0, 72% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.home-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44%;
  height: 34%;
  background: linear-gradient(315deg, var(--sf-blue), transparent 70%);
  opacity: 0.14;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  padding-top: 1rem;
}

.hero-coord {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.16em;
  color: var(--sf-blue);
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(30, 144, 255, 0.45);
  border-radius: 999px;
  background: rgba(30, 144, 255, 0.08);
  margin-bottom: 1.25rem;
}

.hero-kicker {
  margin: 0 0 0.6rem;
  font-size: var(--fs-sm);
  letter-spacing: 0.22em;
  color: var(--sf-night);
  text-transform: uppercase;
}

.page-home .hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sf-mist);
}

.hero-lead {
  max-width: 42em;
  margin: 0;
  font-size: var(--fs-md);
  line-height: 1.8;
  color: rgba(240, 240, 245, 0.78);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 2rem 0 0;
  padding: 0;
}

.hero-stat {
  background: rgba(240, 240, 245, 0.05);
  border: 1px solid rgba(240, 240, 245, 0.12);
  padding: 1rem 0.6rem;
}

.hero-stat dt {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--sf-mist);
  white-space: nowrap;
}

.hero-stat dd {
  margin: 0.3rem 0 0;
  font-size: var(--fs-xs);
  color: var(--sf-night);
  letter-spacing: 0.06em;
}

.hero-visual {
  position: relative;
  width: 100%;
  max-width: 620px;
  margin: 0 auto;
}

.hero-photo {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  clip-path: polygon(0 2%, 100% 0, 100% 88%, 0 100%);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: auto -10px -16px auto;
  width: 46%;
  height: 12px;
  background: linear-gradient(90deg, var(--sf-blue), var(--sf-purple));
  clip-path: polygon(0 0, 100% 0, 84% 100%, 16% 100%);
  opacity: 0.8;
}

.hero-float {
  position: absolute;
  background: var(--sf-bg-deep);
  border: 1px solid rgba(181, 55, 242, 0.5);
  box-shadow: var(--shadow-purple);
}

.hero-float-num {
  top: 1rem;
  left: 1rem;
  padding: 0.55rem 0.85rem;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--sf-orange);
  letter-spacing: 0.06em;
}

.hero-float-tag {
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.8rem;
  font-size: var(--fs-xs);
  color: var(--sf-mist);
  letter-spacing: 0.1em;
}

.hero-track {
  position: relative;
  z-index: 0;
  margin: 2.5rem 0 0;
  height: 70px;
  opacity: 0.8;
}

.hero-track svg {
  width: 100%;
  height: 100%;
  display: block;
}

.catalog-section {
  background: var(--sf-mist);
  color: var(--sf-gray);
  padding: var(--home-pad) 0;
}

.catalog-section .section-title {
  color: #131328;
}

.catalog-section .section-desc {
  color: #3a3a4c;
}

.catalog-section .section-index {
  border-bottom-color: var(--sf-blue);
}

.catalog-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.catalog-card {
  position: relative;
  padding: 1.4rem 1.2rem;
  background: #ffffff;
  color: #131328;
  border: 1px solid rgba(42, 42, 58, 0.08);
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.catalog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(20, 20, 40, 0.18);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.card-num {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--sf-purple);
}

.catalog-card h3 {
  margin: 0 0 0.4rem;
  font-size: var(--fs-lg);
  color: #131328;
}

.catalog-card p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.65;
  color: #3a3a4c;
}

.card-sub {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  border-top: 1px solid rgba(42, 42, 58, 0.1);
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.catalog-card:hover .card-sub,
.catalog-card:focus-within .card-sub {
  max-height: 6rem;
  opacity: 1;
  padding-top: 0.9rem;
}

.card-sub li {
  margin: 0;
}

.card-sub li a {
  display: inline-block;
  font-size: var(--fs-xs);
  color: var(--sf-blue);
  text-decoration: none;
  border-bottom: 1px dotted var(--sf-blue);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.card-sub li a:hover {
  color: var(--sf-purple);
  border-color: var(--sf-purple);
}

.catalog-pic-wrap {
  margin: 0;
  padding: 0.25rem;
  background: #ffffff;
  border: 1px solid rgba(42, 42, 58, 0.08);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  display: flex;
  flex-direction: column;
}

.catalog-pic {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.catalog-pic-wrap figcaption {
  padding: 0.6rem 0.75rem 0.4rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--sf-night);
  font-family: var(--font-mono);
}

.version-section {
  background:
    linear-gradient(160deg, rgba(18, 18, 42, 0.94) 0%, rgba(18, 18, 42, 0.6) 45%, var(--sf-bg-night) 100%);
  padding: var(--home-pad) 0;
  overflow: hidden;
}

.version-section .section-title {
  color: var(--sf-mist);
}

.version-section .section-desc {
  color: rgba(240, 240, 245, 0.72);
}

.version-section .section-index {
  border-bottom-color: var(--sf-orange);
}

.version-section .section-kicker {
  color: var(--sf-orange);
}

.version-board {
  display: grid;
  gap: 2rem;
  position: relative;
  padding: clamp(1.5rem, 4vw, 3rem);
  background: linear-gradient(135deg, rgba(181, 55, 242, 0.16), rgba(30, 144, 255, 0.1)), var(--sf-bg-deep);
  border: 1px solid rgba(181, 55, 242, 0.3);
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%);
}

.version-facts {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.version-facts li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  padding: 0.9rem 1rem;
  background: rgba(240, 240, 245, 0.05);
  border-left: 2px solid var(--sf-blue);
  color: rgba(240, 240, 245, 0.88);
  font-size: var(--fs-sm);
  line-height: 1.6;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.version-facts li:hover {
  background: rgba(181, 55, 242, 0.15);
  border-left-color: var(--sf-purple);
}

.version-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.version-badge {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--sf-orange);
  padding: 0.55rem 0.9rem;
  background: rgba(255, 107, 26, 0.12);
  border: 1px solid rgba(255, 107, 26, 0.55);
  letter-spacing: 0.08em;
  box-shadow: 0 0 20px rgba(255, 107, 26, 0.3);
}

.version-award {
  padding: 0.55rem 0;
  font-size: var(--fs-xs);
  color: rgba(240, 240, 245, 0.6);
  align-self: center;
}

.version-art {
  margin: 0;
  position: relative;
  align-self: stretch;
  background: linear-gradient(135deg, #1b1040, var(--sf-bg-night));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 28px) 100%, 0 100%);
  aspect-ratio: 4 / 3;
  min-height: 240px;
}

.version-pic {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.version-art figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  padding: 0.4rem 0.8rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  color: var(--sf-mist);
  background: rgba(10, 10, 26, 0.75);
  border-left: 2px solid var(--sf-orange);
}

.updates-section {
  background: var(--sf-bg-deep);
  padding: var(--home-pad) 0;
}

.updates-section .section-title {
  color: var(--sf-mist);
}

.updates-section .section-desc {
  color: rgba(240, 240, 245, 0.72);
}

.updates-section .section-index {
  border-bottom-color: var(--sf-purple);
}

.updates-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.update-node {
  position: relative;
  padding: 1.5rem 1.4rem;
  background: #0f0f24;
  border: 1px solid rgba(127, 143, 166, 0.2);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.update-node:hover {
  transform: translateY(-4px);
  border-color: rgba(181, 55, 242, 0.5);
}

.update-time {
  display: inline-block;
  margin-bottom: 1rem;
  font-size: var(--fs-3xl);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--sf-orange);
}

.update-node-quota .update-time {
  color: var(--sf-blue);
}

.update-node h3 {
  margin: 0 0 0.6rem;
  font-size: var(--fs-md);
  color: var(--sf-mist);
}

.update-node p {
  margin: 0 0 1rem;
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: rgba(240, 240, 245, 0.7);
}

.update-tag {
  display: inline-block;
}

.updates-connector {
  position: relative;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.connector-line {
  position: absolute;
  width: 2px;
  height: 100%;
  background: linear-gradient(180deg, var(--sf-orange), var(--sf-blue));
  opacity: 0.4;
}

.connector-dot {
  position: relative;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sf-mist);
  box-shadow: 0 0 16px var(--sf-pink), 0 0 4px var(--sf-pink);
}

.update-visual {
  margin: 0;
  position: relative;
  display: flex;
  background: linear-gradient(135deg, #0d0d22, #1a1030);
  border: 1px solid rgba(181, 55, 242, 0.25);
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 0 100%);
  overflow: hidden;
}

.updates-pic {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: cover;
}

.update-visual figcaption {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.4rem 0.8rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  color: var(--sf-mist);
  background: rgba(10, 10, 26, 0.8);
  border-right: 2px solid var(--sf-orange);
}

.updates-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
  margin-top: 1.5rem;
  padding: 1.25rem 1.5rem;
  background: rgba(127, 143, 166, 0.08);
  border: 1px solid rgba(127, 143, 166, 0.16);
}

.updates-trust p {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
  font-size: var(--fs-sm);
  color: rgba(240, 240, 245, 0.8);
}

.trust-num {
  font-size: var(--fs-lg);
  font-weight: 800;
  color: var(--sf-purple);
}

.guide-section {
  background: var(--sf-mist);
  color: var(--sf-gray);
  padding: var(--home-pad) 0;
}

.guide-section .section-title {
  color: #131328;
}

.guide-section .section-desc {
  color: #3a3a4c;
}

.guide-section .section-index {
  border-bottom-color: var(--sf-blue);
}

.guide-layout {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
}

.guide-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.guide-step {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin: 0;
  padding: 1.25rem 1.2rem;
  background: #ffffff;
  border: 1px solid rgba(42, 42, 58, 0.1);
  border-left: 4px solid var(--sf-blue);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.guide-step:hover {
  transform: translateX(6px);
  border-left-color: var(--sf-purple);
  box-shadow: 8px 10px 24px rgba(20, 20, 40, 0.1);
}

.step-num {
  font-family: var(--font-mono);
  font-size: var(--fs-xl);
  font-weight: 800;
  line-height: 0.9;
  color: var(--sf-purple);
}

.guide-step strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: var(--fs-md);
  color: #131328;
}

.guide-step p {
  margin: 0;
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: #3a3a4c;
}

.guide-panel {
  padding: 1.5rem;
  background: var(--sf-bg-deep);
  color: var(--sf-mist);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 0 100%);
}

.guide-panel-title {
  margin: 0 0 1.25rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  color: var(--sf-night);
}

.guide-routes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.guide-routes li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0.65rem 0.8rem;
  font-size: var(--fs-sm);
  background: rgba(240, 240, 245, 0.04);
  border: 1px solid rgba(127, 143, 166, 0.2);
  transition: border-color 0.2s ease;
}

.guide-routes li:hover {
  border-color: var(--sf-purple);
}

.route-item {
  padding: 0.2rem 0.45rem;
  color: var(--sf-mist);
  border: 1px solid rgba(181, 55, 242, 0.4);
  background: rgba(181, 55, 242, 0.06);
}

.route-item:first-child {
  color: var(--sf-blue);
  border-color: rgba(30, 144, 255, 0.5);
  background: rgba(30, 144, 255, 0.08);
}

.route-arrow {
  font-style: normal;
  font-weight: 700;
  color: var(--sf-orange);
}

@media (min-width: 640px) {
  .hero-photo {
    height: 320px;
  }

  .catalog-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .catalog-card-wide {
    grid-column: span 2;
  }

  .catalog-pic-wrap {
    grid-column: span 2;
  }

  .guide-layout {
    gap: 1.5rem;
  }
}

@media (min-width: 860px) {
  .catalog-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .catalog-card:nth-child(1),
  .catalog-card:nth-child(2),
  .catalog-card:nth-child(3),
  .catalog-card:nth-child(4) {
    grid-column: span 3;
  }

  .catalog-card:nth-child(5) {
    grid-column: span 4;
  }

  .catalog-pic-wrap {
    grid-column: span 2;
  }
}

@media (min-width: 920px) {
  .home-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.25rem;
  }

  .hero-photo {
    height: 420px;
  }

  .hero-track {
    height: 120px;
    margin-top: 3.5rem;
  }

  .update-visual {
    grid-column: span 3;
    margin-top: 1rem;
  }

  .updates-grid {
    grid-template-columns: 1fr 120px 1fr;
    align-items: center;
  }

  .updates-connector {
    height: auto;
    align-self: stretch;
    margin: 0 -0.5rem;
  }

  .connector-line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--sf-orange), var(--sf-blue));
  }

  .guide-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 2rem;
    align-items: start;
  }
}

@media (min-width: 960px) {
  .version-board {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 2.5rem;
    align-items: center;
  }
}

@media (min-width: 1200px) {
  .hero-photo {
    height: 500px;
  }

  .hero-stats {
    gap: 1.25rem;
  }

  .hero-stat {
    padding: 1.25rem 1.5rem;
  }

  .catalog-grid {
    gap: 1.5rem;
  }

  .version-board {
    gap: 3rem;
  }
}
