.page-home {
  --home-gap: clamp(20px, 4vw, 40px);
  overflow-x: clip;
  color: var(--c-white);
  background-color: var(--c-bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

.page-home .home-scroll-progress {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 4px;
  background: linear-gradient(90deg, var(--c-green), var(--c-orange));
  transform: scaleX(1);
  transform-origin: 0 50%;
  animation: home-progress-scale linear both;
  animation-timeline: scroll();
  animation-duration: auto;
}

@keyframes home-progress-scale {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 48px;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  top: 8%;
  right: -12%;
  width: 62%;
  height: 82%;
  background: linear-gradient(120deg, rgba(0, 107, 61, 0.6), rgba(0, 166, 81, 0.8));
  clip-path: polygon(10% 0, 100% 18%, 86% 100%, 0 82%);
  transform: skewY(-7deg);
  z-index: 0;
}

.page-home .home-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--home-gap);
  align-items: center;
}

.page-home .home-hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
}

.page-home .home-hero-copy h1 {
  margin: 0;
  font-size: clamp(1.8rem, 6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.page-home .home-hero-lead {
  margin: 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--c-gray);
  max-width: 54ch;
}

.page-home .home-hero-sub {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--c-gray);
  max-width: 56ch;
  border-left: 2px solid var(--c-green);
  padding-left: 14px;
}

.page-home .home-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-hero-meta span {
  border: 1px solid var(--c-line);
  background: rgba(18, 18, 18, 0.8);
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--c-white);
  letter-spacing: 0.06em;
}

.page-home .home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 4px;
}

.page-home .home-hero-preview {
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  padding: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.page-home .home-hero-live {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-data);
}

.page-home .home-hero-delay {
  margin-left: auto;
  color: var(--c-gray);
  font-family: var(--font-mono);
}

.page-home .home-hero-img {
  display: block;
  width: 100%;
  height: clamp(220px, 34vw, 420px);
  object-fit: cover;
  margin: 14px 0 18px;
  background: var(--c-bg);
}

.page-home .home-hero-title {
  margin: 0 0 6px;
  position: relative;
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.page-home .home-hero-title::after {
  content: "";
  display: block;
  width: 88px;
  height: 8px;
  margin-top: 10px;
  background: repeating-linear-gradient(90deg, var(--c-orange) 0 14px, transparent 14px 22px);
}

.page-home .home-hero-index {
  display: grid;
  margin-top: 16px;
  border-top: 1px solid var(--c-line);
}

.page-home .home-hero-index a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 4px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background var(--ts-fast), color var(--ts-fast), padding-left var(--ts-fast);
}

.page-home .home-hero-index a:hover,
.page-home .home-hero-index a:focus-visible {
  background: var(--c-surface-alt);
  color: var(--c-green);
  padding-left: 14px;
}

.page-home .home-idx-no {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--c-gray);
  letter-spacing: 0.08em;
}

.page-home .home-idx-arrow {
  margin-left: auto;
  color: var(--c-orange);
  font-family: var(--font-mono);
}

.page-home .home-hero-ninety {
  position: absolute;
  right: -12px;
  bottom: 2%;
  z-index: 0;
  font-family: var(--font-mono);
  font-size: clamp(4rem, 12vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  color: rgba(0, 166, 81, 0.14);
  -webkit-text-stroke: 2px rgba(0, 230, 118, 0.4);
  transform: skewX(-8deg);
  pointer-events: none;
}

.page-home .home-dashboard {
  display: grid;
  gap: calc(var(--home-gap) * 1.2);
  padding: 56px 0 64px;
  position: relative;
}

.page-home .home-navrail-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  border-left: 2px solid var(--c-green);
  padding-left: 18px;
}

.page-home .home-navrail-title {
  margin: 0;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.page-home .home-navrail-copy {
  margin: 0;
  color: var(--c-gray);
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 40ch;
}

.page-home .home-navrail-links {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 8px 0;
}

.page-home .home-navrail-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-gray);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--ts-fast), padding-left var(--ts-fast);
}

.page-home .home-navrail-links a::before {
  content: "↳";
  color: var(--c-green);
  font-family: var(--font-mono);
}

.page-home .home-navrail-links a:hover,
.page-home .home-navrail-links a:focus-visible {
  color: var(--c-white);
  padding-left: 10px;
}

.page-home .home-navrail-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 2px;
}

.page-home .home-navrail-metrics span {
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  padding: 6px 10px;
  font-size: 0.72rem;
  color: var(--c-gray);
  font-family: var(--font-mono);
}

.page-home .home-navrail-metrics strong {
  color: var(--c-data);
  font-weight: 700;
  margin-right: 4px;
}

.page-home .home-main {
  display: flex;
  flex-direction: column;
  gap: var(--home-gap);
}

.page-home .home-section {
  scroll-margin-top: 24px;
  position: relative;
  background: var(--c-surface);
  border: 1px solid var(--c-line);
  padding: clamp(20px, 4vw, 36px);
  transition: box-shadow var(--ts-fast), border-color var(--ts-fast);
}

