.page-home {
  background: var(--black);
  color: var(--silver);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

/* ===== HERO ===== */
.page-home .home-hero {
  position: relative;
  padding: 48px 0 56px;
  background: radial-gradient(ellipse at 15% 20%, rgba(212,0,255,.16) 0%, transparent 55%),
              radial-gradient(ellipse at 85% 80%, rgba(0,229,255,.1) 0%, transparent 45%),
              var(--black);
  border-bottom: 1px solid var(--dark-gray);
}

.page-home .home-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.page-home .home-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

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

.page-home .home-hero__kicker {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue);
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 14px;
  border: 1px solid rgba(0,229,255,.3);
  background: rgba(0,229,255,.06);
  padding: 6px 10px;
}

.page-home .home-hero__title {
  font-family: var(--font-head);
  font-size: 34px;
  line-height: 1.25;
  color: var(--paper);
  margin: 0 0 18px;
  transform: skewX(-5deg);
}

.page-home .home-hero__title-main {
  display: block;
  color: var(--purple);
  text-shadow: var(--glow-purple);
}

.page-home .home-hero__title-sub {
  display: block;
  font-size: 22px;
  color: var(--silver);
  margin-top: 6px;
  text-shadow: none;
}

.page-home .home-hero__title-sep {
  display: none;
}

.page-home .home-hero__desc {
  font-size: 15px;
  color: var(--silver);
  max-width: 560px;
  margin-bottom: 28px;
}

.page-home .home-hero__desc strong {
  color: var(--acid);
  font-weight: 700;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 22px;
}

.page-home .home-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--silver);
}

.page-home .home-hero__meta-item {
  border: 1px solid var(--dark-gray);
  background: rgba(26,26,30,.8);
  padding: 4px 8px;
}

.page-home .home-hero__visual {
  position: relative;
  min-height: 300px;
  background: var(--ink);
  border: 1px solid var(--dark-gray);
  overflow: hidden;
  clip-path: polygon(5% 0, 100% 0, 95% 100%, 0 100%);
}

.page-home .home-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .6;
  mix-blend-mode: screen;
}

.page-home .home-hero__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: .9;
}

.page-home .home-hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: repeating-linear-gradient(0deg, transparent 0, transparent 4px, rgba(0,0,0,.28) 4px, rgba(0,0,0,.28) 6px);
  pointer-events: none;
}

.page-home .home-hero__badge {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--acid);
  background: rgba(13,13,15,.72);
  border: 1px solid var(--acid);
  padding: 5px 8px;
  transform: skewX(-5deg);
}

/* ===== STATS ===== */
.page-home .home-stats {
  background: linear-gradient(180deg, var(--ink) 0%, var(--black) 100%);
}

.page-home .home-stats .section-head {
  margin-bottom: 28px;
}

.page-home .home-stats__panel {
  position: relative;
  background: var(--ink);
  border: 1px solid var(--dark-gray);
  padding: 28px 16px;
  overflow: hidden;
  transform: skewX(-2deg);
  transition: border-color .3s var(--ease);
}

.page-home .home-stats__panel:hover {
  border-color: var(--purple);
}

.page-home .home-stats__panel > * {
  position: relative;
  z-index: 1;
  transform: skewX(2deg);
}

.page-home .home-stats__panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .14;
}

.page-home .home-stats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.page-home .home-stat-card {
  position: relative;
  background: rgba(13,13,15,.82);
  border: 1px solid var(--dark-gray);
  padding: 20px 14px 18px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}

.page-home .home-stat-card:hover {
  border-color: var(--purple);
  box-shadow: var(--glow-purple);
  transform: translateY(-4px);
}

.page-home .home-stat-card__code {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--acid);
  letter-spacing: .1em;
  margin-bottom: 10px;
}

.page-home .home-stat-card__num {
  font-family: var(--font-mono);
  font-size: 44px;
  font-weight: 700;
  color: var(--purple);
  line-height: 1;
  transform: skewX(-5deg);
  margin-bottom: 10px;
}

.page-home .home-stat-card__unit {
  font-size: 20px;
  color: var(--blue);
  margin-left: 2px;
}

.page-home .home-stat-card__label {
  font-size: 13px;
  line-height: 1.5;
  color: var(--silver);
  margin: 0;
}

