/* ==========================================================
   Lighthouse Learning Hub — Global Stylesheet
   Futuristic dark glassmorphism theme with warm gold accents
   ========================================================== */

/* ---------- Design tokens ---------- */
:root {
  --bg: #0e0c25;
  --bg-soft: #19153b;
  --surface: rgba(255, 255, 255, 0.055);
  --surface-strong: rgba(255, 255, 255, 0.09);
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);

  --text: #e7ebf5;
  --text-dim: #9aa3b8;
  --text-faint: #6b7590;

  --gold: #f2b35c;
  --violet: #a78bfa;
  --magenta: #e879f9;
  --green: #4ade80;
  --amber: #fbbf24;
  --cyan: #22d3ee;
  --blue: #60a5fa;
  --pink: #fb7185;

  --grad-brand: linear-gradient(100deg, #fcd489 0%, #f2a950 50%, #d97a2e 100%);
  --grad-surface: linear-gradient(160deg, rgba(255,255,255,0.1), rgba(255,255,255,0.03));

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-glow-gold: 0 0 32px rgba(242, 179, 92, 0.25);
  --nav-h: 72px;
  --container: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient background: grid + aurora glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 55% 42% at 12% -6%, rgba(242, 179, 92, 0.22), transparent 62%),
    radial-gradient(ellipse 48% 38% at 90% 6%, rgba(167, 139, 250, 0.28), transparent 62%),
    radial-gradient(ellipse 42% 34% at 80% 52%, rgba(34, 211, 238, 0.15), transparent 60%),
    radial-gradient(ellipse 50% 38% at 6% 68%, rgba(232, 121, 249, 0.16), transparent 60%),
    radial-gradient(ellipse 70% 52% at 50% 112%, rgba(96, 165, 250, 0.18), transparent 62%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 30%, transparent 75%);
  pointer-events: none;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul, ol { list-style: none; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }

::selection { background: rgba(242, 179, 92, 0.35); }

/* Accessibility */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #04121a; font-weight: 700;
  padding: 10px 18px; border-radius: 0 0 10px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Layout helpers ---------- */
.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.section { padding: 88px 0; position: relative; }
.section--tight { padding: 56px 0; }

.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin-bottom: 12px; }
.section-head p { color: var(--text-dim); font-size: 1.05rem; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.kicker::before { content: ""; width: 22px; height: 1px; background: var(--gold); }
.section-head--center .kicker::after { content: ""; width: 22px; height: 1px; background: var(--gold); }

.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border-radius: 12px;
  font-weight: 600; font-size: 0.95rem; font-family: var(--font-display);
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: none; }

.btn--primary {
  background: var(--grad-brand); color: #1d1204;
  box-shadow: 0 4px 24px rgba(217, 138, 55, 0.35);
}
.btn--primary:hover { box-shadow: 0 6px 32px rgba(217, 138, 55, 0.5); }

.btn--ghost {
  background: var(--surface); border-color: var(--border); color: var(--text);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--border-strong); background: var(--surface-strong); }

