/* ======================================================================
   "NIGHTFALL" DESIGN SYSTEM — pages with <body class="nf">
   Premium, cinematic look. Tokens below; change them to restyle every nf page.
   Fonts: Sora (display) + Plus Jakarta Sans (text), loaded from Google Fonts.
   ====================================================================== */
body.nf {
  --nf-bg: #f6f7fc; --nf-bg-2: #eef0fa; --nf-surface: #ffffff; --nf-line: #e2e5f2;
  --nf-ink: #151833; --nf-mute: #5b6385; --nf-head: #0b0e26;
  --nf-a1: #14b8a6; --nf-a2: #2563EB; --nf-a3: #f5a524;           /* teal, periwinkle, amber */
  --nf-grad: linear-gradient(100deg, var(--nf-a1), var(--nf-a2));
  --nf-glow: rgba(91, 108, 255, .28);
  --nf-hero-bg: radial-gradient(900px 520px at 80% -10%, rgba(91,108,255,.22), transparent 60%),
                radial-gradient(700px 480px at 0% 100%, rgba(20,184,166,.18), transparent 60%), var(--nf-bg);
  --nf-radius: 22px;
  --nf-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --nf-display: "Sora", "Plus Jakarta Sans", system-ui, sans-serif;
  background: var(--nf-bg); color: var(--nf-ink); font: 400 16px/1.65 var(--nf-font);
}
html.dark-mode body.nf, body.nf.dark-mode {
  --nf-bg: #07081a; --nf-bg-2: #0c0e24; --nf-surface: #11132e; --nf-line: #22264a;
  --nf-ink: #e7e9f7; --nf-mute: #9aa2c7; --nf-head: #ffffff;
  --nf-a1: #2ee6c5; --nf-a2: #7AA9F8; --nf-a3: #ffb547;
  --nf-glow: rgba(124, 140, 255, .35);
  --nf-hero-bg: radial-gradient(1000px 560px at 85% -15%, rgba(124,140,255,.38), transparent 60%),
                radial-gradient(800px 520px at -10% 110%, rgba(46,230,197,.22), transparent 60%),
                linear-gradient(180deg, #07081a 0%, #0a0c22 100%);
}
body.nf h1, body.nf h2, body.nf h3, body.nf h4 { font-family: var(--nf-display); color: var(--nf-head); letter-spacing: -.025em; }
body.nf a { color: inherit; }

/* header */
body.nf .bar.nf-bar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--nf-bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--nf-line); }
body.nf .bar.nf-bar nav a { color: var(--nf-mute); font-weight: 700; border-color: transparent; }
body.nf .bar.nf-bar nav a:hover, body.nf .bar.nf-bar nav a.on { color: var(--nf-head); border-color: var(--nf-a2); }
body.nf .logo b, body.nf .logo span { font-family: var(--nf-display); }
body.nf .logo b { color: var(--nf-head); }
body.nf .nav-btn-text { color: var(--nf-head); }

/* buttons */
.nf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 28px; border-radius: 999px;
  font: 800 16px var(--nf-font); text-decoration: none; cursor: pointer; border: 0; transition: transform .18s, box-shadow .18s, background .18s; }
.nf-btn.primary { background: var(--nf-grad); color: #fff; box-shadow: 0 12px 32px var(--nf-glow); }
.nf-btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px var(--nf-glow); }
.nf-btn.ghost { background: transparent; color: var(--nf-head); border: 1.5px solid var(--nf-line); }
.nf-btn.ghost:hover { border-color: var(--nf-a2); }
.nf-btn.sm { padding: 10px 20px; font-size: 15px; }

/* shared pieces */
.nf-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.nf-sec { padding: 104px 0; }
.nf-sec.alt { background: var(--nf-bg-2); }
.nf-kicker { display: inline-flex; align-items: center; gap: 10px; font: 800 12.5px var(--nf-font); letter-spacing: .16em; text-transform: uppercase;
  color: var(--nf-a2); margin-bottom: 14px; }
