:root {
  --bg: #08080f;
  --bg2: #0f0f1c;
  --teal: #00E5CC;
  --pink: #FF3D8B;
  --amber: #FFB020;
  --violet: #8B5CFF;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: #fff;
  font-family: 'Bricolage Grotesque', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Nav ---- */
.nav-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 8, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav-link {
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
  transition: color 0.2s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.35rem;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.nav-link:hover { color: #fff; }
.nav-link:hover::after { transform: scaleX(1); }

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(circle at 15% 20%, rgba(0, 229, 204, 0.18), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(255, 61, 139, 0.20), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(139, 92, 255, 0.18), transparent 50%),
    linear-gradient(160deg, #0a0a1a 0%, #12081f 60%, #08080f 100%);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: float 14s ease-in-out infinite;
}
.hero-blob-1 { width: 340px; height: 340px; background: var(--teal); top: -60px; left: -40px; }
.hero-blob-2 { width: 400px; height: 400px; background: var(--pink); top: 40px; right: -80px; animation-delay: -4s; }
.hero-blob-3 { width: 300px; height: 300px; background: var(--violet); bottom: -100px; left: 40%; animation-delay: -8s; }
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -25px) scale(1.08); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}
.hero-title {
  font-size: clamp(3rem, 11vw, 7.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0;
}
.hero-title-accent {
  background: linear-gradient(120deg, var(--teal), var(--pink), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---- Fact ticker ---- */
.fact-bar {
  background: linear-gradient(90deg, rgba(255,61,139,0.10), rgba(0,229,204,0.10));
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.fact-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 5px;
  background: var(--amber);
  color: #3d2600;
  flex-shrink: 0;
}
.fact-text { font-style: italic; }

/* ---- Sections ---- */
.section-kicker {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.section-title {
  font-size: clamp(2.2rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}
.section-divider {
  height: 1px;
  max-width: 72rem;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

/* ---- Overview ---- */
.obj-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 6px;
  color: #08080f;
  font-weight: 900;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.prereq-pill {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.7);
}
.quick-card {
  background: linear-gradient(160deg, rgba(255,61,139,0.10), rgba(0,229,204,0.06));
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 1.75rem;
  height: fit-content;
}
.fact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px dashed rgba(255,255,255,0.08);
}
.fact-row:last-child { border-bottom: none; }

/* ---- Progress ---- */
.progress-wrap {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 1.5rem;
}
.progress-track {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--pink), var(--amber));
  background-size: 200% 100%;
  transition: width 0.6s cubic-bezier(.22,1,.36,1);
  animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ---- Filters ---- */
.filter-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  border: 1px solid;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover { transform: translateY(-2px); }

/* ---- Week cards ---- */
.week-card {
  position: relative;
  background: linear-gradient(150deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015));
  border: 1px solid rgba(255,255,255,0.08);
  border-left: 4px solid;
  border-radius: 16px;
  padding: 1.5rem;
  transition: transform 0.25s, box-shadow 0.25s, opacity 0.3s;
  overflow: hidden;
}
.week-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -20px rgba(0,0,0,0.7);
}
.week-ribbon {
  position: absolute;
  top: 0; right: 0;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  padding: 0.25rem 0.7rem;
  border-bottom-left-radius: 10px;
}
.week-num {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 1rem;
}
.mod-dot { width: 8px; height: 8px; border-radius: 50%; }
.expand-caret {
  font-size: 1.6rem;
  color: rgba(255,255,255,0.4);
  transition: transform 0.3s;
  flex-shrink: 0;
  line-height: 1;
}
.reading-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.6);
}
.deadline-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 8px;
  background: rgba(255,61,139,0.15);
  color: var(--pink);
}
.complete-btn {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s;
}
.complete-btn:hover { background: rgba(255,255,255,0.1); }
.week-detail {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px dashed rgba(255,255,255,0.12);
}

/* ---- Staff ---- */
.staff-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 1.5rem;
  transition: transform 0.25s, border-color 0.25s;
}
.staff-card:hover {
  transform: translateY(-4px);
  border-color: var(--sc);
}
.staff-avatar {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 700;
  font-size: 1.2rem;
  color: #08080f;
}
.staff-email {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,0.2);
}
.staff-email:hover { color: var(--sc); }

/* ---- Grading ---- */
.grade-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  overflow: hidden;
}
.grade-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.6s ease;
}
.grade-scale {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  overflow: hidden;
}
.grade-scale-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.grade-scale-row:last-child { border-bottom: none; }
.grade-scale-row:nth-child(odd) { background: rgba(255,255,255,0.02); }

/* ---- Resources ---- */
.resource-card {
  display: block;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  padding: 1.5rem;
  text-decoration: none;
  color: #fff;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.resource-card:hover {
  transform: translateY(-4px);
  border-color: var(--rc);
  background: rgba(255,255,255,0.05);
}
.resource-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  text-transform: uppercase;
}
.resource-arrow {
  display: inline-block;
  margin-top: 1rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ---- Footer ---- */
.footer {
  background: linear-gradient(180deg, #08080f, #0d0512);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.remix-link {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.8rem;
  color: var(--pink);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255,61,139,0.4);
  border-radius: 999px;
  transition: all 0.2s;
}
.remix-link:hover {
  background: rgba(255,61,139,0.15);
  transform: translateY(-2px);
}

/* ---- Animations ---- */
.anim-in {
  opacity: 0;
  transform: translateY(24px);
  animation: rise 0.8s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes rise { to { opacity: 1; transform: translateY(0); } }
.anim-fade { animation: fade 0.5s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }