.skip-link {
  position: fixed;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 100;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-small);
  background: var(--color-white);
  color: var(--color-navy-950);
  font-weight: var(--font-weight-semibold);
  transform: translateY(calc(-100% - 2rem));
  transition: transform var(--transition-fast);
}

.skip-link:focus {
  color: var(--color-navy-950);
  transform: translateY(0);
}

/* Header and primary navigation */
.site-header {
  position: relative;
  z-index: var(--z-header);
  border-bottom: var(--border-thin) solid rgb(255 255 255 / 10%);
  background: var(--color-navy-900);
  color: var(--color-white);
}

.site-header__inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  color: var(--color-white);
  text-decoration: none;
}

.brand:hover {
  color: var(--color-white);
}

.brand__logo {
  width: auto;
  height: 3.125rem;
  object-fit: contain;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.site-navigation__list,
.site-header__actions {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
}

.site-navigation a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-small);
  color: #dbe4f0;
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-medium);
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.site-navigation a:hover,
.site-navigation a[aria-current="page"] {
  background: rgb(255 255 255 / 7%);
  color: var(--color-white);
}

.navigation-toggle {
  display: none;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-3);
  border: var(--border-thin) solid rgb(255 255 255 / 35%);
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
}

.navigation-toggle__label {
  font-weight: var(--font-weight-semibold);
}

.navigation-toggle__icon,
.navigation-toggle__icon::before,
.navigation-toggle__icon::after {
  width: 1.1rem;
  height: 0.125rem;
  display: block;
  border-radius: var(--radius-pill);
  background: currentColor;
}

.navigation-toggle__icon {
  position: relative;
}

.navigation-toggle__icon::before,
.navigation-toggle__icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.navigation-toggle__icon::before { top: -0.35rem; }
.navigation-toggle__icon::after { top: 0.35rem; }

.mega-menu {
  position: absolute;
  top: calc(100% + var(--space-3));
  right: var(--page-gutter);
  left: var(--page-gutter);
  z-index: var(--z-menu);
  max-width: var(--container-width);
  margin-inline: auto;
  padding: var(--space-6);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-6);
  border: var(--border-thin) solid var(--color-border);
  border-radius: var(--radius-large);
  background: var(--color-white);
  box-shadow: var(--shadow-raised);
  color: var(--color-text);
}

.mega-menu__group + .mega-menu__group {
  border-left: var(--border-thin) solid var(--color-border);
  padding-left: var(--space-6);
}