.nf-kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: var(--nf-grad); }
.nf-h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.08; margin: 0 0 16px; text-align: left; }
.nf-lead { color: var(--nf-mute); font-size: 1.15rem; max-width: 58ch; margin: 0 0 48px; }
.nf-center { text-align: center; } .nf-center .nf-lead { margin-left: auto; margin-right: auto; } .nf-center .nf-h2 { text-align: center; }
.nf-grad-text { background: var(--nf-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-card { background: var(--nf-surface); border: 1px solid var(--nf-line); border-radius: var(--nf-radius); padding: 30px; }
.nf-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; font: 800 12px var(--nf-font);
  letter-spacing: .06em; text-transform: uppercase; background: color-mix(in srgb, var(--nf-a2) 14%, transparent); color: var(--nf-a2); }
.nf-pill.amber { background: color-mix(in srgb, var(--nf-a3) 18%, transparent); color: var(--nf-a3); }
.nf-pill.teal { background: color-mix(in srgb, var(--nf-a1) 16%, transparent); color: var(--nf-a1); }

/* hero */
.nf-hero { background: var(--nf-hero-bg); padding: 110px 0 96px; position: relative; overflow: hidden; }
.nf-hero .nf-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: center; }
.nf-hero h1 { font-size: clamp(2.7rem, 6.2vw, 4.9rem); line-height: 1.02; margin: 0 0 22px; }
.nf-hero .sub { color: var(--nf-mute); font-size: 1.2rem; max-width: 52ch; margin: 0 0 34px; }
.nf-hero .cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }
.nf-trust { display: flex; flex-wrap: wrap; gap: 26px; color: var(--nf-mute); font-weight: 700; font-size: 14.5px; }
.nf-trust span { display: inline-flex; align-items: center; gap: 8px; }
.nf-trust span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--nf-a1); box-shadow: 0 0 12px var(--nf-a1); }
.nf-stage { position: relative; aspect-ratio: 4 / 4.2; }
.nf-orb { position: absolute; inset: 8% 6%; border-radius: 50%; background: conic-gradient(from 210deg, var(--nf-a1), var(--nf-a2), var(--nf-a3), var(--nf-a1));
  filter: blur(46px); opacity: .55; animation: nf-spin 18s linear infinite; }
@keyframes nf-spin { to { transform: rotate(360deg); } }
.nf-float { position: absolute; background: color-mix(in srgb, var(--nf-surface) 88%, transparent); border: 1px solid var(--nf-line);
  border-radius: 18px; padding: 18px 20px; box-shadow: 0 24px 60px rgba(0,0,0,.18); backdrop-filter: blur(10px); }
.nf-float .lbl { font: 800 11.5px var(--nf-font); letter-spacing: .12em; text-transform: uppercase; color: var(--nf-mute); }
.nf-float.q { left: 0; top: 10%; width: 78%; }
.nf-float.q p { font-weight: 700; color: var(--nf-head); margin: 8px 0 12px; font-size: .98rem; }
.nf-float.q .o { border: 1px solid var(--nf-line); border-radius: 12px; padding: 9px 12px; font-size: .9rem; margin-bottom: 8px; color: var(--nf-ink); }
.nf-float.q .o.on { border-color: var(--nf-a1); background: color-mix(in srgb, var(--nf-a1) 12%, transparent); }
.nf-float.score { right: 0; bottom: 12%; width: 54%; }
.nf-float.score b { display: block; font: 800 2.4rem var(--nf-display); color: var(--nf-head); line-height: 1.1; margin-top: 4px; }
.nf-float.score .bar { height: 8px; border-radius: 8px; background: var(--nf-line); margin-top: 12px; overflow: hidden; }
.nf-float.score .bar i { display: block; height: 100%; width: 72%; background: var(--nf-grad); border-radius: 8px; }
.nf-float.timer { right: 8%; top: 2%; padding: 10px 16px; font: 800 1.05rem var(--nf-display); color: var(--nf-head); }

/* paths (two pillars) */
.nf-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.nf-path { position: relative; overflow: hidden; border-radius: 28px; padding: 40px; min-height: 420px; display: flex; flex-direction: column;
  border: 1px solid var(--nf-line); background: var(--nf-surface); transition: transform .2s, box-shadow .2s; text-decoration: none; }
