@import url('/_tokens.css');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #faf7ef;
  --bg-alt:   #f2ede0;
  --white:    #f2ede0;
  --text:     #16231c;
  --muted:    #6e7460;
  --border:   #ded7c4;
  --accent:   #b58a34;
  --indigo:   #8c6a26;
  --navy:     #16231c;
  --font:     'DM Sans', system-ui, sans-serif;

  /* ZenCloud master design system tokens */
  --vaf-bg:             var(--bg);
  --vaf-surface:        var(--white);
  --vaf-surface-raised: var(--bg-alt);
  --vaf-border:         var(--border);
  --vaf-border-strong:  #c9bfa6;
  --vaf-text:           var(--text);
  --vaf-text-2:         #3d4536;
  --vaf-text-3:         #6e7460;
  --vaf-accent:         var(--accent);
  --vaf-accent-hover:   #8c6a26;
  --vaf-accent-subtle:  rgba(181,138,52,0.08);
  --vaf-accent-border:  rgba(181,138,52,0.22);
  --vaf-navy:           #16231c;
  --vaf-navy-dark:      #0f1712;
  --vaf-font-heading:   'Playfair Display', Georgia, serif;
  --vaf-font-body:      var(--font);
  --vaf-font-mono:      'DM Mono', ui-monospace, monospace;
  --vaf-radius-sm:      4px;
  --vaf-radius-md:      8px;
  --vaf-radius-lg:      10px;
  --vaf-shadow:         0 2px 8px rgba(22,35,28,0.06);
  --vaf-shadow-md:      0 8px 24px rgba(22,35,28,0.12);
  --vaf-transition:     200ms ease;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Navigation */