.page-home .home-section::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 64px;
  height: 4px;
  background: var(--c-green);
}

.page-home .home-section:target {
  border-color: var(--c-green);
  box-shadow: 0 0 0 1px rgba(0, 166, 81, 0.7), 0 20px 40px rgba(0, 0, 0, 0.25);
}

.page-home .home-section h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.4rem, 3.4vw, 2.3rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.page-home .home-section-lead {
  margin: 0 0 18px;
  color: var(--c-gray);
  line-height: 1.8;
  font-size: 0.94rem;
}

.page-home .home-section-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.page-home .home-section-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  padding: 12px 14px;
  color: var(--c-white);
  font-size: 0.88rem;
  line-height: 1.6;
}

.page-home .home-section-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  background: var(--c-green);
}

.page-home .home-section-foot {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

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

.page-home .home-verify-media img,
.page-home .home-v3-media img,
.page-home .home-stats-media img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-verify-media img {
  height: clamp(240px, 30vw, 360px);
  background: var(--c-bg);
}

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

.page-home .home-v3-step {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  padding: 16px 10px;
  text-align: center;
}

.page-home .home-v3-step.is-current {
  border-color: var(--c-green);
  background: linear-gradient(180deg, rgba(0, 166, 81, 0.16), rgba(18, 18, 18, 0.4));
}

.page-home .home-v3-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--c-green);
  border: 1px solid var(--c-green);
  padding: 2px 8px;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}

.page-home .home-v3-step p {
  margin: 0;
  color: var(--c-gray);
  font-size: 0.8rem;
  line-height: 1.6;
}

.page-home .home-v3-step.is-current p {
  color: var(--c-white);
  font-weight: 700;
}

.page-home .home-v3-media {
  margin-top: 18px;
}

.page-home .home-v3-media img {
  height: clamp(220px, 30vw, 320px);
  background: var(--c-bg);
}

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

.page-home .home-scenario {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
}

.page-home .home-scenario summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  color: var(--c-white);
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1.5;
}

.page-home .home-scenario summary::-webkit-details-marker {
  display: none;
}

.page-home .home-scenario summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--c-orange);
  font-family: var(--font-mono);
  font-size: 1.2rem;
  line-height: 1;
}

.page-home .home-scenario[open] summary::after {
  content: "−";
}

.page-home .home-scenario[open] summary {
  border-bottom: 1px solid var(--c-line);
}

.page-home .home-scenario > div {
  padding: 14px 18px 18px;
  color: var(--c-gray);
  font-size: 0.88rem;
  line-height: 1.8;
}

.page-home .home-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin: 20px 0;
}

.page-home .home-stat-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  padding: 18px 14px;
}

.page-home .home-stat-card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--c-green);
  border-bottom: 2px solid var(--c-green);
  opacity: 0.6;
}

.page-home .home-stat-num {
  font-family: var(--font-mono);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--c-data);
  letter-spacing: -0.02em;
}

.page-home .home-stat-label {
  font-size: 0.74rem;
  color: var(--c-gray);
  letter-spacing: 0.08em;
}

.page-home .home-stats-media {
  margin: 6px 0 20px;
}

.page-home .home-honor-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-honor-list li {
  border: 1px dashed var(--c-line);
  padding: 8px 12px;
  color: var(--c-gray);
  font-size: 0.74rem;
  line-height: 1.5;
}

.page-home .home-trust-banner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 56px;
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-green);
  background: linear-gradient(100deg, rgba(0, 166, 81, 0.22), rgba(0, 107, 61, 0.08));
  padding: clamp(20px, 4vw, 36px);
}

.page-home .home-trust-banner p {
  margin: 0;
  color: var(--c-white);
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  font-weight: 700;
  line-height: 1.7;
  max-width: 60ch;
}

.page-home .home-contact-strip {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
  border-top: 1px solid var(--c-line);
  padding: 32px 0 28px;
}

.page-home .home-contact-copy p {
  margin: 0 0 6px;
  color: var(--c-gray);
  font-size: 0.88rem;
  line-height: 1.7;
}

.page-home .home-contact-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-contact-value {
  display: inline-block;
  border: 1px solid var(--c-line);
  background: var(--c-surface);
  padding: 8px 12px;
  color: var(--c-gray);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.page-home .home-back-row {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 48px;
}

@media (min-width: 640px) {
  .page-home .home-section-list {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

@media (min-width: 1024px) {
  .page-home .home-hero {
    padding: 104px 0 84px;
  }

  .page-home .home-hero-grid {
    grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  }

  .page-home .home-dashboard {
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: calc(var(--home-gap) * 1.4);
    padding: 72px 0 84px;
  }

  .page-home .home-navrail {
    position: sticky;
    top: 32px;
    align-self: start;
  }

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

  .page-home .home-verify-media {
    position: sticky;
    top: 32px;
  }

  .page-home .home-contact-strip {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