.nf-path:hover { transform: translateY(-4px); box-shadow: 0 30px 70px rgba(0,0,0,.16); }
.nf-path::before { content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -140px; border-radius: 50%; filter: blur(30px); opacity: .55; }
.nf-path.nuet::before { background: radial-gradient(circle, var(--nf-a2), transparent 65%); }
.nf-path.eng::before { background: radial-gradient(circle, var(--nf-a3), transparent 65%); }
.nf-path > * { position: relative; }
.nf-path h3 { font-size: 2.1rem; margin: 18px 0 10px; }
.nf-path p { color: var(--nf-mute); font-size: 1.05rem; margin: 0 0 22px; max-width: 42ch; }
.nf-path ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.nf-path li { display: flex; gap: 10px; color: var(--nf-ink); font-weight: 600; }
.nf-path li::before { content: "→"; color: var(--nf-a2); font-weight: 800; }
.nf-path.eng li::before { color: var(--nf-a3); }
.nf-path .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--nf-head); }

/* steps */
.nf-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.nf-step { counter-increment: s; }
.nf-step::before { content: "0" counter(s); display: block; font: 800 3rem var(--nf-display); line-height: 1; margin-bottom: 18px;
  background: var(--nf-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf-step h3 { font-size: 1.3rem; margin: 0 0 8px; }
.nf-step p { color: var(--nf-mute); margin: 0; }

/* stats band */
.nf-band { border-radius: 30px; padding: 54px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
  background: radial-gradient(600px 260px at 50% 0%, var(--nf-glow), transparent 70%), var(--nf-surface); border: 1px solid var(--nf-line); }
.nf-band b { display: block; font: 800 clamp(2rem, 4vw, 2.8rem) var(--nf-display); color: var(--nf-head); }
.nf-band span { color: var(--nf-mute); font-weight: 600; }

/* pricing */
.nf-prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.nf-price { display: flex; flex-direction: column; }
.nf-price.featured { border: 0; background: linear-gradient(var(--nf-surface), var(--nf-surface)) padding-box, var(--nf-grad) border-box;
  border: 2px solid transparent; box-shadow: 0 24px 60px var(--nf-glow); }
.nf-price h3 { font-size: 1.35rem; margin: 14px 0 6px; }
.nf-price .amt { font: 800 2.6rem var(--nf-display); color: var(--nf-head); margin: 10px 0 4px; }
.nf-price .amt small { font: 700 1rem var(--nf-font); color: var(--nf-mute); }
.nf-price p { color: var(--nf-mute); margin: 0 0 20px; }
.nf-price ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.nf-price li { display: flex; gap: 10px; }
.nf-price li::before { content: "✓"; color: var(--nf-a1); font-weight: 900; }
.nf-price .nf-btn { margin-top: auto; }

/* faq + final */
.nf-faq { max-width: 860px; margin: 0 auto; }
.nf-faq details { border-bottom: 1px solid var(--nf-line); padding: 22px 0; }
.nf-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px; font: 700 1.1rem var(--nf-display); color: var(--nf-head); }
.nf-faq summary::-webkit-details-marker { display: none; }
.nf-faq summary::after { content: "+"; color: var(--nf-a2); font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.nf-faq details[open] summary::after { transform: rotate(45deg); }
.nf-faq p { color: var(--nf-mute); margin: 12px 0 0; }
.nf-final { text-align: center; border-radius: 34px; padding: 84px 32px; background: var(--nf-hero-bg); border: 1px solid var(--nf-line); }
.nf-final h2 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); margin: 0 0 14px; }
.nf-final p { color: var(--nf-mute); font-size: 1.15rem; max-width: 52ch; margin: 0 auto 32px; }

/* footer */
body.nf footer { background: var(--nf-bg-2); border-top: 1px solid var(--nf-line); color: var(--nf-mute); }
body.nf footer .footer-brand p, body.nf footer .footer-links a, body.nf footer .footer-bottom p { color: var(--nf-mute); }
body.nf footer .logo b { color: var(--nf-head); }

/* scroll reveal (script.js adds .in) */
.nf-js .nf-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.nf-js .nf-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .nf-reveal { opacity: 1; transform: none; transition: none; } .nf-orb { animation: none; } }

