:root {
  color-scheme: light;
  --ink: #111512;
  --ink-soft: #2d332f;
  --paper: #f1eee5;
  --paper-bright: #fbfaf5;
  --paper-deep: #e5e0d4;
  --line: rgba(17, 21, 18, 0.16);
  --line-light: rgba(255, 255, 255, 0.16);
  --signal: #b8f238;
  --signal-deep: #86bf10;
  --blue: #2364ff;
  --orange: #ff6b35;
  --muted: #687069;
  --white: #ffffff;
  --display: "Bahnschrift", "DIN Alternate", "Microsoft YaHei", sans-serif;
  --body: "Source Han Sans SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --shadow: 0 20px 50px rgba(30, 34, 31, 0.12);
  --radius-sm: 12px;
  --radius-md: 22px;
  --radius-lg: 34px;
  --shell: min(1420px, calc(100vw - 72px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: var(--ink);
  background: var(--signal);
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

svg {
  display: block;
}

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

.site-noise {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(270px, 1fr) auto minmax(270px, 1fr);
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 12px max(32px, calc((100vw - 1420px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  background: rgba(17, 21, 18, 0.94);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.brand-mark svg {
  width: 30px;
  fill: none;
  stroke: var(--signal);
  stroke-linejoin: round;
  stroke-width: 2;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-family: var(--display);
  font-size: 15px;
  letter-spacing: 0.16em;
}

.brand small {
  margin-top: 1px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
}

.primary-nav a {
  padding: 8px 15px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}

.primary-nav a:hover,
.primary-nav a.active {
  color: var(--ink);
  background: var(--signal);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.58);
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.14em;
}

.live-indicator i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 5px rgba(184, 242, 56, 0.12);
  animation: pulse 2.2s ease-in-out infinite;
}

.icon-button {
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.icon-button:hover {
  border-color: var(--signal);
  color: var(--signal);
  transform: rotate(-18deg);
}

.icon-button svg {
  width: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.65fr);
  gap: 46px;
  min-height: 700px;
  margin-top: 28px;
  padding: clamp(56px, 7vw, 104px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: var(--white);
  background:
    radial-gradient(circle at 82% 22%, rgba(35, 100, 255, 0.28), transparent 26%),
    radial-gradient(circle at 10% 95%, rgba(184, 242, 56, 0.13), transparent 26%),
    var(--ink);
}

.hero::before {
  position: absolute;
  top: -130px;
  right: 18%;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(184, 242, 56, 0.22);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 54px rgba(184, 242, 56, 0.035),
    0 0 0 108px rgba(184, 242, 56, 0.02);
}

.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.hero-copy,
.progress-console,
.hero-stats {
  position: relative;
  z-index: 1;
}

.hero-copy {
  align-self: center;
  max-width: 790px;
}

.kicker,
.section-index,
.console-label {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.kicker {
  color: rgba(255, 255, 255, 0.52);
}

.kicker span {
  color: var(--signal);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(56px, 7vw, 104px);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 0.95;
}

.hero h1 em {
  color: var(--signal);
  font-style: normal;
}

.hero-lead {
  max-width: 650px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button-primary {
  color: var(--ink);
  background: var(--signal);
}

.button-primary:hover {
  background: #c8ff50;
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--white);
  background: rgba(255, 255, 255, 0.04);
}

.button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.62);
}

.button-ghost-dark {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.button-ghost-dark:hover {
  border-color: var(--ink);
}

.quick-links-section {
  padding-top: clamp(76px, 8vw, 118px);
}

.quick-links-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 52px;
  margin-bottom: 22px;
  padding: clamp(34px, 4vw, 54px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-md);
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(184, 242, 56, 0.08), transparent 38%),
    repeating-linear-gradient(90deg, transparent 0 79px, rgba(255, 255, 255, 0.035) 80px),
    var(--ink);
}

.quick-links-head .section-index {
  margin-bottom: 12px;
  color: var(--signal);
}

.quick-links-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.quick-links-head > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
}

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

.quick-link-card {
  --card-accent: var(--signal);
  position: relative;
  display: flex;
  min-height: 250px;
  flex-direction: column;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-bright);
  box-shadow: 0 16px 40px rgba(17, 21, 18, 0.06);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.quick-link-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--card-accent);
  content: "";
}

.quick-link-card::after {
  position: absolute;
  right: -48px;
  bottom: -86px;
  width: 190px;
  height: 190px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 28%, transparent);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 34px color-mix(in srgb, var(--card-accent) 5%, transparent);
  pointer-events: none;
}

