:root {
  --ink: #151719;
  --muted: #636970;
  --line: #e3e5e8;
  --paper: #fbfbfb;
  --soft: #f4f5f7;
  --white: #ffffff;
  --red: #f71925;
  --red-dark: #c70f18;
  --black: #050505;
  --gold: #bb8429;
  --shadow: 0 24px 70px rgba(15, 17, 19, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0;
}

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

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(227, 229, 232, 0.9);
  display: flex;
  height: 84px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(20px, 5vw, 72px);
  position: fixed;
  right: 0;
  top: 0;
  transition: box-shadow 180ms ease, background 180ms ease;
  z-index: 20;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 28px rgba(15, 17, 19, 0.08);
}

.brand,
.site-nav,
.hero-actions,
.contact-lines {
  align-items: center;
  display: flex;
}

.brand {
  gap: 12px;
  font-weight: 900;
}

.brand img {
  display: block;
  height: 46px;
  object-fit: contain;
  width: 46px;
}

.brand span {
  letter-spacing: 0;
}

.site-nav {
  gap: 26px;
  font-size: 0.94rem;
  font-weight: 800;
}

.nav-cta,
.button {
  border-radius: 7px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 46px;
  padding: 14px 20px;
}

.nav-cta {
  background: var(--red);
  color: var(--white);
}

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 44px;
  position: relative;
  width: 44px;
}

.nav-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 7px auto;
  width: 24px;
}

.hero {
  align-content: end;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  padding: 150px clamp(20px, 5vw, 72px) 44px;
  position: relative;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.86) 0%, rgba(5, 5, 5, 0.66) 46%, rgba(5, 5, 5, 0.15) 100%),
    url("assets/analytics-hero.png") center / cover;
  inset: 0;
  position: absolute;
  z-index: -1;
}

.hero-content {
  color: var(--white);
  max-width: 820px;
}

.eyebrow,
.section-kicker {
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ff6b72;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 7.8vw, 7.1rem);
  letter-spacing: 0;
  line-height: 0.94;
  margin-bottom: 24px;
  max-width: 900px;
}

h2 {
  font-size: clamp(2rem, 4.7vw, 4rem);
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0;
}

h3 {
  font-size: 1.16rem;
  line-height: 1.2;
  margin-bottom: 12px;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
  max-width: 700px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  border: 1px solid transparent;
  cursor: pointer;
}

.primary {
  background: var(--red);
  color: var(--white);
}

.primary:hover,
.nav-cta:hover {
  background: var(--red-dark);
}

.secondary {
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.hero-panel {
  align-self: end;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 72px;
  max-width: 980px;
  overflow: hidden;
}

.hero-panel div {
  background: var(--white);
  padding: 22px;
}

.hero-panel span {
  color: var(--muted);
  display: block;
  font-size: 0.8rem;
  font-weight: 800;
  margin-bottom: 7px;
}

.hero-panel strong {
  display: block;
  font-size: 1.02rem;
}

.section,
.band,
.contact {
  padding: clamp(72px, 9vw, 128px) clamp(20px, 5vw, 72px);
}

.intro {
  align-items: end;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.06fr) minmax(280px, 0.94fr);
}

.intro p:last-child,
.contact-copy p,
.course-detail p {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.section-heading {
  margin-bottom: 38px;
  max-width: 900px;
}

.course-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.course-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  min-height: 292px;
  padding: 24px;
}

.course-card p {
  color: var(--muted);
  line-height: 1.65;
}

.course-card a {
  align-self: end;
  color: var(--red);
  font-weight: 900;
}

.course-number {
  color: var(--red);
  display: block;
  font-weight: 900;
  margin-bottom: 42px;
}

.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 154px clamp(20px, 5vw, 72px) clamp(72px, 8vw, 112px);
}

.page-hero h1 {
  max-width: 1020px;
}

.page-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.08rem, 2vw, 1.34rem);
  line-height: 1.6;
  max-width: 760px;
}

.page-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.back-link {
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 7px;
  color: var(--white);
  display: inline-flex;
  font-weight: 900;
  min-height: 46px;
  padding: 14px 20px;
}

