.page-home {
  --home-title: clamp(2.6rem, 8vw, 5.2rem);
  --home-gap: clamp(4rem, 9vw, 7.5rem);
  background:
    radial-gradient(1000px 500px at 90% 0%, rgba(63,103,184,0.16), transparent 60%),
    radial-gradient(800px 400px at -10% 40%, rgba(61,255,126,0.06), transparent 55%),
    var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.7;
  position: relative;
  overflow-x: clip;
}

.page-home .breadcrumbs {
  font-size: 0.9rem;
  color: var(--text-sub);
  margin-bottom: 1.5rem;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.page-home .breadcrumbs a {
  color: var(--text-main);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, color 0.2s;
}
.page-home .breadcrumbs a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.page-home .breadcrumbs span[aria-hidden="true"] {
  color: var(--accent);
}

.page-home .home-hero {
  position: relative;
  padding: clamp(1.8rem, 4vw, 3.5rem) var(--gutter) clamp(2.8rem, 6vw, 5rem);
  overflow: hidden;
}
.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(240,244,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240,244,255,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  z-index: 0;
}
.page-home .home-hero::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 42%;
  height: 100%;
  background: linear-gradient(160deg, transparent 30%, rgba(61,255,126,0.07) 30%, rgba(61,255,126,0.07) 31%, transparent 31%);
  pointer-events: none;
  z-index: 0;
}

.page-home .home-hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.page-home .hero-service-list {
  order: 3;
  background: rgba(28,46,74,0.55);
  border-left: 3px solid var(--bg-bright);
  padding: 1.2rem 1.4rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  max-width: 100%;
  backdrop-filter: blur(6px);
}
.page-home .hero-service-caption {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-sub);
}
.page-home .hero-service-list ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
.page-home .hero-service-list li {
  position: relative;
  display: flex;
  gap: 0.7rem;
  padding: 0.42rem 0.2rem;
  align-items: baseline;
  color: var(--text-sub);
  font-size: 0.92rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}
.page-home .hero-service-list li:hover {
  color: var(--text-main);
  background: rgba(61,255,126,0.05);
}
.page-home .svc-index {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: var(--bg-bright);
  min-width: 1.6rem;
}
.page-home .hero-service-list li.is-highlight {
  color: var(--accent);
  background: rgba(61,255,126,0.08);
  padding-left: 0.6rem;
  padding-right: 0.6rem;
}
.page-home .hero-service-list li.is-highlight .svc-index {
  color: var(--accent);
}
.page-home .hero-service-list li.is-highlight:hover {
  background: rgba(61,255,126,0.14);
}
.page-home .svc-path {
  display: none;
}
.page-home .hero-service-note {
  margin: 0.8rem 0 0;
  font-size: 0.8rem;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.page-home .home-hero-body {
  max-width: 46rem;
}
.page-home .hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}
.page-home .hero-kicker::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--accent);
}
.page-home .home-hero h1 {
  font-family: var(--font-display);
  font-size: var(--home-title);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 1.2rem;
  max-width: 13ch;
}
.page-home .hero-lead {
  color: var(--text-sub);
  font-size: 1.05rem;
  max-width: 42rem;
  margin-bottom: 1.8rem;
}
.page-home .hero-lead a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(61,255,126,0.4);
  transition: border-color 0.2s;
}
.page-home .hero-lead a:hover {
  border-bottom-color: var(--accent);
}
.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.page-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
  line-height: 1;
}
.page-home .btn-primary {
  background: var(--accent);
  color: var(--bg-deep);
}
.page-home .btn-primary:hover {
  background: var(--accent-dark);
}
.page-home .btn-ghost {
  background: transparent;
  color: var(--text-main);
  border-color: var(--bg-bright);
}
.page-home .btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.page-home .home-hero-figure {
  margin: 0;
  position: relative;
}
.page-home .home-hero-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid rgba(61,255,126,0.26);
  box-shadow: var(--shadow-1);
  transition: border-color 0.2s, transform 0.2s;
}
.page-home .home-hero-figure:hover img {
  border-color: var(--accent);
}
.page-home .home-hero-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.page-home .home-hero-figure figcaption::before {
  content: "";
  width: 1rem;
  height: 1px;
  background: var(--accent);
}
.page-home .cover-tags {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  max-width: 55%;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
  z-index: 2;
}
.page-home .home-hero-figure:hover .cover-tags,
.page-home .home-hero-figure:focus-within .cover-tags {
  opacity: 1;
  transform: translateY(0);
}
.page-home .cover-tags span {
  background: rgba(10,17,40,0.88);
  color: var(--accent);
  border: 1px solid var(--line-accent);
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
}