.quick-link-card:hover {
  border-color: color-mix(in srgb, var(--card-accent) 58%, transparent);
  box-shadow: 0 22px 50px rgba(17, 21, 18, 0.12);
  transform: translateY(-5px);
}

.quick-link-card:focus-visible {
  outline: 3px solid var(--card-accent);
  outline-offset: 4px;
}

.quick-link-number,
.quick-link-type {
  position: relative;
  z-index: 1;
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
}

.quick-link-number {
  color: var(--card-accent);
}

.quick-link-type {
  margin-top: 22px;
  color: var(--muted);
}

.quick-link-card h3 {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 46px);
  letter-spacing: -0.045em;
  line-height: 1;
}

.quick-link-card p {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 18px 0 30px;
  color: var(--muted);
  font-size: 14px;
}

.quick-link-action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  margin-top: auto;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.quick-link-action svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.quick-link-card:hover .quick-link-action svg {
  transform: translateX(4px);
}

.quick-link-card-project {
  --card-accent: var(--signal);
  grid-column: span 5;
  min-height: 330px;
  color: var(--white);
  background:
    radial-gradient(circle at 86% 20%, rgba(184, 242, 56, 0.12), transparent 28%),
    var(--ink);
}

.quick-link-card-project .quick-link-type,
.quick-link-card-project p,
.quick-link-card-knowledge .quick-link-type,
.quick-link-card-knowledge p {
  color: rgba(255, 255, 255, 0.62);
}

.quick-link-card-knowledge {
  --card-accent: var(--signal);
  grid-column: span 4;
  min-height: 330px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), transparent 42%),
    var(--blue);
}

.quick-link-card-source {
  --card-accent: var(--orange);
  grid-column: span 3;
  min-height: 330px;
  background:
    linear-gradient(150deg, rgba(255, 107, 53, 0.14), transparent 44%),
    var(--paper-bright);
}

.quick-link-card-flow,
.quick-link-card-courses,
.quick-link-card-quiz {
  grid-column: span 4;
}

.quick-link-card-flow {
  --card-accent: var(--blue);
}

.quick-link-card-courses {
  --card-accent: var(--signal-deep);
}

.quick-link-card-quiz {
  --card-accent: var(--orange);
}

.hero-route {
  display: flex;
  max-width: 630px;
  align-items: center;
  gap: 10px;
  margin-top: 54px;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--display);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.hero-route i {
  position: relative;
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.17);
}

.hero-route i::after {
  position: absolute;
  top: -2px;
  right: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  content: "";
}

.progress-console {
  align-self: center;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.console-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.console-label {
  margin-bottom: 5px;
  color: var(--signal);
  font-size: 9px;
}

.console-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.console-code {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  color: rgba(255, 255, 255, 0.46);
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.12em;
}

.progress-main {
  display: grid;
  grid-template-columns: 142px 1fr;
  align-items: center;
  gap: 28px;
  padding: 32px 0 26px;
}

.progress-ring {
  position: relative;
  display: grid;
  width: 140px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--signal) calc(var(--progress) * 1%), rgba(255, 255, 255, 0.1) 0);
  transition: background 400ms ease;
}

.progress-ring::before {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #262b27;
  content: "";
}

.progress-ring > div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.progress-ring strong,
.progress-ring span {
  display: block;
}

.progress-ring strong {
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: -0.04em;
}

.progress-ring span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
}

.progress-copy p,
.progress-copy strong,
.progress-copy span {
  display: block;
}

.progress-copy p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 12px;
}

.progress-copy strong {
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.45;
}

.progress-copy span {
  color: rgba(255, 255, 255, 0.34);
  font-size: 11px;
}

.console-lines {
  display: grid;
  gap: 7px;
}

.console-lines span {
  display: block;
  width: var(--line);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), rgba(35, 100, 255, 0.08));
}

.hero-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item {
  position: relative;
  padding: 28px 26px 0;
}

.stat-item:first-child {
  padding-left: 0;
}

