:root {
  --cream: #f5efe4;
  --cream-deep: #e9dfd0;
  --paper: #fffdf8;
  --ink: #25221f;
  --muted: #746d64;
  --line: rgba(53, 45, 38, 0.13);
  --orange: #e65e39;
  --orange-dark: #bc4027;
  --blue: #2458a6;
  --blue-deep: #15386b;
  --green: #3f7554;
  --yellow: #f0bf4d;
  --shadow: 0 24px 60px rgba(68, 50, 37, 0.14);
  --shadow-small: 0 12px 28px rgba(68, 50, 37, 0.11);
  --display: "Young Serif", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --mono: "DM Mono", monospace;
}

html[data-course="generative-ai"] {
  --orange: #7358ca;
  --orange-dark: #4d358f;
}

html[data-course="docker"] {
  --orange: #1684c2;
  --orange-dark: #0b5f91;
}

html[data-course="python"] {
  --orange: #3776ab;
  --orange-dark: #24527a;
}

html[data-course="sql"] {
  --orange: #2f7d64;
  --orange-dark: #185443;
}

html[data-course="rag"] {
  --orange: #2e8f81;
  --orange-dark: #19665c;
}

html[data-course="agentic-ai"] {
  --orange: #d75d48;
  --orange-dark: #9f3c30;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.dialog-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

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

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

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  border-radius: 8px;
  transform: translateY(-150%);
}

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

.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;
}

.ambient {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(3px);
  opacity: 0.48;
  pointer-events: none;
}

.ambient-one {
  width: 420px;
  height: 420px;
  top: 110px;
  right: 0;
  background: radial-gradient(circle at 87% 50%, rgba(230, 94, 57, 0.22), transparent 68%);
}

.ambient-two {
  width: 360px;
  height: 360px;
  top: 580px;
  left: 0;
  background: radial-gradient(circle at left center, rgba(36, 88, 166, 0.13), transparent 68%);
}

.site-header {
  width: min(1180px, calc(100% - 48px));
  min-height: 86px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.6px;
}

.brand-muted {
  color: #155fc2;
}

.brand-logo {
  width: 58px;
  height: 58px;
  flex: none;
  object-fit: contain;
  filter: drop-shadow(0 7px 9px rgba(21, 58, 111, .19));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  color: #635c54;
  font-size: 13px;
  font-weight: 700;
}

.main-nav a {
  position: relative;
  padding: 34px 0 29px;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--orange);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.progress-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.7);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(56, 44, 34, 0.06);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.progress-pill > span:last-child {
  display: grid;
  text-align: left;
}

.progress-pill strong {
  font-size: 12px;
}

.progress-pill small {
  color: var(--muted);
  font-size: 9px;
}

.mini-ring {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--orange) var(--ring-progress, 0%), var(--cream-deep) 0);
}

.mini-ring::before {
  position: absolute;
  width: 26px;
  height: 26px;
  border-radius: inherit;
  background: var(--paper);
  content: "";
}

.mini-ring span {
  z-index: 1;
  font-family: var(--mono);
  font-size: 9px;
}

.auth-area {
  position: relative;
}

.auth-trigger {
  min-height: 47px;
  padding: 7px 13px 7px 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ink);
  color: white;
  box-shadow: 0 4px 0 #090807;
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.auth-avatar {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
}

.auth-trigger.is-user {
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 4px 0 var(--cream-deep);
}

.user-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  width: 230px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  box-shadow: 0 20px 50px rgba(45, 34, 26, 0.2);
}

.user-menu::before {
  position: absolute;
  top: -6px;
  right: 22px;
  width: 11px;
  height: 11px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--paper);
  content: "";
  transform: rotate(45deg);
}

.user-menu p,
.user-menu strong,
.user-menu small {
  display: block;
}

