:root {
  --bg: #f4f4f6;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #d9d9df;
  --blue: #0071e3;
  --blue-dark: #0056b3;
  --green: #00a66c;
  --amber: #c87900;
  --ink: #050505;
  --violet: #6e5cff;
  --radius: 8px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, #fbfbfd 0, var(--bg) 420px, #f0f0f3 100%);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(251, 251, 253, 0.82);
  backdrop-filter: blur(18px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  height: 52px;
  margin: 0 auto;
}

.brand {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  overflow-x: auto;
  color: var(--muted);
  font-size: 13px;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  white-space: nowrap;
  transition: color 160ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  background: #050505;
  color: #f5f5f7;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, #050505 0%, #101114 48%, #161a20 100%);
  background-size: 56px 56px, 56px 56px, auto;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 52px;
  width: min(1180px, calc(100% - 40px));
  min-height: 680px;
  margin: 0 auto;
  padding: 80px 0 72px;
}

.hero-copy {
  max-width: 650px;
}

.eyebrow,
.section-kicker {
  display: block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: 72px;
  line-height: 1.04;
}

.hero p {
  max-width: 620px;
  margin: 24px 0 0;
  color: #c7c7cc;
  font-size: 21px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 999px;
  padding: 0 20px;
  font-size: 15px;
  font-weight: 600;
}

.primary-action {
  background: var(--blue);
  color: #fff;
}

.primary-action:hover {
  background: var(--blue-dark);
}

.secondary-action {
  background: rgba(255, 255, 255, 0.1);
  color: #f5f5f7;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-console {
  align-self: stretch;
  min-height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    #111216;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  padding: 22px;
}

.console-top {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
}

.console-top span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}

.console-top span:nth-child(2) {
  background: #ffbd2e;
}

.console-top span:nth-child(3) {
  background: #28c840;
}

.console-line {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  padding: 16px 0;
  color: #d9d9df;
}

.console-line b {
  color: #86c5ff;
  font-size: 13px;
}

.console-chart {
  display: flex;
  align-items: end;
  gap: 14px;
  height: 190px;
  margin-top: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.console-chart i {
  flex: 1;
  min-height: 36px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #7fc8ff, #0071e3);
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0;
}

.section h2 {
  max-width: 780px;
  margin: 0;
  color: var(--text);
  font-size: 52px;
  line-height: 1.08;
}

.section p,
.section-intro {
  color: var(--muted);
}

.section-intro {
  max-width: 760px;
  margin: 18px 0 38px;
  font-size: 19px;
}

.section-heading-row {
  display: grid;
  grid-template-columns: 1fr 260px;
  align-items: end;
  gap: 28px;
  margin-bottom: 30px;
}

.section-heading-row p {
  max-width: 680px;
  margin: 14px 0 0;
  font-size: 19px;
}

.command-section {
  position: relative;
  padding-top: 72px;
}

.command-section::before {
  content: "";
  position: absolute;
  top: 52px;
  left: 50%;
  z-index: -1;
  width: min(1180px, calc(100vw - 40px));
  height: 360px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 113, 227, 0.09), transparent 44%),
    linear-gradient(45deg, rgba(0, 166, 108, 0.07), transparent 52%),
    #ffffff;
  transform: translateX(-50%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.progress-card,
.success-panel,
.task-guide-card,
.mentor-card,
.phase-card,
.week-card,
.project-card,
.resource-link {
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  background: var(--surface);
}

.progress-card {
  padding: 20px;
  box-shadow: var(--shadow);
}

.progress-card span {
  color: var(--muted);
  font-size: 13px;
}

.progress-card strong {
  display: block;
  margin: 4px 0 14px;
  font-size: 30px;
}

.progress-card small {
  display: block;
  margin: -7px 0 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e8ed;
}

.progress-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
  transition: width 220ms ease;
}

.today-command-bar {
  display: grid;
  grid-template-columns: 1.05fr 0.9fr 1.05fr;
  gap: 12px;
  margin: -6px 0 18px;
}

.command-tile {
  min-height: 148px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.055);
  padding: 20px;
}

.command-tile span {
  display: block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
}