.stat-item + .stat-item {
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item strong {
  display: block;
  font-family: var(--display);
  font-size: 38px;
  letter-spacing: -0.04em;
}

.stat-item span,
.stat-item small {
  display: block;
}

.stat-item span {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
}

.stat-item small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

.flow-section,
.role-section,
.status-section,
.references {
  padding-block: clamp(92px, 10vw, 150px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.55fr);
  align-items: end;
  gap: 50px;
  margin-bottom: 54px;
}

.section-index {
  color: var(--blue);
}

.section-heading h2,
.course-toolbar h2,
.quiz-intro h2,
.reference-copy h2 {
  margin: 0;
  max-width: 900px;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 70px);
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.section-heading > p,
.reference-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.flow-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(340px, 0.55fr);
  gap: 26px;
}

.process-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-bright);
}

.process-step {
  position: relative;
  min-height: 190px;
  padding: 25px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: left;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.process-step:nth-child(4n) {
  border-right: 0;
}

.process-step:nth-child(n + 5) {
  border-bottom: 0;
}

.process-step::after {
  position: absolute;
  top: 50%;
  right: -5px;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
  transform: translateY(-50%);
}

.process-step:nth-child(4n)::after,
.process-step:last-child::after {
  display: none;
}

.process-step:hover,
.process-step.active {
  color: var(--white);
  background: var(--blue);
}

.process-step.active::after {
  background: var(--signal);
  box-shadow: 0 0 0 5px rgba(184, 242, 56, 0.2);
}

.process-step-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.process-step:hover .process-step-meta,
.process-step.active .process-step-meta {
  color: rgba(255, 255, 255, 0.58);
}

.process-step strong {
  display: block;
  margin-top: 50px;
  font-size: 21px;
}

.process-step span:last-child {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}

.process-step:hover span:last-child,
.process-step.active span:last-child {
  color: rgba(255, 255, 255, 0.66);
}

.process-detail {
  display: flex;
  min-height: 406px;
  flex-direction: column;
  padding: 34px;
  border-radius: var(--radius-md);
  color: var(--white);
  background: var(--ink);
}

.process-detail .detail-number {
  color: var(--signal);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.process-detail h3 {
  margin: 48px 0 15px;
  font-family: var(--display);
  font-size: 34px;
  letter-spacing: -0.04em;
}

.process-detail > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

.process-checks {
  display: grid;
  gap: 10px;
  margin: auto 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  list-style: none;
}

.process-checks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

.process-checks li::before {
  width: 7px;
  height: 7px;
  border: 1px solid var(--signal);
  border-radius: 50%;
  content: "";
}

.document-section {
  padding-block: clamp(92px, 10vw, 150px);
  color: var(--white);
  background: var(--ink);
}

.section-heading-light .section-index {
  color: var(--signal);
}

.section-heading-light > p {
  color: rgba(255, 255, 255, 0.52);
}

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

.document-group {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
}

.document-group:first-child {
  background: linear-gradient(150deg, rgba(35, 100, 255, 0.18), rgba(255, 255, 255, 0.025));
}

.document-group-label {
  color: var(--signal);
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.16em;
}

.document-group h3 {
  margin: 18px 0 8px;
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: -0.03em;
}

.document-group > p {
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

.document-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.document-item {
  display: grid;
  grid-template-columns: 72px minmax(130px, 0.45fr) 1fr;
  gap: 18px;
  align-items: baseline;
  padding: 19px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.document-item code {
  color: var(--signal);
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.document-item strong {
  font-size: 15px;
}

.document-item span {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
}

.document-chain {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 42px;
  padding: 22px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  white-space: nowrap;
}

.document-chain span {
  font-size: 13px;
  font-weight: 700;
}

.document-chain i {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  color: var(--ink);
  background: var(--signal);
  font-family: var(--display);
  font-size: 8px;
  font-style: normal;
}

.role-tabs {
  display: flex;
  gap: 9px;
  margin-bottom: 20px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.role-tabs::-webkit-scrollbar {
  display: none;
}

.role-tab {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}

.role-tab span {
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
}

.role-tab.active,
.role-tab:hover {
  border-color: var(--ink);
  color: var(--white);
  background: var(--ink);
}

.role-tab.active span,
.role-tab:hover span {
  color: var(--signal);
}

.role-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1.3fr);
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper-bright);
  box-shadow: var(--shadow);
}

.role-panel-main {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 48px;
  overflow: hidden;
  color: var(--white);
  background: var(--blue);
}

.role-panel-main::after {
  position: absolute;
  right: -90px;
  bottom: -120px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 44px rgba(255, 255, 255, 0.05), 0 0 0 88px rgba(255, 255, 255, 0.025);
}

.role-number {
  color: rgba(255, 255, 255, 0.52);
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.16em;
}

.role-panel-main h3 {
  position: relative;
  z-index: 1;
  margin: auto 0 8px;
  font-family: var(--display);
  font-size: 48px;
  letter-spacing: -0.055em;
  line-height: 1;
}

.role-panel-main strong {
  position: relative;
  z-index: 1;
  font-size: 17px;
}

.role-panel-main p {
  position: relative;
  z-index: 1;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.7);
}

.role-panel-detail {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.1fr);
  gap: 42px;
  padding: 48px;
}

.role-panel-detail h4 {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.1em;
}

.priority-list,
.role-course-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.priority-list li {
  position: relative;
  padding: 13px 15px 13px 37px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 13px;
}

.priority-list li::before {
  position: absolute;
  top: 17px;
  left: 16px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal-deep);
  content: "";
}

