.page-home {
  --home-glass: rgba(19, 50, 92, 0.55);
  --home-border: rgba(74, 127, 193, 0.35);
  --home-shadow: 0 16px 40px rgba(4, 16, 31, 0.35);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(30, 78, 140, 0.28), transparent 60%),
    radial-gradient(800px 400px at -10% 30%, rgba(198, 244, 50, 0.06), transparent 50%),
    var(--c-bg);
  color: var(--c-text);
  overflow-x: clip;
}

.page-home .hero-chapters {
  position: relative;
  overflow: hidden;
  padding: 110px 0 64px;
}

.page-home .hero-grid-svg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.page-home .hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  align-items: center;
}

.page-home .hero-overline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-family: var(--font-base);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-lime);
}

.page-home .hero-overline::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 3px;
  background: var(--c-lime);
  transform: skewX(-20deg);
}

.page-home .home-h1 {
  max-width: 680px;
  margin: 0 0 24px;
  font-family: var(--font-display);
  font-size: clamp(30px, 5.5vw, 58px);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--c-text);
}

.page-home .hero-desc {
  max-width: 560px;
  margin: 0 0 32px;
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text-dim);
}

.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.page-home .hero-panel-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .chapter-panel {
  position: relative;
  z-index: 2;
  padding: 24px 20px;
  border: 1px solid var(--home-border);
  border-top: 3px solid var(--c-lime);
  border-radius: 4px;
  background: var(--home-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.page-home .chapter-panel .chip,
.page-home .insight-item .chip {
  margin: 0;
}

.page-home .chapter-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.page-home .chapter-panel-code {
  font-family: var(--font-base);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--c-ice);
}

.page-home .chapter-list {
  display: flex;
  flex-direction: column;
}

.page-home .chapter-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 12px;
  align-items: center;
  padding: 14px 10px;
  border-bottom: 1px solid rgba(184, 212, 240, 0.12);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.page-home .chapter-row:last-child {
  border-bottom: none;
}

.page-home .chapter-row:hover {
  border-left: 2px solid var(--c-lime);
  background: rgba(198, 244, 50, 0.06);
}

.page-home .chapter-idx {
  font-family: var(--font-display);
  font-size: 14px;
  color: var(--c-lime);
}

.page-home .chapter-label {
  font-family: var(--font-base);
  font-size: 14px;
  font-weight: 500;
  color: var(--c-text);
}

.page-home .chapter-meta {
  padding: 2px 10px;
  border: 1px solid rgba(74, 127, 193, 0.35);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--c-text-dim);
}

.page-home .chapter-arrow {
  font-size: 18px;
  color: var(--c-orange);
  transition: transform 0.2s ease;
}

.page-home .chapter-row:hover .chapter-arrow {
  transform: translateX(4px);
}

.page-home .hero-visual {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(74, 127, 193, 0.3);
  box-shadow: var(--home-shadow);
  object-fit: cover;
}

.page-home .section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  font-family: var(--font-base);
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-lime);
}

.page-home .section-label::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 3px;
  background: var(--c-lime);
  transform: skewX(-20deg);
}

.page-home .revision-section {
  padding: 64px 0;
  border-top: 1px solid rgba(74, 127, 193, 0.2);
  border-bottom: 1px solid rgba(74, 127, 193, 0.2);
  background: linear-gradient(90deg, rgba(19, 50, 92, 0.4), rgba(4, 16, 31, 0.2));
}

.page-home .revision-layout {
  display: grid;
  gap: 40px;
  align-items: center;
}

.page-home .revision-content h2,
.page-home .insights-heading-text h2,
.page-home .revisit-section h2,
.page-home .data-section h2,
.page-home .portal-copy h2 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  line-height: 1.15;
  color: var(--c-text);
}

.page-home .revision-lead {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--c-text-dim);
}

.page-home .compare-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 24px;
}

.page-home .compare-card {
  padding: 24px;
  border: 1px solid var(--home-border);
  border-top: 3px solid var(--c-orange);
  border-radius: 4px;
  background: rgba(11, 30, 54, 0.65);
}

.page-home .compare-card.compare-lime {
  border-top-color: var(--c-lime);
}

.page-home .compare-chip {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--c-orange);
}

.page-home .compare-lime .compare-chip {
  color: var(--c-lime);
}

.page-home .compare-card h3 {
  margin: 0 0 12px;
  font-family: var(--font-base);
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
}

.page-home .compare-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .compare-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text-dim);
}

.page-home .compare-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 8px;
  height: 8px;
  background: var(--c-orange);
  opacity: 0.7;
  transform: skewX(-20deg);
}

.page-home .compare-lime .compare-list li::before {
  background: var(--c-lime);
}

.page-home .revision-note {
  margin-top: 24px;
  padding-left: 12px;
  border-left: 3px solid var(--c-orange);
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-text-dim);
}

.page-home .revision-media {
  position: relative;
}

