/* ============================================================
   PathtoAI Academy — Interview Prep
   Cosmic dark theme · Bricolage Grotesque + DM Sans
   Matches main landing design system
   ============================================================ */

:root {
  --bg:     #06090f;
  --bg-1:   #0a101c;
  --bg-2:   #0f1729;
  --card:   rgba(14, 22, 40, 0.7);
  --line:   rgba(100, 160, 255, 0.16);
  --text:   #e4edff;
  --text-2: #94a8cc;
  --a1:     #14b8a6;
  --a2:     #ffd166;
  --a3:     #6e8efb;
  --a4:     #ff6b6b;
  --a5:     #a78bfa;
  --grad:   linear-gradient(135deg, #14b8a6, #3b82f6, #8b5cf6);
  --display: "Bricolage Grotesque", sans-serif;
  --body:    "DM Sans", sans-serif;
  --ease:    cubic-bezier(.22, 1, .36, 1);

  /* Track colours */
  --t-aiml:   #14b8a6;
  --t-ds:     #8b5cf6;
  --t-de:     #3b82f6;
  --t-genai:  #f59e0b;
  --t-mlops:  #f43f5e;
}

/* ─── Light Theme ─── */
[data-theme="light"] {
  --bg:     #f5f7fb;
  --bg-1:   #edf0f7;
  --bg-2:   #e4e8f2;
  --card:   rgba(255, 255, 255, 0.82);
  --line:   rgba(60, 80, 130, 0.14);
  --text:   #1a1e2e;
  --text-2: #555e75;
  --a1:     #0f9688;
  --a3:     #4a6cf7;
  --a5:     #7c5ccf;
  --grad:   linear-gradient(135deg, #0f9688, #3b82f6, #7c5ccf);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background 0.5s, color 0.5s;
}

/* ─── Utility ─── */
.wrap {
  width: min(1180px, calc(100% - 2.5rem));
  margin-inline: auto;
}

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

.section-label {
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--a1);
  margin-bottom: 1rem;
}

.section-sep {
  position: relative;
}
.section-sep::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -48px;
  z-index: 300;
  background: #fff;
  color: #111827;
  padding: 0.55rem 0.8rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* ─── Scroll Reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* ─── Ambient Background ─── */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -2;
  pointer-events: none;
  animation: drift 14s ease-in-out infinite alternate;
  transition: opacity 0.5s;
}
.bg-glow--1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(20,184,166,0.18), transparent 70%);
  top: -180px; left: -120px;
}
.bg-glow--2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.16), transparent 70%);
  top: 35%; right: -160px;
  animation-delay: -5s;
}
.bg-glow--3 {
  width: 550px; height: 550px;
  background: radial-gradient(circle, rgba(139,92,246,0.14), transparent 70%);
  bottom: -100px; left: 30%;
  animation-delay: -9s;
}
[data-theme="light"] .bg-glow { opacity: 0.35; }
[data-theme="light"] #starfield { opacity: 0; }

@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.08); }
}

#starfield {
  position: fixed; inset: 0;
  z-index: -1; pointer-events: none;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s;
  background: transparent;
}
.nav--scrolled {
  background: rgba(6, 9, 15, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
[data-theme="light"] .nav--scrolled {
  background: rgba(245, 247, 251, 0.88);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1rem;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav__logo {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--grad);
  color: #06090f;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  gap: 2rem;
}
.nav__links a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.25s;
  position: relative;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--a1);
  transition: width 0.3s var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { width: 100%; }
.nav__links a.active { color: var(--a1); }
.nav__links a.active::after { width: 100%; }

/* ─── Theme Toggle ─── */
.theme-toggle {
  width: 42px; height: 42px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 1.15rem;
  transition: border-color 0.3s, transform 0.25s, background 0.3s;
  flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--a1); transform: scale(1.08); }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: inline; }