.role-course-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.role-course-list span {
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
}

.role-course-list strong {
  font-size: 13px;
}

.course-section {
  padding-block: clamp(92px, 10vw, 150px);
  background: var(--paper-bright);
}

.course-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 45px;
}

.course-toolbar .section-index {
  margin-bottom: 10px;
}

.search-box {
  display: flex;
  width: min(440px, 100%);
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(35, 100, 255, 0.08);
}

.search-box svg {
  width: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-linecap: round;
  stroke-width: 1.7;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
}

.search-box kbd {
  padding: 3px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--muted);
  background: var(--paper);
  font-size: 10px;
}

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

.course-card {
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: 27px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.course-card::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 250ms ease;
}

.course-card:hover {
  border-color: rgba(17, 21, 18, 0.36);
  box-shadow: 0 14px 30px rgba(17, 21, 18, 0.09);
  transform: translateY(-4px);
}

.course-card:hover::before,
.course-card.completed::before {
  transform: scaleX(1);
}

.course-card.completed::before {
  background: var(--signal-deep);
}

.course-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.11em;
}

.course-card-meta span:last-child {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.course-card h3 {
  margin: 46px 0 12px;
  font-family: var(--display);
  font-size: 26px;
  letter-spacing: -0.035em;
}

.course-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.course-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.course-tags span {
  padding: 4px 8px;
  border-radius: 5px;
  color: var(--muted);
  background: rgba(17, 21, 18, 0.055);
  font-size: 10px;
}

.course-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 28px;
}

.course-open,
.course-toggle {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.course-open {
  padding: 0;
  color: var(--blue);
  font-weight: 700;
}

.course-open:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.course-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 11px;
}

.course-toggle i {
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.course-card.completed .course-toggle {
  border-color: rgba(134, 191, 16, 0.3);
  color: #5d8808;
  background: rgba(184, 242, 56, 0.16);
}

.course-card.completed .course-toggle i {
  border-color: var(--signal-deep);
  background: var(--signal-deep);
  box-shadow: inset 0 0 0 2px var(--paper);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 70px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.status-track {
  display: grid;
  grid-template-columns: repeat(10, minmax(120px, 1fr));
  overflow-x: auto;
  padding: 25px 18px 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--paper-bright);
}

.status-node {
  position: relative;
  min-width: 120px;
  padding: 62px 12px 0;
  text-align: center;
}

.status-node::before {
  position: absolute;
  top: 27px;
  left: 50%;
  z-index: 2;
  width: 17px;
  height: 17px;
  border: 5px solid var(--paper-bright);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px var(--blue);
  content: "";
  transform: translateX(-50%);
}

.status-node::after {
  position: absolute;
  top: 35px;
  left: 50%;
  width: 100%;
  height: 1px;
  background: var(--blue);
  content: "";
}

.status-node:last-child::after {
  display: none;
}

.status-node:last-child::before {
  background: var(--signal-deep);
  box-shadow: 0 0 0 1px var(--signal-deep), 0 0 0 7px rgba(184, 242, 56, 0.14);
}

.status-node span {
  display: block;
  color: var(--muted);
  font-family: var(--display);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.status-node strong {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  white-space: nowrap;
}

.branch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.branch-card {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.36);
}

.branch-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.branch-card header span {
  color: var(--orange);
  font-family: var(--display);
  font-size: 10px;
}

.branch-card h3 {
  margin: 18px 0 8px;
  font-size: 16px;
}

.branch-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.quiz-section {
  padding-block: clamp(92px, 10vw, 150px);
  color: var(--white);
  background: var(--blue);
}

.quiz-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: start;
}