nav {
  background: rgba(250,247,239,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid #ded7c4;
  box-shadow: 0 1px 4px rgba(22,35,28,0.06);
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 2rem;
}

.nav-brand {
  font-weight: 700;
  font-size: 0.9375rem;
  color: #16231c;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex: 1;
}

.nav-links a {
  color: #6e7460;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-links a:hover { color: var(--accent); }

.nav-cta {
  background: var(--accent);
  color: white;
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  text-decoration: none;
  font-family: var(--vaf-font-mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.18s, transform 0.12s;
}

.nav-cta:hover {
  background: var(--vaf-accent-hover);
  transform: translateY(-1px);
}

/* Layout helpers */
section { padding: 5rem 2rem; }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--vaf-font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

h1, h2, h3 { font-family: var(--vaf-font-heading); }

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--text);
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.375rem;
}

p { color: var(--muted); line-height: 1.7; }

.intro-text {
  max-width: 680px;
  font-size: 1.0625rem;
  margin-bottom: 0;
}

.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* Hero - stays dark for brand impact */
.hero {
  background: linear-gradient(135deg, #16231c 0%, #16231c 60%, #16231c 100%);
  padding: 7rem 2rem;
}

.hero-bar {
  display: inline-block;
  background: var(--accent);
  width: 48px;
  height: 4px;
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

.hero h1 { color: white; }

.hero-sub {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: #ddb35c;
  margin: 1.25rem 0 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.hero-copy {
  max-width: 600px;
  font-size: 1rem;
  color: #c9bfa6;
  margin-bottom: 2.5rem;
}

.btn-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent);
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: background var(--vaf-transition), transform var(--vaf-transition), box-shadow var(--vaf-transition);
  box-shadow: 0 2px 8px rgba(181,138,52,0.25);
}

.btn-primary:hover {
  background: var(--vaf-accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(181,138,52,0.35);
}

.btn-outline {
  background: transparent;
  color: white;
  padding: 0.875rem 1.75rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 2px solid rgba(250,247,239,0.28);
  transition: border-color 0.15s;
}

.btn-outline:hover { border-color: rgba(250,247,239,0.65); }

.text-link {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.text-link:hover { color: var(--vaf-accent-hover); }

.detail-list {
  margin-top: 1rem;
  padding-left: 1.1rem;
  color: var(--muted);
}

.detail-list li { margin-bottom: 0.5rem; }

.kicker-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.content-band {
  border-left: 4px solid var(--accent);
  padding-left: 1.25rem;
  margin-top: 2rem;
}

.content-band p { max-width: 820px; }

.module-structure {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.module-step {
  background: #faf7ef;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  box-shadow: 0 1px 3px rgba(22,35,28,0.06);
}

.module-step strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.35rem;
}

/* Teach grid */
.teach-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
  margin-top: 2.5rem;
}

.teach-item {
  background: #faf7ef;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.125rem 1.375rem;
  display: flex;
  align-items: center;
  gap: 0.875rem;
  box-shadow: 0 1px 3px rgba(22,35,28,0.06);
}

.teach-dot {
  width: 8px;
  height: 8px;
  min-width: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.teach-item strong {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

/* Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.card {
  background: #faf7ef;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 1px 3px rgba(22,35,28,0.06);
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.12s;
}

.card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(22,35,28,0.10);
  transform: translateY(-1px);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 0.625rem;
}

/* Badges - tuned for white backgrounds */
.badge {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

.badge-available { background: #DCFCE7; color: #15803D; border: 1px solid #86EFAC; }
.badge-planned   { background: #EEF2FF; color: #4338CA; border: 1px solid #C7D2FE; }
.badge-seed      { background: #f7f0dc; color: #C2410C; border: 1px solid #e8dcc0; }
.badge-future    { background: #ebe4d2; color: #6e7460; border: 1px solid #c9bfa6; }

/* Section dark - intentionally stays dark for contrast */
.section-dark {
  background: #16231c;
  border-top: 3px solid var(--accent);
}

.section-dark .section-label { color: var(--accent); }
.section-dark h2              { color: #ebe4d2; }
.section-dark .intro-text     { color: rgba(235,228,210,0.72); }

.lib-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.book-card {
  background: rgba(250,247,239,0.05);
  border: 1px solid rgba(250,247,239,0.1);
  border-radius: 12px;
  padding: 1.5rem;
}

.book-track {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.book-card h3 { color: white; margin-bottom: 0.5rem; }
.book-card p  { color: #8c9184; font-size: 0.875rem; }

.book-card.labs { border-color: rgba(181,138,52,0.25); }
.book-card.labs .book-track { color: #8c9184; }

/* Resources */
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.res-card {
  background: #faf7ef;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(22,35,28,0.06);
}

.res-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(181,138,52,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 0.875rem;
}

.res-card h3  { font-size: 0.9375rem; margin-bottom: 0.375rem; }
.res-card p   { font-size: 0.875rem; }

/* Ecosystem */
.eco-tagline {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
  margin: 0.25rem 0 0.75rem;
}

.eco-tagline span { color: var(--accent); }

.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.eco-card {
  background: #faf7ef;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(22,35,28,0.06);
}

.eco-role {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.eco-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.eco-card p { font-size: 0.875rem; }

/* Footer - stays dark */
footer {
  background: #0f1712;
  color: #8c9184;
  padding: 3.5rem 2rem 2rem;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-tagline {
  font-family: var(--vaf-font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: rgba(250,247,239, 0.45);
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(250,247,239, 0.08);
}

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.375rem;
}

.footer-sub {
  font-size: 0.875rem;
  color: #6e7460;
  margin-bottom: 2rem;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem 2rem;
  margin-bottom: 2.5rem;
}

.footer-links a {
  color: #8c9184;
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--accent); }

.footer-bottom {
  border-top: 1px solid #16231c;
  padding-top: 1.5rem;
  font-size: 0.8125rem;
  color: #5a6354;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-links { display: none; }
  section    { padding: 3.5rem 1.25rem; }
  .hero      { padding: 5rem 1.25rem; }
}

/* Dashboard */
.badge-complete   { background: #DCFCE7; color: #15803D; border: 1px solid #86EFAC; }
.badge-inprogress { background: #f7f0dc; color: #C2410C; border: 1px solid #e8dcc0; }
.badge-notstarted { background: #ebe4d2; color: #6e7460; border: 1px solid #ded7c4; }

/* Summary band - stays dark for visual anchoring */
.dash-summary {
  background: #16231c;
  border-radius: 14px;
  padding: 2rem 2.25rem;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.dash-summary-score { flex-shrink: 0; text-align: center; }

.dash-summary-count {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.dash-summary-of { font-size: 1.375rem; color: #5a6354; }

.dash-summary-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6e7460;
  margin-top: 0.375rem;
}

.dash-milestone-track {
  flex: 1;
  min-width: 220px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  padding: 0 4px;
}

.dash-milestone-line {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50%;
  height: 2px;
  background: rgba(250,247,239,0.08);
  z-index: 0;
}

.dash-milestone {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(250,247,239,0.05);
  border: 2px solid rgba(250,247,239,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(250,247,239,0.25);
  position: relative;
  z-index: 1;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
}

.dash-milestone.active {
  background: rgba(181,138,52,0.18);
  border-color: var(--accent);
  color: var(--accent);
}

.dash-milestone.complete {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.dash-summary-next { flex: 1; min-width: 160px; }

.dash-summary-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: #8c9184;
  margin-bottom: 0.625rem;
}

.dash-progress-bar {
  border-radius: 99px;
  overflow: hidden;
}

.dash-progress-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.4s ease;
}

.dash-summary-bar {
  background: rgba(250,247,239,0.1);
  height: 5px;
}

.dash-summary-bar .dash-progress-fill { background: var(--accent); }

.dash-course-bar {
  background: var(--bg-alt);
  height: 10px;
}

.dash-course-bar .dash-progress-fill {
  background: linear-gradient(90deg, var(--accent) 0%, #FF7A2A 100%);
}

.dash-course.state-complete .dash-course-bar .dash-progress-fill { background: #22C55E; }

.dash-course {
  background: #faf7ef;
  border: 1px solid var(--border);
  border-top: 3px solid var(--border);
  border-radius: 14px;
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
  box-shadow: 0 1px 3px rgba(22,35,28,0.06);
  transition: border-top-color 0.3s ease, box-shadow 0.3s ease;
}

.dash-course.state-inprogress {
  border-top-color: var(--accent);
  box-shadow: 0 4px 16px rgba(22,35,28,0.08);
}

.dash-course.state-complete {
  border-top-color: #22C55E;
  box-shadow: 0 4px 16px rgba(22,35,28,0.08);
}

.dash-course-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding-bottom: 1.625rem;
  margin-bottom: 1.625rem;
  border-bottom: 1px solid var(--border);
}

.dash-course-header-left {
  display: flex;
  align-items: flex-start;
  gap: 1.375rem;
}

.dash-course-n {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ded7c4;
  line-height: 1;
  font-family: var(--vaf-font-mono);
  letter-spacing: -0.03em;
  flex-shrink: 0;
  padding-top: 2px;
  min-width: 3rem;
  transition: color 0.3s ease;
}

.dash-course.state-inprogress .dash-course-n { color: rgba(181,138,52,0.18); }
.dash-course.state-complete   .dash-course-n { color: rgba(34,197,94,0.22); }

.dash-course-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.3125rem;
  line-height: 1.3;
}

.dash-course-meta { font-size: 0.8125rem; color: var(--muted); }

.dash-progress-section { margin-bottom: 1.75rem; }

.dash-progress-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.5rem;
}

.dash-progress-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}

.dash-progress-pct {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  transition: color 0.3s ease;
}

.dash-course.state-complete .dash-progress-pct { color: #22C55E; }

.dash-steps { list-style: none; margin-bottom: 1.75rem; }
.dash-steps li { border-bottom: 1px solid var(--border); }
.dash-steps li:last-child { border-bottom: none; }

.dash-steps li label {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.75rem 0;
  font-size: 0.9375rem;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.55;
  transition: color 0.12s;
}

.dash-steps li label:hover { color: var(--text); }
.dash-steps li.done label { text-decoration: line-through; color: #c9bfa6; }

.dash-steps input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
  width: 17px;
  height: 17px;
  cursor: pointer;
  pointer-events: none;
}

.dash-cert {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.125rem 1.375rem;
}

.dash-cert-label {
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 0.375rem;
}

.dash-cert strong { display: block; font-size: 0.9375rem; color: var(--text); margin-bottom: 0.3125rem; }
.dash-cert p { font-size: 0.875rem; }

.dash-cheat {
  margin-top: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(181,138,52,0.3);
  box-shadow: 0 0 0 4px rgba(181,138,52,0.06);
  display: none;
}

.dash-cheat.visible {
  display: block;
  animation: cheat-reveal 0.45s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes cheat-reveal {
  from { opacity: 0; transform: translateY(18px) scale(0.975); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.dash-cheat-header {
  background: linear-gradient(135deg, var(--accent) 0%, #8c6a26 100%);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.dash-cheat-badge {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(250,247,239,0.18);
  color: white;
  padding: 0.2rem 0.625rem;
  border-radius: 99px;
  white-space: nowrap;
  flex-shrink: 0;
}

.dash-cheat-title { font-size: 0.9375rem; font-weight: 700; color: white; }

.dash-cheat-body {
  background: #16231c;
  padding: 1.25rem 1.5rem 1.5rem;
}

.dash-cheat-rows { display: flex; flex-direction: column; }

.dash-cheat-row {
  display: flex;
  gap: 1rem;
  font-size: 0.8125rem;
  padding: 0.6875rem 0;
  border-bottom: 1px solid rgba(250,247,239,0.055);
}

.dash-cheat-row:first-child { padding-top: 0; }
.dash-cheat-row:last-child  { border-bottom: none; padding-bottom: 0; }

.dash-cheat-key {
  color: #ddb35c;
  font-weight: 600;
  min-width: 130px;
  flex-shrink: 0;
  font-family: var(--vaf-font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
}

.dash-cheat-val { color: #c9bfa6; line-height: 1.6; }

.dash-reset {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 0.625rem 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-family: var(--font);
  cursor: pointer;
  transition: color var(--vaf-transition), border-color var(--vaf-transition);
}

.dash-reset:hover { color: var(--text); border-color: var(--muted); }

@media (max-width: 768px) {
  .dash-summary          { padding: 1.375rem 1.5rem; gap: 1.5rem; }
  .dash-milestone-track  { display: none; }
  .dash-course           { padding: 1.5rem 1.375rem; }
  .dash-course-n         { font-size: 1.75rem; min-width: 2.5rem; }
  .dash-cheat-key        { min-width: 90px; }
}