.user-menu p {
  margin: 0 0 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.user-menu strong {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 400;
}

.user-menu small {
  margin-top: 2px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-menu button {
  width: 100%;
  margin-top: 15px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #faf7f1;
  color: var(--orange-dark);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.user-menu .certificate-menu-button {
  color: white;
  border-color: var(--blue-deep);
  background: var(--blue-deep);
  box-shadow: 0 3px 0 #091f41;
}

.user-menu button + button { margin-top: 8px; }

.hero {
  width: min(1180px, calc(100% - 48px));
  min-height: 650px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 64px;
  padding: 70px 0 88px;
}

.eyebrow {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.7px;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 23px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  max-width: 700px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(56px, 6.2vw, 88px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -3.8px;
}

h1 em,
.how-copy em {
  position: relative;
  color: var(--orange);
  font-weight: 400;
}

h1 em::after {
  position: absolute;
  right: 3px;
  bottom: -10px;
  width: 92%;
  height: 9px;
  background: url("data:image/svg+xml,%3Csvg width='250' height='10' viewBox='0 0 250 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 7c40-8 72 2 115-2 46-5 84 2 131-3' fill='none' stroke='%23e65e39' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  content: "";
}

.hero-lede {
  max-width: 560px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 13px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 0;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  color: white;
  background: var(--orange);
  box-shadow: 0 6px 0 var(--orange-dark), 0 14px 24px rgba(181, 63, 37, 0.2);
}

.button-primary:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 var(--orange-dark);
}

.button-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.6);
}

.play-icon {
  display: grid;
  width: 25px;
  height: 25px;
  place-items: center;
  padding-left: 2px;
  color: var(--blue);
  border-radius: 50%;
  background: rgba(36, 88, 166, 0.1);
  font-size: 8px;
}

.hero-proof {
  margin-top: 54px;
  display: flex;
  gap: 32px;
}

.hero-proof div {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  column-gap: 9px;
}

.hero-proof div + div {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}

.hero-proof strong {
  grid-row: span 2;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
}

.hero-proof span {
  max-width: 75px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
  min-height: 470px;
  perspective: 1200px;
}

.hero-visual::before {
  position: absolute;
  top: 9%;
  right: 5%;
  bottom: 6%;
  left: 8%;
  border: 1px dashed rgba(71, 60, 51, 0.17);
  border-radius: 50%;
  content: "";
  transform: rotate(-9deg);
}

.lesson-card-3d {
  position: absolute;
  top: 70px;
  left: 5px;
  z-index: 2;
  width: 380px;
  min-height: 288px;
  padding: 19px;
  color: #f1eadf;
  background: #292723;
  border: 1px solid #0f0f0e;
  border-radius: 22px;
  box-shadow: 18px 24px 0 #bdb2a4, 30px 38px 52px rgba(56, 42, 32, 0.28);
  transform: rotateY(8deg) rotateZ(-4deg);
  animation: cardFloat 6s ease-in-out infinite;
}

.card-topline {
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #9c958b;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 1px;
}

.tiny-dots {
  display: flex;
  gap: 5px;
}

.tiny-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e65e39;
}

.tiny-dots i:nth-child(2) { background: #e7bc54; }
.tiny-dots i:nth-child(3) { background: #6ca17a; }

.code-preview {
  padding: 32px 10px 26px;
  display: grid;
  gap: 12px;
  font-family: var(--mono);
  font-size: 12px;
}

.code-preview b {
  color: #f0c76b;
  font-weight: 400;
}

.code-preview .code-pink { color: #ec8e72; }
.code-preview .code-blue { color: #8eb6ea; }
.code-preview .code-green { color: #9fca9c; }
.code-preview .indent { padding-left: 22px; }
.code-preview .indent-two { padding-left: 44px; color: #c8c1b8; }

.lesson-status {
  padding: 12px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
  font-size: 9px;
}

.lesson-status span {
  color: #aaa297;
  font-family: var(--mono);
  letter-spacing: 0.7px;
}

.lesson-status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 5px;
  border-radius: 50%;
  background: #76a87e;
  box-shadow: 0 0 0 3px rgba(118, 168, 126, 0.13);
}

.lesson-status strong {
  color: #f0c76b;
  font-weight: 500;
}

.java-cup {
  position: absolute;
  right: 9px;
  bottom: 30px;
  z-index: 4;
  width: 170px;
  height: 180px;
  transform: rotate(6deg);
  animation: cupFloat 5s ease-in-out infinite 0.8s;
}

.cup-body {
  position: absolute;
  right: 18px;
  bottom: 22px;
  z-index: 2;
  width: 118px;
  height: 104px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.88);
  background: linear-gradient(135deg, #ef6a43, #c64329);
  border: 2px solid #a83823;
  border-radius: 17px 17px 36px 36px;
  box-shadow: inset -12px -14px 0 rgba(128, 36, 20, 0.12), 0 18px 25px rgba(76, 41, 29, 0.25);
}

.cup-body::before {
  position: absolute;
  top: -9px;
  width: 114px;
  height: 21px;
  border: 2px solid #99351f;
  border-radius: 50%;
  background: #683421;
  box-shadow: inset 0 5px 0 #382217;
  content: "";
}

.cup-body span {
  font-family: var(--display);
  font-size: 42px;
  text-shadow: 0 3px 0 rgba(118, 32, 18, 0.2);
}

.cup-handle {
  position: absolute;
  right: -8px;
  bottom: 45px;
  width: 52px;
  height: 58px;
  border: 14px solid #c9472c;
  border-left: 0;
  border-radius: 0 50% 50% 0;
}

.cup-shadow {
  position: absolute;
  right: 10px;
  bottom: 5px;
  width: 142px;
  height: 24px;
  border-radius: 50%;
  background: rgba(55, 39, 29, 0.2);
  filter: blur(7px);
}

.steam {
  position: absolute;
  z-index: 1;
  width: 20px;
  height: 56px;
  border: 4px solid rgba(101, 91, 81, 0.45);
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
}

.steam-a { top: 4px; left: 60px; transform: rotate(18deg); }
.steam-b { top: -6px; left: 88px; height: 68px; transform: rotate(-10deg); }
.steam-c { top: 10px; left: 112px; height: 46px; transform: rotate(16deg); }

.floating-chip {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid rgba(70, 56, 45, 0.13);
  border-radius: 10px;
  background: rgba(255, 253, 248, 0.9);
  box-shadow: var(--shadow-small);
  backdrop-filter: blur(8px);
  font-size: 9px;
  font-weight: 800;
}

.floating-chip span {
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: white;
  border-radius: 6px;
  background: var(--green);
}

.chip-one { top: 35px; right: 25px; transform: rotate(4deg); }
.chip-two { bottom: 0; left: 63px; transform: rotate(-4deg); }
.chip-two span { background: var(--blue); }

.float-code {
  position: absolute;
  color: rgba(36, 88, 166, 0.36);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 500;
}

.code-a { top: 9px; left: 37%; transform: rotate(10deg); }
.code-b { top: 52%; right: -8px; font-size: 12px; transform: rotate(90deg); }
.code-c { bottom: 20px; left: 12px; color: rgba(230, 94, 57, 0.42); font-size: 31px; }

.orbit {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(35, 32, 29, 0.08);
}

.orbit-one { width: 56px; height: 56px; top: 15px; left: 12px; }
.orbit-two { width: 24px; height: 24px; right: 9px; top: 48%; background: rgba(240, 191, 77, 0.24); }

.curriculum {
  padding: 92px max(24px, calc((100% - 1180px) / 2)) 110px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.section-heading h2,
.how-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 4.8vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -2px;
}

.section-heading > div:first-child > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section-progress {
  width: 230px;
  flex: 0 0 auto;
}

.section-progress-copy {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
}

.section-progress-copy span { color: var(--muted); }
.section-progress-copy strong { font-size: 9px; }

.progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: var(--cream-deep);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), #ed8b52);
  transition: width 400ms cubic-bezier(.2,.8,.2,1);
}

.toolbar {
  margin: 50px 0 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.search-box {
  width: min(320px, 100%);
  height: 43px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf7f1;
  transition: border 150ms ease, box-shadow 150ms ease;
}

.search-box:focus-within {
  border-color: rgba(36, 88, 166, 0.5);
  box-shadow: 0 0 0 4px rgba(36, 88, 166, 0.08);
}

.search-box > span:first-child {
  color: var(--blue);
  font-size: 21px;
  transform: rotate(-15deg);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 11px;
}

.search-box input::placeholder { color: #9d958b; }

kbd {
  padding: 3px 7px;
  color: #8b8379;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: white;
  font-family: var(--mono);
  font-size: 9px;
}

.filter-group {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #faf7f1;
}

.filter {
  padding: 8px 13px;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
}

.filter span {
  margin-left: 4px;
  opacity: 0.65;
}

.filter.active {
  color: white;
  background: var(--ink);
  box-shadow: 0 3px 0 #090807;
}

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

.module-card {
  position: relative;
  min-height: 264px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--card-bg, #fbf7ef);
  box-shadow: 0 5px 0 var(--card-edge, #dfd5c6), 0 14px 26px rgba(61, 45, 34, 0.06);
  cursor: pointer;
  transition: transform 200ms cubic-bezier(.2,.8,.2,1), box-shadow 200ms ease, border 200ms ease;
}

.module-card::before {
  position: absolute;
  top: -36px;
  right: -34px;
  width: 100px;
  height: 100px;
  border: 1px solid var(--card-accent-soft, rgba(230, 94, 57, 0.12));
  border-radius: 50%;
  content: "";
}

.module-card::after {
  position: absolute;
  top: -8px;
  right: -12px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--card-accent-soft, rgba(230, 94, 57, 0.08));
  content: "";
}

.module-card:hover {
  z-index: 2;
  border-color: var(--card-accent, var(--orange));
  box-shadow: 0 8px 0 var(--card-edge, #dfd5c6), 0 24px 38px rgba(61, 45, 34, 0.13);
  transform: translateY(-6px) rotateX(1deg);
}

.module-card:focus-visible {
  outline: 3px solid rgba(36, 88, 166, 0.35);
  outline-offset: 4px;
}

.module-card.is-complete {
  border-color: rgba(63, 117, 84, 0.45);
}

.module-card.is-complete .module-number {
  color: white;
  background: var(--green);
}

.module-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.module-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--card-accent, var(--orange));
  border: 1px solid currentColor;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--mono);
  font-size: 10px;
  box-shadow: 0 3px 0 var(--card-edge, #dfd5c6);
}

.module-state {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.module-state i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bcb4a9;
}

.is-complete .module-state { color: var(--green); }
.is-complete .module-state i { background: var(--green); box-shadow: 0 0 0 3px rgba(63, 117, 84, 0.13); }

.module-card h3 {
  position: relative;
  z-index: 1;
  margin: 22px 0 8px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.module-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.topic-preview {
  margin: auto 0 18px;
  padding-top: 19px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.topic-preview span {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.52);
  color: #685f56;
  font-family: var(--mono);
  font-size: 9px;
}

.module-footer {
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.module-footer span:first-child { color: var(--muted); }
.module-footer span:last-child { color: var(--card-accent, var(--orange)); font-weight: 800; }

.empty-state {
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: #faf7f1;
}

.empty-state > span {
  display: block;
  color: var(--orange);
  font-size: 40px;
}

.empty-state h3 {
  margin: 8px 0;
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
}

.empty-state p { margin: 0 0 18px; color: var(--muted); font-size: 12px; }
.empty-state button { border: 0; color: var(--blue); background: transparent; font-size: 11px; font-weight: 800; cursor: pointer; }

.how-it-works {
  padding: 100px max(24px, calc((100% - 1180px) / 2));
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: center;
  gap: 80px;
  color: #f6efe4;
  background: var(--blue-deep);
}

.eyebrow.light { color: #f1aa7e; }
.how-copy h2 { color: white; }
.how-copy em { color: #ef9c72; }
.how-copy > p:last-child { max-width: 370px; margin: 25px 0 0; color: #aabbd4; font-size: 13px; line-height: 1.7; }

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.steps::before {
  position: absolute;
  top: 38px;
  right: 10%;
  left: 10%;
  height: 1px;
  border-top: 1px dashed rgba(255, 255, 255, 0.2);
  content: "";
}

.steps article {
  position: relative;
  min-height: 260px;
  padding: 24px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 6px 0 rgba(9, 25, 49, 0.45);
  backdrop-filter: blur(8px);
}

.steps article:nth-child(2) { transform: translateY(18px); }
.steps article:nth-child(3) { transform: translateY(36px); }

.step-number {
  position: absolute;
  top: 17px;
  right: 17px;
  color: rgba(255, 255, 255, 0.34);
  font-family: var(--mono);
  font-size: 9px;
}

.step-icon {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  color: #163567;
  border-radius: 13px;
  background: #efb761;
  box-shadow: 0 5px 0 #bc7938;
  font-size: 21px;
}

.steps article:nth-child(2) .step-icon { color: white; background: #df6745; box-shadow: 0 5px 0 #a3402b; }
.steps article:nth-child(3) .step-icon { color: white; background: #4f8f6a; box-shadow: 0 5px 0 #2d5d43; }

.steps h3 {
  margin: 31px 0 12px;
  font-family: var(--display);
  font-size: 23px;
  font-weight: 400;
}

.steps p { margin: 0; color: #aebed5; font-size: 10px; line-height: 1.65; }

footer {
  min-height: 130px;
  padding: 40px max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  background: #eee5d8;
  font-size: 10px;
}

.footer-brand { color: var(--ink); }
.footer-brand .brand-logo { width: 54px; height: 54px; }
.footer-copy { max-width: 440px; }
.footer-copy p { margin: 0 0 5px; color: var(--ink); font-weight: 700; }
.footer-copy small { display: block; font-size: 7px; line-height: 1.5; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.footer-links a { color: var(--blue); font-weight: 800; text-decoration: none; }

.lesson-dialog {
  width: min(800px, calc(100% - 28px));
  max-width: calc(100vw - 28px);
  height: min(780px, calc(100vh - 28px));
  height: min(780px, calc(100dvh - 28px));
  max-height: min(780px, calc(100vh - 28px));
  padding: 0;
  overflow: clip;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 35px 90px rgba(26, 20, 16, 0.38);
}

.lesson-dialog::backdrop {
  background: rgba(25, 25, 24, 0.68);
  backdrop-filter: blur(6px);
}

.lesson-dialog[open] { animation: dialogIn 220ms cubic-bezier(.2,.8,.2,1); }

.dialog-shell {
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 175px 1fr;
  overflow: clip;
}

.dialog-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
}

.dialog-sidebar {
  position: relative;
  padding: 42px 27px;
  overflow: hidden;
  color: white;
  background: var(--blue-deep);
}

.dialog-sidebar::after {
  position: absolute;
  right: -80px;
  bottom: -60px;
  width: 190px;
  height: 190px;
  border: 30px solid rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  content: "";
}

.dialog-index {
  display: block;
  font-family: var(--display);
  font-size: 62px;
  line-height: 1;
}

.dialog-stage {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  color: #dbe5f2;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.dialog-side-line {
  width: 1px;
  height: 210px;
  margin: 28px 0 15px 13px;
  background: linear-gradient(#ef9c72, rgba(255,255,255,0.05));
}

.dialog-sidebar p {
  margin: 0;
  color: #97adca;
  font-family: var(--mono);
  font-size: 8px;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.dialog-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 48px 52px 45px;
  overflow-x: clip;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--orange) var(--cream-deep);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  touch-action: pan-y;
}

.dialog-content::-webkit-scrollbar {
  width: 10px;
}

.dialog-content::-webkit-scrollbar-track {
  background: var(--cream-deep);
}

.dialog-content::-webkit-scrollbar-thumb {
  border: 2px solid var(--cream-deep);
  border-radius: 99px;
  background: var(--orange);
}

.dialog-content::-webkit-scrollbar-thumb:hover {
  background: var(--orange-dark);
}

.dialog-content h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 43px;
  font-weight: 400;
  letter-spacing: -1px;
}

.dialog-description {
  margin: 13px 0 28px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.module-history-card {
  margin: -2px 0 28px;
  padding: 22px;
  border: 1px solid #bed0e8;
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(36, 88, 166, .12), transparent 34%),
    linear-gradient(145deg, #f7faff, #eef4fb);
}

.module-history-heading > span {
  color: var(--blue);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.module-history-heading h3 {
  margin: 7px 0 6px;
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
}

.module-history-heading p {
  margin: 0;
  color: #5f6f82;
  font-size: 12px;
  line-height: 1.6;
}

.module-history-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.module-history-timeline li {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(36, 88, 166, .14);
  border-radius: 11px;
  background: rgba(255, 255, 255, .72);
}

.module-history-timeline time,
.module-history-timeline strong,
.module-history-timeline span {
  display: block;
}

.module-history-timeline time {
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
}

.module-history-timeline strong {
  margin-top: 5px;
  color: var(--blue-deep);
  font-size: 11px;
  line-height: 1.35;
}

.module-history-timeline span {
  margin-top: 5px;
  color: #66758a;
  font-size: 10px;
  line-height: 1.45;
}

.module-history-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
  padding-top: 13px;
  border-top: 1px solid rgba(36, 88, 166, .14);
}

.module-history-flow span {
  flex: 0 0 auto;
  color: var(--blue);
  font-family: var(--mono);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.module-history-flow code {
  min-width: 0;
  color: #294d78;
  font-family: var(--mono);
  font-size: 9px;
  overflow-wrap: anywhere;
}

.dialog-block {
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.dialog-block-heading {
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dialog-block-heading span {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--orange);
  border-radius: 7px;
  background: rgba(230, 94, 57, 0.1);
  font-family: var(--mono);
  font-size: 9px;
}

.dialog-block h3 { margin: 0; font-size: 14px; }

.concept-hint {
  margin: -3px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.concept-list {
  display: grid;
  gap: 8px;
}

.concept-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #faf7f1;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.concept-item[open] {
  border-color: rgba(36, 88, 166, 0.28);
  background: white;
  box-shadow: 0 7px 18px rgba(39, 52, 69, 0.07);
}

.concept-item summary {
  padding: 12px 13px;
  display: grid;
  grid-template-columns: 28px 1fr 25px;
  align-items: start;
  gap: 10px;
  list-style: none;
  cursor: pointer;
}

.concept-item summary::-webkit-details-marker {
  display: none;
}

.concept-index {
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  color: var(--blue);
  border-radius: 7px;
  background: rgba(36, 88, 166, 0.08);
  font-family: var(--mono);
  font-size: 9px;
}

.concept-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.concept-copy strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.concept-copy small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.concept-chevron {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: var(--blue);
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  font-family: var(--mono);
  font-size: 14px;
  transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.concept-item[open] .concept-chevron {
  color: white;
  background: var(--blue);
  transform: rotate(45deg);
}

.concept-example {
  margin: 0 13px 13px 51px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.concept-example > span {
  display: block;
  margin-bottom: 7px;
  color: var(--orange-dark);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.concept-snippet-grid {
  display: grid;
  gap: 7px;
}

.concept-snippet {
  overflow: hidden;
  border-radius: 8px;
  background: #292723;
}

.concept-snippet > strong {
  display: block;
  padding: 7px 12px;
  color: #f0c76b;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}

.snippet-comment {
  margin: 0;
  padding: 10px 12px 0;
  color: #9fca9c;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.55;
}

.snippet-comment span {
  color: #6e9f76;
  font-weight: 500;
}

.concept-snippet pre {
  margin: 0;
  padding: 9px 12px 12px;
  overflow-x: auto;
  color: #e7e1d9;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
}

.challenge-block p {
  margin: 0;
  padding: 15px 17px;
  color: #566b86;
  border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0;
  background: rgba(36, 88, 166, 0.06);
  font-size: 10px;
  line-height: 1.65;
}

.ai-guide-block {
  --ai-color: var(--blue);
}

.ai-guide-block .dialog-block-heading {
  flex-wrap: wrap;
}

.ai-guide-label {
  margin-left: auto;
  padding: 5px 8px;
  color: var(--ai-color);
  border: 1px solid rgba(36, 88, 166, .18);
  border-radius: 999px;
  background: rgba(36, 88, 166, .06);
  font-family: var(--mono);
  font-size: 6.5px;
  font-weight: 700;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.ai-guide-status {
  min-height: 38px;
  margin-bottom: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #53657b;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8f5ef;
  font-size: 8px;
  line-height: 1.45;
}

.ai-guide-status i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #9aa4af;
  box-shadow: 0 0 0 4px rgba(154, 164, 175, .13);
}

.ai-guide-status.ready i { background: var(--green); box-shadow: 0 0 0 4px rgba(63, 117, 84, .13); }
.ai-guide-status.busy i { background: #d69b2d; animation: aiPulse 900ms ease-in-out infinite alternate; }
.ai-guide-status.error i { background: #c94a35; box-shadow: 0 0 0 4px rgba(201, 74, 53, .12); }

.ai-guide-status span { flex: 1; }
.ai-guide-status button {
  padding: 5px 8px;
  color: var(--ai-color);
  border: 1px solid rgba(36, 88, 166, .2);
  border-radius: 7px;
  background: white;
  font-size: 7.5px;
  font-weight: 800;
  cursor: pointer;
}

.ai-guide-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.ai-guide-actions button,
.ai-question-form button {
  min-height: 34px;
  padding: 8px 9px;
  color: #173b70;
  border: 1px solid #bad0ee;
  border-radius: 8px;
  background: #edf4ff;
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

.ai-guide-actions button:hover:not(:disabled),
.ai-guide-actions button:focus-visible,
.ai-question-form button:hover:not(:disabled),
.ai-question-form button:focus-visible {
  transform: translateY(-1px);
  border-color: #719bd1;
  background: white;
}

.ai-guide-actions button:disabled,
.ai-question-form button:disabled,
.ai-question-form input:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.ai-question-form {
  margin-top: 10px;
}

.ai-question-form label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 7.5px;
  font-weight: 700;
}

.ai-question-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.ai-question-form input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 8px 10px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: white;
  font-size: 8.5px;
}

.ai-question-form input:focus { border-color: #719bd1; box-shadow: 0 0 0 3px rgba(36, 88, 166, .08); }

.ai-guide-answer {
  margin-top: 11px;
  overflow: hidden;
  border: 1px solid rgba(36, 88, 166, .22);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 7px 18px rgba(39, 52, 69, .06);
}

.ai-guide-answer > div {
  padding: 8px 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #173b70;
  border-bottom: 1px solid var(--line);
  background: #edf4ff;
  font-size: 8px;
}

.ai-guide-answer small { color: #64748b; font-size: 6.5px; }
.ai-guide-answer pre {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
  color: #354254;
  font-family: var(--sans);
  font-size: 8.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ai-privacy-note {
  margin: 9px 0 0;
  color: #7a8088;
  font-size: 6.8px;
  line-height: 1.5;
}

html[data-course="docker"] .ai-guide-block { --ai-color: #1684c2; }
html[data-course="python"] .ai-guide-block { --ai-color: #3776ab; }
html[data-course="sql"] .ai-guide-block { --ai-color: #2f7d64; }
html[data-course="generative-ai"] .ai-guide-block { --ai-color: #7358ca; }
html[data-course="rag"] .ai-guide-block { --ai-color: #2e8f81; }
html[data-course="agentic-ai"] .ai-guide-block { --ai-color: #d75d48; }

@keyframes aiPulse { to { transform: scale(1.18); opacity: .65; } }

.official-doc-link {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .18rem 1rem;
  align-items: center;
  margin: 1rem 0 1.25rem;
  padding: 1rem 1.15rem;
  color: #173b70;
  text-decoration: none;
  background: #edf4ff;
  border: 1px solid #bad0ee;
  border-radius: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.official-doc-link:hover,
.official-doc-link:focus-visible {
  transform: translateY(-2px);
  border-color: #719bd1;
  box-shadow: 0 10px 24px rgba(28, 72, 127, .12);
}

.official-doc-link > span { font-weight: 800; }
.official-doc-link small { grid-column: 1; color: #64748b; }
.official-doc-link b { grid-column: 2; grid-row: 1 / span 2; font-size: 1.3rem; }

html[data-course="docker"] .official-doc-link {
  color: #075985;
  background: #ecf9ff;
  border-color: #a7dbee;
}

html[data-course="docker"] .hero-copy .eyebrow,
html[data-course="docker"] .hero h1 em {
  color: #1684c2;
}

html[data-course="docker"] .hero h1 em::after {
  background-image: url("data:image/svg+xml,%3Csvg width='250' height='10' viewBox='0 0 250 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 7c40-8 72 2 115-2 46-5 84 2 131-3' fill='none' stroke='%231684c2' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

html[data-course="docker"] .button-primary {
  background: #1684c2;
  box-shadow: 0 6px 0 #0b5f91, 0 14px 24px rgba(10, 100, 151, .22);
}

html[data-course="docker"] .button-primary:active { box-shadow: 0 2px 0 #0b5f91; }
html[data-course="docker"] .cup-body { background: linear-gradient(135deg, #32a9e8, #0e6fa8); border-color: #095c8d; }
html[data-course="docker"] .cup-body::before { border-color: #095c8d; background: #17465f; }
html[data-course="docker"] .cup-handle { border-color: #0e75af; border-left: 0; }
html[data-course="docker"] .dialog-content::-webkit-scrollbar-thumb { background: #1684c2; }
html[data-course="docker"] .dialog-content::-webkit-scrollbar-thumb:hover { background: #0b5f91; }

html[data-course="python"] .official-doc-link {
  color: #1f4e73;
  background: #eef7ff;
  border-color: #a9cce5;
}

html[data-course="python"] .hero-copy .eyebrow,
html[data-course="python"] .hero h1 em {
  color: #3776ab;
}

html[data-course="python"] .hero h1 em::after {
  background-image: url("data:image/svg+xml,%3Csvg width='250' height='10' viewBox='0 0 250 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 7c40-8 72 2 115-2 46-5 84 2 131-3' fill='none' stroke='%233776ab' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

html[data-course="python"] .button-primary {
  background: #3776ab;
  box-shadow: 0 6px 0 #24527a, 0 14px 24px rgba(37, 90, 130, .22);
}

html[data-course="python"] .button-primary:active { box-shadow: 0 2px 0 #24527a; }
html[data-course="python"] .cup-body { background: linear-gradient(135deg, #4c96c8, #2b668f); border-color: #24527a; }
html[data-course="python"] .cup-body::before { border-color: #d0a81d; background: #ffd343; }
html[data-course="python"] .cup-handle { border-color: #3776ab; border-left: 0; }
html[data-course="python"] .dialog-content::-webkit-scrollbar-thumb { background: #3776ab; }
html[data-course="python"] .dialog-content::-webkit-scrollbar-thumb:hover { background: #24527a; }

html[data-course="sql"] .official-doc-link {
  color: #185443;
  background: #edf8f4;
  border-color: #a9d7c8;
}

html[data-course="sql"] .hero-copy .eyebrow,
html[data-course="sql"] .hero h1 em {
  color: #2f7d64;
}

html[data-course="sql"] .hero h1 em::after {
  background-image: url("data:image/svg+xml,%3Csvg width='250' height='10' viewBox='0 0 250 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 7c40-8 72 2 115-2 46-5 84 2 131-3' fill='none' stroke='%232f7d64' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}

html[data-course="sql"] .button-primary {
  background: #2f7d64;
  box-shadow: 0 6px 0 #185443, 0 14px 24px rgba(31, 100, 79, .22);
}

html[data-course="sql"] .button-primary:active { box-shadow: 0 2px 0 #185443; }
html[data-course="sql"] .cup-body { background: linear-gradient(135deg, #49a487, #246950); border-color: #185443; }
html[data-course="sql"] .cup-body::before { border-color: #185443; background: #173f34; }
html[data-course="sql"] .cup-body span { font: 700 25px var(--mono); letter-spacing: -.08em; }
html[data-course="sql"] .cup-handle { border-color: #246950; border-left: 0; }
html[data-course="sql"] .dialog-content::-webkit-scrollbar-thumb { background: #2f7d64; }
html[data-course="sql"] .dialog-content::-webkit-scrollbar-thumb:hover { background: #185443; }

html[data-course="generative-ai"] .official-doc-link,
html[data-course="rag"] .official-doc-link,
html[data-course="agentic-ai"] .official-doc-link {
  color: #49347f;
  background: #f2edff;
  border-color: #cfc1f2;
}

html[data-course="generative-ai"] .hero-copy .eyebrow,
html[data-course="generative-ai"] .hero h1 em { color: #7358ca; }
html[data-course="generative-ai"] .hero h1 em::after {
  background-image: url("data:image/svg+xml,%3Csvg width='250' height='10' viewBox='0 0 250 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 7c40-8 72 2 115-2 46-5 84 2 131-3' fill='none' stroke='%237358ca' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
html[data-course="generative-ai"] .button-primary { background: #7358ca; box-shadow: 0 6px 0 #4d358f, 0 14px 24px rgba(78, 54, 145, .22); }
html[data-course="generative-ai"] .button-primary:active { box-shadow: 0 2px 0 #4d358f; }
html[data-course="generative-ai"] .cup-body { background: linear-gradient(135deg, #947be0, #6344b8); border-color: #4d358f; }
html[data-course="generative-ai"] .cup-body::before { border-color: #4d358f; background: #312652; }
html[data-course="generative-ai"] .cup-handle { border-color: #6344b8; border-left: 0; }
html[data-course="generative-ai"] .dialog-content::-webkit-scrollbar-thumb { background: #7358ca; }

html[data-course="rag"] .official-doc-link { color: #17675c; background: #ebfaf6; border-color: #a9ddd2; }
html[data-course="rag"] .hero-copy .eyebrow,
html[data-course="rag"] .hero h1 em { color: #2e8f81; }
html[data-course="rag"] .hero h1 em::after {
  background-image: url("data:image/svg+xml,%3Csvg width='250' height='10' viewBox='0 0 250 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 7c40-8 72 2 115-2 46-5 84 2 131-3' fill='none' stroke='%232e8f81' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
html[data-course="rag"] .button-primary { background: #2e8f81; box-shadow: 0 6px 0 #19665c, 0 14px 24px rgba(34, 117, 105, .22); }
html[data-course="rag"] .button-primary:active { box-shadow: 0 2px 0 #19665c; }
html[data-course="rag"] .cup-body { background: linear-gradient(135deg, #50b6a7, #237b6f); border-color: #19665c; }
html[data-course="rag"] .cup-body::before { border-color: #19665c; background: #17483f; }
html[data-course="rag"] .cup-handle { border-color: #237b6f; border-left: 0; }
html[data-course="rag"] .dialog-content::-webkit-scrollbar-thumb { background: #2e8f81; }

html[data-course="agentic-ai"] .official-doc-link { color: #8a3025; background: #fff1ed; border-color: #efb9ae; }
html[data-course="agentic-ai"] .hero-copy .eyebrow,
html[data-course="agentic-ai"] .hero h1 em { color: #d75d48; }
html[data-course="agentic-ai"] .hero h1 em::after {
  background-image: url("data:image/svg+xml,%3Csvg width='250' height='10' viewBox='0 0 250 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 7c40-8 72 2 115-2 46-5 84 2 131-3' fill='none' stroke='%23d75d48' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E");
}
html[data-course="agentic-ai"] .button-primary { background: #d75d48; box-shadow: 0 6px 0 #9f3c30, 0 14px 24px rgba(170, 66, 51, .22); }
html[data-course="agentic-ai"] .button-primary:active { box-shadow: 0 2px 0 #9f3c30; }
html[data-course="agentic-ai"] .cup-body { background: linear-gradient(135deg, #e8836f, #bd4838); border-color: #9f3c30; }
html[data-course="agentic-ai"] .cup-body::before { border-color: #9f3c30; background: #5b2b27; }
html[data-course="agentic-ai"] .cup-handle { border-color: #bd4838; border-left: 0; }
html[data-course="agentic-ai"] .dialog-content::-webkit-scrollbar-thumb { background: #d75d48; }

.complete-button { width: 100%; margin-top: 12px; }
.complete-button.completed { background: var(--green); box-shadow: 0 6px 0 #28563b, 0 14px 24px rgba(42, 94, 62, 0.2); }

.auth-dialog {
  width: min(760px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 35px 90px rgba(26, 20, 16, 0.4);
}

.auth-dialog::backdrop {
  background: rgba(25, 25, 24, 0.72);
  backdrop-filter: blur(7px);
}

.auth-dialog[open] {
  animation: dialogIn 220ms cubic-bezier(.2,.8,.2,1);
}

.auth-shell {
  min-height: 570px;
  display: grid;
  grid-template-columns: 245px 1fr;
}

.auth-visual {
  position: relative;
  padding: 43px 32px;
  overflow: hidden;
  color: white;
  background: var(--blue-deep);
}

.auth-visual::before,
.auth-visual::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.auth-visual::before {
  width: 250px;
  height: 250px;
  right: -150px;
  top: -70px;
}

.auth-visual::after {
  width: 190px;
  height: 190px;
  left: -115px;
  bottom: -65px;
  border-width: 28px;
}

.auth-brand-mark {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid #9d341f;
  border-radius: 16px;
  background: var(--orange);
  box-shadow: 0 6px 0 #a83c26;
  font-family: var(--display);
  font-size: 29px;
  transform: rotate(-4deg);
}

.auth-visual > p {
  margin: 48px 0 0;
  font-family: var(--display);
  font-size: 31px;
  line-height: 1.1;
}

.auth-code-card {
  position: absolute;
  right: 25px;
  bottom: 70px;
  left: 25px;
  padding: 17px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 8px 0 rgba(5, 17, 35, 0.22);
  font-family: var(--mono);
  font-size: 9px;
}

.auth-code-card span {
  color: #f3c46c;
}

.auth-code-card i {
  display: block;
  height: 4px;
  margin-top: 10px;
  border-radius: 99px;
  background: rgba(255,255,255,.15);
}

.auth-code-card i:nth-child(2) { width: 78%; }
.auth-code-card i:nth-child(3) { width: 55%; }
.auth-code-card i:nth-child(4) { width: 68%; }

.auth-content {
  position: relative;
  padding: 45px 50px 38px;
}

.auth-content h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 40px;
  font-weight: 400;
  letter-spacing: -1px;
}

.auth-subtitle {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.65;
}

.auth-tabs {
  padding: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f6f1e9;
}

.auth-tabs button {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  cursor: pointer;
}

.auth-tabs button.active {
  color: white;
  background: var(--ink);
  box-shadow: 0 3px 0 #090807;
}

.auth-form {
  margin-top: 20px;
  display: grid;
  gap: 13px;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label > span {
  font-size: 8px;
  font-weight: 800;
}

.auth-form input {
  width: 100%;
  height: 43px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: 0;
  background: #faf7f1;
  font-size: 10px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.auth-form input:focus {
  border-color: rgba(36, 88, 166, 0.55);
  box-shadow: 0 0 0 4px rgba(36, 88, 166, 0.08);
}

.auth-error {
  margin: 0;
  padding: 10px 12px;
  color: #9f3825;
  border-left: 3px solid var(--orange);
  border-radius: 0 7px 7px 0;
  background: rgba(230, 94, 57, 0.08);
  font-size: 8px;
  line-height: 1.45;
}

.auth-submit {
  width: 100%;
  margin-top: 4px;
}

.auth-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.auth-switch {
  margin: 21px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 9px;
}

.auth-switch button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 800;
  cursor: pointer;
}

.auth-privacy {
  margin: 18px 0 0;
  padding-top: 15px;
  color: #999187;
  border-top: 1px solid var(--line);
  font-size: 7.5px;
  line-height: 1.55;
  text-align: center;
}

.auth-privacy a { color: var(--blue); font-weight: 800; }

.account-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 22px;
  background: var(--paper);
  box-shadow: 0 38px 100px rgba(20, 25, 36, .46);
}

.account-dialog::backdrop { background: rgba(17, 22, 30, .72); backdrop-filter: blur(7px); }
.account-dialog[open] { animation: dialogIn 240ms cubic-bezier(.2,.8,.2,1); }

.account-shell { position: relative; padding: clamp(31px, 6vw, 52px); }
.account-shell > .dialog-close { top: 18px; right: 18px; color: var(--ink); background: var(--cream); }
.account-shell > h2 { margin: 12px 0 8px; font-family: var(--display); font-size: clamp(38px, 7vw, 54px); font-weight: 400; }
.account-shell > p:not(.eyebrow) { margin: 0; color: var(--muted); font-size: 10px; }

.account-form,
.account-policy-links,
.danger-zone { margin-top: 30px; padding-top: 25px; border-top: 1px solid var(--line); }
.account-form > label,
.danger-zone label { display: block; margin: 0 0 7px; font-size: 8px; font-weight: 800; text-transform: uppercase; letter-spacing: .7px; }
.account-inline-field { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.account-inline-field input,
.danger-zone input { width: 100%; min-height: 44px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; outline: 0; background: #faf7f1; font-size: 10px; }
.account-inline-field input:focus,
.danger-zone input:focus { border-color: rgba(36, 88, 166, .55); box-shadow: 0 0 0 4px rgba(36, 88, 166, .08); }
.account-inline-field button { padding: 0 18px; border: 0; border-radius: 9px; color: white; background: var(--blue); font-size: 9px; font-weight: 800; cursor: pointer; }
.account-message { margin: 10px 0 0; color: var(--green); font-size: 8px; }
.account-message.error { color: #a33124; }

.account-policy-links h3,
.danger-zone h3 { margin: 0 0 7px; font-family: var(--display); font-size: 23px; font-weight: 400; }
.account-policy-links p,
.danger-zone p { margin: 0; color: var(--muted); font-size: 9px; line-height: 1.6; }
.account-policy-links div { margin-top: 13px; display: flex; gap: 16px; }
.account-policy-links a { color: var(--blue); font-size: 8px; font-weight: 800; }
.danger-zone { border-color: rgba(201, 66, 44, .3); }
.danger-zone h3 { color: #a33124; }
.danger-zone form { margin-top: 17px; display: grid; gap: 8px; }
.danger-zone label:not(:first-child) { margin-top: 7px; }
.delete-account-button { min-height: 44px; margin-top: 8px; border: 1px solid #a33124; border-radius: 9px; color: white; background: #a33124; font-size: 9px; font-weight: 800; cursor: pointer; }
.account-form button:disabled,
.delete-account-button:disabled { opacity: .6; cursor: wait; }

.achievement-dialog {
  width: min(900px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  background: var(--paper);
  box-shadow: 0 38px 100px rgba(20, 25, 36, 0.46);
}

.achievement-dialog::backdrop {
  background: rgba(17, 22, 30, 0.77);
  backdrop-filter: blur(8px);
}

.achievement-dialog[open] { animation: dialogIn 280ms cubic-bezier(.2,.8,.2,1); }

.achievement-shell {
  position: relative;
  min-height: 600px;
  display: grid;
  grid-template-columns: 0.93fr 1.07fr;
  overflow: hidden;
  background:
    radial-gradient(circle at 13% 15%, rgba(235, 92, 56, 0.13), transparent 32%),
    var(--paper);
}

.achievement-close {
  color: white;
  border-color: rgba(255,255,255,.18);
  background: rgba(15, 46, 90, 0.8);
}

.achievement-copy {
  position: relative;
  z-index: 2;
  padding: 53px 42px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.achievement-medal {
  position: relative;
  width: 77px;
  height: 77px;
  margin-bottom: 35px;
  display: grid;
  place-items: center;
  align-content: center;
  color: white;
  border: 7px double #f6d384;
  border-radius: 50%;
  background: var(--blue-deep);
  box-shadow: 0 9px 0 rgba(15, 46, 90, .16), 0 18px 35px rgba(15, 46, 90, .16);
  transform: rotate(-4deg);
}

.achievement-medal::before,
.achievement-medal::after {
  position: absolute;
  top: 57px;
  z-index: -1;
  width: 23px;
  height: 42px;
  background: var(--orange);
  content: "";
}

.achievement-medal::before { left: 13px; transform: rotate(12deg); }
.achievement-medal::after { right: 13px; transform: rotate(-12deg); }
.achievement-medal span { font-family: var(--display); font-size: 30px; line-height: 1; }
.achievement-medal small { color: #f6d384; font-family: var(--mono); font-size: 6px; letter-spacing: .7px; }

.achievement-copy h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 57px;
  font-weight: 400;
  line-height: .98;
  letter-spacing: -2px;
}

.achievement-copy h2 em { color: var(--orange); font-weight: 400; }

.achievement-copy > p:not(.eyebrow) {
  margin: 23px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.achievement-copy > p strong { color: var(--ink); }

.achievement-stats {
  margin-top: 31px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.achievement-stats > span { display: grid; gap: 3px; }
.achievement-stats > span + span { padding-left: 16px; border-left: 1px solid var(--line); }
.achievement-stats strong { font-family: var(--display); font-size: 23px; font-weight: 400; }
.achievement-stats small { color: var(--muted); font-size: 7px; }

.certificate-preview-card {
  position: relative;
  z-index: 2;
  margin: 36px 36px 36px 0;
  padding: 35px 35px 27px;
  overflow: hidden;
  color: white;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(235, 92, 56, .22), transparent 31%),
    linear-gradient(145deg, #17417a, #0f2e5a 68%);
  box-shadow: 0 24px 55px rgba(15, 46, 90, .28), 0 8px 0 #0a2448;
}

.certificate-preview-card::before {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(246, 211, 132, .3);
  border-radius: 13px;
  content: "";
  pointer-events: none;
}

.certificate-preview-card::after {
  position: absolute;
  right: -100px;
  bottom: -100px;
  width: 250px;
  height: 250px;
  border: 38px solid rgba(255,255,255,.035);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.preview-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #b9c9dd;
  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.preview-topline i {
  padding: 5px 7px;
  color: #dcebdd;
  border: 1px solid rgba(102, 172, 122, .4);
  border-radius: 999px;
  background: rgba(63, 117, 84, .25);
  font-style: normal;
  font-size: 6px;
}

.certificate-preview-card > p:not(.certificate-public-note) {
  position: relative;
  z-index: 1;
  margin: 52px 0 18px;
  font-family: var(--display);
  font-size: 35px;
  line-height: 1.02;
}

.certificate-preview-card > strong {
  position: relative;
  z-index: 1;
  padding-bottom: 5px;
  display: inline-block;
  color: #f6d384;
  border-bottom: 1px solid rgba(246, 211, 132, .45);
  font-family: var(--display);
  font-size: 23px;
  font-weight: 400;
}

.preview-credential {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  display: grid;
  gap: 4px;
}

.preview-credential span { color: #91a7c4; font-family: var(--mono); font-size: 6px; letter-spacing: .8px; text-transform: uppercase; }
.preview-credential code { color: #dce5f0; font-family: var(--mono); font-size: 8px; }

.certificate-name-control {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  display: grid;
  gap: 7px;
}

.certificate-name-control > span { color: #aabbd0; font-family: var(--mono); font-size: 6px; letter-spacing: .7px; text-transform: uppercase; }
.certificate-name-control input { width: 100%; min-height: 40px; padding: 0 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; outline: 0; color: white; background: rgba(255,255,255,.08); font-size: 10px; }
.certificate-name-control input:focus { border-color: #f6d384; box-shadow: 0 0 0 3px rgba(246,211,132,.12); }

.certificate-claim-panel,
.certificate-published-panel { position: relative; z-index: 1; margin-top: 22px; }
.certificate-consent { display: grid; grid-template-columns: auto 1fr; align-items: flex-start; gap: 9px; color: #d5dfeb; font-size: 7px; line-height: 1.5; cursor: pointer; }
.certificate-consent input { width: 15px; height: 15px; margin: 1px 0 0; accent-color: var(--orange); }
.certificate-claim-panel > p { margin: 10px 0 0; color: #9db0c9; font-size: 6.5px; line-height: 1.5; }
.certificate-claim-panel a { color: #f6d384; font-weight: 800; }
.certificate-claim-button { width: 100%; min-height: 44px; margin-top: 14px; border: 0; border-radius: 9px; color: white; background: var(--orange); box-shadow: 0 5px 0 #b63f24; font-size: 9px; font-weight: 800; cursor: pointer; }
.certificate-claim-button:disabled { opacity: .6; cursor: wait; }
.certificate-claim-panel .certificate-error { padding: 8px 10px; color: #ffd6ca; border-left: 3px solid #ff8061; background: rgba(180,43,25,.25); }

.certificate-actions {
  position: relative;
  z-index: 1;
  margin-top: 31px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.certificate-actions .button { grid-column: 1 / -1; width: 100%; }

.certificate-actions .linkedin-share,
.certificate-actions button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 9px;
  color: white;
  background: rgba(255,255,255,.07);
  font-size: 8px;
  font-weight: 800;
  cursor: pointer;
}

.certificate-actions .linkedin-share { border-color: #4c96df; background: #0a66c2; }
.certificate-actions .linkedin-share > span { width: 18px; height: 18px; display: grid; place-items: center; border-radius: 3px; background: white; color: #0a66c2; font-size: 8px; }
.certificate-actions .certificate-unpublish-button { grid-column: 1 / -1; color: #ffd0c7; border-color: rgba(255,128,97,.45); background: rgba(180,43,25,.18); }

.certificate-public-note {
  position: relative;
  z-index: 1;
  margin: 18px 0 0;
  color: #9db0c9;
  font-size: 7px;
  line-height: 1.5;
  text-align: center;
}

.certificate-public-note span { color: #81ba91; }

.confetti {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.confetti i {
  position: absolute;
  top: -20px;
  width: 7px;
  height: 14px;
  border-radius: 2px;
  background: var(--orange);
  animation: confettiFall 2.8s ease-in both;
}

.confetti i:nth-child(1) { left: 5%; animation-delay: .1s; }
.confetti i:nth-child(2) { left: 13%; background: var(--blue); animation-delay: .45s; transform: rotate(30deg); }
.confetti i:nth-child(3) { left: 22%; background: var(--yellow); animation-delay: .2s; }
.confetti i:nth-child(4) { left: 31%; background: var(--green); animation-delay: .72s; }
.confetti i:nth-child(5) { left: 40%; animation-delay: .36s; }
.confetti i:nth-child(6) { left: 49%; background: var(--yellow); animation-delay: .04s; }
.confetti i:nth-child(7) { left: 58%; background: var(--blue); animation-delay: .6s; }
.confetti i:nth-child(8) { left: 67%; background: var(--green); animation-delay: .26s; }
.confetti i:nth-child(9) { left: 75%; background: var(--yellow); animation-delay: .82s; }
.confetti i:nth-child(10) { left: 83%; animation-delay: .18s; }
.confetti i:nth-child(11) { left: 91%; background: var(--blue); animation-delay: .5s; }
.confetti i:nth-child(12) { left: 96%; background: var(--green); animation-delay: .68s; }

@keyframes confettiFall {
  0% { opacity: 0; transform: translateY(-20px) rotate(0); }
  10% { opacity: 1; }
  100% { opacity: 0; transform: translateY(650px) rotate(520deg); }
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  min-width: 260px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 13px;
  background: #253d2d;
  box-shadow: 0 18px 50px rgba(19, 31, 23, 0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.show { opacity: 1; transform: translateY(0); }
.toast > span { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; background: rgba(255,255,255,0.12); }
.toast div { display: grid; }
.toast strong { font-size: 10px; }
.toast small { margin-top: 2px; color: #a9c2b0; font-size: 8px; }

@keyframes cardFloat {
  0%, 100% { transform: rotateY(8deg) rotateZ(-4deg) translateY(0); }
  50% { transform: rotateY(5deg) rotateZ(-3deg) translateY(-8px); }
}

@keyframes cupFloat {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-7px); }
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { width: min(560px, 100%); margin: -5px auto 0; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { align-items: stretch; flex-direction: column; }
  .search-box { width: 100%; }
  .filter-group { align-self: flex-start; flex-wrap: wrap; }
  .how-it-works { grid-template-columns: 1fr; gap: 50px; }
  .how-copy { max-width: 560px; }
}

@media (max-width: 700px) {
  .ambient-one {
    width: 280px;
    height: 280px;
    right: 0;
  }
  .ambient-two {
    width: 240px;
    height: 240px;
    left: 0;
  }
  .site-header { width: min(100% - 30px, 1180px); min-height: 74px; gap: 8px; }
  .site-header .brand-logo { width: 52px; height: 52px; }
  .main-nav { display: none; }
  .header-actions { gap: 5px; }
  .progress-pill { padding-right: 8px; }
  .progress-pill > span:last-child { display: none; }
  .auth-trigger { padding-right: 8px; }
  .auth-trigger > span:last-child { display: none; }
  .hero { width: min(100% - 30px, 1180px); min-height: auto; gap: 30px; padding: 50px 0 66px; }
  .hero h1 { font-size: clamp(48px, 15.5vw, 72px); letter-spacing: -2.8px; }
  html[data-course="python"] .hero h1 { font-size: clamp(43px, 13.5vw, 58px); letter-spacing: -2.2px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-proof { justify-content: space-between; gap: 10px; }
  .hero-proof div + div { padding-left: 12px; }
  .hero-visual { min-height: 390px; transform: scale(.88); transform-origin: top center; margin-bottom: -45px; }
  .lesson-card-3d { left: 3%; width: 340px; }
  .java-cup { right: -8px; transform: scale(.85) rotate(6deg); }
  .section-heading { align-items: stretch; flex-direction: column; }
  .section-progress { width: 100%; }
  .curriculum { padding-top: 72px; }
  .module-grid { grid-template-columns: 1fr; }
  .filter-group { width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .filter { white-space: nowrap; }
  .how-it-works { padding-top: 75px; padding-bottom: 90px; }
  .steps { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .steps article { min-height: 210px; }
  .steps article:nth-child(2), .steps article:nth-child(3) { transform: none; }
  footer { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .dialog-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .lesson-dialog {
    inset-inline: 0;
    width: calc(100vw - 28px);
    margin-inline: auto;
  }
  .dialog-sidebar { min-height: 100px; padding: 25px; }
  .dialog-index { font-size: 45px; }
  .dialog-stage { margin: 0 0 0 12px; vertical-align: middle; }
  .dialog-side-line, .dialog-sidebar p { display: none; }
  .dialog-content { padding: 34px 24px; }
  .dialog-content h2 { padding-right: 30px; font-size: 36px; }
  .module-history-card { padding: 18px; }
  .module-history-timeline { grid-template-columns: 1fr; }
  .module-history-flow { align-items: flex-start; flex-direction: column; gap: 5px; }
  .ai-guide-actions { grid-template-columns: 1fr; }
  .ai-guide-actions button { text-align: left; }
  .ai-question-form > div { grid-template-columns: 1fr; }
  .ai-question-form button { width: 100%; }
  .auth-dialog { overflow-y: auto; }
  .auth-shell { min-height: 0; grid-template-columns: 1fr; }
  .auth-visual { min-height: 120px; padding: 25px; }
  .auth-brand-mark { width: 43px; height: 43px; font-size: 23px; }
  .auth-visual > p { position: absolute; top: 27px; left: 87px; margin: 0; font-size: 23px; }
  .auth-code-card { display: none; }
  .auth-content { padding: 34px 24px 30px; }
  .auth-content h2 { padding-right: 30px; font-size: 35px; }
  .achievement-dialog { overflow-y: auto; }
  .achievement-shell { grid-template-columns: 1fr; }
  .achievement-copy { padding: 45px 28px 30px; }
  .achievement-medal { margin-bottom: 29px; }
  .achievement-copy h2 { font-size: 47px; }
  .certificate-preview-card { margin: 0 18px 25px; padding: 31px 27px 25px; }
  .certificate-preview-card > p:not(.certificate-public-note) { margin-top: 38px; font-size: 31px; }
  .account-inline-field { grid-template-columns: 1fr; }
  .account-inline-field button { min-height: 43px; }
}

@media (max-width: 430px) {
  .hero-visual { width: 113%; margin-left: -6.5%; transform: scale(.78); margin-bottom: -75px; }
  .hero-proof strong { font-size: 21px; }
  .hero-proof span { font-size: 8px; }
  .section-heading h2, .how-copy h2 { font-size: 40px; }
}

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