.command-tile strong {
  display: block;
  color: var(--text);
  font-size: 26px;
  line-height: 1.12;
}

.command-tile p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.command-tile-primary {
  background: #050505;
  color: #f5f5f7;
  border-color: rgba(255, 255, 255, 0.12);
}

.command-tile-primary strong {
  color: #f5f5f7;
}

.command-tile-primary p {
  color: #a1a1a6;
}

.today-lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  align-items: start;
  gap: 16px;
}

.task-guide-list {
  display: grid;
  gap: 14px;
}

.task-guide-card {
  min-width: 0;
  position: relative;
  overflow: hidden;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 1)),
    var(--surface);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.045);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.task-guide-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #d9d9df;
}

.task-guide-card.is-current::before {
  background: linear-gradient(180deg, var(--blue), var(--green));
}

.task-guide-card.is-current {
  border-color: rgba(0, 113, 227, 0.32);
}

.task-guide-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 113, 227, 0.24);
  box-shadow: var(--shadow);
}

.task-guide-card:has(input:checked) {
  border-color: rgba(0, 166, 108, 0.42);
  background: linear-gradient(180deg, #f7fffb, #fff);
}

.task-guide-top {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 16px;
  margin-bottom: 20px;
}

.task-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.task-check {
  position: relative;
  display: inline-flex;
  width: 28px;
  height: 28px;
  cursor: pointer;
}

.task-check input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.task-check span {
  display: block;
  width: 28px;
  height: 28px;
  border: 2px solid #a1a1a6;
  border-radius: 7px;
  background: #fff;
}

.task-check input:checked + span {
  border-color: var(--green);
  background:
    linear-gradient(135deg, transparent 44%, #fff 45% 55%, transparent 56%),
    linear-gradient(45deg, transparent 42%, #fff 43% 55%, transparent 56%),
    var(--green);
}

.task-number {
  display: inline-block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.priority-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  background: rgba(0, 113, 227, 0.11);
  color: var(--blue);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.task-guide-card h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.16;
}

.task-guide-card p {
  margin: 10px 0 0;
}

.task-detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 14px;
}

.how-panel,
.command-panel {
  min-width: 0;
  border-radius: var(--radius);
  background: #f4f4f7;
  padding: 18px;
}

.how-panel h4,
.command-panel h4,
.task-proof-grid strong {
  display: block;
  margin: 0 0 10px;
  color: var(--text);
  font-size: 14px;
}

.command-block {
  max-width: 100%;
  overflow-x: auto;
  margin: 0;
  border-radius: 7px;
  background: #111216;
  color: #f5f5f7;
  padding: 16px;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.task-proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.task-proof-grid div {
  min-width: 0;
  min-height: 126px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 0, 0, 0.045);
  background: #fbfbfd;
  padding: 16px;
}

.task-proof-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.mentor-rail {
  position: sticky;
  top: 72px;
  display: grid;
  gap: 14px;
}

.mentor-card {
  padding: 22px;
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.045);
}

.mentor-card span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}

.mentor-card h3 {
  margin: 8px 0 10px;
  font-size: 28px;
  line-height: 1.12;
}

.mentor-card p {
  margin-bottom: 0;
}

.mentor-card-dark {
  background:
    linear-gradient(145deg, rgba(0, 113, 227, 0.22), transparent 46%),
    #050505;
  color: #f5f5f7;
}

.mentor-card-dark p {
  color: #a1a1a6;
}

.success-panel {
  margin-top: 16px;
  padding: 24px;
  background: var(--surface-soft);
}

.success-panel h3,
.phase-columns h3,
.project-card h4 {
  margin: 0 0 10px;
  font-size: 16px;
}

ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}

li + li {
  margin-top: 7px;
}

.phase-list {
  display: grid;
  gap: 12px;
}

.phase-toggle {
  display: grid;
  grid-template-columns: 58px 1fr 28px;
  align-items: center;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  padding: 20px;
}

.phase-index {
  color: var(--blue);
  font-size: 20px;
  font-weight: 800;
}

.phase-toggle strong {
  display: block;
  font-size: 22px;
}

