html {
  scroll-behavior: smooth;
}

body {
  background: #f3f6fb;
  color: #17202c;
}

body,
body #body-wrapper,
body #body-wrapper #body,
body #body-wrapper #body-wrapper,
body #body-wrapper .content-item {
  color: #243244 !important;
}

#header {
  background: rgba(12, 18, 29, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#header .navbar {
  min-height: 4.4rem;
}

#header .navbar-section.desktop-menu a,
#header .navbar-section.logo a {
  color: #f7faff;
}

#header .navbar-section.desktop-menu .active > a {
  color: #7cc3ff;
}

.brand-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: #7cc3ff;
  color: #07111f;
  font-weight: 800;
}

.brand-text {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 750;
  letter-spacing: 0;
}

#body-wrapper {
  padding-top: 0;
}

#body-wrapper .container {
  max-width: 1280px;
}

#body-wrapper .content-item {
  margin: 0;
}

.content-item > p:first-child {
  display: none;
}

.installer-hero,
.workflow-strip,
.package-board,
.scenario-board,
.app-workbench,
.matrix-section,
.final-panel {
  margin-bottom: 1.1rem;
}

.installer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
  gap: 1.1rem;
  min-height: 520px;
  padding: 1.4rem;
  border-radius: 8px;
  background: #0d1624;
  color: #ffffff;
}

.hero-copy {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}

.site-stamp {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 1.1rem;
}

.site-stamp span,
.section-title span,
.final-panel span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: #e7f3ff;
  color: #11527e !important;
  font-size: 0.82rem;
  font-weight: 800;
}

.site-stamp strong {
  color: #a8d5ff;
  font-size: 0.9rem;
}

.hero-copy h1 {
  max-width: 13ch;
  margin: 0;
  color: #ffffff !important;
  font-size: clamp(2.6rem, 4vw, 5rem);
  line-height: 1.02;
}

.lead {
  max-width: 72ch;
  margin: 1.1rem 0 0;
  padding-left: 1rem;
  border-left: 4px solid #ff4d57;
  color: #ff6b73 !important;
  font-size: 1.08rem;
  line-height: 1.75;
}

.hero-actions,
.final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.4rem;
}

.install-window {
  align-self: stretch;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: #f7faff;
  color: #142033;
}

.window-top {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #dce5ef;
  background: #ffffff;
}

.window-top span {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: #ff5f57;
}

.window-top span:nth-child(2) {
  background: #ffbd2e;
}

.window-top span:nth-child(3) {
  background: #28c840;
}

.window-top strong {
  margin-left: 0.45rem;
  color: #162337;
}

.install-search {
  margin: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid #dbe5ef;
  border-radius: 6px;
  background: #eef4fb;
  color: #617189;
  font-weight: 700;
}

.install-feed {
  display: grid;
  gap: 0.8rem;
  padding: 0 1rem;
}

.feed-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.95rem 1rem;
  border: 1px solid #dce5ef;
  border-radius: 6px;
  background: #ffffff;
}

.feed-row i {
  color: #2276b7;
  font-size: 1.35rem;
}

.feed-row span {
  color: #162337 !important;
  font-weight: 800;
}

.feed-row strong {
  color: #52637a;
  font-size: 0.82rem;
}

.feed-row.is-ready {
  border-color: #b9e2c7;
  background: #f1fbf4;
}

.install-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem;
}

.install-stats div {
  padding: 0.85rem;
  border-radius: 6px;
  background: #101b2d;
  color: #ffffff;
}

.install-stats strong,
.install-stats span {
  display: block;
}

.install-stats strong {
  font-size: 1.5rem;
}

.install-stats span {
  color: #b8c7da !important;
  font-size: 0.82rem;
}