.page-home .hero-index {
  position: relative;
  z-index: 2;
  margin-top: 2.5rem;
  padding: 1.4rem 1.6rem;
  background: rgba(28,46,74,0.4);
  border: 1px solid var(--neutral-light);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.page-home .hero-index-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.page-home .hero-index-label {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.page-home .hero-index-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
}
.page-home .hero-index-links a {
  color: var(--text-sub);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.page-home .hero-index-links a span {
  font-family: var(--font-display);
  font-size: 0.7rem;
  color: var(--accent);
}
.page-home .hero-index-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.page-home .hero-trust {
  position: relative;
  z-index: 2;
  margin-top: 1.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(240,244,255,0.08);
  color: var(--text-sub);
  font-size: 0.86rem;
  max-width: 52rem;
}

.page-home .hero-orbit {
  position: absolute;
  width: 300px;
  height: 300px;
  right: -70px;
  bottom: -70px;
  opacity: 0.65;
  pointer-events: none;
  z-index: 1;
}

.page-home .home-update,
.page-home .home-changelog,
.page-home .home-fav {
  padding-top: var(--home-gap);
  padding-bottom: var(--home-gap);
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
}
.page-home .home-pad,
.page-home .home-fix {
  padding-top: var(--home-gap);
  padding-bottom: var(--home-gap);
  padding-left: calc(var(--gutter) + 1.2rem);
  padding-right: var(--gutter);
  border-left: 3px solid rgba(61,255,126,0.3);
  position: relative;
}

.page-home .section-head {
  margin-bottom: 2.5rem;
  max-width: 46rem;
}
.page-home .section-kicker {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.page-home .section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1.15;
  margin: 0 0 0.8rem;
}
.page-home .section-summary {
  color: var(--text-sub);
  font-size: 1rem;
  margin: 0;
  max-width: 40rem;
}

.page-home .home-update {
  background: linear-gradient(180deg, rgba(31,58,122,0.22), transparent);
}
.page-home .home-update::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42%;
  height: 3px;
  background: var(--accent);
  opacity: 0.5;
}
.page-home .home-update::after {
  content: "";
  position: absolute;
  top: 0;
  right: 6%;
  width: 1px;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--line-accent), transparent);
  pointer-events: none;
}

.page-home .home-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.page-home .home-stat-card {
  background: rgba(28,46,74,0.72);
  border: 1px solid var(--neutral-light);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: border-color 0.2s, transform 0.2s;
}
.page-home .home-stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.page-home .home-stat-card .metric-label {
  font-size: 0.9rem;
  color: var(--text-sub);
  order: 2;
}
.page-home .home-stat-card .metric-number {
  font-family: var(--font-display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--text-main);
  order: 1;
}
.page-home .home-stat-card .metric-unit {
  font-size: 1.2rem;
  color: var(--accent);
  margin-left: 0.2rem;
}
.page-home .home-stat-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-sub);
  order: 3;
}

.page-home .home-capability {
  margin-top: 1.8rem;
  padding: 1.8rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.page-home .home-capability h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.55rem;
}
.page-home .home-capability p {
  color: var(--text-sub);
  font-size: 0.95rem;
  margin: 0;
  max-width: 42rem;
}
.page-home .home-capability-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.page-home .cap-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  padding: 0.2rem 0;
}
.page-home .cap-item em {
  font-style: normal;
  color: var(--accent);
  margin-left: auto;
  font-size: 0.85rem;
  text-align: right;
}
.page-home .cap-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(61,255,126,0.55);
  flex-shrink: 0;
}

.page-home .home-pad-grid,
.page-home .home-changelog-grid,
.page-home .home-fav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.page-home .step-list {
  list-style: none;
  margin: 0 0 1.8rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.page-home .step-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.page-home .step-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
  line-height: 1.1;
  min-width: 2.2rem;
  padding-top: 0.1rem;
}
.page-home .step-list h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.3rem;
  line-height: 1.3;
}
.page-home .step-list p {
  color: var(--text-sub);
  font-size: 0.94rem;
  margin: 0;
}