.page-home .revision-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 720px;
  border-radius: 4px;
  border: 1px solid rgba(74, 127, 193, 0.35);
  box-shadow: var(--home-shadow);
  object-fit: cover;
}

.page-home .insights-section {
  padding: 64px 0;
}

.page-home .insights-heading-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  margin-bottom: 32px;
}

.page-home .insights-heading-text p {
  max-width: 560px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text-dim);
}

.page-home .insights-layout {
  display: grid;
  gap: 32px;
}

.page-home .insights-cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border-top: 3px solid var(--c-orange);
  box-shadow: var(--home-shadow);
  object-fit: cover;
}

.page-home .insights-list {
  display: grid;
  gap: 16px;
}

.page-home .insight-item {
  position: relative;
  padding: 20px;
  border: 1px solid rgba(74, 127, 193, 0.25);
  border-radius: 4px;
  background: rgba(19, 50, 92, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-home .insight-item:hover {
  border-color: rgba(198, 244, 50, 0.45);
  box-shadow: 0 8px 24px rgba(4, 16, 31, 0.3);
}

.page-home .insight-title {
  margin: 12px 0 8px;
  font-family: var(--font-base);
  font-size: 17px;
  font-weight: 700;
  color: var(--c-text);
}

.page-home .insight-desc {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-text-dim);
}

.page-home .insight-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-lime);
  text-decoration: none;
}

.page-home .insight-link:hover {
  text-decoration: underline;
}

.page-home .revisit-section {
  padding: 64px 0;
  border-top: 1px solid rgba(74, 127, 193, 0.22);
  border-bottom: 1px solid rgba(74, 127, 193, 0.22);
  background: rgba(4, 16, 31, 0.4);
}

.page-home .revisit-desc {
  max-width: 560px;
  margin: 0 0 32px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text-dim);
}

.page-home .steps-track {
  display: grid;
  gap: 16px;
}

.page-home .step-card {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(74, 127, 193, 0.3);
  border-radius: 4px;
  background: rgba(11, 30, 54, 0.8);
  transition: background 0.2s ease;
}

.page-home .step-card:hover {
  background: rgba(19, 50, 92, 0.9);
}

.page-home .step-num {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  color: var(--c-orange);
}

.page-home .step-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-base);
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
}

.page-home .step-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--c-text-dim);
}

.page-home .data-section {
  padding: 64px 0;
}

.page-home .data-layout {
  display: grid;
  gap: 32px;
}

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

.page-home .stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 16px;
  border: 1px solid rgba(74, 127, 193, 0.25);
  border-radius: 4px;
  background: rgba(19, 50, 92, 0.4);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.page-home .stat-card:hover {
  border-color: rgba(198, 244, 50, 0.5);
  transform: translateY(-2px);
}

.page-home .stat-num-count {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  line-height: 1;
  color: var(--c-lime);
}

.page-home .stat-suffix {
  margin-left: 2px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--c-lime);
}

.page-home .stat-caption {
  margin-top: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--c-text-dim);
}

.page-home .data-visual-wrap {
  margin-top: 20px;
}

.page-home .data-visual-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid rgba(74, 127, 193, 0.3);
  box-shadow: var(--home-shadow);
  object-fit: cover;
}

.page-home .data-note {
  margin: 16px 0 0;
  padding-left: 12px;
  border-left: 3px solid var(--c-lime);
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-text-dim);
}

.page-home .portal-section {
  padding: 64px 0;
  border-top: 3px solid var(--c-lime);
  background: linear-gradient(120deg, rgba(19, 50, 92, 0.5), rgba(4, 16, 31, 0.3));
}

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

.page-home .portal-copy p {
  max-width: 560px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--c-text-dim);
}

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

@media (min-width: 768px) {
  .page-home .hero-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }

  .page-home .hero-panel-wrap {
    display: block;
    min-height: 520px;
  }

  .page-home .hero-visual {
    position: absolute;
    right: -20px;
    bottom: 20px;
    z-index: 0;
    width: 68%;
    max-width: 400px;
    opacity: 0.5;
    box-shadow: none;
  }

  .page-home .hero-visual {
    transition: opacity 0.2s ease;
  }

  .page-home .revision-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }

  .page-home .insights-heading-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }

  .page-home .insights-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 40px;
  }

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

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

  .page-home .data-stats {
    gap: 24px;
  }

  .page-home .portal-inner {
    grid-template-columns: 1fr auto;
    gap: 48px;
  }
}

@media (min-width: 1024px) {
  .page-home .hero-chapters {
    padding: 160px 0 120px;
  }

  .page-home .revision-section,
  .page-home .insights-section,
  .page-home .revisit-section,
  .page-home .data-section,
  .page-home .portal-section {
    padding: 96px 0;
  }

  .page-home .home-h1 {
    font-size: clamp(38px, 5vw, 58px);
  }
}
