:root {
  --bg: #f4f1e8;
  --bg-alt: #e9e5d8;
  --ink: #0b0d10;
  --muted: #67695f;
  --line: rgba(11, 13, 16, 0.14);
  --acid: #d7ff4f;
  --orange: #ff7a45;
  --violet: #8a72ff;
  --blue: #62b6ff;
  --card: #fdfbf5;
  --radius: 24px;
  --shadow: 0 18px 50px rgba(11, 13, 16, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
body::selection { background: var(--acid); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { color: inherit; }

.site-shell { overflow: hidden; }
.topbar {
  width: min(1240px, calc(100% - 32px));
  margin: 16px auto 0;
  height: 72px;
  padding: 0 12px 0 18px;
  display: flex;
  align-items: center;
  gap: 28px;
  position: sticky;
  top: 12px;
  z-index: 20;
  border: 1px solid var(--line);
  background: rgba(244, 241, 232, 0.88);
  backdrop-filter: blur(18px);
  border-radius: 999px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: var(--acid); font-family: "Space Grotesk", sans-serif; font-size: 19px;
}
.brand-name { font-family: "Space Grotesk", sans-serif; letter-spacing: -0.03em; font-size: 18px; }
.nav { display: flex; gap: 24px; margin-left: auto; font-size: 14px; font-weight: 600; }
.nav a { opacity: 0.72; }
.nav a:hover { opacity: 1; }

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 22px; border: 1px solid var(--ink); border-radius: 999px;
  background: var(--ink); color: white; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11,13,16,.16); }
.button-small { min-height: 46px; padding: 0 18px; font-size: 14px; }
.button-light { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.text-link { font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }

.section-pad { padding-left: max(24px, calc((100vw - 1180px) / 2)); padding-right: max(24px, calc((100vw - 1180px) / 2)); }
.hero { padding-top: 112px; padding-bottom: 86px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; font-weight: 800; text-transform: uppercase; }
.hero h1, .section h2, .final-cta h2 {
  font-family: "Space Grotesk", sans-serif; letter-spacing: -0.055em; line-height: .98; margin: 20px 0 24px;
}
.hero h1 { font-size: clamp(58px, 9vw, 126px); max-width: 1100px; }
.hero h1 span { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.hero-copy { max-width: 750px; font-size: clamp(18px, 2vw, 24px); color: #45473f; margin: 0; }
.hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 36px; }
.hero-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 72px; }
.hero-stat { min-height: 220px; border-radius: var(--radius); border: 1px solid var(--line); padding: 26px; background: var(--card); display: flex; flex-direction: column; justify-content: space-between; }
.hero-stat-dark { background: var(--ink); color: white; }
.hero-stat-accent { background: var(--acid); }
.stat-kicker { font-size: 11px; letter-spacing: .15em; font-weight: 800; }
.stat-value { font-family: "Space Grotesk"; font-size: 76px; font-weight: 700; letter-spacing: -.06em; line-height: .9; }
.stat-label { font-size: 15px; font-weight: 600; }

.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--acid); }
.ticker-track { padding: 15px 0; display: flex; width: max-content; gap: 28px; font-family: "Space Grotesk"; font-size: 17px; font-weight: 700; animation: drift 35s linear infinite alternate; }
.ticker-track span::after { content: "•"; margin-left: 28px; }
@keyframes drift { from { transform: translateX(2vw); } to { transform: translateX(-22vw); } }