.page-home .home-stat-card__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  padding: 12px;
  background: rgba(212,0,255,.96);
  color: var(--black);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s var(--ease), visibility .2s var(--ease);
}

.page-home .home-stat-card:hover .home-stat-card__hint,
.page-home .home-stat-card:focus-within .home-stat-card__hint {
  opacity: 1;
  visibility: visible;
}

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

.page-home .home-stats__trust {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.5;
  color: var(--blue);
  border-left: 3px solid var(--blue);
  background: rgba(0,229,255,.05);
  padding: 10px 12px;
}

/* ===== UPDATES ===== */
.page-home .home-updates__panel {
  position: relative;
}

.page-home .home-updates__grid {
  align-items: stretch;
}

.page-home .home-updates__list .section-head {
  margin-bottom: 24px;
}

.page-home .home-updates__rows {
  border-top: 1px solid var(--dark-gray);
}

.page-home .home-update-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 10px;
  border-bottom: 1px solid var(--dark-gray);
  text-decoration: none;
  transition: background .25s var(--ease), padding-left .25s var(--ease);
}

.page-home .home-update-row:hover {
  background: linear-gradient(90deg, rgba(212,0,255,.1) 0%, transparent 70%);
  padding-left: 16px;
}

.page-home .home-update-row__version {
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--blue);
  line-height: 1.6;
  padding-top: 2px;
}

.page-home .home-update-row__body {
  flex: 1 1 auto;
  min-width: 0;
}

.page-home .home-update-row__title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 2px;
}

.page-home .home-update-row__desc {
  display: block;
  font-size: 13px;
  color: var(--silver);
  line-height: 1.5;
}

.page-home .home-update-row .tag {
  flex: 0 0 auto;
}

.page-home .home-updates__more {
  display: inline-block;
  margin-top: 20px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--acid);
  text-decoration: none;
  border-bottom: 1px solid var(--acid);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}

.page-home .home-updates__more:hover {
  color: var(--purple);
  border-color: var(--purple);
}

.page-home .home-updates__visual {
  display: none;
}

/* ===== CATEGORIES ===== */
.page-home .home-categories {
  background: linear-gradient(180deg, var(--black) 0%, var(--ink) 100%);
}

.page-home .home-categories .section-head {
  margin-bottom: 20px;
}

.page-home .home-categories__intro {
  font-size: 15px;
  color: var(--silver);
  max-width: 640px;
  margin: 0 0 28px;
  padding-left: 14px;
  border-left: 3px solid var(--purple);
}

.page-home .home-categories__grid {
  gap: 18px;
}

.page-home .home-category-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 20px;
  text-decoration: none;
  background: var(--ink);
  border: 1px solid var(--dark-gray);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}

.page-home .home-category-card:hover {
  border-color: var(--purple);
  box-shadow: var(--glow-purple);
  transform: translateY(-3px);
}

.page-home .home-category-card__index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--acid);
  margin-bottom: 10px;
}

.page-home .home-category-card .card__title {
  font-size: 18px;
  color: var(--paper);
  margin-bottom: 8px;
}

.page-home .home-category-card .card__desc {
  flex: 1 1 auto;
  font-size: 14px;
  line-height: 1.6;
  color: var(--silver);
  margin-bottom: 14px;
}

.page-home .home-category-card__enter {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--blue);
}

.page-home .home-categories__more {
  margin-top: 24px;
  font-size: 14px;
  color: var(--silver);
}

.page-home .home-categories__more a {
  color: var(--acid);
  text-decoration: none;
  border-bottom: 1px solid rgba(182,255,0,.4);
}

.page-home .home-categories__more a:hover {
  color: var(--blue);
  border-color: var(--blue);
}

/* ===== DEVICES ===== */
.page-home .home-devices__wrap {
  gap: 40px;
  align-items: start;
}

.page-home .home-devices__intro {
  font-size: 15px;
  color: var(--silver);
  margin-bottom: 28px;
  max-width: 640px;
}

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

.page-home .home-device-item {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 16px 14px 14px;
  background: var(--ink);
  border: 1px solid var(--dark-gray);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease);
}

