.page-home .hero {
  position: relative;
  overflow-x: clip;
  padding: calc(var(--header-h) + 36px) 0 56px;
  background: linear-gradient(180deg, var(--white) 0%, var(--mist) 58%, var(--mist) 100%);
}

.page-home .hero::before {
  content: "";
  position: absolute;
  top: -8%;
  right: -16%;
  width: min(680px, 74vw);
  height: 100%;
  background: linear-gradient(148deg, rgba(26, 92, 255, 0.13), rgba(0, 212, 200, 0.07) 55%, rgba(26, 92, 255, 0) 100%);
  transform: rotate(-7deg);
  pointer-events: none;
  z-index: 0;
}

.page-home .hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 28px;
}

.page-home .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 2px;
  color: var(--ink-500);
}

.page-home .hero-kicker__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0, 212, 200, 0.2);
  flex: none;
}

.page-home .hero-mark__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(68px, 15vw, 124px);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--blue);
  opacity: 0.15;
}

.page-home .hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 20px 0 18px;
  max-width: 16em;
}

.page-home .hero-lead {
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.78;
  color: var(--ink-500);
  max-width: 34em;
  margin: 0 0 30px;
}

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

.page-home .hero-visual {
  position: relative;
  margin: 0;
  padding: 10px 10px 0;
  background: var(--white);
  border: 1px solid var(--blue-100);
  box-shadow: var(--shadow-1);
}

.page-home .hero-visual::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 72px;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

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

.page-home .hero-visual figcaption {
  padding: 12px 6px 14px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink-500);
}

.page-home .hero-notes {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
}

.page-home .hero-note {
  position: relative;
  padding: 24px 22px 26px;
  background: var(--white);
  border: 1px solid var(--blue-100);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.page-home .hero-note::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 44px;
  height: 3px;
  background: var(--blue);
}

.page-home .hero-note:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow-1);
}

.page-home .hero-note__tag {
  display: inline-block;
  margin: 0 0 12px;
  padding: 3px 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--blue);
  background: var(--blue-100);
}

.page-home .hero-note__title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--ink);
}

.page-home .hero-note__text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-500);
}

.page-home .flow {
  padding: 56px 0 64px;
  background: var(--white);
}

.page-home .section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

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

.page-home .flow-step {
  position: relative;
  padding: 26px 22px 28px;
  background: linear-gradient(180deg, var(--white) 0%, var(--mist) 100%);
  border: 1px solid var(--blue-100);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .flow-step::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.page-home .flow-step:hover,
.page-home .flow-step:focus-within {
  transform: translateY(-3px);
  border-color: var(--blue);
}

.page-home .flow-step:hover::after,
.page-home .flow-step:focus-within::after {
  transform: scaleX(1);
}

.page-home .flow-step__num {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(38px, 7vw, 58px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--blue-100);
  transition: color var(--dur) var(--ease);
}

.page-home .flow-step:hover .flow-step__num,
.page-home .flow-step:focus-within .flow-step__num {
  color: var(--blue);
}

.page-home .flow-step__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .flow-step__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink-500);
}

.page-home .flow-visual {
  margin: 32px 0 0;
}

.page-home .flow-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--blue-100);
  background: var(--mist);
}

.page-home .flow-visual figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-400);
}

.page-home .digest {
  position: relative;
  overflow: hidden;
  padding: 56px 0 64px;
  background: var(--ink);
  color: var(--white);
}

.page-home .digest::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
}

.page-home .digest-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
}

.page-home .digest .mono-label {
  color: var(--blue-300);
}

.page-home .digest-copy h2 {
  margin: 12px 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(25px, 3.4vw, 38px);
  line-height: 1.22;
  letter-spacing: -0.025em;
  color: var(--white);
}

.page-home .digest-lead {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.74);
  max-width: 34em;
}

.page-home .digest-list {
  list-style: none;
  margin: 24px 0 28px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .digest-list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.82);
}

.page-home .digest-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.74em;
  width: 10px;
  height: 2px;
  background: var(--orange);
}