:root .theme-toggle .icon-sun  { display: inline; }
:root .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: inline; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span {
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
  cursor: pointer;
  border: none;
  font-family: var(--body);
}
.btn--primary {
  background: var(--grad);
  color: var(--bg);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(20,184,166,0.3);
}
.btn--outline {
  border: 1px solid var(--line);
  color: var(--text);
  background: transparent;
}
.btn--outline:hover {
  border-color: var(--a1);
  transform: translateY(-2px);
}

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding: 7rem 0 4rem;
}
.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.hero__tag {
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--a1);
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(20,184,166,0.35);
  border-radius: 999px;
  width: fit-content;
}
.hero__title {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.hero__sub {
  font-size: 1.12rem;
  color: var(--text-2);
  max-width: 58ch;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.hero__stats {
  display: flex;
  gap: 2.4rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat span {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-top: 0.15rem;
}
.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
}
.hero__scroll span {
  display: block;
  width: 22px; height: 36px;
  border: 2px solid var(--line);
  border-radius: 999px;
  position: relative;
}
.hero__scroll span::after {
  content: '';
  width: 3px; height: 8px;
  background: var(--a1);
  border-radius: 999px;
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  60%      { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* ─── TRACK CARDS ─── */
.tracks {
  padding: 6rem 0;
}
.tracks__heading {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 3rem;
}
.tracks__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.8rem;
}

.track-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem 1.8rem;
  border-radius: 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--tc, var(--a1));
  overflow: hidden;
  transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
  text-decoration: none;
  color: inherit;
}
.track-card:hover {
  border-color: rgba(20,184,166,0.5);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
[data-theme="light"] .track-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}

.track-card__glow {
  position: absolute;
  width: 200px; height: 200px;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.2;
  pointer-events: none;
  top: -80px; right: -60px;
  transition: opacity 0.4s;
  background: var(--tc, var(--a1));
}
.track-card:hover .track-card__glow { opacity: 0.45; }

.track-card__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.track-card__icon {
  font-size: 1.8rem;
  line-height: 1;
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex;
  align-items: center; justify-content: center;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tc, var(--a1)) 14%, transparent);
}
.track-card__title {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
}
.track-card__desc {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.6;
}
.track-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
}
.track-chip {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--tc, var(--a1)) 30%, transparent);
  background: color-mix(in srgb, var(--tc, var(--a1)) 8%, transparent);
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.track-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-2);
  gap: 0.5rem;
  flex-wrap: wrap;
}
.track-card__salary {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.track-card__alts {
  font-size: 0.78rem;
  color: var(--text-2);
  opacity: 0.7;
}
.track-card__cta {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--tc, var(--a1));
  margin-top: auto;
  padding-top: 0.5rem;
  transition: letter-spacing 0.3s;
}
.track-card:hover .track-card__cta {
  letter-spacing: 0.04em;
}

/* ─── WORKFLOW ─── */
.workflow {
  padding: 6rem 0;
}
.workflow__heading {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 3rem;
}
.workflow__steps {
  display: flex;
  gap: 1rem;
  position: relative;
}
.workflow__step {
  flex: 1;
  padding: 1.8rem 1.4rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s var(--ease);
  position: relative;
}
.workflow__step:hover {
  border-color: var(--a1);
  transform: translateY(-4px);
}
.workflow__num {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 0.8rem;
}
.workflow__step h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.workflow__step p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.6;
}
.workflow__connector {
  position: absolute;
  top: 50%;
  right: -0.7rem;
  transform: translateY(-50%);
  color: var(--text-2);
  font-size: 0.9rem;
  opacity: 0.4;
  pointer-events: none;
  z-index: 2;
}
.workflow__step:last-child .workflow__connector { display: none; }

.coming-soon {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--a2);
  border: 1px solid rgba(255,209,102,0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  margin-left: 0.3rem;
  vertical-align: middle;
}

