*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --purple:  #6C63FF;
  --orange:  #F77F00;
  --teal:    #06D6A0;
  --blue:    #00B4D8;
  --dark:    #0f0f1a;
  --surface: #1a1a2e;
  --card:    #16213e;
  --text:    #e0e0e0;
  --muted:   #888;
  --radius:  12px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header {
  background: linear-gradient(135deg, var(--surface) 0%, #0d1b2a 100%);
  border-bottom: 1px solid #ffffff10;
  padding: 56px 0 40px;
  text-align: center;
}

header h1 {
  font-size: 2.4rem;
  font-weight: 700;
  background: linear-gradient(90deg, var(--purple), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  color: var(--muted);
  margin-top: 8px;
  font-size: 1rem;
}

.links {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 16px;
}

.links a {
  color: var(--blue);
  text-decoration: none;
  font-size: 0.9rem;
  border: 1px solid var(--blue);
  padding: 6px 16px;
  border-radius: 20px;
  transition: background 0.2s;
}

.links a:hover { background: var(--blue); color: #fff; }

/* About */
.about {
  margin: 40px 0 16px;
  color: var(--muted);
  font-size: 1rem;
}

.about a { color: var(--purple); text-decoration: none; }
.about a:hover { text-decoration: underline; }

/* Modules */
.modules h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--text);
}

.progress-bar {
  background: #ffffff10;
  border-radius: 8px;
  height: 8px;
  margin-bottom: 6px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--teal));
  border-radius: 8px;
  transition: width 0.6s ease;
}

.progress-label {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 28px;
}

/* Grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding-bottom: 60px;
}

/* Card */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px solid #ffffff08;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, border-color 0.2s;
}

.card:hover { transform: translateY(-3px); border-color: #ffffff20; }

.card.done  { border-left: 3px solid var(--teal); }
.card.upcoming { border-left: 3px solid #ffffff15; opacity: 0.75; }

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

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.done     { background: #06D6A020; color: var(--teal); }
.badge.upcoming { background: #ffffff10; color: var(--muted); }

.module-num {
  font-size: 1.4rem;
  font-weight: 700;
  color: #ffffff15;
}

.card h3 {
  font-size: 1.05rem;
  color: var(--text);
}

.card p {
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
}

.card-links a {
  font-size: 0.85rem;
  color: var(--purple);
  text-decoration: none;
  font-weight: 600;
}

.card-links a:hover { text-decoration: underline; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  font-size: 0.72rem;
  background: #ffffff08;
  color: var(--muted);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Footer */
footer {
  border-top: 1px solid #ffffff10;
  padding: 24px 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

/* Breadcrumb */
.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 12px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); }

/* Comparison boxes */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
  padding-bottom: 60px;
}

.compare-box {
  background: var(--card);
  border: 1px solid #ffffff08;
  border-radius: var(--radius);
  padding: 20px;
}

.compare-box.highlight {
  border-color: var(--purple);
}

.compare-box h4 {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.compare-box pre {
  font-family: monospace;
  font-size: 0.85rem;
  color: var(--teal);
  line-height: 1.8;
  white-space: pre;
}

/* Responsive */
@media (max-width: 600px) {
  header h1 { font-size: 1.8rem; }
  .grid { grid-template-columns: 1fr; }
  .comparison { grid-template-columns: 1fr; }
}