.btn--youtube { background: rgba(255, 42, 66, 0.14); border-color: rgba(255, 42, 66, 0.4); color: #ff8f9b; }
.btn--youtube:hover { background: rgba(255, 42, 66, 0.22); box-shadow: 0 4px 24px rgba(255, 42, 66, 0.25); }

.btn--app { background: rgba(56, 189, 248, 0.12); border-color: rgba(56, 189, 248, 0.4); color: #7dd3fc; }
.btn--app:hover { background: rgba(56, 189, 248, 0.2); box-shadow: 0 4px 24px rgba(56, 189, 248, 0.25); }

.btn--sm { padding: 8px 14px; font-size: 0.85rem; border-radius: 10px; }
.btn[disabled], .btn--disabled { opacity: 0.45; pointer-events: none; }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.05em; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-dim); white-space: nowrap;
}
.badge--live { color: var(--green); border-color: rgba(74, 222, 128, 0.35); background: rgba(74, 222, 128, 0.08); }
.badge--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s infinite; }
.badge--in-progress { color: var(--amber); border-color: rgba(251, 191, 36, 0.35); background: rgba(251, 191, 36, 0.08); }
.badge--coming-soon { color: var(--violet); border-color: rgba(167, 139, 250, 0.35); background: rgba(167, 139, 250, 0.08); }
.badge--free { color: var(--gold); border-color: rgba(242, 179, 92, 0.35); background: rgba(242, 179, 92, 0.08); }

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---------- Glass card ---------- */
.glass {
  background: var(--grad-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(16, 13, 46, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.navbar__inner {
  height: var(--nav-h); display: flex; align-items: center; gap: 24px;
  justify-content: space-between;
}
.navbar__logo { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; }
.navbar__logo img { width: 34px; height: 34px; }
.navbar__links { display: flex; align-items: center; gap: 4px; }
.navbar__links a {
  padding: 8px 14px; border-radius: 10px; font-size: 0.92rem; color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.navbar__links a:hover { color: var(--text); background: var(--surface); }
.navbar__links a.active { color: var(--gold); }
.navbar__cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

main { padding-top: var(--nav-h); }

/* ---------- Hero ---------- */
.hero { padding: 90px 0 70px; position: relative; }
.hero__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.8rem); margin: 18px 0 20px; }
.hero__lede { color: var(--text-dim); font-size: 1.13rem; max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__art { position: relative; }
.hero__art img { width: 100%; filter: drop-shadow(0 24px 60px rgba(242, 179, 92, 0.18)); animation: float 7s ease-in-out infinite; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.hero__stats { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.hero__stats .stat b { display: block; font-family: var(--font-display); font-size: 1.5rem; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero__stats .stat:nth-child(2) b { background: linear-gradient(100deg, #67e8f9, #60a5fa); -webkit-background-clip: text; background-clip: text; }
.hero__stats .stat:nth-child(3) b { background: linear-gradient(100deg, #e879f9, #a78bfa); -webkit-background-clip: text; background-clip: text; }
.hero__stats .stat:nth-child(4) b { background: linear-gradient(100deg, #4ade80, #22d3ee); -webkit-background-clip: text; background-clip: text; }
.hero__stats .stat span { font-size: 0.85rem; color: var(--text-faint); }

/* ---------- Course cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }

.course-card {
  display: flex; flex-direction: column; overflow: hidden; position: relative;
  background: linear-gradient(165deg, var(--accent-soft, rgba(255,255,255,0.08)), rgba(255,255,255,0.02) 60%);
  border-color: var(--accent-border, var(--border));
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.course-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent, var(--border-strong));
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5), var(--card-glow, none);
}
.course-card__meta svg { color: var(--accent, var(--gold)); opacity: 0.9; }
.course-card__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.course-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.course-card:hover .course-card__media img { transform: scale(1.05); }
.course-card__status { position: absolute; top: 14px; left: 14px; }
.course-card__free { position: absolute; top: 14px; right: 14px; }

.course-card__body { padding: 22px 22px 20px; display: flex; flex-direction: column; flex: 1; }
.course-card__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; font-size: 0.8rem; color: var(--text-faint); }
.course-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.course-card__meta svg { width: 14px; height: 14px; opacity: 0.7; }
.course-card h3 { font-size: 1.22rem; margin-bottom: 8px; }
.course-card h3 a::after { content: ""; position: absolute; inset: 0; }
.course-card__desc { color: var(--text-dim); font-size: 0.93rem; flex: 1; margin-bottom: 18px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course-card__actions { display: flex; flex-wrap: wrap; gap: 9px; position: relative; z-index: 1; }

/* ---------- Announcements ---------- */
.announce-list { display: grid; gap: 16px; }
.announce {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 22px 24px;
  border-left: 3px solid var(--tag-color, var(--gold));
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.announce:hover { border-color: var(--border-strong); border-left-color: var(--tag-color, var(--gold)); transform: translateX(4px); }
.announce--new-course { --tag-color: var(--green); }
.announce--new-content { --tag-color: var(--cyan); }
.announce--resource { --tag-color: var(--amber); }
.announce--community { --tag-color: var(--violet); }
.announce--milestone { --tag-color: var(--magenta); }
.announce .announce__tag { color: var(--tag-color, var(--gold)); border-color: color-mix(in srgb, var(--tag-color, var(--gold)) 40%, transparent); background: color-mix(in srgb, var(--tag-color, var(--gold)) 10%, transparent); }
.announce__date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); padding-top: 4px; }
.announce__tag { margin-bottom: 8px; }
.announce h3 { font-size: 1.05rem; margin-bottom: 6px; }
.announce p { color: var(--text-dim); font-size: 0.92rem; }
.announce__link { display: inline-flex; align-items: center; gap: 5px; margin-top: 10px; font-size: 0.85rem; color: var(--gold); font-weight: 600; }
.announce__link:hover { text-decoration: underline; }

/* ---------- Resource items ---------- */
.resource-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px;
  transition: border-color 0.3s, background 0.3s;
}
.resource-item:hover { border-color: var(--border-strong); background: var(--surface-strong); }
.resource-item__icon {
  width: 44px; height: 44px; border-radius: 12px; flex: none;
  display: grid; place-items: center;
  background: var(--surface-strong); border: 1px solid var(--border);
}
.resource-item__icon svg { width: 21px; height: 21px; }
.resource-item__body { flex: 1; min-width: 0; }
.resource-item__body h4 { font-size: 0.95rem; font-weight: 600; font-family: var(--font-body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.resource-item__meta { font-size: 0.78rem; color: var(--text-faint); display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 3px; }
.resource-item .btn { flex: none; }

/* type accent colors — tinted icon plates */
.ricon--pdf { color: var(--pink); background: rgba(251,113,133,0.13); border-color: rgba(251,113,133,0.32); }
.ricon--cheatsheet { color: var(--cyan); background: rgba(34,211,238,0.13); border-color: rgba(34,211,238,0.32); }
.ricon--code { color: var(--green); background: rgba(74,222,128,0.13); border-color: rgba(74,222,128,0.32); }
.ricon--prompts { color: var(--magenta); background: rgba(232,121,249,0.13); border-color: rgba(232,121,249,0.32); }
.ricon--assignment { color: var(--amber); background: rgba(251,191,36,0.13); border-color: rgba(251,191,36,0.32); }
.ricon--practice { color: var(--violet); background: rgba(167,139,250,0.13); border-color: rgba(167,139,250,0.32); }

/* ---------- Trust / feature cards ---------- */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.trust-card { padding: 28px 26px; transition: transform 0.3s var(--ease), border-color 0.3s; }
.trust-card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.trust-card__icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(242, 179, 92, 0.12); border: 1px solid rgba(242, 179, 92, 0.3);
  color: var(--gold); margin-bottom: 18px;
}
/* colour cycle for trust cards */
.trust-grid .trust-card:nth-child(6n+2) .trust-card__icon { color: var(--cyan); background: rgba(34,211,238,0.12); border-color: rgba(34,211,238,0.3); }
.trust-grid .trust-card:nth-child(6n+3) .trust-card__icon { color: var(--green); background: rgba(74,222,128,0.12); border-color: rgba(74,222,128,0.3); }
.trust-grid .trust-card:nth-child(6n+4) .trust-card__icon { color: var(--violet); background: rgba(167,139,250,0.12); border-color: rgba(167,139,250,0.3); }
.trust-grid .trust-card:nth-child(6n+5) .trust-card__icon { color: var(--magenta); background: rgba(232,121,249,0.12); border-color: rgba(232,121,249,0.3); }
.trust-grid .trust-card:nth-child(6n)   .trust-card__icon { color: var(--blue); background: rgba(96,165,250,0.12); border-color: rgba(96,165,250,0.3); }
.trust-grid .trust-card:nth-child(6n+2):hover { border-color: rgba(34,211,238,0.45); }
.trust-grid .trust-card:nth-child(6n+3):hover { border-color: rgba(74,222,128,0.45); }
.trust-grid .trust-card:nth-child(6n+4):hover { border-color: rgba(167,139,250,0.45); }
.trust-grid .trust-card:nth-child(6n+5):hover { border-color: rgba(232,121,249,0.45); }
.trust-grid .trust-card:nth-child(6n):hover   { border-color: rgba(96,165,250,0.45); }
.trust-grid .trust-card:nth-child(6n+1):hover { border-color: rgba(242,179,92,0.45); }
.trust-card__icon svg { width: 23px; height: 23px; }
.trust-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.trust-card p { color: var(--text-dim); font-size: 0.92rem; }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; padding: 56px clamp(24px, 6vw, 72px); position: relative; overflow: hidden; }
.newsletter::before {
  content: ""; position: absolute; inset: -40%;
  background: radial-gradient(circle at 25% 20%, rgba(242,179,92,0.2), transparent 45%),
              radial-gradient(circle at 78% 75%, rgba(232,121,249,0.18), transparent 45%),
              radial-gradient(circle at 55% 40%, rgba(34,211,238,0.12), transparent 50%);
  pointer-events: none;
}
.newsletter h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 10px; position: relative; }
.newsletter p { color: var(--text-dim); max-width: 480px; margin: 0 auto 28px; position: relative; }
.newsletter__form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; position: relative; }
.newsletter__form input {
  flex: 1; min-width: 0; padding: 13px 18px; border-radius: 12px;
  background: rgba(5, 7, 15, 0.6); border: 1px solid var(--border);
  color: var(--text); font: inherit;
}
.newsletter__form input::placeholder { color: var(--text-faint); }
.newsletter__form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,179,92,0.15); }
.newsletter__msg { margin-top: 14px; font-size: 0.9rem; min-height: 1.4em; position: relative; }
.newsletter__msg.ok { color: var(--green); }
.newsletter__msg.err { color: #fb7185; }

/* ---------- Filters / toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 36px; }
.toolbar__search { position: relative; flex: 1; min-width: 220px; }
.toolbar__search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-faint); }
.toolbar__search input {
  width: 100%; padding: 11px 16px 11px 42px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font: inherit;
  backdrop-filter: blur(8px);
}
.toolbar__search input:focus { outline: none; border-color: var(--gold); }
.toolbar select {
  padding: 11px 36px 11px 14px; border-radius: 12px; font: inherit; cursor: pointer;
  background: var(--bg-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%239aa3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L2 5h12z'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--border); color: var(--text); appearance: none;
}
.chip-row { display: flex; flex-wrap: wrap; gap: 9px; }
.chip {
  padding: 7px 16px; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  transition: all 0.25s;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active { background: rgba(242, 179, 92, 0.13); border-color: rgba(242, 179, 92, 0.45); color: var(--gold); }

.empty-state { text-align: center; padding: 64px 20px; color: var(--text-faint); }
.empty-state b { display: block; font-size: 1.1rem; color: var(--text-dim); margin-bottom: 6px; }

/* ---------- Course detail page ---------- */
.course-hero { padding: 56px 0 48px; }
.course-hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.course-hero__badges { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.course-hero h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 14px; }
.course-hero__tagline { color: var(--gold); font-family: var(--font-mono); font-size: 0.95rem; margin-bottom: 16px; }
.course-hero__desc { color: var(--text-dim); font-size: 1.05rem; margin-bottom: 26px; max-width: 560px; }
.course-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-bottom: 30px; font-size: 0.9rem; color: var(--text-dim); }
.course-hero__facts span { display: inline-flex; gap: 7px; align-items: center; }
.course-hero__facts svg { width: 16px; height: 16px; color: var(--gold); }
.course-hero__actions { display: flex; flex-wrap: wrap; gap: 13px; }
.course-hero__cover { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); box-shadow: 0 24px 64px rgba(0,0,0,0.5); }

.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.detail-main > section { margin-bottom: 52px; }
.detail-main h2 { font-size: 1.5rem; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.detail-main h2::before { content: ""; width: 4px; height: 22px; border-radius: 2px; background: var(--grad-brand); }

.outcome-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.outcome-list li { display: flex; gap: 11px; padding: 14px 16px; font-size: 0.93rem; color: var(--text-dim); }
.outcome-list svg { width: 18px; height: 18px; flex: none; color: var(--green); margin-top: 2px; }

/* accordion (modules + faq) */
.accordion { display: grid; gap: 12px; }
.accordion__item { overflow: hidden; }
.accordion__btn {
  width: 100%; display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 18px 20px; font-family: var(--font-display); font-weight: 600; font-size: 1rem;
}
.accordion__btn:hover { background: var(--surface); }
.accordion__num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold); flex: none; }
.accordion__title { flex: 1; }
.accordion__dur { font-size: 0.78rem; color: var(--text-faint); font-family: var(--font-mono); }
.accordion__chev { width: 18px; height: 18px; flex: none; color: var(--text-faint); transition: transform 0.3s var(--ease); }
.accordion__item[data-open="true"] .accordion__chev { transform: rotate(180deg); }
.accordion__panel { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.accordion__panel-inner { padding: 4px 20px 20px 54px; }
.accordion__panel li { position: relative; padding: 7px 0 7px 22px; color: var(--text-dim); font-size: 0.92rem; }
.accordion__panel li::before {
  content: ""; position: absolute; left: 0; top: 15px;
  width: 8px; height: 8px; border-radius: 2px;
  background: linear-gradient(135deg, var(--gold), var(--violet)); opacity: 0.8;
}
.accordion__panel p { color: var(--text-dim); font-size: 0.93rem; }

/* sidebar */
.detail-side { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; gap: 22px; }
.side-card { padding: 24px; }
.side-card h3 { font-size: 1rem; margin-bottom: 16px; }
.side-card .btn { width: 100%; margin-bottom: 10px; }
.side-fact { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 0.88rem; }
.side-fact:last-child { border-bottom: none; }
.side-fact span { color: var(--text-faint); }
.side-fact b { font-weight: 600; }
.prereq-list li { display: flex; gap: 9px; padding: 6px 0; font-size: 0.9rem; color: var(--text-dim); }
.prereq-list svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--violet); }

/* updates timeline */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), var(--violet), transparent); opacity: 0.4; }
.timeline__item { position: relative; padding-bottom: 26px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ""; position: absolute; left: -26px; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--gold);
  box-shadow: 0 0 12px rgba(242, 179, 92, 0.5);
}
.timeline__date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--gold); margin-bottom: 4px; }
.timeline__item p { color: var(--text-dim); font-size: 0.93rem; }

