.page-home {
  --home-gradient: linear-gradient(135deg, #0B1120 0%, #131E3B 55%, #1B2A4A 100%);
  background: var(--color-bg);
}

.page-home .home-hero {
  position: relative;
  overflow: hidden;
  background: var(--home-gradient);
  color: #F5F7FA;
}

.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.22) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 72%);
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 72%);
  pointer-events: none;
}

.page-home .home-hero::after {
  content: "";
  position: absolute;
  top: -30%;
  right: -8%;
  width: 55%;
  height: 150%;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.42), rgba(124, 58, 237, 0.2) 55%, transparent 85%);
  transform: rotate(14deg);
  filter: blur(28px);
  pointer-events: none;
}

.page-home .home-hero-shell {
  position: relative;
  z-index: 1;
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.page-home .home-hero-main {
  min-width: 0;
}

.page-home .home-hero-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.page-home .home-hero-title {
  margin: 0 0 1rem;
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.page-home .home-hero-lead {
  margin: 0 0 2rem;
  max-width: 46rem;
  color: #C7D2E8;
  font-size: 1.05rem;
  line-height: 1.7;
}

.page-home .home-hero-inner {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.page-home .home-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.page-home .home-stat-item {
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.page-home .home-stat-item dt {
  font-size: 0.75rem;
  color: #C7D2E8;
  margin-bottom: 0.4rem;
}

.page-home .home-stat-item dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.45rem;
  font-weight: 600;
  color: #F8FAFC;
}

.page-home .home-coordinate {
  margin: 1rem 0 2rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #C7D2E8;
  border-left: 2px solid var(--color-accent);
  padding-left: 0.75rem;
}

.page-home .home-hero-figure {
  margin: 0;
  border: 2px solid rgba(255, 255, 255, 0.16);
  box-shadow: 10px 10px 0 rgba(124, 58, 237, 0.32);
  overflow: hidden;
  background: rgba(11, 17, 32, 0.6);
}

.page-home .home-hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
}

.page-home .home-index {
  position: relative;
  margin-top: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 8px 8px 0 rgba(37, 99, 235, 0.32);
}

.page-home .home-index-title {
  margin: 0.35rem 0 1rem;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.page-home .home-index-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: home-index;
}

.page-home .home-index-list li {
  counter-increment: home-index;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.page-home .home-index-list li:last-child {
  border-bottom: 0;
}

.page-home .home-index-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.78rem 0;
  color: #E6EDF8;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.page-home .home-index-list a::before {
  content: counter(home-index, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--color-accent);
}

.page-home .home-index-list a span {
  flex: 1;
}

.page-home .home-index-list small {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #9FB0CC;
  white-space: nowrap;
}

.page-home .home-index-list a:hover {
  color: #FFFFFF;
}

.page-home .home-index-note {
  margin: 1.25rem 0 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: #B6C2D9;
}

.page-home .home-version,
.page-home .home-assurance {
  padding: 4rem 0;
  background: var(--color-bg);
}

.page-home .home-section-head {
  max-width: 760px;
  margin-bottom: 2.5rem;
  border-left: 4px solid var(--color-primary);
  padding-left: 1.5rem;
}

.page-home .home-section-head--light {
  border-left-color: var(--color-purple);
}

.page-home .home-section-title {
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 900;
  line-height: 1.12;
  color: var(--color-text);
}

.page-home .home-section-lead {
  margin: 0;
  color: var(--color-text-soft);
  line-height: 1.7;
}

.page-home .home-version-grid {
  display: block;
}

.page-home .home-version-card {
  padding: 1.5rem;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  box-shadow: 8px 8px 0 rgba(37, 99, 235, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-bottom: 1rem;
}

.page-home .home-version-card:last-child {
  margin-bottom: 0;
}

.page-home .home-version-card:hover {
  transform: translateY(-4px);
  box-shadow: 10px 10px 0 rgba(124, 58, 237, 0.18);
}

.page-home .home-card-index {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page-home .home-features .home-card-index {
  color: var(--color-accent);
}

.page-home .home-version-card h3,
.page-home .home-assurance-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.3;
}

.page-home .home-version-card p:not(.home-card-index):not(.home-card-meta),
.page-home .home-assurance-card p:not(.home-card-meta) {
  margin: 0 0 1rem;
  color: var(--color-text-soft);
  line-height: 1.7;
}

.page-home .home-card-meta {
  margin: 1.25rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-top: 1px solid var(--color-line);
  padding-top: 0.85rem;
}

.page-home .home-version-figure {
  margin: 3rem 0 0;
  max-width: 640px;
  border: 2px solid var(--color-border);
  box-shadow: 8px 8px 0 rgba(37, 99, 235, 0.14);
  background: var(--color-surface);
}

.page-home .home-version-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-features {
  padding: 4rem 0;
  background: var(--color-dark);
  color: #F5F7FA;
  position: relative;
  overflow: hidden;
}

.page-home .home-features::before {
  content: "";
  position: absolute;
  width: 60%;
  height: 150%;
  right: -18%;
  top: -20%;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(37, 99, 235, 0.28) 60%, transparent);
  transform: rotate(10deg);
  pointer-events: none;
}

.page-home .home-features .container {
  position: relative;
  z-index: 1;
}

.page-home .home-section-head--light .home-section-title {
  color: #FFFFFF;
}

.page-home .home-section-head--light .home-section-lead {
  color: #B6C2D9;
}

.page-home .home-feature-grid {
  display: block;
  position: relative;
  z-index: 1;
}

.page-home .home-feature-link {
  display: block;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--color-purple);
  color: #F5F7FA;
  text-decoration: none;
  margin-bottom: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-home .home-feature-link:last-child {
  margin-bottom: 0;
}

.page-home .home-feature-link:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  background: rgba(255, 255, 255, 0.09);
}

.page-home .home-feature-link h3 {
  margin: 0 0 0.75rem;
  font-size: 1.3rem;
  font-weight: 800;
}

.page-home .home-feature-link p {
  margin: 0 0 1.1rem;
  color: #B6C2D9;
  line-height: 1.7;
}

.page-home .home-feature-arrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

.page-home .home-features-figure {
  margin: 3rem auto 0;
  max-width: 380px;
  border: 2px solid rgba(124, 58, 237, 0.65);
  box-shadow: 12px 12px 0 rgba(37, 99, 235, 0.35);
  background: rgba(255, 255, 255, 0.04);
}

.page-home .home-features-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-assurance {
  background: var(--color-bg-alt);
}

.page-home .home-assurance-grid {
  display: block;
}

.page-home .home-assurance-card {
  padding: 1.75rem;
  background: var(--color-surface);
  border-top: 6px solid var(--color-primary);
  box-shadow: 6px 6px 0 rgba(11, 17, 32, 0.1);
  margin-bottom: 1rem;
}

.page-home .home-assurance-card:last-child {
  margin-bottom: 0;
}

.page-home .home-assurance-figure-row {
  display: grid;
  gap: 1.5rem;
  margin-top: 3rem;
  align-items: center;
}

.page-home .home-assurance-figure {
  margin: 0;
  border: 2px solid var(--color-border);
  box-shadow: 8px 8px 0 rgba(37, 99, 235, 0.14);
  background: var(--color-surface);
}

.page-home .home-assurance-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.page-home .home-assurance-note {
  padding: 1.5rem;
  background: var(--color-surface);
  border-left: 4px solid var(--color-accent);
  color: var(--color-text-soft);
  line-height: 1.7;
  box-shadow: 6px 6px 0 rgba(124, 58, 237, 0.12);
}

@media (min-width: 640px) {
  .page-home .home-version-grid,
  .page-home .home-feature-grid,
  .page-home .home-assurance-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .page-home .home-version-card,
  .page-home .home-feature-link,
  .page-home .home-assurance-card {
    margin-bottom: 0;
  }

  .page-home .home-assurance-figure-row {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
  }
}

@media (min-width: 960px) {
  .page-home .home-hero-shell {
    display: grid;
    grid-template-areas: "index main";
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
    padding-top: 5rem;
    padding-bottom: 4.5rem;
  }

  .page-home .home-hero-main {
    grid-area: main;
  }

  .page-home .home-index {
    grid-area: index;
    margin-top: 0;
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }

  .page-home .home-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 2rem;
    align-items: center;
  }

  .page-home .home-stat-item {
    padding: 1.2rem;
  }

  .page-home .home-version-grid,
  .page-home .home-assurance-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