@media (max-width: 960px) {
  .nf-hero .nf-wrap, .nf-paths, .nf-steps, .nf-prices { grid-template-columns: 1fr; }
  .nf-band { grid-template-columns: 1fr 1fr; padding: 36px 22px; }
  .nf-sec { padding: 76px 0; }
  .nf-hero { padding: 72px 0 64px; }
  .nf-stage { max-width: 460px; width: 100%; margin: 0 auto; }
  .nf-path { min-height: 0; padding: 30px; }
}
@media (max-width: 640px) {
  body.nf .bar.nf-bar { padding-left: 16px; padding-right: 16px; gap: 10px; }
  body.nf .bar.nf-bar nav { gap: 14px; }
  body.nf .bar.nf-bar nav a { font-size: 14px; white-space: nowrap; }
  body.nf .bar.nf-bar .nav-btn-text { display: none; }
  body.nf .bar.nf-bar .nf-btn.sm { padding: 8px 14px; font-size: 14px; white-space: nowrap; }
}

/* Nightfall: course catalogue (courses.html) */
.nf-jump { position: sticky; top: 64px; z-index: 40; background: color-mix(in srgb, var(--nf-bg) 85%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--nf-line); }
.nf-jump .nf-wrap { display: flex; gap: 10px; overflow-x: auto; padding-top: 14px; padding-bottom: 14px; scrollbar-width: none; }
.nf-jump .nf-wrap::-webkit-scrollbar { display: none; }
.nf-jump a { flex: 0 0 auto; padding: 9px 18px; border-radius: 99px; border: 1px solid var(--nf-line); font: 700 14.5px var(--nf-font);
  color: var(--nf-mute); text-decoration: none; transition: all .15s; }
.nf-jump a:hover { color: var(--nf-head); border-color: var(--nf-a2); }
.nf-jump a i { font-style: normal; margin-left: 6px; opacity: .6; }
.nf-cat { padding: 72px 0 24px; scroll-margin-top: 130px; }
.nf-cat-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.nf-cat-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 0 0 6px; text-align: left; }
.nf-cat-head p { color: var(--nf-mute); margin: 0; max-width: 60ch; }
.nf-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.nf-course { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 300px; padding: 26px;
  border-radius: 22px; background: var(--nf-surface); border: 1px solid var(--nf-line); text-decoration: none; color: inherit;
  transition: transform .2s, box-shadow .2s, border-color .2s; }
.nf-course::before { content: ""; position: absolute; width: 240px; height: 240px; right: -90px; top: -110px; border-radius: 50%;
  background: radial-gradient(circle, var(--c, var(--nf-a2)), transparent 65%); opacity: .32; filter: blur(8px); transition: opacity .2s; }
.nf-course > * { position: relative; }
a.nf-course:hover { transform: translateY(-4px); box-shadow: 0 26px 60px rgba(0,0,0,.16); border-color: var(--c, var(--nf-a2)); }
a.nf-course:hover::before { opacity: .55; }
.nf-course .top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.nf-course .mark { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: #fff;
  font: 800 17px var(--nf-display); background: var(--c, var(--nf-a2)); box-shadow: 0 10px 24px color-mix(in srgb, var(--c, var(--nf-a2)) 40%, transparent); }
.nf-course h3 { font-size: 1.35rem; margin: 0 0 8px; line-height: 1.2; }
.nf-course p { color: var(--nf-mute); margin: 0 0 18px; font-size: .97rem; }
.nf-course .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.nf-course .tags span { font: 700 12.5px var(--nf-font); color: var(--nf-mute); padding: 5px 11px; border-radius: 99px; border: 1px solid var(--nf-line); }
.nf-course .cta { margin-top: 18px; font-weight: 800; color: var(--nf-head); }
.nf-course.soon .cta { color: var(--nf-mute); font-weight: 700; }
.nf-pill.live { background: color-mix(in srgb, var(--nf-a1) 18%, transparent); color: var(--nf-a1); }
.nf-pill.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.nf-pill.soon { background: color-mix(in srgb, var(--nf-mute) 14%, transparent); color: var(--nf-mute); }
.nf-page-hero { background: var(--nf-hero-bg); padding: 96px 0 72px; text-align: center; }
.nf-page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.2rem); line-height: 1.04; margin: 0 0 18px; }
.nf-page-hero p { color: var(--nf-mute); font-size: 1.2rem; max-width: 58ch; margin: 0 auto; }
@media (max-width: 640px) { .nf-jump { top: 58px; } .nf-cat { padding-top: 56px; } }