/* ---------- Resources page ---------- */
.res-group { margin-bottom: 48px; }
.res-group__head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px; }
.res-group__head img { width: 56px; height: 32px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.res-group__head h2 { font-size: 1.3rem; flex: 1; }
.res-group__list { display: grid; gap: 12px; }

/* ---------- Roadmap page ---------- */
.roadmap-track { position: relative; max-width: 860px; margin-inline: auto; padding-left: 34px; }
.roadmap-track::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--green), var(--amber), var(--violet), transparent); opacity: 0.45; }
.roadmap-item {
  position: relative; margin-bottom: 30px; padding: 26px 28px;
  border-color: color-mix(in srgb, var(--dot, var(--violet)) 35%, transparent);
  background: linear-gradient(160deg, color-mix(in srgb, var(--dot, var(--violet)) 13%, transparent), rgba(255,255,255,0.02) 60%);
}
.roadmap-item::before {
  content: ""; position: absolute; left: -34px; top: 32px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--dot, var(--violet));
  box-shadow: 0 0 14px var(--dot, var(--violet));
}
.roadmap-item__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 10px; }
.roadmap-item__quarter { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-faint); letter-spacing: 0.1em; text-transform: uppercase; }
.roadmap-item h3 { font-size: 1.25rem; flex-basis: 100%; }
.roadmap-item p { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 14px; }
.roadmap-item__eta { font-size: 0.83rem; color: var(--text-faint); font-family: var(--font-mono); }
.roadmap-item .btn { margin-top: 14px; }

