:root {
  --bg: #0b0b0e;
  --bg-elevated: #17171c;
  --bg-elevated-2: #1e1e25;
  --border: #2a2a33;
  --text: #f1f1f4;
  --text-muted: #9a9aa5;
  --text-faint: #6b6b76;
  --accent: #a78bfa;
  --accent-strong: #8b5cf6;
  --accent-text: #1a1025;
  --danger: #f87171;
  --success: #4ade80;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1180px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Geist Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

h1, h2, h3 { line-height: 1.25; margin: 0 0 12px 0; }

button { font-family: inherit; cursor: pointer; }

/* ---------- Layout shells ---------- */

.app-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 64px 24px;
}

.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 20%, #241a35 0%, transparent 45%),
    radial-gradient(circle at 80% 0%, #1a2436 0%, transparent 40%),
    var(--bg);
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(23, 23, 28, 0.92);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  backdrop-filter: blur(6px);
}

.auth-card__header { text-align: center; margin-bottom: 24px; }
.auth-card__back {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 16px;
  font-size: 14px;
}
.auth-card__back:hover { color: var(--text); }

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 13px;
  border-top: 1px solid var(--border);
}
.site-footer__links { display: flex; gap: 18px; }
.site-footer__links a { color: var(--text-faint); text-decoration: none; }
.site-footer__links a:hover { color: var(--text-muted); }

@media (max-width: 640px) {
  .site-footer { flex-direction: column; gap: 8px; text-align: center; }
}

/* ---------- Header ---------- */

.app-header {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}

.app-header__brand { display: flex; }

.app-header__search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 320px;
  margin: 0 auto;
  padding: 9px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-faint);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-align: left;
}
.app-header__search:hover { border-color: var(--accent); color: var(--text-muted); }

.search-modal { position: fixed; inset: 0; z-index: 100; }
.search-modal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.search-modal__panel {
  position: relative;
  max-width: 600px;
  margin: 10vh auto 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px -20px rgba(0, 0, 0, 0.6);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.search-modal__input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  color: var(--text-faint);
  flex-shrink: 0;
}
.search-modal__input-row input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 16px;
  font-family: inherit;
}
.search-modal__results { overflow-y: auto; padding: 8px; }
.search-modal__hint { padding: 20px; text-align: center; color: var(--text-faint); font-size: 14px; }

.search-result {
  display: block;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
}
.search-result:hover { background: var(--bg-elevated-2); }
.search-result__meta { font-size: 11px; text-transform: uppercase; color: var(--text-faint); margin-bottom: 4px; }
.search-result__title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.search-result__snippet { font-size: 13px; color: var(--text-muted); line-height: 1.5; }
.search-result__snippet mark { background: rgba(167, 139, 250, 0.35); color: var(--text); border-radius: 2px; }

@media (max-width: 640px) {
  .search-modal__panel { margin-top: 0; max-width: 100%; height: 100%; max-height: 100%; border-radius: 0; }
}

.app-header__kbd {
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 6px;
  font-size: 11px;
}

