.page-home {
  --ph-line: rgba(0, 255, 255, 0.16);
  --ph-card-bg: rgba(27, 42, 74, 0.82);
  --ph-bg-deep: #07162E;
  background: var(--bg-deep);
  overflow-x: clip;
}

.page-home .ph-hero {
  position: relative;
  padding: 24px 0 0;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(106, 13, 173, 0.30), transparent 60%),
    radial-gradient(900px 500px at 20% 110%, rgba(0, 255, 255, 0.10), transparent 55%),
    var(--bg-deep);
  overflow: hidden;
}

.page-home .ph-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-home .ph-hero__lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
}

.page-home .ph-hero__lines path {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.page-home .ph-hero__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  display: block;
}

.page-home .ph-hero__blob--purple {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: var(--purple);
}

.page-home .ph-hero__blob--cyan {
  width: 320px;
  height: 320px;
  bottom: -100px;
  left: -60px;
  background: var(--cyan);
  opacity: 0.25;
}

.page-home .ph-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 24px;
}

.page-home .ph-hero__copy .breadcrumb {
  margin-bottom: 16px;
}

.page-home .ph-hero__kicker {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--cyan);
  text-transform: uppercase;
  padding: 6px 12px;
  background: var(--glass);
  border-left: 3px solid var(--purple);
  margin-bottom: 16px;
}

.page-home .ph-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(52px, 12vw, 96px);
  line-height: 0.95;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 0 0 18px;
  text-transform: uppercase;
}

.page-home .ph-hero__accent {
  background-image: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-home .ph-hero__lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  max-width: 52ch;
  margin-bottom: 28px;
}

.page-home .ph-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .ph-hero__visual {
  position: relative;
  display: grid;
  align-items: end;
}

.page-home .ph-hero__img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--ph-line);
  box-shadow: var(--shadow);
  display: block;
}

.page-home .ph-hero__panel {
  position: absolute;
  background: var(--glass);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.page-home .ph-hero__panel--refresh {
  top: 16px;
  left: 16px;
}

.page-home .ph-hero__panel--support {
  bottom: 22px;
  right: 12px;
}

.page-home .ph-hero__panel-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.page-home .ph-hero__panel-value {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1;
  font-weight: 700;
}

.page-home .ph-hero__strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--ph-line);
  border-bottom: 1px solid var(--ph-line);
  background: rgba(7, 22, 46, 0.6);
  padding: 12px 0;
  margin-top: 32px;
}

.page-home .ph-hero__strip-inner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
  overflow-x: auto;
}

.page-home .ph-hub {
  position: relative;
  padding: 72px 0;
  background: var(--bg);
}

.page-home .ph-hub::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 56px;
  background: var(--gradient);
  transform: translateX(-50%);
}

.page-home .ph-hub__head {
  max-width: 720px;
  margin-bottom: 40px;
}

.page-home .ph-hub__head h2 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 6vw, 52px);
  margin: 8px 0 12px;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.page-home .ph-hub__head p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.page-home .ph-hub__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-home .ph-hub__card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 24px;
  background: var(--ph-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}

.page-home .ph-hub__card:hover,
.page-home .ph-hub__card:focus-visible {
  border-color: rgba(0, 255, 255, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.25), 0 24px 50px rgba(0, 0, 0, 0.3);
}

.page-home .ph-hub__card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background-image: var(--gradient);
  opacity: 0.08;
  transition: opacity 0.3s ease;
}

.page-home .ph-hub__card:hover::after {
  opacity: 0.18;
}

.page-home .ph-hub__index {
  font-family: var(--font-heading);
  font-size: 44px;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12);
  line-height: 1;
  margin-bottom: 14px;
}

.page-home .ph-hub__card h3 {
  font-family: var(--font-heading);
  font-size: 28px;
  margin: 0 0 10px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.page-home .ph-hub__card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
  flex: 1;
}

.page-home .ph-hub__arrow {
  font-weight: 700;
  color: var(--cyan);
  font-size: 15px;
}

.page-home .ph-categories {
  position: relative;
  padding: 72px 0;
  background:
    linear-gradient(135deg, rgba(106, 13, 173, 0.18) 0%, transparent 40%),
    rgba(255, 255, 255, 0.02),
    var(--bg-deep);
  border-top: 1px solid var(--ph-line);
  border-bottom: 1px solid var(--ph-line);
}

.page-home .ph-categories__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.page-home .ph-categories__content h2,
.page-home .ph-support__content h2,
.page-home .ph-upgrade__head h2,
.page-home .ph-history__content h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.1;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}