/* ---------- Updates page ---------- */
.updates-page .announce { grid-template-columns: 110px 1fr; }

/* ---------- About / contact ---------- */
.prose { max-width: 720px; }
.prose p { color: var(--text-dim); margin-bottom: 18px; font-size: 1.02rem; }
.prose h2 { font-size: 1.5rem; margin: 36px 0 14px; }
.prose ul { margin: 0 0 18px; }
.prose ul li { position: relative; padding: 5px 0 5px 24px; color: var(--text-dim); }
.prose ul li::before { content: "▹"; position: absolute; left: 2px; color: var(--gold); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.form-card { padding: 32px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 7px; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%; padding: 12px 15px; border-radius: 11px; font: inherit;
  background: rgba(5, 7, 15, 0.55); border: 1px solid var(--border); color: var(--text);
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(242,179,92,0.13);
}
.form-msg { margin-top: 14px; font-size: 0.9rem; min-height: 1.4em; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #fb7185; }

.community-card { padding: 28px; margin-bottom: 20px; }
.community-card h3 { margin-bottom: 8px; font-size: 1.1rem; }
.community-card p { color: var(--text-dim); font-size: 0.92rem; margin-bottom: 16px; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 860px; }
.contact-direct {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  padding: 24px; transition: transform 0.25s var(--ease), border-color 0.25s;
}
.contact-direct:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.contact-direct svg { width: 22px; height: 22px; color: var(--gold); margin-bottom: 8px; }
.contact-direct b { font-size: 1rem; }
.contact-direct span { color: var(--text-dim); font-size: 0.9rem; word-break: break-all; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 60px; border-top: 1px solid var(--border);
  background: linear-gradient(rgba(20, 16, 56, 0.55), rgba(12, 9, 34, 0.92));
  backdrop-filter: blur(10px);
}
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px;
  padding: 56px 0 40px;
}
.footer__brand p { color: var(--text-dim); font-size: 0.92rem; margin: 14px 0 20px; max-width: 300px; }
.footer__logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.footer__logo img { width: 30px; height: 30px; }
.footer h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-faint); margin-bottom: 16px; font-family: var(--font-mono); font-weight: 500; }
.footer__col a { display: block; padding: 5px 0; color: var(--text-dim); font-size: 0.92rem; transition: color 0.2s; }
.footer__col a:hover { color: var(--gold); }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-dim);
  transition: all 0.25s;
}
.footer__social a:hover { color: var(--gold); border-color: rgba(242, 179, 92, 0.4); transform: translateY(-2px); }
.footer__social svg { width: 17px; height: 17px; }
.footer__bottom {
  border-top: 1px solid var(--border); padding: 20px 0;
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: 0.82rem; color: var(--text-faint);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: rgba(10, 14, 29, 0.95); border: 1px solid var(--border-strong);
  padding: 13px 22px; border-radius: 12px; font-size: 0.9rem; z-index: 150;
  opacity: 0; transition: transform 0.35s var(--ease), opacity 0.35s;
  backdrop-filter: blur(12px); box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(26px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal-stagger.visible > * { opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.4s; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 64px 0 20px; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 14px; }
.page-hero p { color: var(--text-dim); font-size: 1.08rem; max-width: 620px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { max-width: 520px; margin-inline: auto; order: -1; }
  .course-hero__grid { grid-template-columns: 1fr; }
  .course-hero__cover { order: -1; max-width: 560px; }
  .detail-layout { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .navbar__links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: rgba(6, 9, 19, 0.97); backdrop-filter: blur(20px);
    padding: 18px 20px 26px; border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform 0.3s var(--ease), opacity 0.3s;
  }
  .navbar__links.open { transform: none; opacity: 1; pointer-events: auto; }
  .navbar__links a { padding: 13px 16px; font-size: 1rem; }
  .nav-toggle { display: flex; }
  .navbar__cta .btn { display: none; }

  .section { padding: 64px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .announce, .updates-page .announce { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 560px) {
  .card-grid { grid-template-columns: 1fr; }
  .newsletter__form { flex-direction: column; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 56px 0 48px; }
  .hero__actions .btn { flex: 1; justify-content: center; }
  .roadmap-track { padding-left: 28px; }
  .course-hero__actions .btn { width: 100%; }
  .resource-item { flex-wrap: wrap; }
  .resource-item .btn { width: 100%; justify-content: center; }
}

/* ==========================================================
   Micro-animations — subtle polish (auto-disabled by the
   prefers-reduced-motion rule near the top of this file)
   ========================================================== */

/* 1. Living aurora background — the fixed glow layer slowly breathes */
@keyframes auroraDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0, -18px, 0) scale(1.05); }
}
body::before { animation: auroraDrift 22s ease-in-out infinite; will-change: transform; }

/* 2. Gradient headings get a slow, seamless sheen */
@keyframes gradShimmer {
  from { background-position: 0% center; }
  to   { background-position: 100% center; }
}
.grad-text {
  background-size: 220% auto;
  animation: gradShimmer 7s var(--ease) infinite alternate;
}

/* 3. Hero content eases in on load, gently staggered */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}
.hero__grid > div:first-child > * { animation: heroIn 0.7s var(--ease) both; }
.hero__grid > div:first-child > *:nth-child(1) { animation-delay: 0.05s; }
.hero__grid > div:first-child > *:nth-child(2) { animation-delay: 0.14s; }
.hero__grid > div:first-child > *:nth-child(3) { animation-delay: 0.23s; }
.hero__grid > div:first-child > *:nth-child(4) { animation-delay: 0.32s; }
.hero__grid > div:first-child > *:nth-child(5) { animation-delay: 0.41s; }
@keyframes heroArtIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}
.hero__art { animation: heroArtIn 1s var(--ease) 0.2s both; }

/* 4. Primary buttons get a light sweep on hover */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ""; position: absolute; top: 0; left: -80%;
  width: 55%; height: 100%; transform: skewX(-20deg); pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transition: left 0.6s var(--ease);
}
.btn--primary:hover::after { left: 130%; }

/* 5. Newsletter glow slowly rotates so the card feels alive */
@keyframes glowSpin { to { transform: rotate(360deg); } }
.newsletter::before { animation: glowSpin 44s linear infinite; will-change: transform; }

/* 6. "Live" status badge softly pulses to draw the eye */
.badge--live::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6);
  animation: livePulse 2s ease-out infinite;
}
@keyframes livePulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70%  { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
