:root {
  --bg: #0b1020;
  --panel: #121a2f;
  --panel-2: #17223d;
  --text: #f4f7fb;
  --muted: #aeb9cc;
  --border: #2a3858;
  --accent: #78d3ff;
  --accent-2: #8cf0c7;
  --danger-soft: #372b20;
  --success-soft: #15352b;
  --max: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(120, 211, 255, 0.08), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a { color: inherit; }

.shell {
  width: min(calc(100% - 2rem), var(--max));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(11, 16, 32, 0.92);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  font-weight: 760;
  font-size: 1.15rem;
  text-decoration: none;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scope-badge,
.status {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.status.complete {
  color: var(--accent-2);
  border-color: rgba(140, 240, 199, 0.35);
}

main {
  padding-top: 3rem;
  padding-bottom: 4rem;
}

.hero,
.lesson-hero {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

.hero {
  grid-template-columns: 1fr 280px;
  align-items: start;
}

h1 {
  margin: 0.25rem 0 0.8rem;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  margin: 0.2rem 0 0.7rem;
  line-height: 1.15;
}

h3 {
  margin: 0.6rem 0;
  line-height: 1.2;
}

.lede {
  color: var(--muted);
  max-width: 760px;
  font-size: 1.08rem;
}

.progress-card,
.lesson-card,
.content-card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.3rem;
}

.progress-number {
  font-size: 2.1rem;
  font-weight: 800;
}

.progress-track {
  height: 8px;
  background: #0a0f1d;
  border-radius: 999px;
  overflow: hidden;
  margin: 0.9rem 0 0.4rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.notice {
  border: 1px solid #5c4b35;
  background: var(--danger-soft);
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin: 1.3rem 0 2.2rem;
}

.notice.success {
  border-color: #2e705c;
  background: var(--success-soft);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.lesson-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.lesson-card p,
.content-card p,
.muted {
  color: var(--muted);
}

.card-topline {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.technique {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #07101c;
  border: 0;
  border-radius: 10px;
  padding: 0.72rem 1rem;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  margin-top: auto;
}

.button:hover { filter: brightness(1.06); }

.back-link {
  display: inline-block;
  color: var(--muted);
  margin-bottom: 1.5rem;
  text-decoration: none;
}

.content-card {
  margin: 1rem 0;
}

.content-card.accent {
  border-color: rgba(120, 211, 255, 0.42);
}

.objective-list {
  margin: 0;
  padding-left: 1.3rem;
}

.objective-list li {
  margin: 0.55rem 0;
}

label {
  display: block;
  font-weight: 750;
  margin-bottom: 0.5rem;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #090f1d;
  color: var(--text);
  padding: 0.9rem;
  font: inherit;
  margin-bottom: 0.8rem;
}

textarea:focus {
  outline: 2px solid rgba(120, 211, 255, 0.35);
  border-color: var(--accent);
}

.submitted ul {
  margin-bottom: 0;
}

.site-footer {
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
  padding-bottom: 2rem;
  font-size: 0.9rem;
}

@media (max-width: 760px) {
  .hero,
  .lesson-grid {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}
