:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --text: #111114;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.1);
  --dark: #08080a;
  --blue: #0071e3;
  --green: #2fbf71;
  --amber: #f5a524;
  --rose: #e84a5f;
  --radius: 8px;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.12);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  letter-spacing: 0;
}

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

button,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 54px;
  padding: 0 clamp(18px, 4vw, 58px);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(12, 12, 14, 0.58);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  font-size: 13px;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.72);
  transition: color 180ms ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border: 0;
  background: transparent;
  color: currentColor;
  padding: 10px;
}

.nav-toggle span {
  display: block;
  height: 1px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 100px clamp(22px, 6vw, 96px) 80px;
  background: #050506;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.74;
  transform: scale(1.02);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.56) 43%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0) 42%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow.dark {
  color: var(--blue);
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(18px, 2.2vw, 25px);
  line-height: 1.48;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

.button.primary {
  background: #fff;
  color: #000;
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 560px;
  margin-top: 44px;
}

.hero-metrics div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.hero-metrics strong {
  display: block;
  font-size: 31px;
}

.hero-metrics span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.section {
  padding: clamp(72px, 10vw, 132px) clamp(18px, 5vw, 72px);
}

.section-tight {
  padding-top: clamp(54px, 8vw, 96px);
}

.section-heading {
  max-width: 820px;
  margin: 0 auto 42px;
  text-align: center;
}

.section-heading h2,
.final-cta h2 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 72px);
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.final-cta p {
  margin: 18px auto 0;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}

.today-grid,
.ability-grid,
.stage-grid,
.project-grid,
.checklist-grid,
.pitfall-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
}

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

.task-card {
  min-height: 430px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.task-card.accent {
  grid-column: span 2;
  color: #fff;
  background: #111114;
}

.task-card input {
  width: 22px;
  height: 22px;
  accent-color: var(--blue);
}

.task-number {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.task-card.accent .task-number {
  color: #6ab7ff;
}

.task-card strong {
  display: block;
  font-size: 20px;
  line-height: 1.22;
}

.task-card small {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.task-card.accent small {
  color: rgba(255, 255, 255, 0.68);
}

.task-main {
  display: block;
}

.task-detail {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.task-card.accent .task-detail {
  border-top-color: rgba(255, 255, 255, 0.16);
}

.detail-label {
  display: inline-flex;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.task-card.accent .detail-label {
  color: #8bd3ff;
}

.task-detail ol {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.task-detail li + li {
  margin-top: 6px;
}

.task-card.accent .task-detail ol {
  color: rgba(255, 255, 255, 0.72);
}

.task-meta {
  display: block;
  margin-top: 12px;
  padding: 11px 12px;
  border-radius: var(--radius);
  color: #3b3b40;
  background: #f5f5f7;
  font-size: 13px;
  line-height: 1.48;
}

.task-meta b {
  color: var(--text);
}

.task-card.accent .task-meta {
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.1);
}

.task-card.accent .task-meta b {
  color: #fff;
}

.task-card code {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.07);
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.task-card.accent code {
  background: rgba(255, 255, 255, 0.14);
}

.progress-panel {
  width: min(760px, calc(100% - 36px));
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  margin: 28px auto 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.progress-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
}

.progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--green));
  transition: width 220ms ease;
}

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

.ability-grid article,
.stage-card,
.project-card,
.pitfall-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.ability-grid article span,
.stage-card span,
.project-card span {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.ability-grid h3,
.stage-card h3,
.project-card h3,
.pitfall-grid h3 {
  margin: 14px 0 0;
  font-size: 22px;
  line-height: 1.18;
}

.ability-grid p,
.stage-card p,
.project-card li,
.pitfall-grid p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.dark-band {
  background: var(--dark);
  color: #fff;
}

.section-heading.inverted p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.64);
}

.month-strip {
  width: min(1220px, 100%);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0 auto;
}

.month-strip article {
  min-height: 270px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.month-strip span {
  color: #9ac7ff;
  font-size: 13px;
  font-weight: 800;
}

.month-strip h3 {
  margin: 18px 0 0;
  font-size: 22px;
  line-height: 1.2;
}

.month-strip p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.66);
  line-height: 1.55;
}

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

.stage-card {
  min-height: 250px;
}

.stage-card strong {
  display: block;
  margin-top: 18px;
  line-height: 1.45;
}

.routine {
  background: #fff;
}

.routine-layout {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  margin: 0 auto;
}

.time-switch {
  display: grid;
  gap: 10px;
  align-content: start;
}

.time-switch button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f5f5f7;
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
}

.time-switch button.active {
  color: #fff;
  background: var(--text);
}

.routine-copy,
.week-list {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f5f5f7;
}

.routine-copy {
  grid-column: 2;
}

.routine-copy h3 {
  margin: 0;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.08;
}

.routine-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.week-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding-left: 26px;
  list-style-position: inside;
}

.week-list li {
  min-height: 150px;
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
}

.week-list strong,
.week-list span {
  display: block;
}

.week-list span {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

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

.project-card {
  min-height: 420px;
  box-shadow: 0 16px 55px rgba(0, 0, 0, 0.08);
}

.project-card.featured {
  color: #fff;
  background: #111114;
}

.project-card.featured span {
  color: #8bd3ff;
}

.project-card.featured li {
  color: rgba(255, 255, 255, 0.72);
}

.project-card ul {
  padding-left: 20px;
}

.checklist-section {
  background: #fff;
}

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

.checklist-grid label {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 76px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f5f5f7;
  line-height: 1.55;
}

.checklist-grid input {
  width: 22px;
  height: 22px;
  accent-color: var(--green);
}

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

.final-cta {
  display: grid;
  justify-items: center;
  padding: clamp(80px, 12vw, 150px) clamp(20px, 6vw, 80px);
  text-align: center;
  color: #fff;
  background: #111114;
}

.final-cta p {
  color: rgba(255, 255, 255, 0.68);
}

.final-cta .button {
  margin-top: 28px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 72px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--blue);
  font-weight: 700;
}

@media (max-width: 1100px) {
  .today-grid,
  .ability-grid,
  .month-strip,
  .stage-grid,
  .project-grid,
  .pitfall-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .site-header {
    height: 58px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 58px;
    left: 12px;
    right: 12px;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(20, 20, 22, 0.92);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
  }

  .nav-links.open {
    display: grid;
  }

  .nav-links a {
    padding: 14px 12px;
  }

  .hero {
    min-height: 88vh;
    align-items: center;
    padding: 112px 20px 52px;
  }

  .hero-image {
    opacity: 0.54;
    object-position: 58% center;
  }

  .hero-shade {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, 0.9) 5%, rgba(0, 0, 0, 0.56) 58%, rgba(0, 0, 0, 0.2) 100%);
  }

  .hero h1 {
    font-size: clamp(43px, 13vw, 58px);
    line-height: 1;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .hero-metrics {
    margin-top: 24px;
  }

  .hero-metrics,
  .today-grid,
  .ability-grid,
  .month-strip,
  .stage-grid,
  .project-grid,
  .checklist-grid,
  .pitfall-grid,
  .routine-layout,
  .week-list {
    grid-template-columns: 1fr;
  }

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

  .task-card.accent {
    grid-column: auto;
  }

  .task-detail {
    padding-top: 16px;
  }

  .task-detail ol {
    font-size: 13px;
  }

  .progress-panel {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .routine-copy,
  .week-list {
    grid-column: auto;
  }

  .site-footer {
    flex-direction: column;
  }
}
