.hi-page {
  max-width: 1180px;
}

.hi-panel,
.hi-module {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.78), rgba(30, 41, 59, 0.52));
  border-radius: 22px;
  padding: clamp(1.2rem, 2.4vw, 2rem);
  box-shadow: 0 22px 40px rgba(2, 6, 23, 0.36);
  margin-bottom: 1.2rem;
}

.hi-hero {
  border: none;
  background: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-bottom: 1.6rem;
  position: relative;
}

.hi-hero-badge {
  display: inline-flex;
  align-items: center;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  color: #67e8f9;
  border: 1px solid rgba(103, 232, 249, 0.36);
  background: rgba(8, 145, 178, 0.18);
  border-radius: 999px;
  padding: 0.38rem 0.78rem;
  margin-bottom: 1rem;
}

.hi-hero-badge:empty {
  display: none;
}

.hi-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 700;
}

.hi-hero-desc {
  color: rgba(255, 255, 255, 0.6);
  margin-top: 1rem;
  line-height: 1.8;
  font-size: 1.05rem;
  max-width: 680px;
}

.hi-hero::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  margin-top: 2rem;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 2px;
}

.hi-hero-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.72rem;
  flex-wrap: wrap;
}

.hi-overview-grid {
  margin-top: 1.1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.hi-overview-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.36);
  padding: 0.92rem;
}

.hi-overview-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  color: #67e8f9;
  margin-bottom: 0.4rem;
}

.hi-overview-card h2 {
  color: #e2e8f0;
  margin: 0 0 0.38rem 0;
  font-size: 1.06rem;
}

.hi-overview-card p {
  color: rgba(226, 232, 240, 0.8);
  margin: 0;
  line-height: 1.66;
}

.hi-panel-head h2 {
  margin: 0;
  color: #e2e8f0;
  font-size: 1.35rem;
}

.hi-panel-head p {
  margin-top: 0.56rem;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.76;
}

.hi-tree {
  margin: 1rem 0 0 0;
  border: 1px solid rgba(103, 232, 249, 0.2);
  border-radius: 14px;
  background: rgba(2, 6, 23, 0.5);
  color: #bae6fd;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  line-height: 1.58;
  padding: 0.9rem;
  white-space: pre-wrap;
}

.hi-module {
  border-color: rgba(148, 163, 184, 0.3);
}

.hi-module-head {
  display: flex;
  gap: 0.82rem;
  align-items: flex-start;
  margin-bottom: 0.9rem;
}

.hi-module-index {
  width: 2.05rem;
  height: 2.05rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  color: #0f172a;
  font-weight: 600;
  background: #22d3ee;
  flex-shrink: 0;
}

.hi-module-head h2 {
  margin: 0;
  color: #e2e8f0;
  font-size: 1.42rem;
}

.hi-module-head p {
  margin: 0.46rem 0 0 0;
  color: rgba(226, 232, 240, 0.82);
  line-height: 1.74;
}

.hi-module-grid,
.hi-panel-double {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.hi-card {
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.45);
  padding: 0.9rem;
}

.hi-card h3,
.hi-card h2 {
  margin: 0 0 0.56rem 0;
  color: #dbeafe;
  font-size: 1.04rem;
}

.hi-card p {
  color: rgba(226, 232, 240, 0.84);
  line-height: 1.72;
  margin: 0;
}

.hi-card ol,
.hi-card ul {
  margin: 0.2rem 0 0 1.1rem;
  color: rgba(226, 232, 240, 0.84);
  line-height: 1.72;
}

.hi-card li {
  margin: 0.3rem 0;
}

.hi-path-card {
  margin-top: 0.75rem;
}

.hi-inline-code {
  display: block;
  margin-top: 0.4rem;
  font-family: 'JetBrains Mono', monospace;
  color: #67e8f9;
  font-size: 0.86rem;
}

.hi-snippet {
  margin-top: 0.54rem;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.55);
  padding: 0.75rem;
  color: #bae6fd;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.83rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.hi-module-traffic {
  border-color: rgba(250, 204, 21, 0.3);
}

.hi-module-colorful {
  border-color: rgba(168, 85, 247, 0.34);
}

.hi-module-environment {
  border-color: rgba(45, 212, 191, 0.3);
}

.hi-module-at {
  border-color: rgba(129, 140, 248, 0.34);
}

@media (max-width: 980px) {
  .hi-overview-grid,
  .hi-module-grid,
  .hi-panel-double {
    grid-template-columns: 1fr;
  }

  .hi-hero-actions {
    width: 100%;
  }

  .hi-hero-actions .button,
  .hi-hero-actions .button-outline {
    flex: 1;
    min-width: 180px;
  }

  .hi-tree {
    font-size: 0.76rem;
  }
}
