:root {
  --ink: #121826;
  --muted: #667085;
  --line: #d9e1e7;
  --paper: #fbfcfd;
  --white: #ffffff;
  --teal: #008f8c;
  --teal-dark: #056263;
  --coral: #f26a4f;
  --gold: #f5b84b;
  --blue: #2f6fed;
  --shadow: 0 18px 50px rgba(18, 24, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.5;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 252, 253, 0.92);
  border-bottom: 1px solid rgba(217, 225, 231, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--white);
  background: var(--teal);
  border-radius: 8px;
}

.main-nav,
.header-actions,
.hero-actions,
.drawer-actions,
.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.main-nav {
  justify-content: center;
  color: #354052;
  font-weight: 600;
  font-size: 14px;
}

.main-nav a,
.nav-link {
  padding: 8px 4px;
}

.nav-link {
  color: inherit;
  background: transparent;
  border: 0;
}

.primary-btn,
.ghost-btn,
.light-btn,
.outline-btn,
.search-row button,
.workshop button {
  min-height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  white-space: nowrap;
}

.primary-btn,
.search-row button {
  color: var(--white);
  background: var(--teal);
  box-shadow: 0 10px 24px rgba(0, 143, 140, 0.22);
}

.primary-btn:hover,
.search-row button:hover {
  background: var(--teal-dark);
}

.ghost-btn {
  background: transparent;
  border-color: var(--line);
}

.light-btn {
  color: var(--teal-dark);
  background: var(--white);
}

.outline-btn {
  color: var(--teal-dark);
  background: transparent;
  border-color: rgba(0, 143, 140, 0.35);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  z-index: -2;
}

.hero-overlay {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(251, 252, 253, 0.96) 0%, rgba(251, 252, 253, 0.78) 43%, rgba(251, 252, 253, 0.18) 78%),
    linear-gradient(0deg, rgba(18, 24, 38, 0.12), rgba(18, 24, 38, 0));
}

.hero-content {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: minmax(0, 610px) minmax(260px, 360px);
  align-items: end;
  gap: 34px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 560px;
  margin: 22px 0;
  color: #354052;
  font-size: clamp(17px, 2vw, 21px);
}

.search-panel {
  width: min(100%, 620px);
  padding: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(217, 225, 231, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-panel label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-row input,
.verify-modal input,
.section-heading select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
}

.hero-actions {
  margin-top: 18px;
}

.hero-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  background: rgba(217, 225, 231, 0.88);
  border: 1px solid rgba(217, 225, 231, 0.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-stat-strip div {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.hero-stat-strip strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

.hero-stat-strip span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.quick-categories {
  display: flex;
  gap: 10px;
  padding: 18px clamp(18px, 4vw, 56px);
  overflow-x: auto;
  background: var(--white);
  border-block: 1px solid var(--line);
}

.category-chip {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 16px;
  color: #354052;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 800;
}

.category-chip.active {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.section {
  padding: 64px clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 1180px;
  margin: 0 auto 24px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.bundle-copy h2 {
  margin: 0;
  max-width: 660px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: 0;
}

.course-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.course-card,
.workshop,
.blog-grid article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(18, 24, 38, 0.06);
}

.course-card {
  display: grid;
  min-height: 390px;
  overflow: hidden;
}

.course-media {
  min-height: 138px;
  padding: 16px;
  color: var(--white);
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.course-media.marketing { background: linear-gradient(135deg, #008f8c, #2f6fed); }
.course-media.freelancing { background: linear-gradient(135deg, #121826, #f26a4f); }
.course-media.design { background: linear-gradient(135deg, #7b3ff2, #f26a4f); }
.course-media.business { background: linear-gradient(135deg, #056263, #f5b84b); }
.course-media.tech { background: linear-gradient(135deg, #2f6fed, #121826); }

.course-media span {
  display: inline-grid;
  min-width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.course-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.course-meta,
.course-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.course-body h3 {
  margin: 0;
  min-height: 58px;
  font-size: 21px;
  line-height: 1.25;
}

.course-body p {
  margin: 0;
  color: var(--muted);
}

.price {
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
}

.course-card button {
  min-height: 40px;
  padding: 0 14px;
  color: var(--teal-dark);
  background: rgba(0, 143, 140, 0.1);
  border: 1px solid rgba(0, 143, 140, 0.22);
  border-radius: 8px;
  font-weight: 800;
}

.empty-state {
  max-width: 1180px;
  margin: 24px auto 0;
  color: var(--muted);
  font-weight: 700;
}

.split-section {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

.bundle-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.bundle-list {
  display: grid;
  gap: 14px;
}

.bundle-list article {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 4px 16px;
  padding: 20px;
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
}

.bundle-list span {
  grid-row: span 2;
  color: var(--gold);
  font-weight: 900;
}

.bundle-list h3,
.bundle-list p,
.workshop h3,
.workshop p,
.blog-grid h3,
.blog-grid p {
  margin: 0;
}

.bundle-list p {
  color: #cbd5e1;
}

.workshops-section {
  background: #eef7f6;
}

.workshop-row,
.blog-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.workshop {
  display: grid;
  gap: 12px;
  padding: 20px;
}

.workshop time {
  color: var(--coral);
  font-weight: 900;
}

.workshop button {
  justify-self: start;
  color: var(--white);
  background: var(--ink);
}

.trust-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding-top: 0;
  padding-bottom: 0;
  background: var(--line);
}

.trust-item {
  min-height: 150px;
  padding: 28px;
  background: var(--white);
}

.trust-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.trust-item span,
.blog-grid p,
.workshop p {
  color: var(--muted);
}

.blog-grid article {
  padding: 22px;
}

.blog-grid span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.blog-grid h3 {
  margin-top: 8px;
  margin-bottom: 10px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: var(--ink);
}

.site-footer p {
  margin: 8px 0 0;
  color: #cbd5e1;
}

.enroll-drawer {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: min(380px, calc(100% - 36px));
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transform: translateY(calc(100% + 32px));
  transition: transform 180ms ease;
}

.enroll-drawer.open {
  transform: translateY(0);
}

.enroll-drawer h2 {
  margin: 0 0 8px;
}

.enroll-drawer p:not(.eyebrow) {
  color: var(--muted);
}

.drawer-close,
.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-weight: 900;
}

.verify-modal {
  width: min(440px, calc(100% - 32px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.verify-modal::backdrop {
  background: rgba(18, 24, 38, 0.45);
}

.verify-modal form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 28px;
}

.verify-modal h2 {
  margin: 0;
}

.verify-result {
  margin: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .main-nav,
  .header-actions {
    display: none;
  }

  .site-header.nav-open .main-nav,
  .site-header.nav-open .header-actions {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .hero-content,
  .split-section {
    grid-template-columns: 1fr;
  }

  .course-grid,
  .workshop-row,
  .blog-grid,
  .trust-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 660px) {
  .hero {
    min-height: 760px;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(251, 252, 253, 0.96) 0%, rgba(251, 252, 253, 0.88) 58%, rgba(251, 252, 253, 0.4) 100%);
  }

  .hero-content {
    width: min(100% - 28px, 560px);
    margin-bottom: 20px;
  }

  .search-row,
  .hero-stat-strip,
  .section-heading,
  .course-grid,
  .workshop-row,
  .blog-grid,
  .trust-section {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .drawer-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-btn,
  .ghost-btn,
  .light-btn,
  .outline-btn {
    width: 100%;
  }

  .course-body h3 {
    min-height: auto;
  }

  .bundle-list article {
    grid-template-columns: 1fr;
  }
}