.app-header__account { position: relative; margin-left: auto; }

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 700;
  border: none;
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 38px; height: 38px; font-size: 15px; }
.avatar--brand { background: linear-gradient(135deg, var(--accent-strong), #6d28d9); }

.account-menu {
  position: absolute;
  right: 0;
  top: 48px;
  width: 220px;
  background: var(--bg-elevated-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  padding: 8px;
  z-index: 50;
}
.account-menu__email {
  padding: 8px 10px;
  font-size: 13px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  word-break: break-all;
}
.account-menu__item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  background: none;
  border: none;
}
.account-menu__item:hover { background: var(--bg-elevated); }
.account-menu__item--form { padding: 0; }
.account-menu__item--form button { width: 100%; text-align: left; padding: 9px 10px; color: var(--danger); background: none; border: none; font-size: 14px; }
.account-menu__item--form button:hover { background: var(--bg-elevated); }
.account-menu__item--danger { color: var(--danger); }

/* ---------- Breadcrumb ---------- */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}
.breadcrumb a { text-decoration: none; color: var(--text-muted); }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb__current { color: var(--text-muted); }

/* ---------- Forms ---------- */

label { display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
input[type=email], input[type=password], input[type=text] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ececf5;
  color: #111;
  font-size: 15px;
  margin-bottom: 16px;
}
input:focus { outline: 2px solid var(--accent); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  cursor: pointer;
}
.btn--primary { background: var(--accent); color: var(--accent-text); width: 100%; }
.btn--primary:hover { background: #b8a2fb; }
.btn--secondary { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); }
.btn--danger { background: var(--danger); color: #2a0a0a; width: 100%; }
.btn--danger:hover { background: #fb9494; }
.btn--block { width: 100%; }

.form-hint { font-size: 13px; color: var(--text-muted); margin: -8px 0 16px 0; }
.form-hint a { color: var(--accent); }

.checkbox-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; font-size: 13px; color: var(--text-muted); }
.checkbox-row input { margin-top: 3px; }
.checkbox-row a { color: var(--accent); text-decoration: underline; }

.password-rules { list-style: none; padding: 0; margin: -8px 0 18px 0; font-size: 13px; }
.password-rules li { color: var(--text-faint); margin-bottom: 4px; }
.password-rules li.ok { color: var(--success); }
.password-rules li::before { content: "✓ "; }

.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 18px;
}
.alert--error { background: rgba(248,113,113,0.12); color: #fca5a5; border: 1px solid rgba(248,113,113,0.3); }
.alert--success { background: rgba(74,222,128,0.12); color: #86efac; border: 1px solid rgba(74,222,128,0.3); }

/* ---------- Course overview ---------- */

.course-hero {
  display: flex;
  gap: 32px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
}
.course-hero__main { flex: 1; min-width: 0; }
.course-hero__progress { color: var(--text-muted); font-size: 14px; margin-bottom: 14px; }
.course-hero__desc { color: #d4d4dc; }
.course-hero__tile { flex-shrink: 0; width: 260px; height: 150px; }

.course-picker__title { margin-bottom: 6px; }
.course-picker__lead { color: var(--text-muted); margin-bottom: 28px; }
.course-picker {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.course-card {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.course-card:hover { border-color: var(--accent); }
.course-card__tile { width: 100%; height: 160px; }
.course-card__body { padding: 18px; }
.course-card__title { font-weight: 700; font-size: 16px; margin-bottom: 8px; }
.course-card__progress { font-size: 13px; color: var(--text-muted); margin-bottom: 10px; }

.progress-bar { height: 6px; background: var(--bg-elevated-2); border-radius: 999px; overflow: hidden; }
.progress-bar__fill { height: 100%; background: var(--accent); border-radius: 999px; }

.tile {
  border-radius: var(--radius-sm);
  display: flex;
  align-items: flex-end;
  padding: 14px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: linear-gradient(160deg, hsl(var(--hue,265) 70% 22%), hsl(var(--hue,265) 60% 10%));
  position: relative;
  overflow: hidden;
}
.tile::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12), transparent 60%);
}
.tile__label { position: relative; font-size: 15px; text-transform: uppercase; }
.tile--cover { height: 100%; }
.tile--cover .tile__label { font-size: 22px; }

.tile-img { border-radius: var(--radius-sm); overflow: hidden; background: #000; }
.tile-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.two-col { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: start; }

.continue-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg-elevated-2);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}
.continue-banner__tile { width: 140px; height: 82px; flex-shrink: 0; }
.continue-banner__tile .tile__label { font-size: 11px; }
.continue-banner__body { flex: 1; min-width: 0; }
.continue-banner__eyebrow { font-size: 12px; color: var(--text-faint); text-transform: uppercase; margin-bottom: 4px; }
.continue-banner__title { font-size: 16px; font-weight: 700; margin: 0; }

.instructor-card {
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
}
.instructor-card .avatar { width: 84px; height: 84px; font-size: 28px; margin: 0 auto 14px auto; }
.instructor-card__name { font-weight: 700; margin-bottom: 10px; }
.instructor-card__bio { font-size: 13px; color: var(--text-muted); }

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin: 28px 0 12px 0;
  cursor: pointer;
  user-select: none;
}
.section-title__chevron { margin-left: auto; transition: transform 0.15s; color: var(--text-muted); }
.section-title.collapsed .section-title__chevron { transform: rotate(-90deg); }

.lesson-list { display: flex; flex-direction: column; gap: 10px; }
.lesson-list.collapsed { display: none; }

.lesson-row {
  display: flex;
  gap: 16px;
  padding: 12px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  align-items: center;
}
.lesson-row:hover { background: var(--bg-elevated-2); }
.lesson-row__tile { width: 96px; height: 60px; flex-shrink: 0; }
.lesson-row__tile .tile__label { font-size: 9px; }
.lesson-row__body { flex: 1; min-width: 0; }
.lesson-row__title { font-weight: 600; margin-bottom: 4px; font-size: 15px; }
.lesson-row__teaser { font-size: 13px; color: var(--text-muted); }
.lesson-row__check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.lesson-row__check.done { background: var(--success); border-color: var(--success); color: #06240f; }

.back-link { display: inline-block; margin-top: 24px; color: var(--text-muted); text-decoration: none; }
.back-link:hover { color: var(--text); }

/* ---------- Lesson page ---------- */

.lesson-layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }

.video-player {
  position: relative;
  background: #000;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}
.video-player video { width: 100%; height: 100%; display: block; background: #000; }

.video-player__center-btn {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(0,0,0,0.55);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
}

.video-player__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,0.45); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
}
.video-player__nav--prev { left: 14px; }
.video-player__nav--next { right: 14px; }
.video-player__nav:disabled { opacity: 0.25; }

.video-player__controls {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.75));
  color: #fff; font-size: 13px;
}
.video-player__controls button { background: none; border: none; color: #fff; display: flex; }
.video-player__seek { flex: 1; accent-color: var(--accent); }
.video-player__time { white-space: nowrap; font-variant-numeric: tabular-nums; }

.lesson-title { font-size: 24px; margin: 20px 0 6px 0; }
.lesson-teaser { color: var(--text-muted); margin-bottom: 18px; }
.lesson-actions { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }

.attachments-title { font-size: 15px; color: var(--text-muted); margin: 24px 0 10px 0; }
.attachments-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-bottom: 24px; }
.attachment-card {
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
}
.attachment-card:hover { background: var(--bg-elevated-2); }
.attachment-card__icon {
  width: 34px; height: 34px; border-radius: 6px;
  background: var(--accent-strong); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
  flex-shrink: 0;
}
.attachment-card__info { flex: 1; min-width: 0; }
.attachment-card__name { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attachment-card__size { font-size: 12px; color: var(--text-faint); }
.attachment-card__dl { margin-left: auto; color: var(--text-muted); flex-shrink: 0; }

.lesson-content {
  color: #d4d4dc;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  padding: 28px 32px;
}
.lesson-content h2 { color: var(--text); margin-top: 32px; }
.lesson-content h2:first-child { margin-top: 0; }
.lesson-content h3 { color: var(--text); margin-top: 29px; }
.lesson-content ul, .lesson-content ol { padding-left: 22px; }
.lesson-content li { margin-bottom: 6px; }
.lesson-content code {
  background: var(--bg-elevated-2);
  border-radius: 4px;
  padding: 2px 6px;
  font-size: 0.9em;
}
.lesson-content blockquote {
  margin: 16px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: var(--bg-elevated);
  border-radius: 0 8px 8px 0;
  color: #cfcfd8;
}
.lesson-content blockquote p { margin: 0; }

.lesson-content pre {
  background: #0d0d11;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  margin: 16px 0;
  overflow-x: auto;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.6;
  color: #d9c9ff;
}
.lesson-content pre .prompt-label {
  display: block;
  color: var(--text-faint);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.lesson-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}
.lesson-content th, .lesson-content td {
  border: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.lesson-content th { background: var(--bg-elevated); color: var(--text); }
.lesson-content td { color: #d4d4dc; }

.sidebar-playlist { background: var(--bg-elevated); border-radius: var(--radius); padding: 16px; position: sticky; top: 16px; }
.sidebar-playlist__header { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 4px; }
.sidebar-playlist__count { margin-left: auto; font-weight: 400; color: var(--text-muted); font-size: 13px; }
.sidebar-playlist hr { border: none; border-top: 1px solid var(--border); margin: 12px 0; }
.sidebar-playlist__autoplay { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }

.sidebar-section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 14px 0 6px 0;
}
.sidebar-section-title .section-title__chevron { margin-left: auto; transition: transform 0.15s; }
.sidebar-section-title.collapsed .section-title__chevron { transform: rotate(-90deg); }

.playlist-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--text);
  margin-bottom: 4px;
}
.playlist-item:hover { background: var(--bg-elevated-2); }
.playlist-item.active { background: rgba(167,139,250,0.14); box-shadow: inset 3px 0 0 var(--accent); }
.playlist-item__tile { width: 54px; height: 36px; flex-shrink: 0; border-radius: 4px; overflow: hidden; }
.playlist-item__tile .tile__label { font-size: 6px; }
.playlist-item__title { font-size: 13px; line-height: 1.3; }
.playlist-item__check { flex-shrink: 0; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--border); }
.playlist-item__check.done { background: var(--success); border-color: var(--success); }

