:root {
  color-scheme: light;
  --ink: #18212b;
  --muted: #687581;
  --paper: #f7f5f0;
  --panel: #fffefa;
  --line: #e2ded5;
  --orange: #f48120;
  --orange-dark: #bc5d09;
  --blue: #386d91;
  --green: #3d8d6b;
  --shadow: 0 18px 45px rgba(55, 47, 36, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(247, 245, 240, 0.9);
}

.nav-wrap,
.footer-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 0.96rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 9px;
  background: var(--orange);
  color: white;
  font-size: 0.75rem;
  font-weight: 850;
}

.phase-tag,
.eyebrow {
  color: var(--orange-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.hero {
  max-width: 760px;
  padding: 105px 0 75px;
}

.eyebrow {
  margin: 0 0 17px;
}

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

h1 {
  margin-bottom: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.6rem, 10vw, 7.5rem);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.9;
}

h1 span {
  color: var(--orange);
}

.hero-copy {
  max-width: 600px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 19px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

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

.button-primary {
  cursor: pointer;
  background: var(--orange);
  box-shadow: 0 8px 18px rgba(244, 129, 32, 0.22);
  color: white;
}

.button-secondary {
  border-color: var(--line);
  color: var(--ink);
}

.status-message {
  min-height: 26px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

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

.status-card,
.learning-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.status-card {
  min-height: 174px;
  padding: 22px;
}

.status-card-highlight {
  border-color: rgba(61, 141, 107, 0.32);
  background: #f7fbf6;
}

.card-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

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

.status-card strong {
  display: block;
  margin: 19px 0 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  font-weight: 500;
}

.status-card p,
.learning-card p,
.section-intro > p:last-child {
  color: var(--muted);
  font-size: 0.9rem;
}

code {
  border-radius: 4px;
  background: #eeebe3;
  padding: 2px 5px;
  color: var(--orange-dark);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.88em;
}

.section-block {
  padding: 120px 0 0;
}

.section-intro {
  max-width: 620px;
}

h2 {
  margin-bottom: 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1;
}

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: start;
  gap: 12px;
  margin-top: 45px;
  border-top: 1px solid var(--line);
  padding-top: 25px;
}

.flow-step h3,
.learning-card h3 {
  margin: 12px 0 6px;
  font-size: 1rem;
}

.flow-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.flow-number {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.flow-arrow {
  padding-top: 22px;
  color: var(--orange);
  font-size: 1.35rem;
}

.learning-grid {
  margin-top: 100px;
}

.learning-card {
  min-height: 245px;
  padding: 25px;
}

.card-icon {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: #fff0e3;
  color: var(--orange-dark);
  font-size: 1.25rem;
}

.learning-card a {
  color: var(--orange-dark);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.glossary {
  padding-bottom: 115px;
}

.glossary-list {
  margin: 45px 0 0;
  border-top: 1px solid var(--line);
}

.glossary-list > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
}

dt {
  font-weight: 800;
}

dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.76rem;
}

@media (max-width: 800px) {
  .hero {
    padding-top: 75px;
  }

  .dashboard-grid,
  .learning-grid {
    grid-template-columns: 1fr;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .flow-arrow {
    display: none;
  }

  .glossary-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .phase-tag {
    font-size: 0.61rem;
    letter-spacing: 0.08em;
  }

  .footer-wrap {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }
}