/* ─── TOPIC OVERVIEW ─── */
.topics {
  padding: 6rem 0;
}
.topics__heading {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 3rem;
}
.topics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.topic-card {
  padding: 1.4rem 1.3rem;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: border-color 0.3s, transform 0.3s var(--ease);
}
.topic-card:hover {
  border-color: var(--a1);
  transform: translateY(-3px);
}
.topic-card__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}
.topic-card__icon {
  font-size: 1.3rem;
  line-height: 1;
}
.topic-card__name {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
}
.topic-card__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}
.topic-card__items li {
  font-size: 0.82rem;
  color: var(--text-2);
  padding-left: 0.8rem;
  position: relative;
}
.topic-card__items li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--a1);
  font-weight: 800;
}
.topic-card__tracks {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}
.track-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  display: inline-block;
  border: 1.5px solid rgba(255,255,255,0.15);
}
[data-theme="light"] .track-dot {
  border-color: rgba(0,0,0,0.1);
}

/* ─── ROADMAP BANNER ─── */
.roadmap-banner {
  padding: 3rem 0;
}
.roadmap-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1.6rem 2rem;
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(20,184,166,0.12), rgba(59,130,246,0.10), rgba(139,92,246,0.08));
  border: 1px solid rgba(20,184,166,0.2);
}
.roadmap-banner__text h3 {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}
.roadmap-banner__text p {
  font-size: 0.88rem;
  color: var(--text-2);
  line-height: 1.55;
}
.roadmap-banner__phases {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}
.phase-map {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--text-2);
  white-space: nowrap;
}
[data-theme="light"] .phase-map {
  background: rgba(0,0,0,0.04);
}

/* ─── FAQ ─── */
.faq {
  padding: 6rem 0;
}
.faq__heading {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 3rem;
}
.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  max-width: 780px;
}
.faq__item {
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 0.3s;
}
.faq__item[open] {
  border-color: var(--a1);
}
.faq__item summary {
  cursor: pointer;
  padding: 1.1rem 1.3rem;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  font-size: 1.3rem;
  font-weight: 300;
  color: var(--text-2);
  transition: transform 0.3s var(--ease);
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq__item[open] summary::after {
  transform: rotate(45deg);
  color: var(--a1);
}
.faq__answer {
  padding: 0 1.3rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}

/* ─── FINAL CTA ─── */
.final-cta {
  padding: 5rem 0;
}
.final-cta__inner {
  text-align: center;
  padding: 3.5rem 2rem;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(20,184,166,0.15), rgba(59,130,246,0.12), rgba(139,92,246,0.10));
  border: 1px solid rgba(20,184,166,0.18);
  position: relative;
  overflow: hidden;
}
.final-cta__inner::before {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20,184,166,0.2), transparent 70%);
  filter: blur(60px);
  top: -120px; right: -80px;
  pointer-events: none;
}
.final-cta h2 {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.6rem;
  position: relative;
}
.final-cta p {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  position: relative;
}

/* ─── FOOTER ─── */
.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-2);
  font-size: 0.82rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer__inner a {
  color: var(--a1);
  text-decoration: none;
  font-weight: 600;
}
.footer__inner a:hover {
  text-decoration: underline;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: rgba(6, 9, 15, 0.97);
    backdrop-filter: blur(16px);
    padding: 1.5rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--line);
  }
  [data-theme="light"] .nav__links.open {
    background: rgba(245,247,251,0.97);
  }
  .nav__burger { display: flex; }
  .theme-toggle { width: 38px; height: 38px; font-size: 1rem; }

  .tracks__grid { grid-template-columns: 1fr; }
  .workflow__steps { flex-direction: column; }
  .workflow__connector { display: none; }
  .topics__grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-banner__inner { flex-direction: column; text-align: center; }
  .hero__stats { gap: 1.5rem; }
  .footer__inner { flex-direction: column; gap: 0.4rem; text-align: center; }
}

@media (max-width: 600px) {
  .hero { min-height: auto; padding: 8rem 0 3rem; }
  .hero__title { font-size: 2rem; }
  .hero__scroll { display: none; }
  .stat__num { font-size: 1.6rem; }
  .topics__grid { grid-template-columns: 1fr; }
  .workflow__step { padding: 1.3rem 1rem; }
}
