:root {
  --green: #58cc02;
  --green-dark: #3c9301;
  --blue: #1cb0f6;
  --purple: #9b51e0;
  --yellow: #ffc800;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --white: #ffffff;
  --bg: #f8fafc;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.08);
  --radius: 16px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: var(--bg);
}

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

h1, h2, h3, h4 {
  font-family: 'Baloo 2', 'Nunito', system-ui, sans-serif;
  margin: 0;
  color: var(--gray-900);
}

p {
  margin: 0;
  color: var(--gray-700);
}

main {
  padding: 32px clamp(16px, 6vw, 80px) 80px;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(16px, 6vw, 80px);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-200);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
}

.brand-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--green);
  border-radius: var(--radius-pill);
  font-size: 18px;
  box-shadow: 0 6px 20px rgba(88, 204, 2, 0.35);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-weight: 600;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  transition: background 0.2s ease;
}

.nav-links a:hover {
  background: var(--gray-100);
}

.actions {
  display: flex;
  gap: 10px;
}

.btn {
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
  padding: 10px 18px;
  font-size: 15px;
}

.btn.primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(88, 204, 2, 0.35);
}

.btn.primary:hover { background: var(--green-dark); }

.btn.secondary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(28, 176, 246, 0.35);
}

.btn.ghost {
  background: var(--white);
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
}

.btn.full { width: 100%; }

.btn:active { transform: translateY(1px); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: center;
  margin-top: 24px;
}

.hero-text h1 {
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.05;
}

.hero .lead {
  margin-top: 12px;
  font-size: 17px;
  max-width: 540px;
}

.badge {
  display: inline-block;
  background: var(--yellow);
  color: var(--gray-900);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  margin-bottom: 12px;
}

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

.hero-card {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--gray-200);
}

.level-chip {
  display: inline-block;
  padding: 6px 12px;
  background: var(--green);
  color: var(--white);
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
}

.hero-card h3 { margin: 12px 0; }

.checklist {
  list-style: none;
  padding: 0;
  margin: 12px 0 18px;
  display: grid;
  gap: 8px;
}

.checklist li {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--gray-100);
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
}

/* Sections */
.section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 48px 0 20px;
}

.section-header h2 {
  font-size: clamp(24px, 4vw, 32px);
}

.section-header p { color: var(--gray-700); }

.tracks .card-grid,
.progress .progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

/* Side-by-Side */
.side-by-side .split-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.plan-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-soft);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.topic-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.topic-list li {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--gray-100);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 600;
}

.meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.exercise-steps {
  display: grid;
  gap: 10px;
}

.step {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 10px 12px;
  background: var(--gray-100);
}

.step-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
}

.step-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-pill);
  background: var(--blue);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 800;
}

.step-title { font-weight: 800; margin: 0; color: var(--gray-900); }
.step-note { margin: 0; color: var(--gray-700); font-size: 14px; }

.status {
  font-weight: 800;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  background: var(--gray-200);
  color: var(--gray-800);
}

.status.good { background: rgba(88, 204, 2, 0.15); color: var(--green-dark); }
.status.warn { background: rgba(255, 200, 0, 0.2); color: #8a6a00; }

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 10px;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 13px;
  color: var(--white);
}

.pill.green { background: var(--green); }
.pill.blue { background: var(--blue); }
.pill.purple { background: var(--purple); }

.card h3 { margin: 0; }

.card p { color: var(--gray-700); }

.card .btn { justify-self: start; }

/* Exercises */
.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.chip {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
}

.panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.streak {
  font-weight: 700;
  color: var(--green-dark);
  background: rgba(88, 204, 2, 0.12);
  padding: 6px 10px;
  border-radius: var(--radius-pill);
}

.panel-title {
  font-weight: 700;
  font-size: 18px;
  margin: 14px 0;
}

.options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.option {
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
  border-radius: var(--radius);
  padding: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, border 0.2s ease, background 0.2s ease;
}

.option:hover {
  background: var(--white);
  border-color: var(--blue);
}

.option.danger {
  background: rgba(255, 89, 94, 0.12);
  border-color: rgba(255, 89, 94, 0.5);
  color: #d7263d;
}

.panel-footer {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

/* Progress */
.progress-grid .stat {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-soft);
}

.stat-label { font-weight: 700; }

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  margin: 4px 0;
}

.stat-note { color: var(--gray-700); }

/* Footer */
.footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  padding: 28px clamp(16px, 6vw, 80px) 40px;
  background: var(--gray-900);
  color: var(--white);
}

.footer h4 { margin: 0 0 6px; }

.footer-links {
  display: grid;
  gap: 8px;
}

.footer a { color: var(--white); opacity: 0.9; }

.footer-note {
  opacity: 0.85;
  font-size: 14px;
}

/* Responsive tweaks */
@media (max-width: 720px) {
  .topbar { gap: 10px; }
  .nav-links { display: none; }
  .hero-actions { width: 100%; }
  .panel-footer { flex-direction: column; }
}
