.page-home{
  --home-section-pad: 76px 20px 84px;
  --home-container: 1200px;
  --home-radius: 14px;
  --home-shadow: 0 18px 40px rgba(4, 12, 28, 0.26);
  --home-head: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --home-mono: "JetBrains Mono", "SF Mono", "Courier New", monospace;
  --home-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  color: var(--color-text);
}

.page-home .home-section{
  position: relative;
  overflow: hidden;
  padding: var(--home-section-pad);
}

.page-home .home-section__inner{
  position: relative;
  z-index: 1;
  max-width: var(--home-container);
  margin: 0 auto;
}

.page-home .section-header{
  position: relative;
  margin-bottom: 30px;
  padding-bottom: 24px;
}

.page-home .section-header::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold), rgba(212,168,67,0));
}

.page-home .section-index{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 32px;
  padding: 0 8px;
  margin-bottom: 14px;
  border: 1px solid var(--color-gold);
  border-radius: 8px;
  font-family: var(--home-mono);
  font-size: 14px;
  color: var(--color-gold);
}

.page-home .section-title{
  margin: 0 0 6px;
  font-family: var(--home-head);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.page-home .section-subtitle{
  margin: 0;
  color: var(--color-muted);
  font-family: var(--home-serif);
  font-size: 15px;
  line-height: 1.75;
}

.page-home .home-hero{
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 620px;
  padding: 72px 20px 64px;
  background: var(--color-primary-deep);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 52px), 0 100%);
}