.page-home .home-pad-figure,
.page-home .home-changelog-figure,
.page-home .home-fav-figure {
  margin: 0;
}
.page-home .home-pad-figure img,
.page-home .home-changelog-figure img,
.page-home .home-fav-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--neutral-light);
  transition: border-color 0.2s;
}
.page-home .home-pad-figure:hover img,
.page-home .home-changelog-figure:hover img,
.page-home .home-fav-figure:hover img {
  border-color: var(--line-accent);
}
.page-home .home-pad-figure figcaption,
.page-home .home-changelog-figure figcaption,
.page-home .home-fav-figure figcaption {
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-sub);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.page-home .home-pad-figure figcaption::before,
.page-home .home-changelog-figure figcaption::before,
.page-home .home-fav-figure figcaption::before {
  content: "";
  width: 1rem;
  height: 1px;
  background: var(--accent);
}

.page-home .timeline {
  position: relative;
  margin: 0 0 2rem;
  padding-left: 1.8rem;
  max-width: 42rem;
}
.page-home .timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), var(--bg-bright), rgba(61,255,126,0.15));
}
.page-home .timeline-item {
  position: relative;
  padding: 0 0 1.8rem 1.2rem;
}
.page-home .timeline-item:last-child {
  padding-bottom: 0;
}
.page-home .timeline-dot {
  position: absolute;
  left: -1.8rem;
  top: 0.3rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(61,255,126,0.16);
}
.page-home .timeline-content h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0 0 0.25rem;
  line-height: 1.3;
}
.page-home .timeline-note {
  font-size: 0.82rem;
  color: var(--accent);
  margin: 0 0 0.4rem;
  font-weight: 500;
}
.page-home .timeline-content p {
  color: var(--text-sub);
  font-size: 0.92rem;
  margin: 0;
}

.page-home .home-changelog-cta,
.page-home .home-fix-cta {
  margin-top: 2rem;
}

.page-home .home-fix-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  margin-bottom: 2rem;
}
.page-home .fix-step {
  background: rgba(31,58,122,0.24);
  border: 1px solid var(--neutral-light);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}
.page-home .fix-step:hover {
  border-color: var(--accent);
  background: rgba(31,58,122,0.38);
}
.page-home .fix-num {
  font-family: var(--font-display);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--bg-bright);
  display: block;
  margin-bottom: 0.9rem;
  transition: color 0.2s;
}
.page-home .fix-step:hover .fix-num {
  color: var(--accent);
}
.page-home .fix-step h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}
.page-home .fix-step p {
  color: var(--text-sub);
  font-size: 0.92rem;
  margin: 0;
}

.page-home .home-fav-tip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-sub);
  font-size: 0.9rem;
  background: rgba(61,255,126,0.06);
  border: 1px solid transparent;
  padding: 0.8rem 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.4rem;
  transition: border-color 0.2s, background 0.2s;
}
.page-home .home-fav-tip:hover {
  border-color: var(--accent);
  background: rgba(61,255,126,0.1);
}
.page-home .fav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(61,255,126,0.5);
  flex-shrink: 0;
}

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

@media (min-width: 960px) {
  .page-home .home-stats {
    grid-template-columns: repeat(4, 1fr);
  }
  .page-home .home-capability {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .page-home .home-pad-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
    align-items: center;
  }
  .page-home .home-changelog-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 2.5rem;
    align-items: start;
  }
  .page-home .home-fav-grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 2.5rem;
    align-items: center;
  }
  .page-home .home-fav-steps {
    order: 2;
  }
  .page-home .home-fav-figure {
    order: 1;
  }
  .page-home .home-fix-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-home .svc-path {
    display: block;
    position: absolute;
    left: calc(100% + 0.6rem);
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    background: var(--bg-deep);
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 0.78rem;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    z-index: 4;
  }
  .page-home .hero-service-list li.is-highlight:hover .svc-path {
    opacity: 1;
  }
}

@media (min-width: 1100px) {
  .page-home .home-hero {
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .page-home .home-hero-grid {
    grid-template-columns: 240px minmax(0, 1fr) minmax(320px, 440px);
    gap: var(--gutter);
    align-items: center;
  }
  .page-home .hero-service-list {
    order: 0;
    margin-top: 0;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 3px solid var(--bg-bright);
    border-top: 1px solid rgba(240,244,255,0.08);
    border-bottom: 1px solid rgba(240,244,255,0.08);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem;
  }
  .page-home .home-hero-body {
    order: 0;
  }
  .page-home .home-hero-figure {
    order: 0;
  }
  .page-home .hero-index {
    flex-direction: row;
    gap: 2.5rem;
    align-items: flex-start;
  }
  .page-home .hero-trust {
    margin-top: 1.2rem;
  }
}
