.page-home {
  --hp-chop: 28px;
  --hp-gap: 16px;
  --hp-title-size: clamp(2.4rem, 6vw, 4.6rem);
}

/* ===== HERO ===== */
.page-home .hp-hero {
  position: relative;
  padding: 24px 0 56px;
}
.page-home .hp-hero__frame {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  clip-path: polygon(
    0 0,
    calc(100% - var(--hp-chop)) 0,
    100% var(--hp-chop),
    100% 100%,
    var(--hp-chop) 100%,
    0 calc(100% - var(--hp-chop))
  );
}
.page-home .hp-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}
.page-home .hp-hero__veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 15, 30, 0.9) 0%,
    rgba(10, 15, 30, 0.55) 55%,
    rgba(0, 212, 255, 0.18) 100%
  );
  pointer-events: none;
}
.page-home .hp-hero__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 60px,
    rgba(0, 212, 255, 0.08) 60px 61px
  );
  pointer-events: none;
}
.page-home .hp-hero__crumb {
  position: absolute;
  top: 24px;
  left: 24px;
  z-index: 2;
}
.page-home .hp-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: clamp(56px, 10vw, 120px) var(--container-pad) clamp(96px, 14vw, 150px);
}
.page-home .hp-hero__title {
  font-family: var(--font-heading);
  font-size: var(--hp-title-size);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0.2em 0 0.15em;
  color: var(--text-primary);
  text-transform: uppercase;
}
.page-home .hp-hero__subline {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--accent-green);
  letter-spacing: 0.12em;
  text-shadow: 0 0 14px rgba(0, 255, 157, 0.45);
  margin-bottom: 14px;
}
.page-home .hp-hero__desc {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  max-width: 46ch;
  margin-bottom: 24px;
}
.page-home .hp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.page-home .hp-btn--ghost {
  background: transparent;
  border: 1px solid var(--border-blue);
  color: var(--text-primary);
}
.page-home .hp-btn--ghost:hover {
  border-color: var(--accent-blue);
  color: var(--accent-blue);
}
.page-home .hp-hero__dash {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border-glow);
  background: rgba(10, 15, 30, 0.74);
  backdrop-filter: blur(4px);
}
.page-home .hp-hero__dash-item {
  padding: 16px 12px;
  text-align: center;
  border-right: 1px solid var(--border-blue);
}
.page-home .hp-hero__dash-item:last-child {
  border-right: 0;
}
.page-home .hp-hero__dash-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  color: var(--accent-green);
  text-shadow: 0 0 16px rgba(0, 255, 157, 0.4);
}
.page-home .hp-hero__dash-suf {
  color: var(--accent-blue);
  font-size: 0.72em;
}
.page-home .hp-hero__dash-label {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
  letter-spacing: 0.08em;
  margin-top: 4px;
}

/* ===== SECTION INDEX ===== */
.page-home .hp-section__index {
  position: absolute;
  right: 0;
  bottom: -30px;
  font-family: var(--font-heading);
  font-size: clamp(5rem, 12vw, 10rem);
  line-height: 1;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 255, 157, 0.2);
  pointer-events: none;
  z-index: 0;
}

