.page-home {
  --home-gutter: clamp(24px, 5vw, 48px);
  --home-index: clamp(3.5rem, 10vw, 7rem);
  --home-width-gap: clamp(32px, 6vw, 64px);
}

.page-home .home-hub {
  position: relative;
  overflow: hidden;
  padding: 28px 0 clamp(40px, 8vw, 80px);
}

.page-home .home-hub::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(38, 54, 74, 0.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(38, 54, 74, 0.4) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

.page-home .home-hub::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 55%;
  height: 60%;
  background: radial-gradient(circle at 70% 30%, var(--c-glow), transparent 70%);
  pointer-events: none;
}

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

.page-home .home-hub .breadcrumb {
  margin-bottom: 20px;
}

.page-home .home-hub__grid {
  display: grid;
  gap: var(--home-gutter);
  align-items: start;
}

.page-home .home-hub__intro {
  max-width: 720px;
}

.page-home .home-hub__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--c-accent);
  text-transform: uppercase;
}

.page-home .home-hub__eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--c-accent-2);
}

.page-home .home-hub__title {
  margin: 16px 0 20px;
  font-family: var(--f-headline);
  font-style: italic;
  font-weight: 800;
  font-size: var(--text-h1);
  line-height: 0.98;
  letter-spacing: -0.01em;
}

.page-home .home-hub__lead {
  margin: 0 0 28px;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text-dim);
  max-width: 44em;
}

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

.page-home .home-hub__panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.page-home .home-hub__panel-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-home .home-hub__round {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--c-text-dim);
}

.page-home .home-hub__frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--c-line);
  background: linear-gradient(135deg, var(--c-card), #0D1522 80%);
}

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

.page-home .home-hub__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.page-home .home-hub__stat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}

.page-home .home-hub__stat:hover {
  border-color: var(--c-data);
  box-shadow: 0 0 20px rgba(57, 255, 136, 0.12);
  transform: translateY(-2px);
}

.page-home .home-hub__stat-value {
  font-family: var(--f-mono);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--c-data);
}

.page-home .home-hub__stat-label {
  font-size: 0.78rem;
  color: var(--c-text-dim);
}

.page-home .home-hub__stat-more {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--c-text-dim);
  transform: translateY(6px);
  transition: max-height var(--tr), opacity var(--tr), transform var(--tr);
}

.page-home .home-hub__stat:hover .home-hub__stat-more {
  max-height: 72px;
  opacity: 1;
  transform: translateY(0);
}

.page-home .home-section-head {
  position: relative;
  margin-bottom: clamp(30px, 7vw, 56px);
}

.page-home .home-section-head__index {
  position: absolute;
  top: -0.35em;
  right: 0;
  z-index: 0;
  pointer-events: none;
  font-family: var(--f-headline);
  font-style: italic;
  font-weight: 800;
  font-size: var(--home-index);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(0, 229, 255, 0.35);
}

.page-home .home-section-head__title,
.page-home .home-section-head__lead {
  position: relative;
  z-index: 1;
}

.page-home .home-section-head__title {
  margin: 0;
  font-family: var(--f-headline);
  font-style: italic;
  font-weight: 800;
  font-size: var(--text-h2);
  line-height: 1.04;
}

.page-home .home-section-head__lead {
  margin: 12px 0 0;
  color: var(--c-text-dim);
  max-width: 62ch;
  line-height: 1.7;
}

.page-home .home-zone {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 8vw, 80px) 0;
  background: linear-gradient(115deg, var(--c-bg-alt) 0%, var(--c-bg) 72%);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.page-home .home-zone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--c-accent), var(--c-data));
  opacity: 0.35;
  pointer-events: none;
}

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

.page-home .home-zone__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-home .home-zone__filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.page-home .home-zone__filters + .home-zone__filters {
  margin-top: 6px;
}

.page-home .home-zone__filters-label {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--c-text-dim);
  margin-right: 4px;
}

.page-home .home-zone__filter {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  line-height: 1;
  color: var(--c-text-dim);
  background: rgba(11, 15, 31, 0.6);
  border: 1px solid var(--c-line);
  text-decoration: none;
  transition: border-color var(--tr), color var(--tr), background var(--tr);
}

.page-home .home-zone__filter:hover,
.page-home .home-zone__filter:focus-visible {
  border-color: var(--c-accent);
  color: var(--c-text);
}

.page-home .home-zone__filter.is-active {
  border-color: var(--c-accent);
  background: var(--c-accent);
  color: var(--c-bg);
  font-weight: 600;
}

.page-home .home-zone__table {
  width: 100%;
  margin: 18px 0 10px;
  border: 1px solid var(--c-line);
  border-collapse: collapse;
  background: rgba(15, 22, 33, 0.72);
  transition: box-shadow var(--tr), border-color var(--tr);
}