.not-found { text-align: center; padding: 80px 24px; color: var(--text-muted); }

@media (max-width: 860px) {
  .two-col, .lesson-layout { grid-template-columns: 1fr; }
  .course-hero { flex-direction: column; }
  .course-hero__tile { width: 100%; }
  .continue-banner { flex-wrap: wrap; }
  .continue-banner__tile { width: 100%; height: 180px; }
  .continue-banner__body { flex-basis: 100%; }
  .continue-banner > .btn { width: 100%; }
}

/* ---------- Landing page ---------- */

.landing-page {
  font-family: var(--font-mono);
  background-image:
    radial-gradient(circle, rgba(167, 139, 250, 0.10) 1px, transparent 1px);
  background-size: 26px 26px;
}
.landing-page p,
.landing-page .landing-section__prose,
.landing-page .landing-testimonial p {
  font-family: var(--font-sans);
}
.landing-page h1, .landing-page h2, .landing-page h3,
.landing-page .btn, .landing-page .landing-badge,
.landing-page .landing-pricing__price, .landing-page .landing-pricing__old,
.landing-page .landing-pricing__label, .landing-page .landing-faq__item summary {
  font-family: var(--font-mono);
}

.landing-header { border-bottom: 1px solid var(--border); position: relative; z-index: 1; }
.landing-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
}
.landing-hero__text { flex: 1; min-width: 0; }
.landing-hero__text h1 { font-size: 40px; line-height: 1.15; margin-bottom: 18px; letter-spacing: -0.01em; }
.landing-hero__lead { color: var(--text-muted); font-size: 17px; line-height: 1.6; margin-bottom: 28px; }
.landing-hero__lead p { margin: 0 0 12px 0; }