.page-home .home-device-item:hover {
  border-color: var(--blue);
  box-shadow: var(--glow-blue);
  transform: translateY(-2px);
}

.page-home .home-device-item__code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--acid);
  margin-bottom: 6px;
}

.page-home .home-device-item__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--paper);
  margin-bottom: 8px;
}

.page-home .home-device-item__status {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--acid);
  border: 1px solid rgba(182,255,0,.35);
  background: rgba(182,255,0,.08);
  padding: 2px 8px;
  letter-spacing: .08em;
}

.page-home .home-devices__note {
  margin-top: 18px;
  font-size: 13px;
  color: var(--silver);
}

.page-home .home-devices__visual {
  margin-top: 24px;
}

.page-home .home-devices__visual .img-frame {
  max-width: 640px;
}

/* ===== SEARCH ===== */
.page-home .home-search {
  background: radial-gradient(ellipse at 50% 100%, rgba(212,0,255,.12) 0%, transparent 60%);
}

.page-home .home-search .section-head {
  margin-bottom: 28px;
}

.page-home .home-search__panel {
  position: relative;
  background: var(--ink);
  border: 1px solid var(--dark-gray);
  padding: 28px 20px;
  overflow: hidden;
}

.page-home .home-search__panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--acid));
}

.page-home .home-search__intro {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: 15px;
  color: var(--silver);
}

.page-home .home-search__intro p {
  margin: 0;
}

.page-home .home-search__field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--black);
  border: 1px solid var(--dark-gray);
  padding: 18px 16px;
  margin-bottom: 18px;
  cursor: text;
  outline: none;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}

.page-home .home-search__field:focus {
  border-color: var(--blue);
  box-shadow: var(--glow-blue);
}

.page-home .home-search__field-glyph {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--blue);
}

.page-home .home-search__field-text {
  font-size: 15px;
  color: var(--silver);
}

.page-home .home-search__field-tip {
  display: none;
  font-size: 12px;
  line-height: 1.5;
  color: var(--acid);
  border-left: 2px solid var(--acid);
  background: rgba(182,255,0,.05);
  padding-left: 8px;
}

.page-home .home-search__field:hover .home-search__field-tip,
.page-home .home-search__field:focus .home-search__field-tip {
  display: block;
}

.page-home .home-search__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}

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

.page-home .home-search__chip {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--paper);
  text-decoration: none;
  border: 1px solid var(--dark-gray);
  background: var(--black);
  padding: 6px 12px;
  transition: border-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}

.page-home .home-search__chip:hover {
  border-color: var(--purple);
  color: var(--purple);
  box-shadow: 0 0 12px rgba(212,0,255,.25);
}

/* ===== MEDIA QUERIES ===== */
@media (min-width: 640px) {
  .page-home .home-hero__title {
    font-size: 42px;
  }

  .page-home .home-hero__title-sub {
    font-size: 24px;
  }

  .page-home .home-stats__grid {
    gap: 16px;
  }

  .page-home .home-stat-card {
    padding: 22px 16px 20px;
  }

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

@media (min-width: 900px) {
  .page-home .home-hero {
    padding: 80px 0 72px;
  }

  .page-home .home-hero__inner {
    grid-template-columns: 1.05fr .95fr;
    gap: 48px;
    align-items: center;
    min-height: calc(100vh - var(--header-h));
  }

  .page-home .home-hero__title {
    font-size: 52px;
  }

  .page-home .home-hero__title-sub {
    font-size: 30px;
  }

  .page-home .home-hero__visual {
    min-height: 560px;
  }

  .page-home .home-stats__panel {
    padding: 40px 32px;
  }

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

  .page-home .home-stats__bottom {
    margin-top: 24px;
  }

  .page-home .home-updates__panel {
    transform: translateX(-24px);
  }

  .page-home .home-updates__grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .page-home .home-updates__visual {
    display: block;
    position: relative;
  }

  .page-home .home-updates__visual .img-frame {
    height: 100%;
    min-height: 320px;
  }

  .page-home .home-categories__grid {
    gap: 24px;
  }

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

  .page-home .home-devices__visual {
    margin-top: 0;
    transform: translateY(32px);
  }

  .page-home .home-search__panel {
    padding: 40px 36px;
  }
}