.page-home .ph-categories__lead,
.page-home .ph-support__lead,
.page-home .ph-history__lead {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.page-home .ph-categories__panel {
  background: var(--ph-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 24px;
}

.page-home .ph-categories__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 6px;
}

.page-home .ph-categories__panel-title {
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
}

.page-home .ph-categories__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .ph-categories__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-home .ph-categories__list li:last-child {
  border-bottom: none;
}

.page-home .ph-cat-name {
  min-width: 64px;
  color: var(--text);
  font-weight: 700;
  font-size: 16px;
}

.page-home .ph-cat-meta {
  color: var(--muted);
  font-size: 14px;
  flex: 1;
}

.page-home .ph-cat-mark {
  color: var(--success);
  font-weight: 700;
}

.page-home .ph-categories__more {
  display: inline-block;
  color: var(--cyan);
  font-weight: 700;
  font-size: 14px;
  margin-top: 8px;
}

.page-home .ph-categories__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .ph-categories__visual {
  position: relative;
}

.page-home .ph-categories__visual::before {
  content: "";
  position: absolute;
  inset: -18px 18px 18px -18px;
  border: 1px solid var(--ph-line);
  border-radius: var(--radius);
  z-index: 0;
}

.page-home .ph-categories__figure {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.page-home .ph-categories__figure img,
.page-home .ph-support__figure img,
.page-home .ph-upgrade__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-home .ph-support {
  position: relative;
  padding: 72px 0;
  background: var(--bg);
  overflow: hidden;
}

.page-home .ph-support__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.page-home .ph-support__figure {
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-home .ph-support__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}

.page-home .ph-support__stat {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 18px 10px;
  text-align: center;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.page-home .ph-support__stat:hover {
  border-color: rgba(0, 255, 255, 0.4);
  background: rgba(0, 255, 255, 0.06);
}

.page-home .ph-support__stat strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 30px;
  color: var(--text);
  line-height: 1.05;
  margin-bottom: 6px;
}

.page-home .ph-support__stat span {
  color: var(--muted);
  font-size: 13px;
}

.page-home .ph-support__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .ph-upgrade {
  position: relative;
  padding: 72px 0;
  background:
    radial-gradient(800px 400px at 80% 20%, rgba(106, 13, 173, 0.16), transparent 60%),
    var(--bg-deep);
  border-top: 1px solid var(--ph-line);
  border-bottom: 1px solid var(--ph-line);
}

.page-home .ph-upgrade__head {
  max-width: 760px;
  margin-bottom: 32px;
}

.page-home .ph-upgrade__head p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
}

.page-home .ph-upgrade__bar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: 36px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--purple);
  border-radius: var(--radius);
}

.page-home .ph-upgrade__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

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

.page-home .ph-brand-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  background: var(--ph-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 18px 16px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.page-home .ph-brand-card:hover {
  border-color: rgba(0, 255, 255, 0.4);
  transform: translateY(-3px);
}

.page-home .ph-brand-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--cyan);
  background: rgba(0, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 255, 0.2);
}

.page-home .ph-brand-card__icon svg {
  width: 24px;
  height: 24px;
}

.page-home .ph-brand-card__name {
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
}

.page-home .ph-brand-card__count {
  color: var(--muted);
  font-size: 13px;
}

.page-home .ph-brand-card em {
  font-style: normal;
}

.page-home .ph-upgrade__media {
  aspect-ratio: 3 / 2;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-home .ph-history {
  position: relative;
  padding: 72px 0;
  background: var(--bg);
}

.page-home .ph-history__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  align-items: center;
}

.page-home .ph-history__steps {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-home .ph-history__steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
}

.page-home .ph-history__steps li span {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--cyan);
  font-size: 18px;
  min-width: 28px;
}

.page-home .ph-history__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.page-home .ph-history__visual {
  position: relative;
}

.page-home .ph-history__window {
  background: var(--ph-card-bg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-home .ph-history__window-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  background: rgba(0, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
}

.page-home .ph-history__compare {
  padding: 16px;
}

.page-home .ph-history__cols {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 0 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .ph-history__cols span:nth-child(2) {
  text-align: center;
}

.page-home .ph-history__cols span:nth-child(3) {
  text-align: right;
}

.page-home .ph-history__row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 8px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.page-home .ph-history__row:last-child {
  border-bottom: none;
}

.page-home .ph-history__row span {
  color: var(--text);
  font-size: 15px;
}

.page-home .ph-history__row strong {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.page-home .ph-history__row strong:last-child {
  color: var(--cyan);
  text-align: right;
}

@media (min-width: 768px) {
  .page-home .ph-upgrade__brands {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .ph-support__stats {
    gap: 16px;
  }

  .page-home .ph-support__stat {
    padding: 22px 14px;
  }
}

@media (min-width: 992px) {
  .page-home .ph-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 60px;
    min-height: calc(100vh - 160px);
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .page-home .ph-hero__title {
    font-size: clamp(72px, 8vw, 112px);
  }

  .page-home .ph-hero__img {
    height: 520px;
  }

  .page-home .ph-hub__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .page-home .ph-categories__inner,
  .page-home .ph-support__inner,
  .page-home .ph-history__inner {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

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

  .page-home .ph-upgrade__bar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .page-home .ph-history__steps {
    grid-template-columns: 1fr;
  }
}
