:root {
  color-scheme: light;
  --ink: #061a33;
  --ink-soft: #24364f;
  --muted: #536176;
  --navy: #061a33;
  --navy-2: #0d2a4e;
  --green: #087f5b;
  --green-soft: #e9f8f1;
  --teal: #0d6b78;
  --amber: #8a4b00;
  --amber-soft: #fff4d7;
  --coral: #c7355a;
  --coral-soft: #fff0f3;
  --paper: #fbf8f1;
  --surface: #ffffff;
  --surface-soft: #f7fafc;
  --line: #d8dfeb;
  --line-strong: #bfcbdb;
  --shadow: 0 24px 60px rgba(6, 26, 51, 0.11);
  --shadow-soft: 0 12px 32px rgba(6, 26, 51, 0.08);
  --radius: 8px;
  --max: 1440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

input,
select,
textarea {
  width: 100%;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 13px 14px;
}

textarea {
  resize: vertical;
}

:focus-visible {
  outline: 3px solid rgba(8, 127, 91, 0.42);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  color: #fff;
  background: var(--green);
  border-radius: var(--radius);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 54px);
  color: #eef5ff;
  background: rgba(6, 26, 51, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
  min-width: 0;
}

.brand,
.nav,
.hero-actions,
.toolbar,
.trust-row,
.catalog-controls,
.panel-title,
.health-strip {
  display: flex;
  align-items: center;
}

.brand {
  gap: 12px;
  font-size: 1.1rem;
  min-width: 0;
  white-space: nowrap;
}

.brand b {
  font-weight: 900;
}

.brand span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand img {
  border-radius: var(--radius);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.nav {
  justify-content: center;
  gap: clamp(16px, 3vw, 38px);
  overflow-x: auto;
  padding: 8px 2px;
  color: #dbe6f2;
  font-weight: 720;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  position: relative;
  white-space: nowrap;
}

.nav a:hover,
.nav a:focus-visible,
.nav a[aria-current="page"] {
  color: #fff;
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  background: #fff;
  border-radius: 999px;
}

.nav-action,
.button,
.filter {
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 850;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-action {
  padding: 11px 16px;
  color: var(--navy);
  background: #fff;
  white-space: nowrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: min(100%, 340px);
  padding: 15px 18px;
}

.button.primary {
  color: #fff;
  background: var(--navy);
  box-shadow: 0 16px 32px rgba(6, 26, 51, 0.18);
}

.button.secondary {
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line-strong);
}

.button:hover,
.button:focus-visible,
.nav-action:hover,
.nav-action:focus-visible,
.filter:hover,
.filter:focus-visible {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.46fr) minmax(0, 0.76fr);
  gap: 0;
  align-items: stretch;
  max-width: var(--max);
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  background: linear-gradient(90deg, var(--paper) 0%, #fffdf7 45%, #ffffff 45%, #ffffff 100%);
  border-left: 1px solid rgba(216, 223, 235, 0.6);
  border-right: 1px solid rgba(216, 223, 235, 0.6);
}

.hero-copy,
.dashboard-shell {
  padding: clamp(34px, 5vw, 70px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--ink);
  font-size: clamp(3rem, 5vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-size: clamp(2rem, 3.5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.045em;
}

h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.05rem;
}

.hero-text,
.section-head p,
.split-section p,
.agent-copy p,
.deploy-grid p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.hero-text {
  max-width: 590px;
  font-size: 1.12rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 56px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-row span {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
}

.trust-row span:last-child {
  border-right: 0;
}

.trust-row b {
  color: var(--ink);
}

.trust-row small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.dashboard-shell {
  display: grid;
  align-content: center;
  gap: 20px;
  background: #fff;
}

.dashboard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
}

.dashboard-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  letter-spacing: -0.03em;
  line-height: 1.16;
}

.dashboard-head a,
.panel-title a,
.footer a,
.course-card a {
  color: var(--navy-2);
  font-weight: 850;
}

.dashboard-head a:hover,
.panel-title a:hover,
.footer a:hover,
.course-card a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.dashboard-kicker {
  margin-bottom: 6px;
  color: var(--muted);
  font-weight: 750;
}

.search-box {
  position: relative;
  display: grid;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
}

.search-box > span:not(.sr-only) {
  position: absolute;
  left: 15px;
  z-index: 1;
  color: var(--muted);
  font-size: 1.35rem;
}

.search-box input {
  min-height: 54px;
  padding-left: 46px;
}

.mini-course-grid,
.course-grid,
.deploy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  gap: 18px;
}

.side-stack {
  display: grid;
  gap: 18px;
}

.course-card,
.activity-panel,
.agent-preview,
.health-panel,
.flow-card,
.agent-card,
.deploy-grid article,
.empty-card,
.error-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.course-card {
  position: relative;
  display: grid;
  gap: 14px;
  min-height: 100%;
  padding: 14px;
  overflow: hidden;
}

.course-visual {
  display: grid;
  place-items: center;
  min-height: 88px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), #164267);
  border-radius: calc(var(--radius) - 2px);
}