/* ===== STATS ===== */
.page-home .hp-stats {
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
  padding: var(--section-pad) 0;
}
.page-home .hp-stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-green), transparent 70%);
}
.page-home .hp-stats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 32px;
  position: relative;
  z-index: 1;
}
.page-home .hp-stat {
  background: var(--bg-elevated);
  padding: 18px 14px;
  border-left: 2px solid var(--accent-green);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.page-home .hp-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 212, 255, 0.12);
}
.page-home .hp-stat__line {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin-bottom: 6px;
}
.page-home .hp-stat__num {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent-green);
  text-shadow: 0 0 18px rgba(0, 255, 157, 0.35);
}
.page-home .hp-stat__unit {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent-blue);
}
.page-home .hp-stat__label {
  color: var(--text-secondary);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

/* ===== FEATURES ===== */
.page-home .hp-features {
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
  padding: var(--section-pad) 0;
}
.page-home .hp-features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--hp-gap);
  margin-top: 32px;
}
.page-home .hp-features__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border-blue);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.page-home .hp-features__card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-green);
  box-shadow: 0 0 0 1px var(--border-glow), 0 12px 32px rgba(0, 0, 0, 0.35);
}
.page-home .hp-features__media {
  position: relative;
  overflow: hidden;
  background: var(--bg-elevated);
  aspect-ratio: 4 / 3;
}
.page-home .hp-features__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.page-home .hp-features__card:hover .hp-features__img {
  transform: scale(1.03);
}
.page-home .hp-features__body {
  flex: 1;
  padding: 18px 18px 22px;
}
.page-home .hp-features__tag {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 8px;
  font-weight: 600;
}
.page-home .hp-features__body h3 {
  font-size: 1.06rem;
  line-height: 1.4;
  margin-bottom: 8px;
}
.page-home .hp-features__body h3 a {
  color: var(--text-primary);
  text-decoration: none;
}
.page-home .hp-features__body h3 a:hover {
  color: var(--accent-green);
}
.page-home .hp-features__body p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}
.page-home .hp-features__more {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent-green);
  letter-spacing: 0.06em;
}
.page-home .hp-features__cherry {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 22px 18px 10px;
  background: linear-gradient(120deg, rgba(0, 255, 157, 0.08), transparent 60%);
}
.page-home .hp-features__cherry-num {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent-green);
  text-shadow: 0 0 18px rgba(0, 255, 157, 0.45);
}
.page-home .hp-features__cherry-suf {
  font-size: 0.62em;
  color: var(--accent-red);
}
.page-home .hp-features__cherry-label {
  color: var(--text-secondary);
  font-size: 0.8rem;
}
.page-home .hp-features__card--plain {
  justify-content: space-between;
}
.page-home .hp-features__card--plain .hp-features__media {
  display: none;
}
.page-home .hp-features__geo {
  display: flex;
  gap: 6px;
  margin-top: auto;
  padding: 0 18px 18px;
}
.page-home .hp-features__geo span {
  width: 34px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), transparent);
}
.page-home .hp-features__live {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 0 18px 18px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  color: var(--accent-green);
}
.page-home .hp-features__live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-red);
  box-shadow: 0 0 10px var(--accent-red);
  animation: hp-blink 1.2s infinite;
}

/* ===== TRUST ===== */
.page-home .hp-trust {
  border-top: 1px solid var(--border-blue);
  border-bottom: 1px solid var(--border-blue);
  background: var(--bg-secondary);
  padding: 18px 0;
}
.page-home .hp-trust__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: center;
}
.page-home .hp-trust__list li {
  position: relative;
  padding-left: 16px;
  color: var(--text-secondary);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}
.page-home .hp-trust__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  transform: rotate(45deg);
}

/* ===== INSIGHTS ===== */
.page-home .hp-insights {
  position: relative;
  overflow: hidden;
  background: var(--bg-primary);
  padding: var(--section-pad) 0;
}
.page-home .hp-insights__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
}
.page-home .hp-insights__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-home .hp-insights .bi-container {
  position: relative;
  z-index: 1;
}
.page-home .hp-insights__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.page-home .hp-insights__heading {
  min-width: 0;
}
.page-home .hp-insights__scroller {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.page-home .hp-insights__card {
  scroll-snap-align: start;
  flex: 0 0 84%;
  max-width: 320px;
  background: rgba(17, 23, 46, 0.82);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-blue);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.page-home .hp-insights__card:hover {
  border-color: var(--accent-blue);
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.12);
}
.page-home .hp-insights__cat {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--accent-green);
  margin-bottom: 10px;
  font-weight: 600;
}
.page-home .hp-insights__card h3 {
  font-size: 1.06rem;
  line-height: 1.45;
  margin-bottom: 10px;
}
.page-home .hp-insights__card h3 a {
  color: var(--text-primary);
  text-decoration: none;
}
.page-home .hp-insights__card h3 a:hover {
  color: var(--accent-blue);
}
.page-home .hp-insights__card p {
  color: var(--text-secondary);
  font-size: 0.86rem;
  line-height: 1.65;
}
.page-home .hp-insights__arrow {
  margin-top: auto;
  color: var(--accent-green);
  font-size: 1.1rem;
}

@keyframes hp-blink {
  50% {
    opacity: 0.35;
  }
}

/* ===== DESKTOP ===== */
@media (min-width: 768px) {
  .page-home .hp-stats__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .page-home .hp-insights__scroller {
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
  }
  .page-home .hp-insights__card {
    flex: none;
    max-width: none;
  }
}

@media (min-width: 900px) {
  .page-home .hp-features__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(260px, auto);
  }
  .page-home .hp-features__card--wide {
    grid-column: span 2;
    flex-direction: row;
  }
  .page-home .hp-features__card--wide .hp-features__media {
    aspect-ratio: auto;
    flex: 0 0 42%;
    min-height: 100%;
  }
}

@media (min-width: 1100px) {
  .page-home .hp-stats__grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 0;
    border: 1px solid var(--border-blue);
  }
  .page-home .hp-stat {
    background: transparent;
    border-left: 0;
    padding: 28px 18px;
    text-align: center;
    border-right: 1px solid var(--border-blue);
  }
  .page-home .hp-stat:last-child {
    border-right: 0;
  }
  .page-home .hp-stat__line {
    justify-content: center;
  }
}