.page-home .digest-visual {
  margin: 0;
  padding: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.page-home .digest-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.page-home .digest-visual figcaption {
  padding: 12px 4px 6px;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}

.page-home .versions {
  padding: 56px 0 64px;
  background: var(--mist);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.page-home .versions-grid {
  display: grid;
  gap: 32px;
}

.page-home .versions-copy h2 {
  margin: 12px 0 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(25px, 3.4vw, 38px);
  line-height: 1.24;
  letter-spacing: -0.025em;
  color: var(--ink);
}

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

.page-home .version-legend {
  list-style: none;
  margin: 22px 0 26px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .version-legend li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--ink-500);
}

.page-home .version-legend__mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  flex: none;
}

.page-home .version-legend__mark--amber {
  background: var(--amber);
}

.page-home .versions-visual {
  margin: 0;
  padding: 8px;
  background: var(--white);
  border: 1px solid var(--blue-100);
}

.page-home .versions-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  background: var(--mist);
}

.page-home .trust {
  padding: 56px 0 64px;
  background: var(--white);
}

.page-home .trust-grid {
  display: grid;
  gap: 16px;
}

.page-home .trust-card {
  padding: 24px 22px 26px;
  background: var(--mist);
  border: 1px solid var(--blue-100);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .trust-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue);
}

.page-home .trust-card__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.page-home .trust-card__text {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-500);
  word-break: break-word;
}

.page-home .trust-card__link {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease);
}

.page-home .trust-card__link:hover,
.page-home .trust-card__link:focus-visible {
  border-bottom-color: var(--blue);
}

.page-home .trust-meta {
  margin: 30px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--blue-100);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-400);
}

.page-home .next {
  padding: 56px 0 64px;
  background: var(--ink);
  color: var(--white);
}

.page-home .next .mono-label {
  color: var(--blue-300);
}

.page-home .next-head h2 {
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(25px, 3.4vw, 36px);
  line-height: 1.24;
  letter-spacing: -0.025em;
  color: var(--white);
}

.page-home .next-lead {
  margin: 0 0 32px;
  font-size: 15.5px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.68);
}

.page-home .next-grid {
  display: grid;
  gap: 16px;
}

.page-home .next-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 22px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.page-home .next-card:hover,
.page-home .next-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--blue-300);
  background: rgba(255, 255, 255, 0.08);
}

.page-home .next-card__index {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cyan);
}

.page-home .next-card__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.page-home .next-card__text {
  font-size: 14.5px;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.72);
}

.page-home .next-card__arrow {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 16px;
  color: var(--orange);
  transition: transform var(--dur) var(--ease);
}

.page-home .next-card:hover .next-card__arrow,
.page-home .next-card:focus-visible .next-card__arrow {
  transform: translateX(5px);
}

.page-home .next-note {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
}

.page-home .next-note a {
  color: var(--blue-300);
  text-decoration: none;
  border-bottom: 1px solid rgba(127, 163, 255, 0.45);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.page-home .next-note a:hover,
.page-home .next-note a:focus-visible {
  color: var(--white);
  border-bottom-color: var(--white);
}

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

@media (min-width: 780px) {
  .page-home .hero {
    padding: calc(var(--header-h) + 48px) 0 72px;
  }

  .page-home .hero-notes {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .page-home .flow-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .page-home .flow,
  .page-home .digest,
  .page-home .versions,
  .page-home .trust,
  .page-home .next {
    padding-top: 76px;
    padding-bottom: 80px;
  }
}

@media (min-width: 860px) {
  .page-home .hero-grid {
    grid-template-columns: repeat(12, 1fr);
    column-gap: 24px;
    row-gap: 40px;
    align-items: start;
  }

  .page-home .hero-intro {
    grid-column: 1 / span 7;
  }

  .page-home .hero-visual {
    grid-column: 8 / span 5;
    margin-top: 28px;
  }

  .page-home .hero-notes {
    grid-column: 1 / -1;
  }

  .page-home .digest-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
    align-items: center;
  }

  .page-home .versions-grid {
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: center;
  }

  .page-home .next-grid {
    grid-template-columns: 1.35fr 1fr 0.85fr;
    align-items: stretch;
  }
}

@media (min-width: 1080px) {
  .page-home .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-note,
  .page-home .flow-step,
  .page-home .trust-card,
  .page-home .next-card,
  .page-home .next-card__arrow,
  .page-home .flow-step::after,
  .page-home .flow-step__num {
    transition: none;
  }

  .page-home .hero-note:hover,
  .page-home .flow-step:hover,
  .page-home .trust-card:hover,
  .page-home .next-card:hover {
    transform: none;
  }
}
