:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --ink: #101827;
  --muted: #647085;
  --line: #d9dee8;
  --panel: #ffffff;
  --nav: #0f172a;
  --yellow: #fff200;
  --yellow-soft: #fff0ad;
  --blue: #1f6bff;
  --purple: #8b5cf6;
  --green: #4f7f36;
  --orange: #a84f00;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

button,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--nav);
  color: #d8deeb;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100vw - 32px));
  min-height: 72px;
  margin: 0 auto;
  gap: 24px;
}

.brand,
.main-nav,
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand {
  color: #ffffff;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--nav);
  background: #ffffff;
  border-radius: 6px;
  font-weight: 950;
}

.main-nav a,
.topbar-actions a {
  color: #aeb8c8;
  font-weight: 700;
}

.locale-pill {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  color: #d8deeb;
  border: 1px solid #334155;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.topbar-button {
  min-height: 36px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  color: #ffffff !important;
  background: #2563eb;
  border-radius: 999px;
}

main {
  width: 100%;
}

.roadmap-shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 14px 0 48px;
}

.announcement {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-bottom: 10px;
  padding: 0 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.announcement strong {
  padding: 3px 7px;
  color: #ffffff;
  background: #9aa3b5;
  border-radius: 3px;
  font-size: 0.75rem;
}

.announcement span {
  color: #2d3748;
  font-size: 0.92rem;
}

.roadmap-header-card {
  position: relative;
  min-height: 300px;
  padding: 22px 24px 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.crumb {
  color: var(--muted);
  font-weight: 800;
}

.header-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  gap: 6px;
}

.icon-button,
.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  color: #0b1020;
  background: #f1f3f7;
  border: 1px solid #eef1f5;
  border-radius: 7px;
  font-weight: 900;
}

.download-button {
  background: #ffd500;
  border-color: #ffd500;
}

.roadmap-heading {
  margin-top: 62px;
}

.kicker {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 12px;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.08;
  letter-spacing: 0;
}

.roadmap-heading p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.roadmap-tabs {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  display: flex;
  align-items: end;
  gap: 20px;
  min-height: 54px;
  border-top: 1px solid transparent;
}

.tab {
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-weight: 900;
}

.tab.active {
  color: #0a0f1c;
  border-bottom-color: #0a0f1c;
}

.status-pill {
  margin-left: auto;
  align-self: center;
  padding: 7px 12px;
  color: #394356;
  background: #f1f3f7;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.join-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 14px;
  color: var(--orange);
  background: #fffbe6;
  border: 1px solid #f5e7ac;
  border-radius: 8px;
  font-size: 0.92rem;
}

.join-strip a {
  padding: 7px 12px;
  color: #ffffff;
  background: #111827;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
}

.roadmap-workspace {
  display: grid;
  grid-template-columns: 290px minmax(360px, 1fr) 330px;
  gap: 28px;
  align-items: start;
  padding-top: 36px;
}

.left-rail,
.right-rail {
  display: grid;
  gap: 14px;
}

.legend-box,
.track-picker,
.note-card,
.topic-card,
.resource-card,
.track-grid article {
  background: var(--panel);
  border: 2px solid #111111;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.legend-box {
  display: grid;
  gap: 10px;
  padding: 16px 18px;
  font-weight: 800;
}

.dot {
  display: inline-grid;
  width: 17px;
  height: 17px;
  margin-right: 8px;
  place-items: center;
  color: white;
  border-radius: 999px;
  vertical-align: -3px;
}

.dot::after {
  content: "✓";
  font-size: 0.72rem;
  font-weight: 950;
}

.dot.recommended {
  background: var(--purple);
}

.dot.alternative {
  background: var(--green);
}

.dot.flexible {
  background: #8a8f98;
}

.track-picker {
  padding: 14px;
  border-color: #d8dee8;
}

.track-picker p {
  margin-bottom: 10px;
  color: #111827;
  font-weight: 950;
}

.track-button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 0 8px;
  color: #475569;
  background: transparent;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 850;
  text-align: left;
}