/* ======================================================================
   "CLEAN & BRIGHT" THEME — overrides the Nightfall tokens for every nf page.
   White background, black text, one strong blue, thin lines, no glow.
   (Delete this block to return to the Nightfall look.)
   ====================================================================== */
body.nf {
  --nf-bg: #ffffff; --nf-bg-2: #f6f7f9; --nf-surface: #ffffff; --nf-line: #e6e8ec;
  --nf-ink: #1d1f24; --nf-mute: #5f6672; --nf-head: #0b0c0f;
  --nf-a1: #1f6bff; --nf-a2: #1f6bff; --nf-a3: #1f6bff;               /* one accent: blue */
  --nf-blue: #1f6bff; --nf-blue-d: #1556d6; --nf-blue-soft: #eaf1ff;
  --nf-grad: var(--nf-blue);
  --nf-glow: rgba(31, 107, 255, .18);
  --nf-hero-bg: var(--nf-bg);
  --nf-radius: 14px;
  --nf-font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nf-display: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
html.dark-mode body.nf, body.nf.dark-mode {
  --nf-bg: #0d0e11; --nf-bg-2: #15171b; --nf-surface: #15171b; --nf-line: #262a31;
  --nf-ink: #e6e8ec; --nf-mute: #9aa1ad; --nf-head: #ffffff;
  --nf-a1: #4d8bff; --nf-a2: #4d8bff; --nf-a3: #4d8bff;
  --nf-blue: #4d8bff; --nf-blue-d: #3a78f0; --nf-blue-soft: #16233d;
  --nf-glow: rgba(77, 139, 255, .2); --nf-hero-bg: var(--nf-bg);
}
body.nf h1, body.nf h2, body.nf h3, body.nf h4 { letter-spacing: -.03em; }
/* calm everything down: no glows, orbs or gradient text */
body.nf .nf-orb, body.nf .nf-path::before, body.nf .nf-course::before { display: none; }
body.nf .nf-grad-text { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--nf-blue); }
body.nf .nf-step::before { background: none; color: var(--nf-blue); -webkit-background-clip: initial; background-clip: initial; }
body.nf .nf-kicker { color: var(--nf-blue); } body.nf .nf-kicker::before { background: var(--nf-blue); }
body.nf .nf-btn { border-radius: 10px; font-weight: 700; }
body.nf .nf-btn.primary { background: var(--nf-blue); box-shadow: none; }
body.nf .nf-btn.primary:hover { background: var(--nf-blue-d); transform: none; box-shadow: none; }
body.nf .nf-btn.ghost { border: 1px solid var(--nf-line); }
body.nf .nf-float { box-shadow: 0 8px 30px rgba(15, 20, 30, .08); backdrop-filter: none; background: var(--nf-surface); }
body.nf .nf-path:hover, body.nf a.nf-course:hover { box-shadow: 0 10px 30px rgba(15, 20, 30, .08); transform: translateY(-2px); }
body.nf .nf-band { background: var(--nf-bg-2); }
body.nf .nf-price.featured { background: var(--nf-surface); border: 2px solid var(--nf-blue); box-shadow: none; }
body.nf .nf-final { background: var(--nf-bg-2); }
body.nf .nf-pill, body.nf .nf-pill.amber, body.nf .nf-pill.teal { background: var(--nf-blue-soft); color: var(--nf-blue); }
body.nf .nf-pill.live { background: #e7f7ee; color: #12833f; }
html.dark-mode body.nf .nf-pill.live { background: #12301f; color: #4fd18b; }
body.nf .nf-pill.soon { background: var(--nf-bg-2); color: var(--nf-mute); }
body.nf .nf-course .mark { box-shadow: none; }
body.nf .nf-path li::before, body.nf .nf-path.eng li::before { color: var(--nf-blue); }
body.nf .bar.nf-bar { background: color-mix(in srgb, var(--nf-bg) 92%, transparent); }
body.nf .bar.nf-bar nav a:hover, body.nf .bar.nf-bar nav a.on { border-color: var(--nf-blue); }