.quiz-intro {
  position: sticky;
  top: 120px;
}

.quiz-intro .section-index {
  color: var(--signal);
}

.quiz-intro h2 {
  max-width: 470px;
  color: var(--white);
}

.quiz-intro > p:not(.section-index) {
  max-width: 440px;
  margin-top: 25px;
  color: rgba(255, 255, 255, 0.68);
}

.score-board {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: baseline;
  gap: 8px;
  margin-top: 60px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.score-board span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
}

.score-board strong {
  font-family: var(--display);
  font-size: 56px;
  letter-spacing: -0.05em;
}

.score-board small {
  color: var(--signal);
}

.quiz-card {
  padding: clamp(26px, 4vw, 48px);
  border-radius: var(--radius-lg);
  color: var(--ink);
  background: var(--paper-bright);
  box-shadow: 0 25px 70px rgba(5, 22, 67, 0.25);
}

.quiz-question {
  padding: 29px 0;
  border-bottom: 1px solid var(--line);
}

.quiz-question:first-child {
  padding-top: 0;
}

.quiz-question legend {
  width: 100%;
  margin-bottom: 17px;
  padding: 0;
  font-size: 16px;
  font-weight: 700;
}

.question-index {
  margin-right: 8px;
  color: var(--blue);
  font-family: var(--display);
  font-size: 11px;
}

.quiz-options {
  display: grid;
  gap: 9px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.quiz-option:hover {
  border-color: var(--blue);
}

.quiz-option:has(input:checked) {
  border-color: var(--blue);
  background: rgba(35, 100, 255, 0.07);
}

.quiz-option input {
  width: 17px;
  height: 17px;
  accent-color: var(--blue);
}

.quiz-option span {
  font-size: 13px;
}

.quiz-question.correct .quiz-option:has(input:checked) {
  border-color: var(--signal-deep);
  background: rgba(184, 242, 56, 0.16);
}

.quiz-question.incorrect .quiz-option:has(input:checked) {
  border-color: var(--orange);
  background: rgba(255, 107, 53, 0.09);
}

.answer-note {
  margin: 13px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--blue);
  color: var(--muted);
  background: rgba(35, 100, 255, 0.06);
  font-size: 12px;
}

.quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.quiz-result {
  display: none;
  margin-top: 28px;
  padding: 22px;
  border-radius: var(--radius-sm);
  color: var(--white);
  background: var(--ink);
}

.quiz-result.show {
  display: block;
  animation: reveal-up 350ms ease both;
}

.quiz-result strong {
  display: block;
  font-family: var(--display);
  font-size: 30px;
}

.quiz-result span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 13px;
}

.references {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 0.55fr);
  gap: 80px;
}

.reference-copy h2 {
  max-width: 680px;
  font-size: clamp(36px, 4vw, 58px);
}

.reference-copy > p:last-child {
  max-width: 690px;
  margin-top: 24px;
}

.reference-links {
  display: grid;
  align-content: start;
}

.reference-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.reference-links a:hover span {
  color: var(--blue);
  transform: translate(3px, -3px);
}

.reference-links span {
  transition: color 180ms ease, transform 180ms ease;
}

.footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  min-height: 180px;
  padding: 50px max(36px, calc((100vw - 1420px) / 2));
  color: var(--white);
  background: var(--ink);
}

.footer strong,
.footer span {
  display: block;
}

.footer strong {
  color: var(--signal);
  font-family: var(--display);
  letter-spacing: 0.14em;
}

.footer div span,
.footer > span {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 11px;
}

.lesson-dialog {
  width: min(760px, calc(100vw - 30px));
  max-height: min(860px, calc(100vh - 30px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-lg);
  background: transparent;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.35);
}

.lesson-dialog::backdrop {
  background: rgba(10, 13, 11, 0.72);
  backdrop-filter: blur(8px);
}

.dialog-shell {
  position: relative;
  max-height: min(860px, calc(100vh - 30px));
  padding: clamp(30px, 5vw, 56px);
  overflow-y: auto;
  background: var(--paper-bright);
}

