:root {
  color-scheme: dark;
  --bg: #08101f;
  --bg-soft: rgba(10, 18, 36, 0.72);
  --card: rgba(16, 25, 49, 0.82);
  --card-strong: rgba(18, 30, 58, 0.98);
  --border: rgba(180, 199, 255, 0.12);
  --text: #e7ecff;
  --muted: #9dafd7;
  --primary: #7c5cff;
  --primary-strong: #9a7dff;
  --secondary: #2ad0b9;
  --accent: #ffcf5f;
  --danger: #ff7b87;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  --radius: 24px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: radial-gradient(circle at top left, rgba(124, 92, 255, 0.23), transparent 28%), radial-gradient(circle at top right, rgba(42, 208, 185, 0.16), transparent 22%), linear-gradient(180deg, #08101f 0%, #050a16 100%); color: var(--text); min-height: 100vh; overflow-x: hidden; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px); background-size: 30px 30px; mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 80%); opacity: 0.6; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.backdrop { position: fixed; inset: auto; border-radius: 999px; filter: blur(60px); opacity: 0.45; pointer-events: none; z-index: -1; }
.backdrop-a { width: 340px; height: 340px; left: -120px; top: 140px; background: rgba(124, 92, 255, 0.3); }
.backdrop-b { width: 420px; height: 420px; right: -140px; top: 40px; background: rgba(42, 208, 185, 0.18); }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px clamp(18px, 3vw, 32px); backdrop-filter: blur(22px); background: rgba(5, 10, 22, 0.72); border-bottom: 1px solid rgba(180, 199, 255, 0.08); }
.brand { display: inline-flex; align-items: center; gap: 14px; min-width: 0; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; font-weight: 900; color: #071020; background: linear-gradient(135deg, #d6f8ff, #7c5cff 42%, #2ad0b9); box-shadow: 0 10px 30px rgba(124, 92, 255, 0.35); }
.brand strong { display: block; line-height: 1.1; }
.brand small { display: block; color: var(--muted); margin-top: 4px; }
.topnav { display: flex; flex-wrap: wrap; gap: 14px 18px; justify-content: center; color: var(--muted); }
.topnav a { transition: color 0.2s ease; }
.topnav a:hover, .topnav a:focus-visible { color: var(--text); }
.ghost-button, .secondary-button, .primary-button { display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid transparent; padding: 12px 18px; transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease; }
.ghost-button, .secondary-button { background: rgba(255, 255, 255, 0.04); color: var(--text); border-color: rgba(180, 199, 255, 0.12); }
.primary-button { color: #071020; background: linear-gradient(135deg, #d6f8ff, #7c5cff 48%, #2ad0b9); font-weight: 700; box-shadow: 0 16px 36px rgba(124, 92, 255, 0.24); }
.ghost-button:hover, .secondary-button:hover, .primary-button:hover, .ghost-button:focus-visible, .secondary-button:focus-visible, .primary-button:focus-visible { transform: translateY(-1px); }
.page-shell { width: min(1200px, calc(100vw - 28px)); margin: 0 auto; padding: 28px 0 84px; }
.hero { display: grid; grid-template-columns: 1.25fr 0.95fr; gap: 24px; align-items: stretch; padding: 20px 0 10px; }
.hero-copy, .hero-panel, .section, .detail-card, .roadmap-card, .mini-note, .prompt-card, .deployment-card { border: 1px solid var(--border); background: linear-gradient(180deg, rgba(17, 27, 52, 0.9), rgba(12, 19, 38, 0.9)); backdrop-filter: blur(18px); box-shadow: var(--shadow); }
.hero-copy, .hero-panel { border-radius: 30px; padding: clamp(24px, 3vw, 36px); }
.eyebrow, .section-kicker, .pill, .empty-badge { display: inline-flex; align-items: center; justify-content: center; width: fit-content; border-radius: 999px; border: 1px solid rgba(180, 199, 255, 0.14); background: rgba(255, 255, 255, 0.04); color: var(--muted); padding: 7px 12px; font-size: 0.88rem; }
.hero h1 { margin: 18px 0 14px; font-size: clamp(2.35rem, 5vw, 4.6rem); line-height: 1.05; letter-spacing: -0.03em; }
.hero-text { margin: 0; color: var(--muted); font-size: 1.03rem; line-height: 1.8; max-width: 58ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 24px; }
.note-card, .stat-box { border-radius: 18px; padding: 14px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(180, 199, 255, 0.1); }
.note-card span, .stat-box span { display: block; color: var(--muted); font-size: 0.88rem; margin-bottom: 8px; }
.note-card strong, .stat-box strong { font-size: 0.98rem; line-height: 1.45; }
.hero-panel { display: grid; gap: 18px; }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.progress-ring { width: 112px; height: 112px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle at center, rgba(8, 16, 31, 0.96) 55%, transparent 56%), conic-gradient(var(--secondary) 0deg, var(--primary) 0deg 25deg, rgba(255, 255, 255, 0.08) 25deg 360deg); box-shadow: inset 0 0 0 1px rgba(180, 199, 255, 0.08); }
.progress-ring strong { display: block; font-size: 1.9rem; line-height: 1; text-align: center; }
.progress-ring span { display: block; color: var(--muted); font-size: 0.82rem; text-align: center; margin-top: 4px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.panel-callout { border-radius: 20px; padding: 16px 18px; background: linear-gradient(135deg, rgba(124, 92, 255, 0.18), rgba(42, 208, 185, 0.11)); border: 1px solid rgba(180, 199, 255, 0.12); color: #dbe3ff; line-height: 1.7; }
.section { margin-top: 26px; border-radius: 30px; padding: clamp(22px, 3vw, 34px); }
.section-head { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 20px; align-items: end; margin-bottom: 18px; }
.section-head h2 { margin: 10px 0 0; font-size: clamp(1.45rem, 2.8vw, 2.3rem); line-height: 1.15; }
.section-head p { margin: 0; color: var(--muted); line-height: 1.75; }
.roadmap-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.roadmap-card { border-radius: 22px; padding: 20px; }
.roadmap-index { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, rgba(124, 92, 255, 0.4), rgba(42, 208, 185, 0.3)); margin-bottom: 12px; font-weight: 800; }
.roadmap-card h3 { margin: 0; font-size: 1.02rem; }
.roadmap-card p { margin: 10px 0 14px; color: var(--muted); line-height: 1.7; min-height: 4.8em; }
.roadmap-list { margin: 0; padding-left: 18px; color: #dbe3ff; display: grid; gap: 6px; line-height: 1.55; }
.catalog-toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.search-box { display: flex; align-items: center; gap: 10px; min-width: min(100%, 420px); flex: 1 1 420px; border-radius: 18px; padding: 14px 16px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(180, 199, 255, 0.12); }
.search-box input { width: 100%; background: transparent; border: none; color: var(--text); outline: none; }
.search-box input::placeholder { color: #7e8fb8; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { border-radius: 999px; border: 1px solid rgba(180, 199, 255, 0.12); background: rgba(255, 255, 255, 0.03); color: var(--muted); padding: 10px 14px; transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.chip:hover, .chip:focus-visible, .chip.active { color: var(--text); border-color: rgba(124, 92, 255, 0.34); background: rgba(124, 92, 255, 0.14); transform: translateY(-1px); }
.catalog-layout { display: grid; grid-template-columns: 1.2fr 0.9fr; gap: 16px; align-items: start; }
.lesson-grid { display: grid; gap: 14px; }
.lesson-card { width: 100%; text-align: left; border-radius: 24px; padding: 18px; border: 1px solid rgba(180, 199, 255, 0.12); background: rgba(255, 255, 255, 0.035); transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease; }
.lesson-card:hover, .lesson-card:focus-visible { transform: translateY(-2px); border-color: rgba(124, 92, 255, 0.34); background: rgba(124, 92, 255, 0.09); }
.lesson-card.selected { background: linear-gradient(135deg, rgba(124, 92, 255, 0.16), rgba(42, 208, 185, 0.08)); border-color: rgba(124, 92, 255, 0.48); }
.lesson-card.completed { box-shadow: inset 0 0 0 1px rgba(42, 208, 185, 0.26); }
.lesson-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.meta-tag { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 7px 10px; font-size: 0.84rem; background: rgba(255, 255, 255, 0.04); color: var(--muted); border: 1px solid rgba(180, 199, 255, 0.09); }
.lesson-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.4; }
.lesson-summary { margin: 12px 0 0; color: var(--muted); line-height: 1.75; }
.lesson-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.lesson-footer .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tiny-tag { display: inline-flex; align-items: center; border-radius: 999px; padding: 6px 10px; color: #dfe7ff; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(180, 199, 255, 0.09); font-size: 0.82rem; }
.tiny-button { border-radius: 999px; border: 1px solid rgba(180, 199, 255, 0.12); background: rgba(255, 255, 255, 0.04); color: var(--text); padding: 9px 12px; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.tiny-button:hover, .tiny-button:focus-visible { transform: translateY(-1px); border-color: rgba(124, 92, 255, 0.34); background: rgba(124, 92, 255, 0.12); }
.detail-card { position: sticky; top: 96px; border-radius: 28px; padding: 22px; }
.detail-empty { min-height: 100%; display: grid; gap: 14px; align-content: center; text-align: left; }
.detail-empty h3, .detail-head h3, .mini-note h3, .deployment-card h3, .prompt-card h3 { margin: 0; }
.detail-empty p, .detail-body p, .mini-note p, .deployment-card p, .prompt-card p { margin: 0; color: var(--muted); line-height: 1.75; }
.detail-head { display: grid; gap: 14px; margin-bottom: 18px; }
.detail-heading { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.detail-heading h3 { font-size: 1.35rem; line-height: 1.35; }
.detail-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail-panel-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-body { display: grid; gap: 16px; }
.detail-block { padding: 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(180, 199, 255, 0.09); }
.detail-block h4 { margin: 0 0 10px; font-size: 0.98rem; }
.detail-block ul, .detail-block ol { margin: 0; padding-left: 20px; color: #dbe3ff; line-height: 1.7; }
.snippet { margin: 0; white-space: pre-wrap; word-break: break-word; font-family: "Cascadia Code", "SFMono-Regular", Consolas, monospace; font-size: 0.9rem; line-height: 1.7; color: #d3dcff; }
.flow-map { display: grid; grid-template-columns: 1.1fr auto 1fr auto 1fr auto 1fr; gap: 12px; align-items: center; }
.flow-node { border-radius: 20px; padding: 18px; background: rgba(255, 255, 255, 0.045); border: 1px solid rgba(180, 199, 255, 0.1); }
.flow-node strong { display: block; margin-bottom: 8px; }
.flow-node span { color: var(--muted); line-height: 1.6; }
.flow-emphasis { background: linear-gradient(135deg, rgba(124, 92, 255, 0.14), rgba(42, 208, 185, 0.08)); }
.flow-arrow { color: var(--primary-strong); font-size: 1.55rem; text-align: center; }
.diagram-notes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.mini-note, .prompt-card, .deployment-card { border-radius: 22px; padding: 18px; }
.mini-note h3 { margin-bottom: 8px; }
.prompt-grid, .deployment-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.prompt-card { display: grid; gap: 14px; }
.prompt-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.copy-button { border-radius: 999px; padding: 8px 12px; border: 1px solid rgba(180, 199, 255, 0.12); background: rgba(255, 255, 255, 0.04); color: var(--text); }
.copy-button:hover, .copy-button:focus-visible { background: rgba(42, 208, 185, 0.12); border-color: rgba(42, 208, 185, 0.3); }
.prompt-card .prompt-text { margin: 0; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(180, 199, 255, 0.09); line-height: 1.7; color: #dbe3ff; }
.prompt-card ul, .deployment-card ul { margin: 0; padding-left: 18px; color: #dbe3ff; line-height: 1.65; }
.final-callout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: center; }
.final-callout h2 { margin: 10px 0 0; font-size: clamp(1.4rem, 2.5vw, 2rem); }
.final-callout p { margin: 0; color: var(--muted); line-height: 1.8; }
.toast { position: fixed; right: 20px; bottom: 20px; transform: translateY(24px); opacity: 0; pointer-events: none; padding: 12px 16px; border-radius: 16px; background: rgba(12, 19, 38, 0.94); border: 1px solid rgba(180, 199, 255, 0.1); box-shadow: var(--shadow); color: var(--text); transition: opacity 0.25s ease, transform 0.25s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 1100px) { .hero, .section-head, .catalog-layout, .final-callout { grid-template-columns: 1fr; } .roadmap-grid, .diagram-notes, .prompt-grid, .deployment-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .detail-card { position: static; } .flow-map { grid-template-columns: 1fr; } .flow-arrow { transform: rotate(90deg); } }
@media (max-width: 780px) { .topbar { flex-wrap: wrap; } .topnav { justify-content: flex-start; } .hero-notes, .stats-grid, .roadmap-grid, .diagram-notes, .prompt-grid, .deployment-grid { grid-template-columns: 1fr; } .hero h1 { font-size: clamp(2rem, 10vw, 3rem); } .page-shell { width: min(100vw - 20px, 1200px); } }