.course-card.amber .course-visual {
  background: linear-gradient(135deg, #6d4700, #d47a00);
}

.course-card.coral .course-visual {
  background: linear-gradient(135deg, #481c3c, #7e3ca8);
}

.course-card.green .course-visual {
  background: linear-gradient(135deg, #0c5f56, #087f5b);
}

.course-visual span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.course-card h3 {
  margin: 0;
}

.course-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.course-meta,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.course-meta span,
.badge,
.activity-list b {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 9px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(8, 127, 91, 0.14);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 850;
}

.course-meta span:first-child {
  color: var(--navy-2);
  background: #eef5fb;
}

.progress {
  display: grid;
  gap: 8px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.progress-track {
  height: 7px;
  overflow: hidden;
  background: #ece9e1;
  border-radius: 999px;
}

.progress-bar {
  display: block;
  height: 100%;
  width: var(--progress, 50%);
  background: var(--green);
  border-radius: inherit;
}

.course-card.amber .progress-bar {
  background: var(--amber);
}

.course-card.coral .progress-bar {
  background: var(--coral);
}

.card-actions {
  margin-top: auto;
}

.card-actions a,
.track-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 11px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 850;
}

.card-actions a {
  color: #fff;
  background: var(--navy);
}

.track-button {
  color: var(--navy);
  background: #f3f6fa;
  border: 1px solid var(--line);
  cursor: pointer;
}

.panel-title {
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.panel-title h3 {
  margin: 0;
}

.activity-panel,
.agent-preview,
.health-panel {
  padding: 16px;
}

.activity-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.activity-list time {
  color: var(--muted);
  font-size: 0.82rem;
}

.activity-list span {
  color: var(--ink-soft);
  font-weight: 720;
}

.activity-list b {
  color: var(--amber);
  background: var(--amber-soft);
}

.recommendation-card {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  background: linear-gradient(135deg, #f2fbf6, #fbfffd);
  border: 1px solid rgba(8, 127, 91, 0.16);
  border-radius: var(--radius);
}

.recommendation-card > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: var(--green);
  border-radius: 50%;
}

.recommendation-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.health-strip {
  flex-wrap: wrap;
  gap: 10px;
}

.health-strip span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid rgba(8, 127, 91, 0.14);
  border-radius: var(--radius);
  font-weight: 850;
}

.health-strip span.warning {
  color: var(--amber);
  background: var(--amber-soft);
  border-color: rgba(212, 122, 0, 0.22);
}

.mobile-note {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px;
  color: var(--ink-soft);
  background: #eff8ff;
  border: 1px solid #cde2f2;
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.section,
.split-section,
.agent-section {
  scroll-margin-top: 92px;
  padding: clamp(64px, 8vw, 112px) clamp(18px, 6vw, 80px);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
}

.section-head {
  max-width: 820px;
  margin-bottom: 26px;
}

.catalog-controls {
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.catalog-search {
  flex: 1 1 240px;
  max-width: 360px;
}

.toolbar {
  flex-wrap: wrap;
  gap: 10px;
}

.filter {
  padding: 10px 13px;
  color: var(--navy);
  background: var(--surface);
  border: 1px solid var(--line);
}

.filter.active,
.filter[aria-pressed="true"] {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.result-count {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.scorm-workbench {
  background: linear-gradient(180deg, #fff 0%, #f8fbfd 100%);
}

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

.scorm-card {
  display: grid;
  gap: 14px;
  align-content: start;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.card-head {
  display: grid;
  gap: 8px;
}

.card-head span {
  width: fit-content;
  padding: 6px 9px;
  color: var(--amber);
  background: var(--amber-soft);
  border: 1px solid rgba(212, 122, 0, 0.2);
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.card-head h3,
.card-head p {
  margin: 0;
}

.card-head p,
.import-preview,
.library-list {
  color: var(--muted);
  line-height: 1.6;
}

.import-preview,
.library-list {
  min-height: 112px;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.import-summary {
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.import-summary strong {
  color: var(--ink);
}

.import-preview ul,
.library-list ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.import-preview li,
.library-list li {
  overflow-wrap: anywhere;
}

.warning-list {
  color: var(--coral);
  font-weight: 750;
}

.valid-note {
  color: var(--green);
  font-weight: 750;
}

.scorm-library {
  align-content: start;
}

.empty-card,
.error-card {
  grid-column: 1 / -1;
  padding: 24px;
  color: var(--muted);
  line-height: 1.6;
}

.error-card {
  border-color: rgba(199, 53, 90, 0.28);
  background: var(--coral-soft);
}

.split-section,
.agent-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(340px, 0.78fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: var(--surface);
}

.flow-card {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.flow-step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 780;
}

.flow-step b {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--navy);
  border-radius: var(--radius);
}

.scorm-form,
.agent-card {
  display: grid;
  gap: 14px;
}

.scorm-form {
  max-width: 560px;
  margin-top: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 850;
}

.form-result,
.agent-output {
  color: var(--muted);
  line-height: 1.6;
}

.form-result a {
  color: var(--navy-2);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.agent-section {
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}

.agent-section h2,
.agent-section .agent-copy p {
  color: #fff;
}

.agent-section .eyebrow {
  color: #ffd17a;
}

.agent-card {
  padding: 24px;
  color: var(--ink);
}

.agent-output {
  min-height: 128px;
  padding: 16px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.agent-output ol {
  margin: 12px 0 0;
  padding-left: 21px;
}

.agent-output li {
  margin: 8px 0;
}

.deploy-grid article {
  padding: 24px;
}

.deploy-grid article > span {
  color: var(--amber);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-weight: 850;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 80px);
  color: #d9e7f1;
  background: var(--navy);
}

.footer span {
  font-weight: 900;
}

.footer a {
  color: #f7d37a;
}

[aria-busy="true"] {
  cursor: progress;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

@media (prefers-reduced-motion: reduce) {
  *,
  html {
    scroll-behavior: auto;
    transition: none;
  }
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    background: #fff;
  }

  .hero-copy {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 960px) {
  .topbar {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    order: 3;
  }

  .mini-course-grid,
  .course-grid,
  .deploy-grid,
  .workbench-grid,
  .split-section,
  .agent-section {
    grid-template-columns: 1fr;
  }

  .trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-row span:nth-child(2) {
    border-right: 0;
  }
}

@media (max-width: 620px) {
  h1 {
    font-size: clamp(2.6rem, 15vw, 4rem);
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px 16px;
  }

  .brand span {
    font-size: 1rem;
  }

  .nav-action {
    justify-self: start;
    padding: 10px 12px;
  }

  .nav {
    max-width: 100%;
  }

  .catalog-search {
    max-width: none;
    width: 100%;
  }

  .hero-copy,
  .dashboard-shell,
  .section,
  .split-section,
  .agent-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .dashboard-head,
  .activity-list li {
    grid-template-columns: 1fr;
  }

  .trust-row,
  .mini-course-grid,
  .course-grid,
  .deploy-grid {
    grid-template-columns: 1fr;
  }

  .trust-row span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-row span:last-child {
    border-bottom: 0;
  }

  .footer {
    flex-direction: column;
  }
}