.dialog-close {
  position: absolute;
  top: 22px;
  right: 22px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.dialog-meta {
  display: flex;
  gap: 13px;
  color: var(--blue);
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.13em;
}

.dialog-meta span + span {
  padding-left: 13px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}

.dialog-shell > h2 {
  margin: 28px 0 13px;
  padding-right: 40px;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.05em;
  line-height: 1;
}

.dialog-shell > p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.dialog-objectives {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 27px 0 36px;
}

.dialog-objectives span {
  padding: 6px 10px;
  border-radius: 999px;
  color: #4b7000;
  background: rgba(184, 242, 56, 0.2);
  font-size: 11px;
}

.dialog-sections {
  display: grid;
  gap: 13px;
}

.dialog-section {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
}

.dialog-section h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.dialog-section p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.dialog-complete {
  width: 100%;
  margin-top: 30px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  max-width: min(360px, calc(100vw - 48px));
  padding: 14px 18px;
  border-radius: 999px;
  color: var(--ink);
  background: var(--signal);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.visible {
  animation: reveal-up 650ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

@keyframes reveal-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

@media (max-width: 1160px) {
  :root {
    --shell: min(100% - 40px, 1080px);
  }

  .topbar {
    grid-template-columns: 1fr auto;
    padding-inline: 24px;
  }

  .primary-nav {
    display: none;
  }

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

  .progress-console {
    max-width: 560px;
  }

  .quick-link-card-project,
  .quick-link-card-knowledge,
  .quick-link-card-source,
  .quick-link-card-flow,
  .quick-link-card-courses,
  .quick-link-card-quiz {
    grid-column: span 6;
  }

  .flow-layout {
    grid-template-columns: 1fr;
  }

  .process-detail {
    min-height: 330px;
  }

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

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

@media (max-width: 820px) {
  :root {
    --shell: min(100% - 28px, 720px);
  }

  .topbar {
    min-height: 68px;
    padding-inline: 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand small,
  .live-indicator {
    display: none;
  }

  .hero {
    min-height: auto;
    margin-top: 14px;
    padding: 46px 24px 30px;
    border-radius: 24px;
  }

  .hero h1 {
    font-size: clamp(49px, 15vw, 76px);
  }

  .hero-route {
    display: none;
  }

  .progress-main {
    grid-template-columns: 112px 1fr;
  }

  .progress-ring {
    width: 112px;
  }

  .progress-ring strong {
    font-size: 28px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-links-head {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .quick-link-card-project,
  .quick-link-card-knowledge,
  .quick-link-card-source,
  .quick-link-card-flow,
  .quick-link-card-courses,
  .quick-link-card-quiz {
    grid-column: 1 / -1;
    min-height: 250px;
  }

  .stat-item:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .section-heading,
  .course-toolbar,
  .references {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 20px;
  }

  .course-toolbar {
    display: grid;
    gap: 25px;
  }

  .search-box {
    width: 100%;
  }

  .process-rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step:nth-child(2n) {
    border-right: 0;
  }

  .process-step:nth-child(4n) {
    border-right: 0;
  }

  .process-step:nth-child(n + 5) {
    border-bottom: 1px solid var(--line);
  }

  .process-step:nth-child(n + 7) {
    border-bottom: 0;
  }

  .process-step:nth-child(2n)::after {
    display: none;
  }

  .document-grid,
  .role-panel,
  .role-panel-detail,
  .quiz-layout {
    grid-template-columns: 1fr;
  }

  .role-panel-main {
    min-height: 330px;
  }

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

  .course-card {
    min-height: 300px;
  }

  .quiz-intro {
    position: static;
  }

  .reference-links {
    margin-top: -35px;
  }

  .footer {
    display: grid;
    align-items: start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 15px;
  }

  .brand strong {
    font-size: 12px;
  }

  .topbar-actions {
    gap: 6px;
  }

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

  .quick-links-section {
    padding-top: 62px;
  }

  .quick-links-head,
  .quick-link-card {
    padding: 26px 22px;
  }

  .quick-link-card {
    min-height: 230px;
  }

  .progress-console {
    padding: 22px;
  }

  .progress-main {
    grid-template-columns: 1fr;
  }

  .progress-ring {
    width: 126px;
  }

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

  .stat-item,
  .stat-item:first-child,
  .stat-item:nth-child(3) {
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 0;
  }

  .process-step {
    min-height: 160px;
    padding: 18px;
  }

  .process-step strong {
    margin-top: 30px;
    font-size: 18px;
  }

  .document-group,
  .role-panel-main,
  .role-panel-detail,
  .quiz-card {
    padding: 26px 22px;
  }

  .document-item {
    grid-template-columns: 58px 1fr;
  }

  .document-item span {
    grid-column: 1 / -1;
  }

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

  .search-box kbd {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