.track-button::before {
  content: "✓";
  display: grid;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  place-items: center;
  color: white;
  background: #737b8b;
  border-radius: 999px;
  font-size: 0.7rem;
}

.track-button.active,
.track-button:hover {
  color: #0a0f1c;
  background: #f3f5f8;
}

.track-button.active::before {
  background: var(--purple);
}

.note-card {
  padding: 18px;
  border: 0;
}

.note-card p {
  color: #111827;
  line-height: 1.55;
}

.note-card a {
  display: flex;
  justify-content: center;
  min-height: 44px;
  align-items: center;
  color: #111827;
  background: #e4e4e4;
  border-radius: 6px;
  font-weight: 900;
}

.roadmap-canvas {
  position: relative;
  min-height: 860px;
  overflow: visible;
  padding: 64px 0;
}

.graph-title {
  margin-bottom: 24px;
  text-align: center;
  font-size: 1.7rem;
  font-weight: 950;
}

.roadmap-graph {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  width: min(420px, 100%);
  margin: 0 auto;
  padding-bottom: 80px;
}

.roadmap-graph::before {
  content: "";
  position: absolute;
  top: 40px;
  bottom: 20px;
  left: 50%;
  width: 3px;
  background: var(--blue);
  transform: translateX(-50%);
}

.graph-node {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(260px, 100%);
  min-height: 50px;
  place-items: center;
  padding: 8px 16px;
  color: #0b0b0b;
  background: var(--yellow);
  border: 3px solid #000000;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 950;
  text-align: center;
}

.graph-node:hover,
.graph-node.active {
  outline: 4px solid rgba(139, 92, 246, 0.28);
}

.graph-node.alt {
  background: var(--yellow-soft);
}

.branch-group {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 10px;
  width: min(360px, 100%);
  margin: 4px 0 8px;
  padding-left: min(190px, 44vw);
}

.branch-group::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 50%;
  width: min(150px, 34vw);
  height: calc(100% - 44px);
  border-top: 4px dotted var(--blue);
  border-right: 4px dotted var(--blue);
  border-bottom: 4px dotted var(--blue);
  border-radius: 0 48px 48px 0;
}

.branch-node {
  position: relative;
  display: grid;
  min-height: 44px;
  place-items: center;
  padding: 7px 12px;
  background: var(--yellow-soft);
  border: 3px solid #000000;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 850;
  text-align: center;
}

.branch-node::after {
  content: "✓";
  position: absolute;
  top: 50%;
  right: -15px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: white;
  background: var(--purple);
  border-radius: 999px;
  font-size: 0.72rem;
  transform: translateY(-50%);
}

.branch-node:hover,
.branch-node.active {
  outline: 4px solid rgba(139, 92, 246, 0.24);
}

.topic-card {
  padding: 14px;
  border-color: var(--line);
}

.topic-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
}

.small-tab {
  min-height: 32px;
  padding: 0 10px;
  color: #647085;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 900;
}

.small-tab.active {
  color: #ffffff;
  background: #000000;
  border-color: #000000;
}

.topic-toolbar select {
  margin-left: auto;
  min-height: 32px;
  padding: 0 30px 0 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-weight: 750;
}

.topic-card h2 {
  margin-bottom: 12px;
  font-size: 2rem;
}

.topic-card p {
  color: #344054;
  line-height: 1.7;
}

.recommended-course,
.free-resources {
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #f3c332;
  border-radius: 9px;
}

.recommended-course {
  background: #fff8d7;
}

.recommended-course span {
  display: block;
  margin-bottom: 8px;
  color: #b45309;
  font-size: 0.82rem;
  font-weight: 900;
}

.recommended-course strong,
.recommended-course small {
  display: block;
}

.recommended-course small {
  margin-top: 8px;
  color: var(--muted);
}

.free-resources {
  border-color: var(--line);
}

.free-resources h3 {
  margin-bottom: 10px;
  color: #087a2d;
  font-size: 1rem;
}