.page-home .home-hero__scene{
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.page-home .home-hero__bg{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.page-home .home-hero__veil{
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, rgba(10,30,61,0.72) 0%, rgba(10,30,61,0.9) 48%, rgba(212,168,67,0.24) 100%);
}

.page-home .home-hero__side{
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 42%;
  padding-left: 13%;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  clip-path: polygon(30% 0, 100% 0, 100% 100%, 10% 100%);
  background: linear-gradient(135deg, rgba(212,168,67,0.08), rgba(212,168,67,0.34));
  color: rgba(242,230,201,0.34);
  font-family: var(--home-mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  pointer-events: none;
}

.page-home .home-hero__content{
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 760px;
}

.page-home .home-hero__eyebrow{
  margin: 0 0 18px;
}

.page-home .home-hero__title{
  margin: 0 0 16px;
  font-family: var(--home-head);
  font-weight: 900;
  font-size: clamp(26px, 7vw, 44px);
  line-height: 1.22;
  letter-spacing: 0.01em;
}

.page-home .home-hero__desc{
  max-width: 44em;
  margin: 0;
  color: rgba(245,247,250,0.88);
  font-family: var(--home-serif);
  font-size: 15px;
  line-height: 2;
}

.page-home .home-hero__quick{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.page-home .home-hero__quick-title{
  flex-basis: 100%;
  font-family: var(--home-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--color-muted);
}

.page-home .home-hero__quick-link{
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid rgba(212,168,67,0.5);
  border-radius: 999px;
  color: var(--color-gold-light);
  font-family: var(--home-head);
  font-size: 13px;
  text-decoration: none;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.page-home .home-hero__quick-link:hover,
.page-home .home-hero__quick-link:focus-visible{
  background: var(--color-gold);
  border-color: var(--color-gold);
  color: var(--color-primary);
}

.page-home .home-hero__quick-link:focus-visible,
.page-home .home-next__card:focus-visible{
  outline: 2px solid var(--color-orange);
  outline-offset: 2px;
}

.page-home .home-paper{
  position: relative;
  isolation: isolate;
  background: rgba(19,43,82,0.72);
  border: 1px solid rgba(212,168,67,0.35);
  border-radius: var(--home-radius);
  padding: 24px;
  box-shadow: var(--home-shadow);
}

.page-home .home-paper::before{
  content: "";
  position: absolute;
  inset: 10px -4px -4px 10px;
  z-index: -1;
  border: 1px solid rgba(212,168,67,0.18);
  border-radius: 12px;
}

.page-home .home-speed__layout{
  display: grid;
  gap: 26px;
}

.page-home .home-speed__visual img{
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--home-radius);
}

.page-home .home-speed__note{
  display: inline-flex;
  margin-top: 14px;
  padding: 6px 12px;
  border: 1px solid rgba(212,168,67,0.4);
  border-radius: 999px;
  color: var(--color-gold-light);
  font-family: var(--home-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.page-home .home-speed__cards{
  display: grid;
  gap: 18px;
}

.page-home .home-speed-card__idx{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 28px;
  margin-bottom: 14px;
  border: 1px solid rgba(212,168,67,0.6);
  border-radius: 6px;
  color: var(--color-gold);
  font-family: var(--home-mono);
  font-size: 13px;
}

.page-home .home-speed-card h3{
  margin: 0 0 8px;
  font-family: var(--home-head);
  font-size: 16px;
  line-height: 1.4;
  color: var(--color-gold-light);
}

.page-home .home-speed-card p{
  margin: 0;
  color: rgba(245,247,250,0.82);
  font-family: var(--home-serif);
  font-size: 14px;
  line-height: 1.8;
}

.page-home .home-section--alt{
  background: linear-gradient(180deg, var(--color-primary), var(--color-primary-card));
}

.page-home .home-navpoints__layout{
  display: grid;
  gap: 28px;
}

.page-home .home-navdemo{
  display: grid;
  grid-template-columns: 118px 1fr;
  min-height: 300px;
  overflow: hidden;
  background: rgba(10,30,61,0.72);
  border: 1px solid rgba(212,168,67,0.3);
  border-radius: 16px;
  box-shadow: var(--home-shadow);
}

.page-home .home-navdemo__bar{
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 10px;
  background: var(--color-primary-card);
  border-right: 1px solid rgba(212,168,67,0.22);
}

.page-home .home-navdemo__logo{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 10px;
  border: 1px solid rgba(212,168,67,0.5);
  border-radius: 8px;
  color: var(--color-gold);
}

.page-home .home-navdemo__item{
  display: block;
  padding: 8px 4px;
  border-radius: 6px;
  color: rgba(245,247,250,0.68);
  font-family: var(--home-head);
  font-size: 12px;
}

.page-home .home-navdemo__item.is-active{
  color: var(--color-primary);
  background: var(--color-gold);
  font-weight: 700;
}

.page-home .home-navdemo__panel{
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 18px;
}

.page-home .home-navdemo__crumb{
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(212,168,67,0.2);
  color: var(--color-muted);
  font-family: var(--home-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.page-home .home-navdemo__line{
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(245,247,250,0.18);
}

.page-home .home-navdemo__line.short{
  width: 62%;
}

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

.page-home .home-navpoints__item{
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 20px;
  background: rgba(10,30,61,0.5);
  border: 1px solid rgba(212,168,67,0.28);
  border-radius: var(--home-radius);
}

.page-home .home-navpoints__index{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  color: var(--color-gold);
  font-family: var(--home-mono);
  font-size: 14px;
}

.page-home .home-navpoints__item h3{
  margin: 0 0 6px;
  font-family: var(--home-head);
  font-size: 16px;
  color: var(--color-gold-light);
}

.page-home .home-navpoints__item p{
  margin: 0;
  color: rgba(245,247,250,0.76);
  font-family: var(--home-serif);
  font-size: 14px;
  line-height: 1.75;
}

.page-home .home-section--gold{
  background: linear-gradient(180deg, rgba(242,230,201,0.98), rgba(242,230,201,0.94));
  color: var(--color-primary);
}

.page-home .home-section--gold .section-title{
  color: var(--color-primary);
}

.page-home .home-section--gold .section-subtitle{
  color: rgba(10,30,61,0.82);
}

.page-home .home-section--gold .section-index{
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.page-home .home-section--gold .section-header::after{
  background: linear-gradient(90deg, var(--color-primary), rgba(10,30,61,0));
}

.page-home .home-compare__layout{
  display: grid;
  gap: 22px;
}

.page-home .home-compare__card{
  background: rgba(255,255,255,0.24);
  border-color: rgba(10,30,61,0.22);
  box-shadow: 0 14px 32px rgba(10,30,61,0.12);
}

.page-home .home-compare__card::before{
  border-color: rgba(10,30,61,0.14);
}

.page-home .home-compare__row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(10,30,61,0.1);
}

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

.page-home .home-compare__label{
  grid-column: 1 / -1;
  color: var(--color-primary);
  font-family: var(--home-head);
  font-weight: 700;
  font-size: 15px;
}

.page-home .home-compare__cell{
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  font-family: var(--home-serif);
  font-size: 14px;
  line-height: 1.55;
}

.page-home .home-compare__cell--old{
  background: rgba(10,30,61,0.08);
  color: rgba(10,30,61,0.78);
}

.page-home .home-compare__cell--new{
  background: var(--color-primary);
  color: var(--color-gold-light);
  font-weight: 700;
}

.page-home .home-compare__mini{
  display: inline-block;
  margin-right: 6px;
  padding: 1px 4px;
  border-radius: 4px;
  font-family: var(--home-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.page-home .home-compare__cell--old .home-compare__mini{
  border: 1px solid rgba(10,30,61,0.3);
}

.page-home .home-compare__cell--new .home-compare__mini{
  border: 1px solid rgba(212,168,67,0.5);
}

.page-home .home-compare__figure{
  margin: 0;
}

.page-home .home-compare__figure img{
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 1px solid rgba(10,30,61,0.16);
  border-radius: var(--home-radius);
  box-shadow: 0 14px 32px rgba(10,30,61,0.12);
}

.page-home .home-compare__figure figcaption{
  margin-top: 10px;
  color: rgba(10,30,61,0.72);
  font-family: var(--home-serif);
  font-size: 13px;
  line-height: 1.7;
}

.page-home .home-history__layout{
  display: grid;
  gap: 24px;
}

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

.page-home .home-step{
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  padding: 20px;
}

.page-home .home-step__num{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  color: var(--color-gold);
  font-family: var(--home-mono);
  font-size: 15px;
}

.page-home .home-step h3{
  margin: 2px 0 6px;
  font-family: var(--home-head);
  font-size: 16px;
  color: var(--color-gold-light);
}

.page-home .home-step p{
  margin: 0;
  color: rgba(245,247,250,0.78);
  font-family: var(--home-serif);
  font-size: 14px;
  line-height: 1.75;
}

.page-home .home-history__visual img{
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border: 1px solid rgba(212,168,67,0.22);
  border-radius: var(--home-radius);
}

.page-home .home-history__note{
  margin-top: 12px;
  padding: 12px 16px;
  border-left: 3px solid var(--color-orange);
  border-radius: 0 10px 10px 0;
  background: rgba(212,168,67,0.12);
  color: var(--color-gold-light);
  font-family: var(--home-serif);
  font-size: 13px;
  line-height: 1.7;
}

.page-home .home-next{
  background: var(--color-primary-deep);
}

.page-home .home-next__grid{
  display: grid;
  gap: 18px;
}

.page-home .home-next__card{
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 16px;
  align-items: start;
  padding: 24px;
  color: var(--color-text);
  text-decoration: none;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.page-home .home-next__card:hover{
  transform: translateY(-4px);
  border-color: var(--color-gold);
  box-shadow: 0 24px 48px rgba(4,12,28,0.4);
}

.page-home .home-next__icon{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--color-gold);
  border-radius: 50%;
  color: var(--color-gold);
  font-family: var(--home-mono);
  font-size: 14px;
}

.page-home .home-next__card h3{
  margin: 0 0 6px;
  font-family: var(--home-head);
  font-size: 17px;
  color: var(--color-gold-light);
}

.page-home .home-next__card p{
  margin: 0;
  color: rgba(245,247,250,0.75);
  font-family: var(--home-serif);
  font-size: 14px;
  line-height: 1.8;
}

.page-home .home-next__stats{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 44px 0 30px;
}

.page-home .home-next__stat{
  text-align: center;
  padding: 18px 8px;
  border: 1px solid rgba(212,168,67,0.38);
  border-radius: var(--home-radius);
}

.page-home .home-next__stat-num{
  display: block;
  color: var(--color-gold);
  font-family: var(--home-mono);
  font-size: 22px;
  font-weight: 700;
}

.page-home .home-next__stat-label{
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-family: var(--home-serif);
  font-size: 12px;
}

.page-home .home-next__statement{
  margin: 0;
  text-align: center;
  color: var(--color-muted);
  font-family: var(--home-serif);
  font-size: 13px;
}

@media (min-width: 720px){
  .page-home .home-hero{
    padding-left: 5vw;
    padding-right: 5vw;
  }

  .page-home .home-hero__side{
    display: flex;
  }

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

@media (min-width: 920px){
  .page-home .home-hero{
    align-items: center;
    min-height: 680px;
    padding-top: 120px;
    padding-bottom: 96px;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 88px), 0 100%);
  }

  .page-home .home-hero__side{
    width: 34%;
  }

  .page-home .home-hero__content{
    max-width: 860px;
  }

  .page-home .home-hero__title{
    max-width: 12em;
    font-size: clamp(38px, 5vw, 54px);
  }

  .page-home .home-hero__desc{
    font-size: 16px;
  }

  .page-home .home-speed__layout{
    grid-template-columns: minmax(0, 480px) 1fr;
    column-gap: 52px;
  }

  .page-home .home-speed__layout .section-header{
    grid-column: 1 / -1;
  }

  .page-home .home-speed__visual{
    grid-column: 1;
  }

  .page-home .home-speed__cards{
    grid-column: 2;
    align-content: start;
  }

  .page-home .home-navpoints__layout{
    grid-template-columns: minmax(0, 420px) 1fr;
    column-gap: 52px;
  }

  .page-home .home-navpoints__layout .section-header{
    grid-column: 1 / -1;
  }

  .page-home .home-navpoints__demo{
    grid-column: 1;
  }

  .page-home .home-navpoints__list{
    grid-column: 2;
  }

  .page-home .home-compare__layout{
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.6fr);
    column-gap: 44px;
  }

  .page-home .home-compare__layout .section-header{
    grid-column: 1 / -1;
  }

  .page-home .home-compare__row{
    grid-template-columns: 140px 1fr 1fr;
    align-items: start;
  }

  .page-home .home-compare__label{
    grid-column: auto;
    padding-top: 4px;
  }

  .page-home .home-history__layout{
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
    column-gap: 48px;
  }

  .page-home .home-history__layout .section-header{
    grid-column: 1 / -1;
  }

  .page-home .home-history__steps{
    grid-column: 1;
  }

  .page-home .home-history__visual{
    grid-column: 2;
  }

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

  .page-home .home-next__stats{
    grid-template-columns: repeat(3, 200px);
    justify-content: center;
    gap: 18px;
  }
}

@media (prefers-reduced-motion: no-preference){
  .page-home .home-hero__content{
    animation: pageHomeHeroRise 0.7s var(--ease) both;
  }
}

@keyframes pageHomeHeroRise{
  from{
    opacity: 0;
    transform: translateY(16px);
  }
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce){
  .page-home *{
    animation: none !important;
    transition: none !important;
  }
}