.page-home .home-zone__table:target {
  border-color: var(--c-accent);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.16);
}

.page-home .home-zone__table th,
.page-home .home-zone__table td {
  font-family: var(--f-mono);
  font-size: 0.82rem;
  line-height: 1.4;
  padding: 10px 12px;
  text-align: left;
  color: var(--c-text-dim);
  border-bottom: 1px solid var(--c-line);
}

.page-home .home-zone__table th {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-accent);
  background: rgba(0, 229, 255, 0.06);
}

.page-home .home-zone__table tr:last-child td {
  border-bottom: none;
}

.page-home .home-zone__table td:first-child {
  color: var(--c-text);
  font-weight: 600;
}

.page-home .home-zone__table td:last-child {
  color: var(--c-data);
}

.page-home .home-zone__note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--c-text-dim);
}

.page-home .home-zone__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

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

.page-home .home-zone__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.9;
  border: 1px solid var(--c-line);
  background: var(--c-card);
}

.page-home .home-zone__figure .media-caption {
  margin-top: 10px;
}

.page-home .home-mobile {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 8vw, 80px) 0;
}

.page-home .home-mobile__grid {
  display: grid;
  gap: 32px;
  align-items: center;
}

.page-home .home-mobile__timeline {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  border-left: 1px solid var(--c-line);
}

.page-home .home-mobile__timeline li {
  position: relative;
  padding-left: 20px;
  padding-bottom: 22px;
}

.page-home .home-mobile__timeline li::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 4px;
  width: 9px;
  height: 9px;
  background: var(--c-bg);
  border: 2px solid var(--c-accent-2);
}

.page-home .home-mobile__time {
  display: block;
  margin-bottom: 4px;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--c-accent-2);
}

.page-home .home-mobile__timeline p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--c-text-dim);
}

.page-home .home-mobile__modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.page-home .home-mobile__modules span {
  padding: 6px 10px;
  font-family: var(--f-mono);
  font-size: 0.74rem;
  color: var(--c-text-dim);
  background: var(--c-card);
  border: 1px solid var(--c-line);
}

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

.page-home .home-mobile__device {
  position: relative;
  max-width: 340px;
  margin: 0 auto;
  padding: 14px 14px 20px;
  background: var(--c-bg-deep);
  border: 2px solid var(--c-line);
  border-radius: 6px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(38, 54, 74, 0.6);
}

.page-home .home-mobile__device::before {
  content: "";
  display: block;
  width: 80px;
  height: 4px;
  margin: 0 auto 18px;
  background: var(--c-line);
  border-radius: 999px;
}

.page-home .home-mobile__device-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  margin-bottom: 12px;
  font-family: var(--f-mono);
  font-size: 0.75rem;
  background: var(--c-card);
  border: 1px solid var(--c-line);
}

.page-home .home-mobile__device-live {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--c-data);
}

.page-home .home-mobile__device-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-data);
}

.page-home .home-mobile__device-section {
  margin: 14px 0 8px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.page-home .home-mobile__device-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 6px;
  font-size: 0.8rem;
  border-bottom: 1px dashed var(--c-line);
}

.page-home .home-mobile__status {
  padding: 3px 8px;
  font-family: var(--f-mono);
  font-size: 0.68rem;
  border: 1px solid var(--c-line);
  white-space: nowrap;
}

.page-home .home-mobile__status--out {
  color: var(--c-accent-2);
  border-color: var(--c-accent-2);
}

.page-home .home-mobile__status--risk {
  color: var(--c-text-dim);
}

.page-home .home-mobile__status--live {
  color: var(--c-data);
  border-color: var(--c-data);
}

.page-home .home-mobile__device-pred {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 6px;
  margin-bottom: 8px;
  font-size: 0.78rem;
  background: var(--c-card);
  border: 1px solid var(--c-line);
}

.page-home .home-mobile__device-pred span:last-child {
  font-family: var(--f-mono);
  color: var(--c-data);
  white-space: nowrap;
}

.page-home .home-upgrade {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 8vw, 80px) 0;
  background: linear-gradient(135deg, var(--c-bg-deep), var(--c-bg-alt) 85%);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}

.page-home .home-upgrade__grid {
  display: grid;
  gap: 36px;
  align-items: start;
}

.page-home .home-upgrade__demo {
  display: grid;
  gap: 20px;
}

.page-home .home-upgrade__card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
}

.page-home .home-upgrade__card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 90px;
  height: 90px;
  background: radial-gradient(circle, var(--c-glow), transparent 70%);
  pointer-events: none;
}