.topic-resource {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 7px 0;
}

.topic-resource span {
  padding: 3px 6px;
  background: var(--yellow);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 950;
}

.topic-resource a {
  color: #263246;
  text-decoration: underline;
  font-weight: 800;
}

.resources-section,
.tracks-section,
.future-section {
  padding: 76px max(24px, calc((100vw - 1180px) / 2));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p:not(.kicker),
.future-section p:not(.kicker) {
  color: var(--muted);
  line-height: 1.7;
}

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

.resource-card {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border-color: var(--line);
}

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

.resource-card h3 {
  margin-bottom: 0;
  line-height: 1.18;
}

.resource-meta,
.resource-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.resource-meta span,
.resource-topics span {
  padding: 4px 7px;
  color: #374151;
  background: #eef2f7;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 900;
}

.resource-card p {
  color: #526072;
  line-height: 1.58;
}

.resource-link {
  display: inline-flex;
  width: fit-content;
  min-height: 38px;
  margin-top: auto;
  align-items: center;
  padding: 0 12px;
  color: #0b0b0b;
  background: var(--yellow);
  border: 2px solid #111111;
  border-radius: 6px;
  font-weight: 950;
}

.tracks-section {
  background: #0f172a;
  color: #ffffff;
}

.tracks-section .kicker {
  color: #facc15;
}

.track-grid {
  grid-template-columns: repeat(4, 1fr);
}

.track-grid article {
  min-height: 220px;
  padding: 22px;
  border: 0;
}

.track-grid span {
  color: #dc3f2f;
  font-weight: 950;
}

.track-grid p {
  color: #586273;
  line-height: 1.62;
}

.future-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.language-grid {
  display: grid;
  gap: 10px;
}

.language-grid div {
  padding: 16px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.language-grid strong,
.language-grid span {
  display: block;
}

.language-grid strong {
  margin-bottom: 4px;
}

.language-grid span {
  color: var(--muted);
}

.assistant-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  max-width: calc(100vw - 32px);
  padding: 0 22px;
  color: #ffffff;
  background: #1f1f1f;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  transform: translateX(-50%);
}

.assistant-bar strong {
  color: #ffd500;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px max(24px, calc((100vw - 1180px) / 2));
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .roadmap-workspace {
    grid-template-columns: 260px 1fr;
  }

  .right-rail {
    grid-column: 1 / -1;
  }

  .topic-card {
    max-width: 760px;
    margin: 0 auto;
  }
}

@media (max-width: 840px) {
  .topbar-inner,
  .brand,
  .main-nav,
  .topbar-actions {
    flex-wrap: wrap;
  }

  .topbar-inner {
    padding: 14px 0;
  }

  .roadmap-header-card {
    padding: 18px 18px 0;
  }

  .header-actions {
    position: static;
    margin-top: 16px;
  }

  .roadmap-heading {
    margin-top: 34px;
  }

  .roadmap-tabs {
    position: static;
    flex-wrap: wrap;
    margin-top: 24px;
  }

  .status-pill {
    margin-left: 0;
  }

  .join-strip,
  .roadmap-workspace,
  .future-section {
    grid-template-columns: 1fr;
  }

  .roadmap-workspace {
    display: grid;
  }

  .left-rail,
  .right-rail {
    width: 100%;
  }

  .roadmap-canvas {
    min-height: auto;
    padding-top: 32px;
  }

  .resource-grid,
  .track-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .roadmap-shell {
    width: min(100vw - 20px, 1180px);
  }

  h1 {
    font-size: 2.65rem;
  }

  .roadmap-graph {
    width: 100%;
  }

  .branch-group {
    padding-left: 0;
    width: 100%;
  }

  .branch-group::before {
    display: none;
  }

  .branch-node::after {
    right: 8px;
  }

  .assistant-bar {
    left: 12px;
    right: 12px;
    justify-content: center;
    transform: none;
  }

  .assistant-bar span {
    display: none;
  }

  footer {
    flex-direction: column;
    padding-bottom: 82px;
  }
}