.landing-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  position: relative;
}
.landing-section__title { font-size: 26px; margin-bottom: 28px; text-align: center; letter-spacing: -0.01em; }
.landing-section__title--left { text-align: left; }
.landing-section__prose { color: var(--text-muted); line-height: 1.6; }
.landing-section__prose p { margin: 0 0 14px 0; }

.landing-badge {
  display: inline-block;
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.4);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.landing-hero__lead--centered { text-align: center; max-width: 640px; margin-left: auto; margin-right: auto; }

/* Device mockup: frames a real screenshot of the running app, no stock photos */
.device-mockup {
  flex-shrink: 0;
  width: 420px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2a2a33, #1a1a20);
  padding: 10px 10px 16px 10px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6), 0 0 0 1px var(--border);
}
.device-mockup::before {
  content: "";
  display: block;
  width: 48px; height: 4px;
  background: #45454f;
  border-radius: 999px;
  margin: 0 auto 10px auto;
}
.device-mockup__screen {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
}
.device-mockup__screen img { width: 100%; height: auto; display: block; }
.device-mockup--hero { width: 460px; }

.landing-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-bottom: 8px; }
.landing-feature { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.landing-feature__icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(167, 139, 250, 0.14); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 14px;
}
.landing-feature h3 { font-size: 16px; margin: 0 0 8px 0; font-family: var(--font-mono); }
.landing-feature p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.55; }

.landing-cta-inline { text-align: center; margin-top: 28px; }
.landing-cta-inline--left { text-align: left; }
.landing-stat { color: var(--text-faint); font-size: 13px; margin-top: 10px; }

