:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-strong: #eef3f8;
  --text: #14213d;
  --muted: #64748b;
  --line: #d9e2ec;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --accent: #f59e0b;
  --accent-soft: #fff2d4;
  --cyan: #0891b2;
  --rose: #be123c;
  --scroll-track: #e8eef5;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  --shadow-soft: 0 12px 30px rgba(15, 23, 42, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--primary) var(--scroll-track);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: var(--scroll-track);
}

::-webkit-scrollbar-thumb {
  border: 3px solid var(--scroll-track);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--cyan));
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--primary-dark), var(--rose));
}

::selection {
  color: #ffffff;
  background: var(--primary);
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08) 0 18%, transparent 18% 100%),
    linear-gradient(315deg, rgba(245, 158, 11, 0.12) 0 14%, transparent 14% 100%),
    linear-gradient(180deg, #f7f8fb 0%, #eef7f4 48%, #fff9ec 100%);
  line-height: 1.6;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 0%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--primary), var(--cyan));
  box-shadow: 0 0 18px rgba(15, 118, 110, 0.35);
}

img {
  display: block;
  width: 100%;
}

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

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(217, 226, 236, 0.8);
  background: rgba(247, 248, 251, 0.92);
  backdrop-filter: blur(18px);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1120px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
}

.brand,
.nav-links,
.hero-actions,
.filter-bar {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: var(--radius);
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
}

.nav-links {
  gap: 28px;
  color: var(--muted);
  font-weight: 700;
}

.nav-links a {
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 52px;
  align-items: center;
  width: min(1120px, calc(100% - 32px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  padding: 64px 0 72px;
}

.hero::before {
  position: absolute;
  top: 34px;
  right: 43%;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 28px;
  content: "";
  transform: rotate(12deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: 0;
}

h1 {
  max-width: 10ch;
  font-size: clamp(3rem, 8vw, 5.7rem);
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 58ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-badges span {
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  box-shadow: 0 12px 24px rgba(15, 118, 110, 0.22);
}

.primary:hover {
  box-shadow: 0 16px 32px rgba(15, 118, 110, 0.28);
}

.secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.secondary:hover {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--surface-strong);
  isolation: isolate;
}

.hero-panel::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 46%, rgba(20, 33, 61, 0.45));
  content: "";
  pointer-events: none;
}

.hero-panel img {
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  gap: 12px;
  align-items: center;
  width: min(260px, calc(100% - 48px));
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: var(--radius);
  padding: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(12px);
  z-index: 2;
}

.floating-card strong,
.floating-card p {
  margin: 0;
}

.floating-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

.status-dot {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.16);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(920px, calc(100% - 32px));
  margin: -34px auto 80px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.08);
}

.stats article {
  display: grid;
  gap: 4px;
  min-height: 116px;
  place-items: center;
  padding: 18px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 252, 0.86));
}

.stats article + article {
  border-left: 1px solid var(--line);
}

.stats strong {
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1;
}

.stats article:last-child strong::after {
  content: "%";
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

.section,
.process {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0;
}

.section-heading {
  max-width: 720px;
}

.section-heading p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
}

.filter-bar {
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0;
}

.filter-btn {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  color: var(--muted);
  background: var(--surface);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.filter-btn:hover {
  transform: translateY(-2px);
}

.filter-btn.active,
.filter-btn:hover {
  color: #ffffff;
  border-color: var(--primary);
  background: var(--primary);
}

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

.course-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.course-card.hide {
  display: none;
}

.course-card:hover {
  transform: translateY(-6px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 24px 42px rgba(15, 23, 42, 0.12);
}

.course-card img {
  height: 210px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.course-card:hover img {
  transform: scale(1.045);
}

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

.course-body span {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--primary-dark);
  background: #d9f6f1;
  font-size: 0.78rem;
  font-weight: 800;
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.course-meta small {
  border-radius: 999px;
  padding: 5px 9px;
  color: var(--muted);
  background: #f1f5f9;
  font-weight: 800;
}

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

.course-body button {
  width: fit-content;
  min-height: 40px;
  border: 0;
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--text);
  background: var(--accent-soft);
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.course-body button:hover {
  background: #fde68a;
  transform: translateY(-2px);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 34px;
}

.step {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 38px rgba(15, 23, 42, 0.1);
}

.step span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--primary);
  background: #d9f6f1;
  font-weight: 800;
}

.step h3 {
  margin-top: 12px;
}

.step p {
  margin: 10px 0 0;
  color: var(--muted);
}

.story-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  margin: 40px 0;
  background:
    linear-gradient(135deg, #14213d, #0f3a4d 58%, #115e59);
  color: #ffffff;
}

.story-band img {
  height: 100%;
  min-height: 480px;
  object-fit: cover;
}

.story-content {
  width: min(560px, calc(100% - 32px));
  padding: 70px 0 70px 48px;
}

.story-content .eyebrow {
  color: #67e8f9;
}

.story-content p:last-child {
  color: #cbd5e1;
}

.contact-section {
  padding-top: 90px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 760px;
  margin-top: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.07);
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 800;
}

.contact-form label:nth-child(3),
.contact-form button,
.form-message {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 14px;
  color: var(--text);
  background: #fbfdff;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-form input:focus,
.contact-form select:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.contact-form button {
  width: fit-content;
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--primary-dark);
  font-weight: 800;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--primary);
  font-weight: 800;
  transition: color 0.2s ease;
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    right: 16px;
    left: 16px;
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 16px;
  }

  .nav-links a::after {
    display: none;
  }

  .nav-links a + a {
    border-top: 1px solid var(--line);
  }

  .hero,
  .story-band {
    grid-template-columns: 1fr;
  }

  .hero::before {
    display: none;
  }

  .hero {
    min-height: auto;
    gap: 36px;
    padding-top: 44px;
  }

  h1 {
    max-width: 12ch;
  }

  .hero-panel,
  .hero-panel img {
    min-height: 420px;
  }

  .stats,
  .course-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .stats {
    margin-top: 0;
  }

  .stats article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .story-content {
    padding: 42px 0;
    margin: 0 auto;
  }
}

@media (max-width: 640px) {
  .nav {
    width: min(100% - 24px, 1120px);
  }

  .hero,
  .section,
  .process,
  .footer {
    width: min(100% - 24px, 1120px);
  }

  .hero {
    padding-bottom: 40px;
  }

  h1 {
    font-size: clamp(2.55rem, 16vw, 4.3rem);
  }

  h2 {
    font-size: clamp(1.8rem, 11vw, 2.8rem);
  }

  .hero-actions,
  .filter-bar {
    align-items: stretch;
  }

  .hero-actions .btn,
  .filter-btn {
    width: 100%;
  }

  .hero-panel,
  .hero-panel img {
    min-height: 340px;
  }

  .floating-card {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
  }

  .section,
  .process {
    padding: 58px 0;
  }

  .course-card img {
    height: 190px;
  }

  .story-band {
    margin: 10px 0;
  }

  .story-band img {
    min-height: 320px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

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

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