.section-jump {
  position: sticky;
  top: 4.8rem;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0 1.4rem 1.1rem;
  padding: 0.8rem;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.section-jump a,
.filter-chip,
.scenario-chip,
.filter-reset,
.mini-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  padding: 0.45rem 0.82rem;
  border: 1px solid #d3deea;
  border-radius: 999px;
  background: #ffffff;
  color: #223247 !important;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.section-jump a:hover,
.filter-chip:hover,
.scenario-chip:hover,
.filter-reset:hover,
.mini-link:hover,
.filter-chip.is-active,
.scenario-chip.is-active {
  border-color: #7cc3ff;
  background: #e9f5ff;
  color: #0f4e7c !important;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.workflow-strip article,
.package-board,
.scenario-board,
.app-workbench,
.matrix-section,
.final-panel {
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #ffffff;
}

.workflow-strip article {
  padding: 1.1rem;
}

.workflow-strip span {
  color: #2276b7 !important;
  font-weight: 900;
}

.workflow-strip strong {
  display: block;
  margin-top: 0.35rem;
  color: #17202c;
}

.workflow-strip p,
.section-title p,
.package-card p,
.package-card li,
.scenario-copy p,
.scenario-copy li,
.card-summary,
.app-notes dd,
.final-panel h2 {
  color: #4b5d73 !important;
}

.package-board,
.scenario-board,
.app-workbench,
.matrix-section,
.final-panel {
  padding: 1.35rem;
}

.section-title {
  margin-bottom: 1.15rem;
}

.section-title.compact {
  margin-bottom: 0.9rem;
}

.section-title h2,
.final-panel h2 {
  max-width: 840px;
  margin: 0.65rem 0 0;
  color: #17202c !important;
  font-size: clamp(1.6rem, 2.4vw, 2.8rem);
  line-height: 1.12;
}

.section-title p {
  max-width: 860px;
  margin: 0.75rem 0 0;
  line-height: 1.75;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.package-card {
  padding: 1.15rem;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #f9fbfe;
}

.package-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.package-head i {
  display: inline-flex;
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #e9f5ff;
  color: #13659d;
  font-size: 1.45rem;
}

.package-head h3 {
  margin: 0;
  color: #17202c !important;
}

.scenario-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 1rem;
}

.scenario-actions,
.scenario-copy {
  padding: 1rem;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #f9fbfe;
}

.scenario-actions {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 0.7rem;
}

.scenario-copy h3 {
  margin: 0 0 0.55rem;
  color: #17202c !important;
}

.scenario-copy ul,
.package-card ul {
  margin: 0.8rem 0 0;
  padding-left: 1.05rem;
}

.workbench-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 9.2rem;
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #f9fbfe;
}

.toolbar-search,
.toolbar-selects label {
  display: grid;
  gap: 0.4rem;
}

.toolbar-search span,
.toolbar-selects span,
.filter-group > span {
  color: #52637a !important;
  font-size: 0.82rem;
  font-weight: 900;
}

.toolbar-search input,
.toolbar-selects select {
  width: 100%;
  min-height: 2.7rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #ccd8e5;
  border-radius: 6px;
  background: #ffffff;
  color: #17202c;
}

.toolbar-search input:focus,
.toolbar-selects select:focus {
  outline: none;
  border-color: #7cc3ff;
  box-shadow: 0 0 0 3px rgba(124, 195, 255, 0.18);
}

.filter-group,
.toolbar-selects,
.toolbar-status {
  display: grid;
  gap: 0.55rem;
}

.filter-group .filter-chip,
.toolbar-status .filter-reset {
  justify-content: flex-start;
}

.toolbar-status strong {
  color: #17202c;
  font-size: 1.05rem;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.catalog-card {
  position: relative;
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #ffffff;
}

.catalog-card[hidden] {
  display: none !important;
}

.app-icon {
  display: inline-flex;
  width: 2.7rem;
  height: 2.7rem;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #101b2d;
  color: #7cc3ff;
  font-size: 1.45rem;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.card-head h3 {
  margin: 0;
  color: #17202c !important;
  font-size: 1.35rem;
}

.card-head span {
  min-height: 1.8rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #f0f4f8;
  color: #52637a !important;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.card-meta span {
  min-height: 1.75rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #edf7ff;
  color: #185c8d !important;
  font-size: 0.78rem;
  font-weight: 850;
}

.card-summary {
  margin: 0;
  line-height: 1.65;
}

.app-notes {
  display: grid;
  gap: 0.55rem;
  margin: 0;
}

.app-notes div {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid #edf1f6;
}

.app-notes dt {
  color: #17202c;
  font-weight: 900;
}

.app-notes dd {
  margin: 0;
  line-height: 1.55;
}

.catalog-empty,
.catalog-cta {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #dce5ef;
  border-radius: 8px;
  background: #f9fbfe;
}

.catalog-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.catalog-cta strong {
  color: #17202c;
}

.matrix-wrap {
  overflow-x: auto;
  border: 1px solid #dce5ef;
  border-radius: 8px;
}

.app-matrix {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: #ffffff;
}

.app-matrix th,
.app-matrix td {
  padding: 0.88rem;
  border-bottom: 1px solid #edf1f6;
  text-align: left;
}

.app-matrix th {
  background: #101b2d;
  color: #ffffff !important;
}

.app-matrix td {
  color: #34465d !important;
}

.final-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  background: #0d1624;
}

.final-panel h2 {
  color: #ffffff !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.85rem;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 850;
  text-decoration: none;
}

.btn-primary {
  background: #7cc3ff;
  border-color: #7cc3ff;
  color: #06101d !important;
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
}

.package-board .btn-secondary,
.app-workbench .btn-secondary {
  border-color: #d3deea;
  color: #17202c !important;
}

.btn:hover,
.section-jump a:hover,
.mini-link:hover {
  text-decoration: none;
}

#body-wrapper p,
#body-wrapper li,
#body-wrapper td,
#body-wrapper span,
#body-wrapper h1,
#body-wrapper h2,
#body-wrapper h3 {
  opacity: 1 !important;
}

#footer {
  background: #0d1624;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (max-width: 1180px) {
  .installer-hero,
  .workflow-strip,
  .package-grid,
  .scenario-grid,
  .workbench-layout,
  .catalog-grid,
  .final-panel {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: static;
  }
}

@media (max-width: 860px) {
  .installer-hero,
  .hero-copy,
  .package-board,
  .scenario-board,
  .app-workbench,
  .matrix-section,
  .final-panel {
    padding: 1rem;
  }

  .installer-hero {
    min-height: auto;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 2.25rem;
  }

  .section-jump {
    position: static;
    margin: 0 0 1rem;
  }

  .install-stats {
    grid-template-columns: 1fr;
  }

  .app-notes div {
    grid-template-columns: 1fr;
  }
}