.detail-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1fr);
}

.info-card,
.module-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

.info-card {
  align-self: start;
  display: grid;
  gap: 18px;
}

.info-card div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
}

.info-card div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.info-card span {
  color: var(--red);
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-bottom: 6px;
  text-transform: uppercase;
}

.info-card strong {
  display: block;
  font-size: 1.08rem;
}

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

.module-card h3 {
  margin-bottom: 10px;
}

.module-card p {
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.project-band {
  background: var(--soft);
}

.project-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid div {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  min-height: 94px;
  padding: 24px;
}

.band {
  background: var(--black);
  color: var(--white);
}

.band .section-kicker,
.band h2 {
  color: var(--white);
}

.process-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-list div {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 24px;
}

.process-list span {
  color: #ff6b72;
  font-weight: 900;
}

.process-list p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
}

.course-pages {
  display: grid;
  gap: 18px;
}

.course-detail {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  padding: clamp(24px, 4vw, 44px);
  scroll-margin-top: 104px;
}

.course-detail ul {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.course-detail li {
  border-bottom: 1px solid var(--line);
  font-weight: 800;
  padding: 0 0 12px 26px;
  position: relative;
}

.course-detail li::before {
  background: var(--red);
  border-radius: 50%;
  content: "";
  height: 8px;
  left: 0;
  position: absolute;
  top: 8px;
  width: 8px;
}

.outcome-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.outcome-grid div {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 900;
  min-height: 88px;
  padding: 24px;
}

.contact {
  background: var(--soft);
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.7fr);
}

.contact-lines {
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
  font-weight: 900;
  margin-top: 28px;
}

.location-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 16px;
  margin-top: 26px;
  max-width: 560px;
  overflow: hidden;
}

.location-card img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.location-card div {
  display: grid;
  gap: 6px;
  padding: 0 18px 18px;
}

.location-card strong {
  color: var(--ink);
}

.location-card span {
  color: var(--muted);
  line-height: 1.5;
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(15, 17, 19, 0.08);
  display: grid;
  gap: 16px;
  padding: 24px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.88rem;
  font-weight: 900;
  gap: 8px;
}

input,
select,
textarea {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.contact-form .button {
  width: 100%;
}

.form-note {
  color: var(--red-dark);
  font-size: 0.92rem;
  font-weight: 800;
  margin: 0;
  min-height: 22px;
}

.site-footer {
  align-items: flex-start;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  gap: 28px;
  justify-content: space-between;
  padding: 26px clamp(20px, 5vw, 72px);
}

.footer-brand,
.khda-block div {
  display: grid;
  gap: 6px;
}

.footer-brand strong,
.khda-block strong {
  color: var(--ink);
}

.khda-block {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 112px minmax(0, 1fr);
  max-width: 760px;
}

.khda-block img {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: block;
  height: auto;
  padding: 8px;
  width: 112px;
}

@media (max-width: 1040px) {
  .course-grid,
  .outcome-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro,
  .contact,
  .course-detail,
  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    height: 72px;
  }

  .brand img {
    height: 40px;
    width: 40px;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 36px rgba(15, 17, 19, 0.08);
    display: grid;
    gap: 0;
    left: 0;
    padding: 12px 20px 20px;
    position: absolute;
    right: 0;
    top: 72px;
    transform: translateY(-130%);
    transition: transform 180ms ease;
    z-index: -1;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 0;
  }

  .nav-cta {
    margin-top: 8px;
  }

  .hero {
    min-height: 94vh;
    padding-top: 112px;
  }

  .hero-bg {
    background:
      linear-gradient(180deg, rgba(5, 5, 5, 0.88) 0%, rgba(5, 5, 5, 0.68) 56%, rgba(5, 5, 5, 0.34) 100%),
      url("assets/analytics-hero.png") center / cover;
  }

  .hero-panel,
  .course-grid,
  .process-list,
  .outcome-grid,
  .module-grid,
  .project-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    margin-top: 42px;
  }

  .button {
    width: 100%;
  }

  .back-link,
  .page-actions .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .khda-block {
    grid-template-columns: 1fr;
  }
}