.section { padding-top: 112px; padding-bottom: 112px; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: white; }
.section-heading { margin-bottom: 48px; }
.section-heading h2 { font-size: clamp(42px, 6vw, 76px); max-width: 900px; }
.section-heading > p { max-width: 650px; color: var(--muted); font-size: 18px; }
.split-heading { display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: end; }
.split-heading > p { margin: 0 0 12px; color: var(--muted); font-size: 18px; }
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.step-card { border-top: 1px solid var(--ink); padding: 22px 10px 16px 0; min-height: 220px; }
.step-number { font-family: "Space Grotesk"; font-size: 13px; font-weight: 700; }
.step-card h3 { font-family: "Space Grotesk"; margin: 42px 0 12px; font-size: 24px; letter-spacing: -.03em; }
.step-card p { color: var(--muted); margin: 0; }

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.chip { padding: 10px 15px; border: 1px solid var(--line); background: transparent; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 700; }
.chip.active, .chip:hover { background: var(--ink); color: white; border-color: var(--ink); }
.program-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.program-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; min-height: 350px; display: flex; flex-direction: column; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.program-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.program-card-top { min-height: 116px; padding: 22px; display: flex; align-items: flex-start; justify-content: space-between; }
.program-icon { width: 46px; height: 46px; border: 1px solid rgba(11,13,16,.22); border-radius: 14px; display: grid; place-items: center; font-family: "Space Grotesk"; font-weight: 700; font-size: 13px; }
.program-number { font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.program-card-body { padding: 24px; border-top: 1px solid var(--line); flex: 1; display: flex; flex-direction: column; }
.program-card h3 { font-family: "Space Grotesk"; letter-spacing: -.035em; font-size: 28px; line-height: 1.05; margin: 0 0 12px; }
.program-card p { color: var(--muted); margin: 0 0 26px; }
.program-meta { margin-top: auto; display: flex; justify-content: space-between; gap: 14px; font-size: 13px; font-weight: 700; }
.program-meta span:last-child { text-align: right; }

.curriculum-section { background: #f8f6ef; }
.curriculum-controls { display: flex; flex-direction: column; gap: 8px; min-width: 280px; }
.curriculum-controls label { font-size: 12px; letter-spacing: .12em; font-weight: 800; }
.curriculum-controls select { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; background: white; font-weight: 700; }
.program-summary { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.program-summary > div { padding: 20px 18px 20px 0; }
.program-summary > div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.summary-label { display: block; font-size: 10px; letter-spacing: .13em; font-weight: 800; color: var(--muted); margin-bottom: 5px; }
.progress-panel { display: grid; grid-template-columns: 230px 1fr auto; gap: 20px; align-items: center; padding: 18px; border: 1px solid var(--line); background: var(--card); border-radius: 18px; margin-bottom: 22px; }
.progress-bar { height: 9px; background: #ddd9cd; border-radius: 999px; overflow: hidden; }
.progress-bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width .25s ease; }
.text-button { border: 0; background: transparent; font-size: 13px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.week-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.week-card { border: 1px solid var(--line); background: white; border-radius: 16px; padding: 18px; display: grid; grid-template-columns: 58px 1fr auto; gap: 16px; align-items: center; cursor: pointer; transition: border-color .2s ease, transform .2s ease; }
.week-card:hover { border-color: var(--ink); transform: translateY(-1px); }
.week-card.completed { background: #eff8cb; }
.week-no { font-family: "Space Grotesk"; font-size: 13px; font-weight: 800; }
.week-title strong { display: block; font-family: "Space Grotesk"; font-size: 17px; letter-spacing: -.02em; }
.week-title span { color: var(--muted); font-size: 13px; }
.week-status { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; }
.week-card.completed .week-status { background: var(--ink); color: var(--acid); border-color: var(--ink); }

.build-proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.eyebrow-light { color: var(--acid); }
.build-proof-grid h2 { font-size: clamp(48px, 6vw, 84px); }
.light-copy { color: rgba(255,255,255,.68); max-width: 560px; font-size: 18px; }
.repo-card { border: 1px solid rgba(255,255,255,.18); border-radius: 24px; background: #14171c; overflow: hidden; box-shadow: 0 22px 70px rgba(0,0,0,.24); }
.repo-topline { height: 58px; border-bottom: 1px solid rgba(255,255,255,.12); display: flex; align-items: center; gap: 10px; padding: 0 20px; color: rgba(255,255,255,.58); font-size: 13px; }
.repo-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--acid); }
.repo-card pre { margin: 0; padding: 30px; overflow: auto; color: #e7e8de; font: 15px/1.8 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.certificate-card { display: grid; grid-template-columns: 1fr .9fr; gap: 54px; align-items: center; padding: 44px; border: 1px solid var(--line); border-radius: 34px; background: var(--card); }
.certificate-copy h2 { font-size: clamp(42px, 5vw, 70px); }
.certificate-copy > p { color: var(--muted); font-size: 18px; }
.certificate-requirements { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.certificate-requirements span { padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; font-weight: 700; }
.fine-print { font-size: 12px !important; }
.certificate-visual { aspect-ratio: 1.25/1; background: var(--acid); border: 1px solid var(--ink); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; box-shadow: 12px 12px 0 var(--ink); }
.cert-brand, .cert-small, .cert-bottom { font-size: 10px; letter-spacing: .14em; font-weight: 800; }
.cert-small { margin-top: 55px; }
.cert-line { height: 1px; background: var(--ink); margin: 12px 0 18px; }
.cert-name { font-family: "Space Grotesk"; font-size: clamp(32px, 4vw, 54px); font-weight: 700; letter-spacing: -.05em; }
.cert-copy { margin-top: 12px; font-size: 14px; }
.cert-bottom { margin-top: auto; }

.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
details { border-top: 1px solid var(--ink); padding: 18px 0; }
summary { cursor: pointer; list-style: none; font-family: "Space Grotesk"; font-size: 20px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
details p { color: var(--muted); max-width: 570px; }

.final-cta { background: var(--ink); color: white; padding-top: 110px; padding-bottom: 110px; text-align: center; }
.final-cta .eyebrow { color: var(--acid); }
.final-cta h2 { font-size: clamp(64px, 10vw, 132px); margin-left: auto; margin-right: auto; }
.footer { padding: 54px max(24px, calc((100vw - 1180px) / 2)); display: grid; grid-template-columns: 1.2fr .8fr; gap: 28px; border-top: 1px solid var(--line); }
.footer p { color: var(--muted); max-width: 380px; }
.footer-links { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 28px; align-content: start; font-weight: 700; }
.footer-meta { grid-column: 1 / -1; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); padding-top: 18px; }

.week-dialog { width: min(720px, calc(100% - 28px)); border: 0; border-radius: 26px; padding: 0; background: var(--card); color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.28); }
.week-dialog::backdrop { background: rgba(11,13,16,.62); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: white; cursor: pointer; font-size: 24px; }
.dialog-inner { padding: 36px; }
.dialog-week { font-size: 11px; letter-spacing: .14em; font-weight: 800; color: var(--muted); }
.dialog-inner h3 { font: 700 36px/1.05 "Space Grotesk"; letter-spacing: -.04em; margin: 12px 0; padding-right: 40px; }
.dialog-phase { color: var(--muted); margin-bottom: 26px; }
.dialog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.dialog-box { border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.dialog-box b { display: block; font-size: 11px; letter-spacing: .1em; margin-bottom: 8px; }
.dialog-box p { margin: 0; color: var(--muted); }
.tasks-heading { margin: 24px 0 10px; font-family: "Space Grotesk"; font-size: 15px; letter-spacing: .08em; }
.task-list { margin: 0 0 0; }

/* Expandable task cards */
.task-detail { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; overflow: hidden; background: white; }
.task-detail[open] { border-color: var(--ink); }
.task-summary {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  cursor: pointer; list-style: none; font-family: "Space Grotesk"; font-weight: 600; font-size: 15px;
  user-select: none;
}
.task-summary::-webkit-details-marker { display: none; }
.task-summary::after { content: '+'; margin-left: auto; font-size: 20px; color: var(--muted); line-height: 1; flex-shrink: 0; }
.task-detail[open] .task-summary::after { content: '−'; color: var(--ink); }
.task-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--acid);
  display: grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0;
  font-family: "Space Grotesk";
}
.task-detail[open] .task-num { background: var(--acid); color: var(--ink); }
.task-summary-title { flex: 1; }
.task-body { border-top: 1px solid var(--line); }

/* Steps section */
.task-section { padding: 18px 20px; }
.task-section + .task-section { border-top: 1px solid var(--line); }
.task-section-label {
  font-size: 10px; letter-spacing: .13em; font-weight: 800; color: var(--muted);
  margin-bottom: 12px; text-transform: uppercase;
}
.task-steps { margin: 0; padding-left: 22px; }
.task-steps li { margin: 9px 0; line-height: 1.6; font-size: 14px; color: var(--ink); }
.task-steps li strong { font-weight: 700; }
.task-steps li em { font-style: italic; }
.task-steps li code { background: #f0ede4; padding: 1px 5px; border-radius: 5px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

/* Learning material section */
.task-learn { background: #f8f6ef; }
.task-learn-list { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.task-learn-list li { font-size: 14px; line-height: 1.65; color: #3a3c35; padding-left: 16px; border-left: 3px solid var(--acid); }
.task-learn-list li strong { font-weight: 700; color: var(--ink); }
.task-learn-list li em { font-style: italic; }
.task-learn-list li code { background: #eceadf; padding: 1px 5px; border-radius: 5px; font-size: 13px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.repo-input-wrap { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.repo-input-wrap label { display: block; font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.repo-input { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 12px; padding: 0 13px; background: white; }
.dialog-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.dialog-actions button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--ink); font-weight: 700; cursor: pointer; }
.complete-button { background: var(--ink); color: white; }
.save-button { background: var(--acid); }

@media (max-width: 980px) {
  .nav { display: none; }
  .topbar { justify-content: space-between; }
  .topbar .button-small { margin-left: auto; }
  .hero-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: repeat(2, 1fr); }
  .split-heading, .build-proof-grid, .certificate-card { grid-template-columns: 1fr; }
  .program-summary { grid-template-columns: repeat(2, 1fr); }
  .program-summary > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .program-summary > div:nth-child(4) { border-top: 1px solid var(--line); }
  .progress-panel { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar { width: calc(100% - 20px); margin-top: 10px; top: 8px; height: 62px; }
  .topbar .button-small { display: none; }
  .hero { padding-top: 84px; }
  .hero h1 span { -webkit-text-stroke-width: 1px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-grid, .steps-grid, .program-grid, .week-list, .faq-grid { grid-template-columns: 1fr; }
  .hero-stat { min-height: 165px; }
  .stat-value { font-size: 60px; }
  .section { padding-top: 76px; padding-bottom: 76px; }
  .section-heading h2 { font-size: 44px; }
  .program-summary { grid-template-columns: 1fr; }
  .program-summary > div + div { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .week-card { grid-template-columns: 48px 1fr auto; }
  .certificate-card { padding: 26px; }
  .certificate-visual { min-height: 360px; }
  .footer { grid-template-columns: 1fr; }
  .footer-meta { grid-column: 1; }
  .dialog-inner { padding: 28px 20px; }
  .dialog-grid { grid-template-columns: 1fr; }
}