.landing-checklist { display: flex; flex-direction: column; gap: 14px; margin: 0 auto 8px auto; }
.landing-checklist--narrow { max-width: 680px; }
.landing-checklist__item { display: flex; align-items: flex-start; gap: 12px; }
.landing-checklist__item span {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(167, 139, 250, 0.16); color: var(--accent); border: 1px solid rgba(167, 139, 250, 0.4);
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
  margin-top: 2px;
}
.landing-checklist__item p { margin: 0; color: #d4d4dc; line-height: 1.5; font-family: var(--font-sans); }

.landing-bonus-note {
  max-width: 680px; margin: 24px auto 0 auto; text-align: center;
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
}
.landing-bonus-note h3 { font-size: 16px; margin: 12px 0 0 0; font-family: var(--font-sans); font-weight: 600; }

/* Claude OS hub-and-spoke diagram */
.landing-os { display: flex; align-items: center; gap: 56px; }
.landing-os__text { flex: 1; min-width: 0; }
.claude-os-diagram {
  position: relative;
  flex-shrink: 0;
  width: 340px; height: 340px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(167, 139, 250, 0.06) 0%, transparent 70%);
  border: 1px dashed rgba(167, 139, 250, 0.25);
}
.claude-os-center {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 108px; height: 108px; border-radius: 20px;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #fff; font-weight: 700; font-size: 15px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  box-shadow: 0 0 40px rgba(249, 115, 22, 0.45);
  z-index: 2;
}
.claude-os-center span { font-size: 11px; font-weight: 500; opacity: 0.9; }
.claude-os-node {
  position: absolute;
  width: 128px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12px;
  text-align: center;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,0.5);
}
.claude-os-node strong { display: block; font-size: 13px; margin-bottom: 2px; }
.claude-os-node span { color: var(--text-faint); font-size: 11px; }
.claude-os-node--chat { top: 4px; left: 50%; transform: translateX(-50%); }
.claude-os-node--cowork { bottom: 34px; left: -10px; }
.claude-os-node--code { bottom: 34px; right: -10px; }

.landing-pricing { text-align: center; }
.landing-pricing__card {
  max-width: 640px; margin: 0 auto 28px auto;
  background: var(--bg-elevated);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 0 0 1px rgba(167, 139, 250, 0.08), 0 20px 50px -24px rgba(167, 139, 250, 0.35);
}
.landing-pricing__card .device-mockup { width: 100%; max-width: 360px; margin: 0 auto 24px auto; }
.landing-pricing__old { color: var(--danger); font-size: 16px; margin-bottom: 4px; }
.landing-pricing__old s { text-decoration-color: var(--danger); }
.landing-pricing__label { color: var(--text-muted); margin-bottom: 4px; }
.landing-pricing__price { font-size: 56px; font-weight: 800; color: var(--text); line-height: 1; }

.landing-guarantee { max-width: 560px; margin: 48px auto 0 auto; text-align: center; }

.landing-section--instructor { display: flex; align-items: center; gap: 28px; max-width: 760px; }
.landing-instructor-photo {
  flex-shrink: 0;
  width: 160px; height: 200px;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--bg-elevated-2), var(--bg-elevated));
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 700; color: var(--accent);
}

.landing-testimonials { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.landing-testimonial { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.landing-testimonial__stars { color: var(--accent); letter-spacing: 2px; margin-top: 12px; }
.landing-testimonial p { font-size: 14px; color: #d4d4dc; line-height: 1.55; margin: 0 0 16px 0; }
.landing-testimonial__author { display: flex; align-items: center; gap: 10px; }
.landing-testimonial__name { font-size: 13px; font-weight: 600; font-family: var(--font-mono); }
.landing-testimonial__role { font-size: 12px; color: var(--text-faint); }

.landing-faq-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; align-items: start; }
.landing-faq { display: flex; flex-direction: column; gap: 10px; }
.landing-faq__item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}
.landing-faq__item summary {
  cursor: pointer;
  font-weight: 400;
  font-size: 14px;
  list-style: none;
}
.landing-faq__item summary::-webkit-details-marker { display: none; }
.landing-faq__item summary::after { content: "+"; float: right; color: var(--text-muted); }
.landing-faq__item[open] summary::after { content: "−"; }
.landing-faq__item p { margin: 10px 0 0 0; font-size: 14px; color: var(--text-muted); line-height: 1.55; font-family: var(--font-sans); }

.landing-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 13px;
}
.landing-footer__links { display: flex; gap: 18px; }
.landing-footer__links a { color: var(--text-faint); text-decoration: none; }
.landing-footer__links a:hover { color: var(--text-muted); }

@media (max-width: 860px) {
  .landing-hero { flex-direction: column; }
  .device-mockup, .device-mockup--hero { width: 100%; max-width: 420px; }
  .landing-section--instructor { flex-direction: column; text-align: center; }
  .landing-os { flex-direction: column; }
  .claude-os-diagram { width: 280px; height: 280px; }
}