.page-home .home-upgrade__card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.page-home .home-upgrade__edition {
  font-family: var(--f-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--c-data);
}

.page-home .home-upgrade__line {
  margin: 0 0 10px;
  padding-left: 12px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--c-text-dim);
  border-left: 2px solid var(--c-accent);
}

.page-home .home-upgrade__more {
  margin-top: 8px;
  border-top: 1px solid var(--c-line);
}

.page-home .home-upgrade__more summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 2px 0;
  cursor: pointer;
  list-style: none;
  font-size: 0.8rem;
  color: var(--c-accent);
}

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

.page-home .home-upgrade__more summary::after {
  content: "+";
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 1rem;
  line-height: 1;
}

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

.page-home .home-upgrade__more summary:focus-visible {
  outline: 1px dashed var(--c-accent);
  outline-offset: 4px;
}

.page-home .home-upgrade__full {
  padding-top: 12px;
}

.page-home .home-upgrade__full p {
  margin: 0 0 8px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--c-text-dim);
}

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

.page-home .home-upgrade__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  opacity: 0.92;
  border: 1px solid var(--c-line);
  background: var(--c-card);
}

.page-home .home-upgrade__figure .media-caption {
  margin-top: 10px;
}

.page-home .home-upgrade__types-title {
  margin: 0 0 16px;
  font-family: var(--f-headline);
  font-style: italic;
  font-weight: 800;
  font-size: var(--text-h3);
  line-height: 1.15;
}

.page-home .home-upgrade__types {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.page-home .home-upgrade__types li {
  padding: 10px 4px;
  font-family: var(--f-mono);
  font-size: 0.82rem;
  text-align: center;
  color: var(--c-text);
  background: rgba(11, 15, 31, 0.5);
  border: 1px solid var(--c-line);
  transition: border-color var(--tr), color var(--tr);
}

.page-home .home-upgrade__types li:hover {
  border-color: var(--c-data);
  color: var(--c-data);
}

.page-home .home-upgrade__types-desc {
  margin: 0 0 18px;
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--c-text-dim);
}

.page-home .home-paths {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 8vw, 80px) 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 229, 255, 0.04)), var(--c-bg);
}

.page-home .home-paths__grid {
  display: grid;
  gap: 14px;
  margin-bottom: 36px;
}

.page-home .home-path {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 14px;
  padding: 18px 18px 16px;
  overflow: hidden;
  color: var(--c-text);
  background: var(--c-card);
  border: 1px solid var(--c-line);
  text-decoration: none;
  transition: border-color var(--tr), transform var(--tr), box-shadow var(--tr);
}

.page-home .home-path::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--c-accent);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform var(--tr);
}

.page-home .home-path:hover,
.page-home .home-path:focus-visible {
  border-color: var(--c-accent);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translateX(6px);
}

.page-home .home-path:hover::after,
.page-home .home-path:focus-visible::after {
  transform: scaleY(1);
}

.page-home .home-path__meta {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-accent);
}

.page-home .home-path__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  grid-column: 1;
}

.page-home .home-path__arrow {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--f-mono);
  color: var(--c-text-dim);
}

.page-home .home-paths__bottom {
  display: grid;
  gap: 28px;
  align-items: center;
}

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

.page-home .home-paths__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  opacity: 0.92;
  border: 1px solid var(--c-line);
  background: var(--c-card);
}

.page-home .home-paths__figure .media-caption {
  margin-top: 10px;
}

.page-home .home-paths__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.page-home .home-paths__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  background: var(--c-card);
  border: 1px solid var(--c-line);
}

.page-home .home-paths__stat span {
  font-family: var(--f-mono);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--c-data);
}

.page-home .home-paths__stat small {
  font-size: 0.75rem;
  color: var(--c-text-dim);
}

.page-home .home-hub,
.page-home .home-zone,
.page-home .home-mobile,
.page-home .home-upgrade,
.page-home .home-paths,
.page-home .home-zone__table {
  scroll-margin-top: calc(var(--header-top-space) + 20px);
}

@media (min-width: 800px) {
  .page-home .home-hub__grid {
    grid-template-columns: 1.02fr 0.98fr;
    gap: var(--home-width-gap);
  }

  .page-home .home-hub__panel {
    margin-top: clamp(0px, 3vw, 32px);
  }

  .page-home .home-hub__stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .page-home .home-zone__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 44px;
    align-items: center;
  }

  .page-home .home-mobile__grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 48px;
    align-items: center;
  }

  .page-home .home-upgrade__grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 44px;
    align-items: start;
  }

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

  .page-home .home-paths__bottom {
    grid-template-columns: 1fr 1fr;
    gap: 44px;
  }

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