.mega-menu__title {
  margin-bottom: var(--space-3);
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mega-menu__link {
  display: flex;
  gap: var(--space-3);
  padding-block: var(--space-2);
  color: var(--color-text-soft);
  text-decoration: none;
}

/* Buttons and badges */
.button {
  width: fit-content;
  min-height: 2.75rem;
  padding: 0.65rem 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  border: var(--border-thin) solid transparent;
  border-radius: var(--radius-small);
  background: var(--gradient-primary);
  box-shadow: var(--shadow-button);
  color: var(--color-white);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.button:hover {
  background: linear-gradient(135deg, var(--color-primary-hover), var(--color-orange-500));
  box-shadow: 0 0.65rem 1.4rem rgb(255 101 0 / 30%);
  color: var(--color-white);
  transform: translateY(-0.0625rem);
}

.button--secondary {
  border-color: var(--color-border-strong);
  background: var(--color-white);
  box-shadow: none;
  color: var(--color-navy-900);
}

.button--secondary:hover {
  background: var(--color-surface-subtle);
  box-shadow: none;
  color: var(--color-navy-950);
}

.button--outline-light {
  border-color: rgb(255 255 255 / 42%);
  background: transparent;
  box-shadow: none;
  color: var(--color-white);
}

.button--outline-light:hover {
  background: rgb(255 255 255 / 8%);
  box-shadow: none;
}

.button--ghost {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: var(--color-link);
}

.button--small {
  min-height: 2.25rem;
  padding: 0.45rem 0.8rem;
  font-size: var(--font-size-xs);
}

.button--large {
  min-height: 3.25rem;
  padding-inline: var(--space-5);
  font-size: var(--font-size-base);
}

.button--block { width: 100%; }

.badge {
  width: fit-content;
  min-height: 1.5rem;
  padding: 0.18rem 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  border: var(--border-thin) solid transparent;
  border-radius: var(--radius-pill);
  background: var(--color-surface-subtle);
  color: var(--color-text-soft);
  font-size: var(--font-size-2xs);
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
}

.badge--orange { background: var(--color-orange-100); color: #b94700; }
.badge--blue { background: var(--color-blue-100); color: #155ab8; }
.badge--violet { background: var(--color-violet-100); color: #5140cb; }
.badge--green { background: var(--color-green-100); color: #177954; }
.badge--yellow { background: var(--color-yellow-100); color: #946700; }
.badge--red { background: var(--color-red-100); color: #b82c3d; }
.badge--dark {
  border-color: rgb(255 255 255 / 14%);
  background: rgb(255 255 255 / 8%);
  color: #dbe4f0;
}

.number-tile,
.icon-tile {
  flex: 0 0 auto;
  width: 2.5rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius-small);
  background: var(--gradient-number);
  color: var(--color-white);
  font-weight: var(--font-weight-bold);
  line-height: 1;
}

.icon-tile--blue { background: var(--color-blue-500); }
.icon-tile--green { background: var(--color-green-500); }
.icon-tile--orange { background: var(--color-orange-500); }

/* Heroes and section headers */
.page-hero {
  padding-block: clamp(3.5rem, 6vw, 5rem);
  background: var(--gradient-hero);
  color: #c8d1df;
}

.page-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.page-hero__title {
  max-width: 49rem;
  margin-bottom: var(--space-4);
  color: var(--color-white);
}

.page-hero__summary {
  max-width: 48rem;
  margin-bottom: var(--space-5);
  color: #c4cedd;
  font-size: var(--font-size-lg);
}

.page-hero__visual {
  min-height: 12rem;
  display: grid;
  place-items: center;
  border: var(--border-thin) solid rgb(255 255 255 / 16%);
  border-radius: var(--radius-xl);
  background: var(--gradient-hero-panel);
  box-shadow: inset 0 0 4rem rgb(90 82 245 / 12%);
  color: var(--color-white);
  font-size: clamp(3rem, 7vw, 5rem);
  font-weight: var(--font-weight-semibold);
}

.section-heading {
  max-width: 48rem;
  margin: 0 auto var(--space-7);
  text-align: center;
}

.section-heading p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.section--dark .section-heading p { color: #aab7c9; }

.feature-rail {
  position: relative;
  z-index: 2;
  margin-top: calc(-1 * var(--space-6));
  padding: var(--space-5);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: var(--border-thin) solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-white);
  box-shadow: var(--shadow-raised);
}

.feature-rail__item {
  display: flex;
  gap: var(--space-3);
  padding-inline: var(--space-4);
}

.feature-rail__item + .feature-rail__item {
  border-left: var(--border-thin) solid var(--color-border);
}

.feature-rail__item p {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  line-height: 1.45;
}

/* Surfaces and cards */
.card,
.panel,
.status-card,
.architecture-card {
  border: var(--border-thin) solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.card,
.panel,
.architecture-card {
  padding: var(--space-5);
}

.card--flat { box-shadow: none; }
.card--featured { border: 0.125rem solid var(--color-orange-500); }
.card--interactive { transition: transform var(--transition-base), box-shadow var(--transition-base); }
.card--interactive:hover { box-shadow: var(--shadow-raised); transform: translateY(-0.2rem); }

.section--dark .card :is(h1, h2, h3, h4) { color: var(--color-text); }

.card__header {
  margin-bottom: var(--space-4);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.card__title { margin-bottom: var(--space-2); }
.card__summary { margin-bottom: 0; color: var(--color-text-muted); font-size: var(--font-size-md); }
.card__footer { margin-top: var(--space-5); }

.learning-card {
  min-height: 10.5rem;
  display: flex;
  flex-direction: column;
}

.learning-card .cluster:last-child { margin-top: auto; }

.status-card {
  max-width: 58rem;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4.5rem);
  text-align: center;
}

.status-card--compact { max-width: 46rem; }
.status-card__summary { max-width: 44rem; margin-inline: auto; color: var(--color-text-muted); font-size: clamp(1rem, 2vw, 1.2rem); }

.runtime-status {
  width: fit-content;
  margin: var(--space-6) auto 0;
  padding: var(--space-2) var(--space-4);
  border: var(--border-thin) solid #bfead8;
  border-radius: var(--radius-pill);
  background: var(--color-green-100);
  color: #11644f;
  font-weight: var(--font-weight-semibold);
}

.architecture-grid {
  margin-top: var(--space-6);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.architecture-card p { margin-bottom: 0; color: var(--color-text-muted); }

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--radius-medium);
  overflow: hidden;
  background: var(--color-navy-800);
  color: #b9c5d5;
}

.stats-strip__item { padding: var(--space-5); text-align: center; }
.stats-strip__item + .stats-strip__item { border-left: var(--border-thin) solid rgb(255 255 255 / 12%); }
.stats-strip__value { display: block; color: var(--color-white); font-size: var(--font-size-2xl); font-weight: var(--font-weight-bold); }

/* Search, breadcrumbs and tab navigation */
.search-form {
  min-height: 3.25rem;
  padding: var(--space-1);
  display: flex;
  align-items: stretch;
  gap: var(--space-1);
  border: var(--border-thin) solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-white);
  box-shadow: var(--shadow-card);
}

.search-form input,
.search-form select {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--color-text);
  outline: 0;
}

.search-form input { flex: 1 1 auto; padding-inline: var(--space-4); }
.search-form select { flex: 0 0 auto; padding-inline: var(--space-3); border-left: var(--border-thin) solid var(--color-border); color: var(--color-text-muted); }
.search-form .button { min-height: 2.75rem; }

.breadcrumbs {
  padding-block: var(--space-3);
  border-bottom: var(--border-thin) solid var(--color-border);
  background: var(--color-surface);
}

.breadcrumbs__list {
  width: min(100%, var(--container-width));
  margin-inline: auto;
  padding-inline: var(--page-gutter);
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.breadcrumbs__item + .breadcrumbs__item::before {
  margin-right: var(--space-2);
  color: #a0a8b6;
  content: "›";
}

.breadcrumbs a { color: inherit; text-decoration: none; }

.tab-navigation {
  border-bottom: var(--border-thin) solid var(--color-border);
  background: var(--color-white);
  overflow-x: auto;
}

.tab-navigation__list {
  margin: 0;
  padding: 0;
  display: flex;
  gap: var(--space-6);
  list-style: none;
  white-space: nowrap;
}

.tab-navigation a {
  display: block;
  padding-block: var(--space-4);
  color: var(--color-text-soft);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
}

.tab-navigation a[aria-current="page"] { box-shadow: inset 0 -0.15rem var(--color-orange-500); color: var(--color-text); }

/* Article and sidebar system */
.course-sidebar,
.utility-rail {
  position: sticky;
  top: var(--space-4);
}

.sidebar-panel {
  border: var(--border-thin) solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-white);
  overflow: hidden;
}

.sidebar-panel + .sidebar-panel { margin-top: var(--space-4); }
.sidebar-panel__header { padding: var(--space-4); border-bottom: var(--border-thin) solid var(--color-border); }
.sidebar-panel__body { padding: var(--space-4); }

.sidebar-nav,
.sidebar-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-nav__section {
  padding: var(--space-3) var(--space-4);
  border-bottom: var(--border-thin) solid var(--color-border);
}

.sidebar-nav__section > a,
.sidebar-nav__section > span {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
}

.sidebar-nav ul { margin-top: var(--space-2); }
.sidebar-nav ul a { display: block; padding: 0.4rem var(--space-2); border-radius: var(--radius-xs); color: var(--color-text-soft); font-size: var(--font-size-xs); text-decoration: none; }
.sidebar-nav ul a:hover { background: var(--color-surface-subtle); color: var(--color-text); }
.sidebar-nav ul a[aria-current="page"] { background: var(--color-orange-100); color: var(--color-orange-500); font-weight: var(--font-weight-semibold); }

.on-page-nav {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
}

.on-page-nav li + li { margin-top: var(--space-2); }
.on-page-nav a { color: var(--color-text-soft); text-decoration: none; }

.article {
  min-width: 0;
  color: var(--color-text-soft);
}

.article h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.article h2 { margin-top: var(--space-7); font-size: var(--font-size-2xl); }
.article h3 { margin-top: var(--space-6); font-size: var(--font-size-lg); }
.article p,
.article li { font-size: var(--font-size-md); }

.progress {
  width: 100%;
  height: 0.4rem;
  border-radius: var(--radius-pill);
  background: #e6eaf0;
  overflow: hidden;
}

.progress__bar {
  width: var(--progress, 0%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-blue-500), var(--color-violet-500));
}

/* Forms */
.form {
  display: grid;
  gap: var(--space-4);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.form-field {
  display: grid;
  gap: var(--space-2);
}

.form-field label,
.form-legend {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
}

.form-field :is(input, select, textarea) {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem var(--space-3);
  border: var(--border-thin) solid var(--color-border-strong);
  border-radius: var(--radius-small);
  background: var(--color-white);
  color: var(--color-text);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-field textarea { min-height: 8rem; resize: vertical; }
.form-field :is(input, select, textarea):focus { border-color: var(--color-blue-500); box-shadow: 0 0 0 0.2rem rgb(40 122 234 / 13%); }
.form-help { color: var(--color-text-muted); font-size: var(--font-size-xs); }

/* Code, tables, alerts and accordions */
.code-block {
  position: relative;
  margin-block: var(--space-4);
  padding: var(--space-5);
  border: var(--border-thin) solid #10294f;
  border-radius: var(--radius-small);
  background: var(--color-navy-950);
  color: #e3ebf7;
  overflow-x: auto;
  box-shadow: inset 0 0 2rem rgb(19 67 128 / 12%);
  font-size: var(--font-size-sm);
  line-height: 1.65;
  tab-size: 2;
}

.code-block code { color: inherit; }
.code-token--keyword { color: #cf93ff; }
.code-token--string { color: #ffb454; }
.code-token--comment { color: #54d477; }
.code-token--property { color: #7fbbff; }

.table-shell {
  width: 100%;
  margin-block: var(--space-4);
  border: var(--border-thin) solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-white);
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.data-table :is(th, td) {
  padding: 0.7rem var(--space-3);
  border-bottom: var(--border-thin) solid var(--color-border);
  text-align: left;
  white-space: nowrap;
}

.data-table th { background: var(--color-surface-subtle); color: var(--color-text); font-weight: var(--font-weight-semibold); }
.data-table tr:last-child td { border-bottom: 0; }

.alert {
  padding: var(--space-4);
  display: flex;
  gap: var(--space-3);
  border: var(--border-thin) solid var(--color-border);
  border-left: 0.25rem solid var(--color-blue-500);
  border-radius: var(--radius-small);
  background: var(--color-blue-100);
  color: var(--color-text-soft);
  font-size: var(--font-size-sm);
}

.alert--success { border-left-color: var(--color-green-500); background: var(--color-green-100); }
.alert--warning { border-left-color: var(--color-yellow-500); background: var(--color-yellow-100); }
.alert--critical { border-left-color: var(--color-red-500); background: var(--color-red-100); }

.accordion {
  display: grid;
  gap: var(--space-2);
}

.accordion details {
  border: var(--border-thin) solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-white);
}

.accordion summary {
  padding: var(--space-3) var(--space-4);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
}

.accordion details > :not(summary) { margin-inline: var(--space-4); }
.accordion details > :last-child { margin-bottom: var(--space-4); }

.cta-panel {
  padding: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  border: var(--border-thin) solid #eee5f6;
  border-radius: var(--radius-medium);
  background: var(--gradient-cta);
}

/* Footer */
.site-footer {
  border-top: var(--border-thin) solid rgb(255 255 255 / 8%);
  background: var(--color-navy-900);
  color: #aeb9c9;
}

.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: var(--color-white); }

.site-footer__grid {
  padding-block: var(--space-8);
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  gap: var(--space-8);
}

.site-footer__title { margin-bottom: var(--space-3); color: var(--color-white); font-size: var(--font-size-base); }
.site-footer__list { margin: 0; padding: 0; display: grid; gap: var(--space-2); list-style: none; font-size: var(--font-size-sm); }

.site-footer__inner {
  min-height: 4.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  border-top: var(--border-thin) solid rgb(255 255 255 / 12%);
  font-size: var(--font-size-sm);
}

.site-footer__inner:first-child { border-top: 0; }
.site-footer p { margin: 0; }

/* Phase 4 homepage ------------------------------------------------------- */
.home-page {
  --container-width: 110rem;
  --page-gutter: clamp(1rem, 2.5vw, 3.25rem);
  background: var(--color-white);
}

.home-header {
  background: #031735;
}

.home-header .site-header__inner {
  min-height: 5.75rem;
}

.home-header .brand__logo {
  height: 3.75rem;
}

.home-header .site-header__tools {
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: clamp(0.75rem, 1.35vw, 1.6rem);
}

.home-header .site-navigation__list {
  gap: clamp(0.1rem, 0.75vw, 0.9rem);
}

.home-header .site-navigation a {
  padding: 0.7rem 0.75rem;
  color: #f0f3f8;
  font-size: 0.95rem;
}

.home-header .site-navigation a span {
  margin-left: 0.2rem;
  color: #abb8cb;
  font-size: 0.85em;
}

.home-header .site-header__actions {
  gap: 0.75rem;
}

.home-header .site-header__actions .button {
  min-height: 3rem;
  padding-inline: 1.35rem;
  border-radius: 0.55rem;
  font-size: 0.9rem;
}

.theme-toggle {
  appearance: none;
  flex: 0 0 auto;
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #d5deeb;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.theme-toggle:hover {
  background: rgb(255 255 255 / 9%);
  color: var(--color-white);
}

.theme-toggle__icon {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
  transform: rotate(-15deg);
}

.theme-toggle[data-theme-current="dark"] .theme-toggle__icon {
  transform: none;
}

.home-hero {
  position: relative;
  min-height: 40rem;
  background:
    radial-gradient(circle at 86% 68%, rgb(99 42 224 / 30%), transparent 28%),
    radial-gradient(circle at 65% 60%, rgb(0 110 255 / 18%), transparent 32%),
    linear-gradient(112deg, #031733 0%, #041c43 57%, #17105c 100%);
  color: #c8d3e3;
  overflow: hidden;
}

.home-hero::before,
.home-hero::after {
  position: absolute;
  right: -9rem;
  width: 55%;
  height: 18rem;
  border: 1px solid rgb(54 118 219 / 12%);
  border-radius: 50%;
  content: "";
  transform: rotate(16deg);
}

.home-hero::before { top: 3rem; }
.home-hero::after { top: 8rem; right: -5rem; }

.home-hero__layout {
  position: relative;
  z-index: 1;
  min-height: 40rem;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(35rem, 0.97fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 5rem);
  padding-top: 0.5rem;
  padding-bottom: 4.8rem;
}

.home-hero__content {
  position: relative;
  z-index: 3;
  padding-top: 1.25rem;
}

.hero-kicker {
  width: fit-content;
  margin: 0 0 1.45rem;
  padding: 0.43rem 0.9rem;
  border: 1px solid rgb(255 152 51 / 35%);
  border-radius: var(--radius-pill);
  background: rgb(2 14 34 / 60%);
  box-shadow: 0 0.4rem 1.2rem rgb(0 0 0 / 14%);
  color: #f5a035;
  font-size: 0.82rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.01em;
}

.home-hero h1 {
  max-width: 55rem;
  margin-bottom: 1.45rem;
  color: var(--color-white);
  font-size: clamp(3rem, 3.15vw, 4.05rem);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.home-hero h1 span {
  color: var(--color-orange-500);
}

.home-hero__summary {
  margin-bottom: 2.2rem;
  color: #d0d8e5;
  font-size: clamp(1rem, 1.2vw, 1.28rem);
  line-height: 1.55;
}

.home-search {
  width: min(100%, 51rem);
  min-height: 4.4rem;
  margin-bottom: 1.4rem;
  padding: 0.34rem;
  border: 0;
  border-radius: 0.8rem;
  box-shadow: 0 1rem 2.2rem rgb(0 0 0 / 20%);
}

.home-search__icon {
  flex: 0 0 1.25rem;
  width: 1.1rem;
  height: 1.1rem;
  margin-left: 1rem;
  border: 0.12rem solid #788395;
  border-radius: 50%;
  align-self: center;
  position: relative;
}

.home-search__icon::after {
  position: absolute;
  right: -0.38rem;
  bottom: -0.25rem;
  width: 0.5rem;
  height: 0.12rem;
  border-radius: 1rem;
  background: #788395;
  content: "";
  transform: rotate(45deg);
}

.home-search input {
  padding-inline: 0.8rem;
  font-size: 0.95rem;
}

.home-search select {
  min-width: 6.5rem;
  padding-inline: 1.25rem;
  color: #3e4858;
}

.home-search .button {
  min-width: 8.8rem;
  min-height: 3.65rem;
  border-radius: 0.6rem;
  font-size: 1rem;
}

.popular-topics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: #c8d2e1;
  font-size: 0.76rem;
}

.popular-topics strong {
  margin-right: 0.2rem;
  color: var(--color-white);
}

.popular-topics a {
  padding: 0.38rem 0.78rem;
  border: 1px solid rgb(255 255 255 / 11%);
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 7%);
  color: #dae2ed;
  text-decoration: none;
}

.popular-topics a:hover {
  border-color: rgb(255 132 26 / 55%);
  background: rgb(255 101 0 / 13%);
  color: var(--color-white);
}

/* Code-native reconstruction of the approved hero illustration. */
.hero-art {
  position: relative;
  min-width: 0;
  height: 32rem;
  perspective: 900px;
}

.hero-orbit {
  position: absolute;
  border: 1px solid rgb(76 123 230 / 22%);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.hero-orbit--one { inset: 1rem -5rem 4rem 1rem; }
.hero-orbit--two { inset: 4rem -1rem 1rem 6rem; }

.laptop {
  position: absolute;
  left: 19%;
  top: 16%;
  width: 54%;
  height: 65%;
  transform: rotateY(-7deg) rotateX(2deg) rotateZ(5deg);
  filter: drop-shadow(0 2rem 1.6rem rgb(0 0 0 / 38%));
}

.laptop__screen {
  position: absolute;
  inset: 0 4% 21% 8%;
  padding: 19% 13%;
  display: grid;
  align-content: center;
  gap: 0.8rem;
  border: 0.7rem solid #273163;
  border-bottom-width: 1rem;
  border-radius: 1rem 1rem 0.5rem 0.5rem;
  background: linear-gradient(145deg, #080f29, #111d4b);
  box-shadow: inset 0 0 3rem rgb(0 77 255 / 14%);
}

.laptop__screen::before {
  position: absolute;
  top: 3%;
  left: 50%;
  width: 0.35rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #6170a6;
  content: "";
}

.laptop__base {
  position: absolute;
  right: -5%;
  bottom: 5%;
  left: 0;
  height: 25%;
  border-radius: 0 0 1rem 1rem;
  background: linear-gradient(155deg, #59619b 0%, #343c76 47%, #1a245b 100%);
  clip-path: polygon(8% 0, 91% 0, 100% 73%, 79% 100%, 12% 91%, 0 58%);
}

.laptop__base::after {
  position: absolute;
  top: 14%;
  left: 42%;
  width: 22%;
  height: 39%;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 0.3rem;
  content: "";
  transform: skewX(10deg);
}

.code-line {
  width: 74%;
  height: 0.38rem;
  border-radius: var(--radius-pill);
}

.code-line:nth-child(even) { margin-left: 13%; }
.code-line--short { width: 45%; }
.code-line--pink { background: linear-gradient(90deg, #f24ba5 0 27%, #45326f 27%); }
.code-line--blue { background: linear-gradient(90deg, #21a6ff 0 55%, #49386e 55%); }
.code-line--orange { background: linear-gradient(90deg, #ff9e35 0 39%, #403568 39%); }
.code-line--green { background: linear-gradient(90deg, #36dda3 0 46%, #453971 46%); }
.code-line--violet { background: linear-gradient(90deg, #9875ff 0 64%, #423671 64%); }

.floating-tile,
.floating-panel {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: 0.7rem;
  background: linear-gradient(145deg, #5c4bd5, #26367f);
  box-shadow: 0 1rem 2rem rgb(0 0 0 / 25%), inset 0 0 1rem rgb(255 255 255 / 8%);
  color: var(--color-white);
  font-weight: var(--font-weight-bold);
}

.floating-tile--cloud { left: 3%; top: 25%; width: 5rem; height: 4rem; color: #bce8ff; font-size: 2rem; transform: rotate(9deg); }
.floating-tile--chart { left: 16%; top: 45%; width: 5.5rem; height: 4.1rem; display: flex; align-items: flex-end; gap: 0.3rem; padding: 0.8rem 1rem; transform: rotate(9deg); }
.floating-tile--chart i { flex: 1; border-radius: 0.2rem; background: #51b7ff; }
.floating-tile--chart i:nth-child(1) { height: 35%; }.floating-tile--chart i:nth-child(2) { height: 68%; }.floating-tile--chart i:nth-child(3) { height: 52%; }.floating-tile--chart i:nth-child(4) { height: 90%; }
.floating-tile--code { right: 13%; top: 41%; width: 6rem; height: 5.3rem; font-size: 1.65rem; transform: rotate(8deg); }
.floating-tile--play { left: 18%; top: 8%; width: 2.7rem; height: 3.2rem; background: linear-gradient(145deg, #f14b8b, #5e4cf4); font-size: 0.9rem; transform: rotate(-6deg); }

.floating-panel {
  right: 14%;
  top: 6%;
  width: 8.4rem;
  height: 6.4rem;
  padding: 1.1rem 1rem;
  align-content: center;
  gap: 0.5rem;
  transform: rotate(10deg);
}

.floating-panel span { width: 90%; height: 0.35rem; border-radius: var(--radius-pill); background: #9189ff; }
.floating-panel span:nth-child(2) { width: 65%; background: #ff5f9d; }
.floating-panel span:nth-child(3) { width: 78%; background: #3dbfff; }
.floating-panel span:nth-child(4) { width: 45%; background: #ff9b47; }

.database {
  position: absolute;
  left: 8%;
  bottom: 5%;
  width: 6rem;
  height: 7.2rem;
  filter: drop-shadow(0 1rem 0.9rem rgb(0 0 0 / 30%));
}

.database span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.6rem;
  border: 0.18rem solid #a7d9ff;
  border-radius: 50%;
  background: linear-gradient(180deg, #8dd8ff, #397fe8 60%, #4c4dc6);
}

.database span:nth-child(1) { top: 0; }.database span:nth-child(2) { top: 2rem; }.database span:nth-child(3) { top: 4rem; }
.database::after { position: absolute; top: -0.65rem; left: 42%; width: 1.1rem; height: 1.5rem; border-radius: 50% 50% 60% 60%; background: #ffc75b; box-shadow: 0 0 1rem #ffd65a; content: ""; }

.rocket {
  position: absolute;
  right: 2%;
  top: 27%;
  width: 4.7rem;
  height: 9.5rem;
  border-radius: 70% 70% 42% 42%;
  background: linear-gradient(90deg, #e9f1fb, #fff 55%, #9cc0eb);
  box-shadow: 0 1rem 1.4rem rgb(0 0 0 / 25%);
  transform: rotate(27deg);
}

.rocket::before { position: absolute; top: 18%; left: 31%; width: 1.7rem; aspect-ratio: 1; border: 0.35rem solid #1e38a5; border-radius: 50%; background: #1ad4fd; box-shadow: inset 0 0 0.5rem #0a54f5; content: ""; }
.rocket::after { position: absolute; right: -1rem; bottom: 0.5rem; width: 2rem; height: 3rem; border-radius: 0 80% 20% 20%; background: #5263d7; content: ""; }
.rocket i { position: absolute; left: -1rem; bottom: 0.5rem; width: 2rem; height: 3rem; border-radius: 80% 0 20% 20%; background: #5263d7; }
.rocket b { position: absolute; left: 31%; bottom: -3rem; width: 1.6rem; height: 3.7rem; border-radius: 50%; background: linear-gradient(#ff842d, #ffcf45 35%, transparent 80%); filter: blur(0.08rem); }

.books { position: absolute; right: 1%; bottom: 4%; width: 8.7rem; height: 5.8rem; transform: rotate(-5deg); }
.books span { position: absolute; right: 0; width: 100%; height: 1.55rem; border-radius: 0.35rem; box-shadow: 0 0.4rem 0.8rem rgb(0 0 0 / 22%); }
.books span:nth-child(1) { bottom: 0; background: linear-gradient(90deg, #af2c54, #ff5c69); }.books span:nth-child(2) { right: 8%; bottom: 1.55rem; width: 89%; background: linear-gradient(90deg, #ececfb, #aeb8ea); }.books span:nth-child(3) { right: 3%; bottom: 3.1rem; width: 92%; background: linear-gradient(90deg, #de3a68, #fe6884); }

.plant { position: absolute; right: 27%; bottom: -0.2rem; width: 5rem; height: 7rem; }
.plant b { position: absolute; bottom: 0; left: 22%; width: 3.7rem; height: 3.5rem; border-radius: 0.4rem 0.4rem 1rem 1rem; background: linear-gradient(100deg, #dddce9, #fff); box-shadow: 0 0.8rem 1rem rgb(0 0 0 / 24%); }
.plant i { position: absolute; bottom: 2.9rem; left: 46%; width: 1.4rem; height: 3.4rem; border-radius: 100% 0 100% 0; background: #1fc77c; transform-origin: bottom; }
.plant i:nth-child(1) { transform: rotate(-48deg); }.plant i:nth-child(2) { transform: rotate(5deg); }.plant i:nth-child(3) { transform: rotate(47deg); }

.home-benefits {
  position: relative;
  z-index: 5;
  min-height: 9.8rem;
  margin-top: -4.7rem;
  padding: 1.8rem 2.8rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 1rem;
  border: 1px solid #e1e5ec;
  border-radius: 1rem;
  background: var(--color-white);
  box-shadow: 0 1rem 2rem rgb(0 18 46 / 13%);
}

.home-benefit {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding-inline: 1.1rem;
}

.benefit-icon {
  flex: 0 0 auto;
  width: 3.8rem;
  height: 3.8rem;
  display: grid;
  place-items: center;
  border-radius: 0.75rem;
  box-shadow: 0 0.6rem 1rem rgb(0 18 46 / 12%);
  color: var(--color-white);
  font-size: 1.35rem;
  font-weight: var(--font-weight-bold);
}

.benefit-icon--violet { background: linear-gradient(135deg, #873ae5, #5d35cc); }
.benefit-icon--blue { background: linear-gradient(135deg, #238dff, #3154e5); }
.benefit-icon--green { background: linear-gradient(135deg, #27d49b, #16a67d); }
.benefit-icon--orange { background: linear-gradient(135deg, #ff9c25, #ff5800); }
.home-benefit h2 { margin-bottom: 0.35rem; font-size: 1rem; letter-spacing: 0; }
.home-benefit p { margin: 0; color: var(--color-text-soft); font-size: 0.79rem; line-height: 1.55; }

.home-tutorials {
  padding: 3.15rem 0 1.8rem;
  background: #fbfcfe;
}

.home-section-heading {
  margin-bottom: 2rem;
  text-align: center;
}

.home-section-heading h2,
.home-testimonials > .container > h2 {
  margin-bottom: 0.45rem;
  font-size: 2.1rem;
}

.home-section-heading h2 span { color: var(--color-orange-500); }
.home-section-heading p { margin: 0; color: var(--color-text-muted); font-size: 1rem; }

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

.tutorial-card {
  min-height: 18rem;
  padding: 1.7rem 1rem 1.3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #e6e9ef;
  border-radius: 0.8rem;
  background: var(--color-white);
  box-shadow: 0 0.35rem 1rem rgb(0 18 46 / 5%);
  color: var(--color-text);
  text-align: center;
  text-decoration: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.tutorial-card:hover {
  border-color: #ffb680;
  box-shadow: var(--shadow-raised);
  color: var(--color-text);
  transform: translateY(-0.2rem);
}

.platform-icon {
  position: relative;
  width: 3.65rem;
  height: 3.65rem;
  margin-bottom: 1rem;
  display: grid;
  place-items: center;
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
}

.platform-icon--dynamics { border-radius: 50%; background: radial-gradient(circle at 62% 38%, #49d5eb 0 13%, transparent 14%), conic-gradient(#36cae6, #0074bc, #77ddea, #0084c6, #36cae6); box-shadow: inset 0 0 0 0.45rem rgb(255 255 255 / 14%); }
.platform-icon--ai { border-radius: 50%; background: linear-gradient(135deg, #38d2a0, #0ca677); }
.platform-icon--power { transform: rotate(45deg); border-radius: 0.75rem; background: linear-gradient(135deg, #9a31d4, #5926b6); }
.platform-icon--power i { width: 1.8rem; height: 1.8rem; border: 0.55rem solid #fff; border-radius: 0.2rem; }
.platform-icon--sql { border-radius: 50%; background: linear-gradient(135deg, #ffae32, #ff6e19); font-size: 1.75rem; }
.platform-icon--excel { border-radius: 0.2rem; background: linear-gradient(90deg, #087a42 0 38%, #22a361 38%); font-family: Georgia, serif; font-size: 2rem; }
.platform-icon--web { border-radius: 50%; background: linear-gradient(135deg, #259dff, #3167ed); font-size: 1rem; }
.platform-icon--csharp { border-radius: 50%; background: linear-gradient(135deg, #b83aab, #6d1a78); font-size: 1.15rem; }
.platform-icon--python i,.platform-icon--python b { position: absolute; width: 2.5rem; height: 2rem; padding: 0.35rem; border-radius: 0.7rem; color: #fff; font-style: normal; font-size: 0.9rem; }
.platform-icon--python i { left: 0; top: 0; background: #1775ac; }.platform-icon--python b { right: 0; bottom: 0; background: #f1c53f; text-align: right; }
.platform-icon--azure { color: #168ad1; font-size: 3.8rem; font-style: italic; text-shadow: -0.25rem 0 #1265a3; }
.platform-icon--mobile { color: #67cf14; font-size: 3.6rem; }
.platform-icon--linux { color: #151515; font-size: 3.6rem; text-shadow: 0 0.35rem #ffc63b; }
.platform-icon--data { align-items: flex-end; grid-template-columns: repeat(3, 0.55rem); gap: 0.25rem; padding: 0.6rem; }
.platform-icon--data i { width: 0.55rem; display: block; border-radius: 0.2rem 0.2rem 0 0; background: linear-gradient(#e6259a, #1951b9); }.platform-icon--data i:nth-child(1) { height: 1.25rem; }.platform-icon--data i:nth-child(2) { height: 2rem; }.platform-icon--data i:nth-child(3) { height: 3rem; }

.tutorial-card h3 { margin-bottom: 0.65rem; font-size: 0.96rem; line-height: 1.25; }
.tutorial-card p { margin-bottom: 1rem; color: var(--color-text-soft); font-size: 0.76rem; line-height: 1.65; }
.tutorial-card small { margin-top: auto; color: #4a5566; font-size: 0.71rem; font-weight: var(--font-weight-medium); }
.home-tutorials__action { padding: 1.8rem 0; display: flex; justify-content: center; }
.home-tutorials__action .button { min-width: 15.5rem; }

.home-stats {
  min-height: 8.6rem;
  padding: 1.5rem 0.8rem;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  border-radius: 0.9rem;
  background: linear-gradient(100deg, #031938, #061b3f 62%, #031836);
  color: #cbd5e3;
  box-shadow: 0 0.7rem 1.5rem rgb(0 18 46 / 12%);
}

.home-stat {
  min-height: 5rem;
  padding: 0.4rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.home-stat + .home-stat { border-left: 1px solid rgb(255 255 255 / 13%); }
.home-stat p { margin: 0; font-size: 0.68rem; line-height: 1.45; }
.home-stat strong { display: block; color: var(--color-white); font-size: 1.35rem; line-height: 1.2; }
.stat-icon { flex: 0 0 auto; width: 2.8rem; height: 2.8rem; display: grid; place-items: center; color: #7d3bff; font-size: 2.35rem; line-height: 1; }
.stat-icon--blue { color: #167dff; }.stat-icon--people { color: #ff902e; }.stat-icon--orange { color: #ff6a00; }.stat-icon--cyan { color: #00b9e8; }

.home-features {
  padding: 1.65rem 0 1.4rem;
  background: var(--color-white);
}

.home-feature-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.12fr 0.98fr;
  gap: 1rem;
}

.feature-panel {
  min-width: 0;
  min-height: 31rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid #e1e5ec;
  border-radius: 0.8rem;
  background: var(--color-white);
  box-shadow: 0 0.5rem 1.25rem rgb(0 18 46 / 7%);
}

.feature-panel h2 { margin-bottom: 0.45rem; font-size: 1.55rem; }
.feature-panel header > p,.feature-panel__heading p { margin: 0; color: var(--color-text-muted); font-size: 0.78rem; line-height: 1.5; }
.feature-panel__heading { display: flex; justify-content: space-between; gap: 1rem; }
.panel-link { flex: 0 0 auto; color: var(--color-orange-500); font-size: 0.75rem; font-weight: var(--font-weight-semibold); text-decoration: none; }
.panel-link:hover { color: var(--color-primary-hover); }

.seo-panel__content { min-height: 18.8rem; display: grid; grid-template-columns: 1.02fr 0.98fr; align-items: center; gap: 0.7rem; }
.check-list { margin: 0; padding: 0; display: grid; gap: 1.1rem; list-style: none; color: #445063; font-size: 0.75rem; }
.check-list li::before { margin-right: 0.65rem; color: #2fbd7e; font-size: 1rem; font-weight: var(--font-weight-bold); content: "✓"; }
.score-gauge { position: relative; width: 10rem; aspect-ratio: 1; margin-inline: auto; border-radius: 50%; background: conic-gradient(from 225deg, #3fb276 0 51%, #ffcd26 51% 62%, #ef3f43 62% 70%, #e4e7ec 70% 100%); }
.score-gauge::before { position: absolute; inset: 1.1rem; border-radius: 50%; background: var(--color-white); content: ""; }
.score-gauge::after { position: absolute; right: -0.5rem; bottom: 0.35rem; width: 8rem; height: 2.7rem; background: var(--color-white); content: ""; transform: rotate(-2deg); }
.score-gauge div { position: absolute; z-index: 2; inset: 2.5rem 1rem auto; display: grid; text-align: center; }
.score-gauge strong { color: #07162e; font-size: 3rem; line-height: 1; }.score-gauge span { margin-top: 0.5rem; color: var(--color-text-muted); font-size: 0.76rem; }
.seo-actions { display: flex; align-items: center; gap: 1.5rem; }.seo-actions .button { min-height: 3.05rem; }

.question-list { margin-top: 1.15rem; display: grid; gap: 1rem; }
.question { min-width: 0; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: 0.8rem; color: var(--color-text); text-decoration: none; }
.question:hover { color: var(--color-text); }.question > span:nth-child(2) { min-width: 0; display: grid; }.question b { font-size: 0.73rem; }.question strong { margin-top: 0.28rem; font-size: 0.86rem; line-height: 1.3; }.question small { margin-top: 0.25rem; color: var(--color-text-muted); font-size: 0.65rem; line-height: 1.45; }.question em { align-self: center; color: #667183; font-size: 0.65rem; font-style: normal; white-space: nowrap; }
.person-avatar { flex: 0 0 auto; width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border: 0.15rem solid #fff; border-radius: 50%; box-shadow: 0 0.2rem 0.55rem rgb(0 18 46 / 17%); color: #fff; font-size: 0.64rem; font-weight: var(--font-weight-bold); }
.person-avatar--one { background: linear-gradient(145deg, #60412e, #d0744d); }.person-avatar--two { background: linear-gradient(145deg, #532c43, #e5808b); }.person-avatar--three { background: linear-gradient(145deg, #623327, #df744e); }

.tool-list { margin-top: 1rem; display: grid; gap: 0.72rem; }
.tool-list a { display: flex; align-items: center; gap: 0.85rem; color: var(--color-text); text-decoration: none; }.tool-list a:hover strong { color: var(--color-orange-500); }.tool-list a > span { flex: 0 0 auto; width: 2.65rem; height: 2.65rem; display: grid; place-items: center; border-radius: 0.6rem; background: #f0edff; color: #6552f9; font-size: 1.2rem; font-weight: var(--font-weight-bold); }.tool-list p { margin: 0; display: grid; line-height: 1.35; }.tool-list strong { font-size: 0.8rem; transition: color var(--transition-fast); }.tool-list small { color: var(--color-text-muted); font-size: 0.66rem; }

.home-testimonials {
  padding: 0.2rem 0 1.8rem;
  background: var(--color-white);
}

.home-testimonials > .container > h2 { margin-bottom: 1.3rem; text-align: center; }
.testimonial-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.testimonial-card { min-height: 12.5rem; padding: 1.25rem 1.7rem; border: 1px solid #eef0f4; border-radius: 0.75rem; background: #fff; box-shadow: 0 0.35rem 1rem rgb(0 18 46 / 4%); }
.testimonial-card header { display: grid; grid-template-columns: 2.8rem minmax(0, 1fr) auto; align-items: center; gap: 0.8rem; }.testimonial-card header div { display: grid; }.testimonial-card header strong { font-size: 0.8rem; }.testimonial-card header small { color: var(--color-text-muted); font-size: 0.63rem; }.stars { color: #ffaf22; font-size: 1.15rem; letter-spacing: 0.08rem; }
.testimonial-card blockquote { position: relative; margin: 1.25rem 0 0; padding-left: 2.5rem; color: #455164; font-size: 0.75rem; line-height: 1.65; }.testimonial-card blockquote::before { position: absolute; left: 0.25rem; top: -0.35rem; color: #c9ced6; font-family: Georgia, serif; font-size: 3.3rem; line-height: 1; content: "“"; }
.carousel-dots { height: 2.5rem; display: flex; align-items: flex-end; justify-content: center; gap: 0.7rem; }.carousel-dots span,.carousel-dots i { width: 0.65rem; height: 0.65rem; border-radius: 50%; background: #d8dce2; }.carousel-dots span { width: 1.5rem; border-radius: var(--radius-pill); background: var(--color-orange-500); }

.newsletter-section { background: #fff; }
.newsletter-panel { min-height: 7.6rem; padding: 1.35rem 2rem; display: grid; grid-template-columns: 4rem minmax(18rem, 1fr) minmax(30rem, 0.86fr); align-items: center; gap: 1.4rem; border: 1px solid #ffd6bc; border-radius: 1rem 1rem 0 0; background: linear-gradient(98deg, #fff6ee, #fffaf5); }
.newsletter-icon { width: 3.4rem; height: 3.4rem; display: grid; place-items: center; border-radius: 50%; background: #fff0e5; color: var(--color-orange-500); font-size: 1.8rem; box-shadow: 0 0.4rem 1rem rgb(255 101 0 / 10%); }
.newsletter-panel h2 { margin-bottom: 0.25rem; font-size: 1.45rem; }.newsletter-panel p { margin: 0; color: var(--color-text-muted); font-size: 0.84rem; }
.newsletter-form { min-height: 3.5rem; display: flex; border: 1px solid #f1c8ad; border-radius: 0.65rem; background: #fff; overflow: hidden; }.newsletter-form input { min-width: 0; flex: 1; padding-inline: 1.4rem; border: 0; outline: 0; color: var(--color-text); }.newsletter-form .button { min-width: 10rem; border-radius: 0.55rem; box-shadow: none; }

.home-footer { background: #031837; }
.home-footer .site-footer__grid { padding: 2.8rem 0 2.4rem; grid-template-columns: 1.05fr 0.88fr 0.88fr 1.15fr; gap: clamp(2rem, 5vw, 7rem); }
.home-footer .site-footer__title { margin-bottom: 1.1rem; font-size: 1rem; }
.home-footer p { color: #aeb9ca; font-size: 0.78rem; line-height: 1.6; }
.home-footer .site-footer__list { margin-top: 1rem; gap: 0.65rem; font-size: 0.78rem; }
.contact-list > li > span:first-child,
.contact-link > span:first-child { display: inline-block; min-width: 1.35rem; color: var(--color-orange-500); }
.contact-link { display: inline-flex; align-items: center; color: #cbd5e1; text-decoration: none; }
.contact-link:hover { color: var(--color-white); }
.social-links { margin-top: 1.3rem; display: flex; gap: 1rem; }
.social-links :is(a, .social-link--disabled) { width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border-radius: 0.35rem; background: rgb(255 255 255 / 10%); color: #fff; font-size: 0.83rem; font-weight: var(--font-weight-bold); }
.social-link--disabled { opacity: 0.42; cursor: not-allowed; }
.home-footer__bottom { min-height: 6.5rem; font-size: 0.73rem; }.home-footer__bottom p { color: #aeb9ca; }.home-footer__bottom p:first-child { display: grid; }.home-footer__bottom strong { color: #dfe6ef; }.home-footer__bottom p:first-child span { display: block; }.home-footer__bottom p:last-child span { display: inline; color: var(--color-orange-500); }

/* Shared dark theme: token-driven surfaces plus explicit legacy-white surfaces. */
html[data-theme="dark"] :is(.mega-menu, .feature-rail, .card, .panel, .status-card, .architecture-card, .search-form, .breadcrumbs, .tab-navigation, .sidebar-panel, .table-shell, .accordion details) {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
}

html[data-theme="dark"] .button--secondary {
  border-color: var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text);
}

html[data-theme="dark"] .button--secondary:hover {
  background: var(--color-surface-subtle);
  color: var(--color-white);
}

html[data-theme="dark"] :is(.search-form input, .search-form select, .form-field input, .form-field select, .form-field textarea) {
  border-color: var(--color-border-strong);
  background: var(--color-surface);
  color: var(--color-text);
}

html[data-theme="dark"] :is(input, textarea)::placeholder {
  color: #8292aa;
  opacity: 1;
}

html[data-theme="dark"] .data-table th { background: var(--color-surface-subtle); color: var(--color-text); }
html[data-theme="dark"] .data-table :is(th, td) { border-color: var(--color-border); }
html[data-theme="dark"] .architecture-card p { color: var(--color-text-muted); }

html[data-theme="dark"] body.home-page { background: var(--color-background); }
html[data-theme="dark"] .home-search { background: var(--color-surface); }
html[data-theme="dark"] .home-search select { border-color: var(--color-border); color: var(--color-text-soft); }
html[data-theme="dark"] .home-search select option { background: var(--color-surface); color: var(--color-text); }
html[data-theme="dark"] .home-benefits { border-color: var(--color-border); background: var(--color-surface); }
html[data-theme="dark"] .home-benefit p { color: var(--color-text-soft); }
html[data-theme="dark"] .home-tutorials { background: var(--color-background); }
html[data-theme="dark"] .tutorial-card { border-color: var(--color-border); background: var(--color-surface); color: var(--color-text); }
html[data-theme="dark"] .tutorial-card:hover { border-color: var(--color-orange-400); color: var(--color-white); }
html[data-theme="dark"] .tutorial-card :is(p, small) { color: var(--color-text-soft); }
html[data-theme="dark"] .home-features { background: var(--color-background); }
html[data-theme="dark"] .feature-panel { border-color: var(--color-border); background: var(--color-surface); }
html[data-theme="dark"] .check-list { color: var(--color-text-soft); }
html[data-theme="dark"] .score-gauge::before,
html[data-theme="dark"] .score-gauge::after { background: var(--color-surface); }
html[data-theme="dark"] .score-gauge strong { color: var(--color-white); }
html[data-theme="dark"] :is(.question, .tool-list a) { color: var(--color-text); }
html[data-theme="dark"] :is(.question:hover, .tool-list a:hover) { color: var(--color-white); }
html[data-theme="dark"] .home-testimonials { background: var(--color-background); }
html[data-theme="dark"] .testimonial-card { border-color: var(--color-border); background: var(--color-surface); }
html[data-theme="dark"] .testimonial-card blockquote { color: var(--color-text-soft); }
html[data-theme="dark"] .newsletter-section { background: var(--color-background); }
html[data-theme="dark"] .newsletter-panel { border-color: #6e452d; background: linear-gradient(98deg, #12223d, #1d2038); }
html[data-theme="dark"] .newsletter-form { border-color: var(--color-border-strong); background: #071a36; }
html[data-theme="dark"] .newsletter-form input { background: #071a36; color: var(--color-text); }

/* Phase 5 shared mega navigation ---------------------------------------- */
.site-header--mega {
  --container-width: 120rem;
  --page-gutter: clamp(1rem, 2.2vw, 2.625rem);
  background: #031735;
}

.site-header--mega .site-header__inner {
  min-height: 5.625rem;
}

.site-header--mega .brand__logo {
  height: 3.75rem;
}

.site-header--mega .site-header__tools {
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: clamp(0.75rem, 1.35vw, 1.6rem);
}

.site-header--mega .site-navigation__list {
  gap: clamp(0.1rem, 0.75vw, 0.9rem);
}

.site-navigation__item {
  display: flex;
}

.site-navigation__trigger,
.site-header--mega .site-navigation__link {
  appearance: none;
  min-height: 2.75rem;
  padding: 0.7rem 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: var(--radius-small);
  background: transparent;
  color: #f0f3f8;
  font-size: 0.95rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.site-navigation__trigger:hover,
.site-navigation__trigger[aria-expanded="true"],
.site-header--mega .site-navigation__link:hover {
  background: rgb(255 255 255 / 8%);
  color: var(--color-white);
}

.site-navigation__chevron {
  width: 0.5rem;
  height: 0.5rem;
  margin-top: -0.2rem;
  display: block;
  border-right: 0.125rem solid #abb8cb;
  border-bottom: 0.125rem solid #abb8cb;
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
}

.site-navigation__trigger[aria-expanded="true"] .site-navigation__chevron {
  margin-top: 0.2rem;
  transform: rotate(225deg);
}

.site-header--mega .site-header__actions {
  gap: 0.75rem;
}

.site-header--mega .site-header__actions .button {
  min-height: 3rem;
  padding-inline: 1.35rem;
  border-radius: 0.55rem;
  font-size: 0.9rem;
  white-space: nowrap;
}

.site-header__account-trigger {
  cursor: pointer;
}

.site-header__account-trigger[aria-expanded="true"] {
  border-color: rgb(255 255 255 / 75%);
  background: rgb(255 255 255 / 10%);
  color: var(--color-white);
}

.site-header__mobile-controls {
  display: none;
  align-items: center;
  gap: 0.65rem;
}

.theme-toggle--mobile {
  display: none;
}

.mega-menu-layer {
  position: relative;
  z-index: var(--z-menu);
}

.site-header--mega .mega-menu {
  position: absolute;
  top: 0;
  right: auto;
  left: 50%;
  z-index: var(--z-menu);
  width: min(calc(100vw - 7rem), 98.625rem);
  max-width: none;
  max-height: calc(100vh - 6.75rem);
  margin: 0;
  padding: 1.9rem 2rem 0;
  display: block;
  overflow-y: auto;
  border: 1px solid #e2e6ed;
  border-top: 0;
  border-radius: 0 0 0.8rem 0.8rem;
  background: var(--color-white);
  box-shadow: 0 1.25rem 2.6rem rgb(0 18 46 / 20%);
  color: var(--color-text);
  transform: translateX(-50%);
}

.site-header--mega .mega-menu[hidden] {
  display: none;
}

.mega-menu__mobile-close {
  display: none;
}

.mega-menu__grid {
  padding-bottom: 2.55rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(2.25rem, 4.5vw, 6.25rem);
}

.mega-menu__group + .mega-menu__group {
  padding-left: 0;
  border-left: 0;
}

.mega-menu__title {
  margin: 0 0 1.05rem;
  color: var(--color-text);
  font-size: 0.98rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0;
  line-height: 1.25;
  text-transform: none;
}

.mega-menu__items {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
  list-style: none;
}

.mega-menu__link {
  min-height: 3.45rem;
  padding: 0.35rem 0.25rem;
  display: grid;
  grid-template-columns: 1.7rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border-radius: 0.5rem;
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.mega-menu__link:hover {
  background: #f7f8fb;
  color: var(--color-text);
}

.mega-menu__number {
  width: 1.7rem;
  height: 1.7rem;
  display: grid;
  place-items: center;
  border-radius: 0.4rem;
  background: #f0f1ff;
  color: #6359db;
  font-size: 0.72rem;
  font-weight: var(--font-weight-semibold);
}

.mega-menu__copy {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
  line-height: 1.25;
}

.mega-menu__copy strong {
  overflow-wrap: anywhere;
  color: var(--color-text);
  font-size: 0.88rem;
  font-weight: var(--font-weight-semibold);
}

.mega-menu__copy small {
  overflow-wrap: anywhere;
  color: var(--color-text-muted);
  font-size: 0.72rem;
}

.mega-menu__footer {
  min-height: 4.4rem;
  padding: 0.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--color-border);
}

.mega-menu__footer h2 {
  margin: 0 0 0.15rem;
  color: var(--color-text);
  font-size: 1rem;
  line-height: 1.3;
}

.mega-menu__footer p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.mega-menu__cta {
  flex: 0 0 auto;
  min-width: 11.75rem;
  min-height: 3.35rem;
  border-radius: 0.55rem;
  font-size: 0.9rem;
}

html[data-theme="dark"] .site-header--mega .mega-menu {
  border-color: var(--color-border);
  background: var(--color-surface);
}

html[data-theme="dark"] .mega-menu__link:hover {
  background: var(--color-surface-subtle);
  color: var(--color-white);
}

html[data-theme="dark"] .mega-menu__number {
  background: #252957;
  color: #beb9ff;
}

@media (min-width: 100.01rem) {
  .site-header--mega .brand {
    position: relative;
    align-self: stretch;
    width: 16.625rem;
    margin-left: 2.3125rem;
  }

  .site-header--mega .brand__logo {
    position: absolute;
    top: 0.9375rem;
    left: 0;
    width: auto;
    max-width: none;
    height: 4.65rem;
  }

  .site-header--mega .site-navigation {
    flex: 0 0 54.375rem;
    margin-left: 11.5625rem;
  }

  .site-header--mega .site-navigation__list {
    width: 100%;
    justify-content: space-between;
    gap: 0;
  }

  .site-header--mega .theme-toggle--desktop {
    margin-left: auto;
  }

  .site-header--mega .site-header__actions .button {
    min-height: 4rem;
    padding-inline: 2rem;
    font-size: 1rem;
  }
}

/* Phase 6 production system pages -------------------------------------- */
.system-page {
  background: var(--color-background);
}

.system-main {
  position: relative;
  min-height: calc(100vh - 10.5rem);
  padding: clamp(4.5rem, 8vw, 8rem) 0;
  display: grid;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgb(40 122 234 / 13%), transparent 25rem),
    radial-gradient(circle at 88% 80%, rgb(101 82 249 / 13%), transparent 28rem),
    linear-gradient(135deg, var(--color-background), var(--color-surface-subtle));
}

.system-main::before {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(rgb(85 105 140 / 9%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(85 105 140 / 9%) 1px, transparent 1px);
  background-size: 3rem 3rem;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
  content: "";
  pointer-events: none;
}

.system-main__inner {
  position: relative;
  z-index: 1;
}

.system-card {
  width: min(100%, 72rem);
  min-height: 31rem;
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(20rem, 0.84fr);
  border: 1px solid var(--color-border);
  border-radius: 1.25rem;
  background: var(--color-surface);
  box-shadow: 0 1.75rem 5rem rgb(0 18 46 / 16%);
  color: var(--color-text);
  overflow: hidden;
}

.system-card__copy {
  padding: clamp(2.5rem, 5vw, 4.75rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.system-eyebrow {
  width: fit-content;
  margin: 0 0 1.15rem;
  padding: 0.45rem 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid #ffd1b2;
  border-radius: var(--radius-pill);
  background: var(--color-orange-100);
  color: var(--color-primary-dark);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
}

.system-card h1 {
  margin: 0;
  max-width: 13ch;
  color: var(--color-text);
  font-size: clamp(2.7rem, 5vw, 4.65rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

.system-card__summary {
  max-width: 38rem;
  margin: 1.35rem 0 0;
  color: var(--color-text-soft);
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.65;
}

.system-feature {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  padding: 0.85rem 1rem;
  border-left: 0.22rem solid var(--color-orange-500);
  border-radius: 0 var(--radius-small) var(--radius-small) 0;
  background: var(--color-surface-subtle);
  color: var(--color-text-soft);
  font-size: var(--font-size-sm);
  line-height: 1.55;
}

.system-feature strong {
  color: var(--color-text);
  overflow-wrap: anywhere;
}

.system-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.system-actions .button {
  min-width: 7.5rem;
}

.system-note {
  margin: 1.5rem 0 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  line-height: 1.55;
}

.system-note span {
  margin-right: 0.35rem;
  color: var(--color-green-500);
  font-weight: var(--font-weight-bold);
}

.system-card__visual {
  position: relative;
  min-height: 31rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 42%, rgb(53 121 255 / 32%), transparent 30%),
    radial-gradient(circle at 75% 80%, rgb(109 49 222 / 42%), transparent 35%),
    linear-gradient(145deg, #031735, #0a2f63 58%, #24136b);
  color: var(--color-white);
}

.system-card__visual::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.2;
  background-image:
    linear-gradient(rgb(255 255 255 / 14%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 14%) 1px, transparent 1px);
  background-size: 2rem 2rem;
  content: "";
}

.system-card__visual--error {
  background:
    radial-gradient(circle at 50% 42%, rgb(255 132 26 / 28%), transparent 32%),
    radial-gradient(circle at 76% 82%, rgb(101 82 249 / 38%), transparent 38%),
    linear-gradient(145deg, #031735, #11284f 58%, #351442);
}

.system-card__status {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid rgb(255 255 255 / 23%);
  border-radius: var(--radius-pill);
  background: rgb(0 18 46 / 32%);
  color: #e5edf8;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
}

.system-orbit {
  position: absolute;
  left: 50%;
  top: 48%;
  z-index: -1;
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 20%);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.system-orbit--outer { width: 23rem; }
.system-orbit--inner { width: 16rem; border-style: dashed; transform: translate(-50%, -50%) rotate(18deg); }

.system-visual-mark {
  width: 7.75rem;
  height: 7.75rem;
  display: grid;
  place-items: center;
  border: 0.34rem solid rgb(255 255 255 / 26%);
  border-radius: 2rem;
  background: linear-gradient(145deg, #287aea, #6552f9);
  box-shadow: 0 1.2rem 2.5rem rgb(0 0 0 / 28%), inset 0 0.1rem 0 rgb(255 255 255 / 30%);
  color: var(--color-white);
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: var(--font-weight-bold);
  transform: rotate(-7deg);
}

.system-progress {
  width: min(15rem, 85%);
  margin-top: 2.3rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.system-progress i {
  height: 0.34rem;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 20%);
}

.system-progress i:nth-child(-n+3) {
  background: linear-gradient(90deg, var(--color-orange-500), var(--color-orange-400));
  box-shadow: 0 0 0.65rem rgb(255 101 0 / 35%);
}

.system-card__visual > p {
  max-width: 18rem;
  margin: 1.2rem 0 0;
  color: #e7edf7;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-align: center;
  overflow-wrap: anywhere;
}

.system-error-code {
  color: var(--color-white);
  font-size: clamp(6rem, 10vw, 9.5rem);
  letter-spacing: -0.08em;
  line-height: 0.9;
  text-shadow: 0 1rem 2rem rgb(0 0 0 / 28%);
}

.system-footer {
  background: #031735;
}

.system-footer .site-footer__inner {
  min-height: 5rem;
}

.system-footer p:last-child {
  color: #8fa0b7;
}

html[data-theme="dark"] .system-card {
  border-color: var(--color-border);
  background: var(--color-surface);
  box-shadow: 0 1.75rem 5rem rgb(0 0 0 / 34%);
}

html[data-theme="dark"] .system-eyebrow {
  border-color: #75482d;
  background: #332519;
  color: #ffb37f;
}
