/* ==========================================================================
   Analytica Academy — custom styles (no framework)
   Dark navy/charcoal theme · electric blue → teal accent
   ========================================================================== */

:root {
  --bg: #0a0f1c;
  --bg-soft: #0d1424;
  --card: #111a2e;
  --card-hover: #16223c;
  --border: rgba(148, 163, 184, 0.13);
  --border-strong: rgba(148, 163, 184, 0.25);
  --text: #e7edf7;
  --muted: #93a1b8;
  --accent: #4f8cff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(79, 140, 255, 0.12);
  --gradient: linear-gradient(120deg, #4f8cff 0%, #22d3ee 100%);
  --radius: 14px;
  --shadow: 0 10px 30px rgba(2, 6, 16, 0.45);
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(79, 140, 255, 0.13), transparent 60%),
    radial-gradient(900px 480px at -10% 0%, rgba(34, 211, 238, 0.09), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Sticky top nav
   -------------------------------------------------------------------------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 15, 28, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--gradient);
  color: #06101f;
  font-weight: 800;
  font-size: 16px;
}

.nav-links {
  display: flex;
  gap: 6px;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
}

.nav-links a.active {
  color: var(--text);
  background: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */

.hero {
  padding: 96px 0 72px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(79, 140, 255, 0.35);
  background: var(--accent-soft);
  color: #bcd3ff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: clamp(34px, 5.4vw, 58px);
  max-width: 820px;
  margin: 0 auto 22px;
}

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

.lede {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 700px;
  margin: 0 auto;
}

.hero .lede {
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.stats {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
  margin-top: 56px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat strong {
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span {
  color: var(--muted);
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--gradient);
  color: #06101f;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(79, 140, 255, 0.35);
}

.btn-ghost {
  background: rgba(148, 163, 184, 0.06);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* --------------------------------------------------------------------------
   Sections & cards
   -------------------------------------------------------------------------- */

.section {
  padding: 72px 0 0;
}

.section:last-of-type {
  padding-bottom: 80px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.section-head h2 {
  font-size: clamp(24px, 3.2vw, 34px);
  margin-top: 8px;
}

.section-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 14.5px;
  white-space: nowrap;
  padding-bottom: 4px;
}

.section-link:hover {
  color: var(--accent-2);
}

.eyebrow {
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-depts {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.grid-courses {
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.04), rgba(148, 163, 184, 0.015)), var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(79, 140, 255, 0.45);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 19px;
}

.card p {
  color: var(--muted);
  font-size: 14.5px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 600;
  margin-top: auto;
}

.dept-icon {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 140, 255, 0.3);
}

.pill {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 140, 255, 0.3);
  color: #bcd3ff;
  font-size: 12.5px;
  font-weight: 600;
}

.dot {
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   Inner page header
   -------------------------------------------------------------------------- */

.page-head {
  padding: 72px 24px 40px;
}

.page-head h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  margin-top: 10px;
}

.page-head .lede {
  margin: 18px 0 0;
  text-align: left;
  max-width: 760px;
}

.dept-link {
  color: var(--accent-2);
}

.dept-link:hover {
  color: var(--accent);
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Tools table (department detail)
   -------------------------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.tools-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 14.5px;
}

.tools-table th {
  text-align: left;
  padding: 16px 20px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.tools-table td {
  padding: 18px 20px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.tools-table tbody tr:last-child td {
  border-bottom: none;
}

.tools-table tbody tr {
  transition: background 0.15s ease;
}

.tools-table tbody tr:hover {
  background: rgba(79, 140, 255, 0.05);
}

.tools-table .tool-name {
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.tools-table .tool-name::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient);
  margin-right: 9px;
  vertical-align: middle;
}

.tools-table .integration {
  color: #a9c3f5;
}

.after-table {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 34px 0 0;
}

/* --------------------------------------------------------------------------
   Courses filter
   -------------------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(148, 163, 184, 0.05);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.filter-btn:hover {
  color: var(--text);
  border-color: var(--accent);
}

.filter-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: #06101f;
}

.filter-status {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}

/* --------------------------------------------------------------------------
   Course detail
   -------------------------------------------------------------------------- */

.course-body {
  max-width: 860px;
  padding-bottom: 80px;
}

.lessons {
  list-style: none;
  counter-reset: lesson;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.lessons li {
  counter-increment: lesson;
  position: relative;
  padding: 22px 24px 22px 68px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 15px;
  transition: border-color 0.15s ease;
}

.lessons li:hover {
  border-color: rgba(79, 140, 255, 0.4);
}

.lessons li::before {
  content: counter(lesson);
  position: absolute;
  left: 20px;
  top: 20px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid rgba(79, 140, 255, 0.35);
  color: var(--accent);
  font-weight: 800;
  font-size: 14px;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 44px 24px;
  flex-wrap: wrap;
}

.footer-logo {
  margin-bottom: 10px;
}

.tagline {
  color: var(--muted);
  font-size: 14px;
  max-width: 420px;
}

.footer-links {
  display: flex;
  gap: 22px;
}

.footer-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
}

.footer-links a:hover {
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 640px) {
  .nav-inner {
    height: 58px;
  }

  .logo {
    font-size: 15.5px;
  }

  .nav-links a {
    padding: 7px 10px;
    font-size: 13.5px;
  }

  .hero {
    padding: 64px 0 56px;
  }

  .stats {
    gap: 30px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-head {
    padding: 52px 24px 32px;
  }

  .card {
    padding: 22px;
  }

  .lessons li {
    padding: 18px 18px 18px 60px;
  }

  .lessons li::before {
    left: 14px;
    top: 16px;
    width: 30px;
    height: 30px;
  }

  .footer-inner {
    flex-direction: column;
    padding: 36px 24px;
  }
}