.phase-toggle small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.phase-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 24px;
  transition: transform 160ms ease;
}

.phase-card.is-open .phase-icon {
  transform: rotate(45deg);
}

.phase-body {
  display: none;
  padding: 0 20px 22px 78px;
}

.phase-card.is-open .phase-body {
  display: block;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: #f0f0f3;
  color: #424245;
  padding: 0 11px;
  font-size: 13px;
  font-weight: 600;
}

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

.dark-section {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 96px max(20px, calc((100% - 1180px) / 2));
  background: #050505;
  color: #f5f5f7;
}

.dark-section h2,
.dark-section h3 {
  color: #f5f5f7;
}

.dark-section .section-intro,
.dark-section p,
.dark-section ul {
  color: #a1a1a6;
}

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

.month-card {
  min-height: 340px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.075);
  padding: 24px;
}

.month-card span,
.project-card > span,
.week-card span {
  display: inline-block;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
}

.month-card h3,
.week-card h3,
.project-card h3 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.18;
}

.month-card strong {
  display: block;
  margin-bottom: 10px;
  color: #f5f5f7;
}

.pill-dark {
  background: rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
}

.week-strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.week-card {
  min-height: 210px;
  padding: 18px;
}

.week-card p {
  margin-bottom: 0;
}

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

.project-card {
  min-height: 520px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.project-card p {
  min-height: 76px;
}

.visual-meter {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 84px;
  margin: 24px 0;
  padding: 16px;
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(0, 113, 227, 0.12), rgba(0, 166, 108, 0.12)),
    #f5f5f7;
}

.visual-meter i {
  flex: 1;
  height: 16px;
  border-radius: 999px;
  background: var(--blue);
}

.visual-meter i:nth-child(2) {
  height: 32px;
  background: var(--green);
}

.visual-meter i:nth-child(3) {
  height: 48px;
  background: var(--amber);
}

.visual-meter i:nth-child(4) {
  height: 58px;
  background: #7d7aff;
}

.visual-meter i:nth-child(5) {
  height: 68px;
  background: #111;
}

.resource-section {
  padding-bottom: 72px;
}

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

.resource-link {
  display: grid;
  gap: 6px;
  padding: 18px;
  transition:
    transform 160ms ease,
    border-color 160ms ease;
}

.resource-link:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 113, 227, 0.28);
}

.resource-link span {
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 28px 20px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 68px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero-console {
    min-height: 360px;
  }

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

  .section-heading-row,
  .today-command-bar,
  .today-lab,
  .task-detail-grid,
  .phase-columns {
    grid-template-columns: 1fr;
  }

  .mentor-rail {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-proof-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 700px) {
  .site-nav {
    width: calc(100% - 28px);
  }

  .brand {
    font-size: 13px;
  }

  .nav-links {
    gap: 16px;
  }

  .hero-content,
  .section {
    width: calc(100% - 28px);
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero p,
  .section-heading-row p,
  .section-intro {
    font-size: 17px;
  }

  .section {
    padding: 70px 0;
  }

  .command-section::before {
    width: calc(100vw - 28px);
    height: 420px;
  }

  .section h2 {
    font-size: 36px;
  }

  .month-grid,
  .project-grid,
  .resource-grid,
  .week-strip,
  .mentor-rail {
    grid-template-columns: 1fr;
  }

  .task-guide-card {
    padding: 18px;
  }

  .command-tile {
    min-height: auto;
    padding: 16px;
  }

  .command-tile strong {
    font-size: 22px;
  }

  .task-guide-top {
    grid-template-columns: 30px 1fr;
    gap: 12px;
  }

  .task-guide-card h3 {
    font-size: 23px;
  }

  .how-panel,
  .command-panel,
  .task-proof-grid div {
    padding: 14px;
  }

  .command-block {
    font-size: 12px;
  }

  .phase-toggle {
    grid-template-columns: 44px 1fr 24px;
    padding: 16px;
  }

  .phase-toggle strong {
    font-size: 19px;
  }

  .phase-body {
    padding: 0 16px 18px;
  }

  .month-card,
  .project-card {
    min-height: auto;
  }
}
