:root {
  --primary: #0f766e;
  --primary2: #14b8a6;
  --secondary: #2563eb;
  --violet: #7c3aed;
  --accent: #f97316;
  --dark: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card: #fff;
  --shadow: 0 26px 80px rgba(15, 23, 42, 0.12);
  --soft: linear-gradient(
    135deg,
    rgba(20, 184, 166, 0.12),
    rgba(37, 99, 235, 0.1),
    rgba(124, 58, 237, 0.1)
  );
  --grad: linear-gradient(135deg, #0f766e, #2563eb 56%, #7c3aed);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    Inter,
    Segoe UI,
    Tahoma,
    sans-serif;
  color: var(--dark);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 42%, #eef6ff 100%);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

.container {
  width: min(1180px, 92%);
  margin: auto;
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 145px 0 82px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -15%;
  background:
    radial-gradient(
      circle at 14% 20%,
      rgba(20, 184, 166, 0.23),
      transparent 28%
    ),
    radial-gradient(
      circle at 86% 14%,
      rgba(37, 99, 235, 0.18),
      transparent 30%
    ),
    radial-gradient(
      circle at 72% 86%,
      rgba(249, 115, 22, 0.14),
      transparent 26%
    );
  animation: bgMove 12s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 118, 110, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.06) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 88%);
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
  animation: gridMove 20s linear infinite;
  pointer-events: none;
}

.mesh {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.8;
  animation: float 7s ease-in-out infinite;
  pointer-events: none;
}

.mesh-one {
  width: 130px;
  height: 130px;
  background: rgba(20, 184, 166, 0.18);
  left: 8%;
  top: 25%;
}

.mesh-two {
  width: 170px;
  height: 170px;
  background: rgba(124, 58, 237, 0.12);
  right: 17%;
  bottom: 8%;
  animation-delay: 1.4s;
}

.hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 48px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 118, 110, 0.18);
  color: var(--primary);
  font-weight: 900;
  font-size: 0.88rem;
  box-shadow: 0 10px 28px rgba(15, 118, 110, 0.08);
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.45rem);
  line-height: 0.98;
  letter-spacing: -0.075em;
  margin: 18px 0 22px;
}

.hero h1 span,
.section-head h2 span {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.13rem;
  color: var(--muted);
  max-width: 660px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 22px;
  border-radius: 999px;
  font-weight: 950;
  border: 1px solid transparent;
  transition: 0.32s;
  cursor: pointer;
}

.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 20px 44px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 56px rgba(37, 99, 235, 0.33);
}

.btn-glass {
  background: #fff;
  border-color: var(--line);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.btn-glass:hover {
  transform: translateY(-4px);
  border-color: var(--primary2);
  color: var(--primary);
}

.trust-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 34px;
  max-width: 560px;
}

.trust-metrics div {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 15px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.trust-metrics strong {
  display: block;
  font-size: 1.45rem;
}

.trust-metrics span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.dashboard-card {
  position: relative;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 36px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
  padding: 18px;
  min-height: 540px;
  animation: cardFloat 6s ease-in-out infinite;
}

.dashboard-top {
  height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 900;
  padding: 0 10px;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ef4444;
}

.window-dot:nth-child(2) {
  background: #f59e0b;
}
.window-dot:nth-child(3) {
  background: #22c55e;
}

.learning-card {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 62px;
  bottom: 105px;
  border-radius: 28px;
  padding: 34px;
  background: linear-gradient(145deg, #fff, #f8fafc);
  border: 1px solid var(--line);
  opacity: 0;
  transform: translateY(22px) scale(0.97);
  transition: 0.75s cubic-bezier(0.2, 0.9, 0.2, 1);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.learning-card.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.feature-icon {
  width: 78px;
  height: 78px;
  border-radius: 26px;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2rem;
  box-shadow: 0 18px 46px rgba(37, 99, 235, 0.24);
  margin-bottom: 24px;
}

.learning-card h2 {
  font-size: 2.05rem;
  line-height: 1.08;
  letter-spacing: -0.05em;
  margin-bottom: 14px;
}

.learning-card p {
  color: var(--muted);
  font-weight: 600;
}

.skill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.skill-row span {
  padding: 9px 13px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1e40af;
  font-weight: 900;
  font-size: 0.82rem;
}

.progress-panel {
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 24px;
  background: var(--dark);
  color: #fff;
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

.progress-panel div:first-child {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
}

.progress {
  height: 10px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  margin-top: 11px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 92%;
  border-radius: 999px;
  background: linear-gradient(90deg, #14b8a6, #60a5fa, #a78bfa);
  animation: progressPulse 2s ease-in-out infinite alternate;
}

.floating-note {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 13px 16px;
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.15);
  font-weight: 950;
  display: flex;
  gap: 9px;
  align-items: center;
  animation: float 5s ease-in-out infinite;
}

.floating-note i {
  color: var(--primary);
}
.note-one {
  left: -90px;
  top: 65px;
}
.note-two {
  right: -64px;
  bottom: 130px;
  animation-delay: 1.2s;
}

/* ================= QUICK TRACK ================= */
.quick-track-section {
  padding: 0 0 55px;
  margin-top: -28px;
  position: relative;
  z-index: 3;
}

.quick-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.quick-track article,
.roadmap-step,
.support-cards div {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.quick-track article {
  border-radius: 26px;
  padding: 24px;
  transition: 0.35s;
}

.quick-track article:hover,
.roadmap-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: rgba(20, 184, 166, 0.35);
}

.quick-track i {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 14px;
}

.quick-track h3 {
  font-size: 1.12rem;
}
.quick-track p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* ================= SECTIONS ================= */
.catalog-section,
.learning-process {
  padding: 92px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 42px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -0.058em;
  line-height: 1.05;
  margin: 14px auto;
  max-width: 820px;
}

.section-head p {
  color: var(--muted);
  max-width: 720px;
  margin: auto;
}

.catalog-toolbar {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 18px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.07);
  margin-bottom: 32px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 0 16px;
  margin-bottom: 14px;
}

.search-box i {
  color: var(--primary);
}

.search-box input {
  height: 56px;
  border: 0;
  background: transparent;
  outline: 0;
  width: 100%;
  font: inherit;
  font-weight: 700;
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  color: #334155;
  padding: 10px 15px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.3s;
}

.chip:hover,
.chip.active {
  background: var(--grad);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}

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

.course-card {
  min-height: 330px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 26px;
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.07);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: 0.38s;
}

.course-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--soft);
  opacity: 0;
  transition: 0.38s;
}

.course-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow);
  border-color: rgba(20, 184, 166, 0.36);
}

.course-card:hover::before {
  opacity: 1;
}
.course-card > * {
  position: relative;
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.course-icon {
  width: 62px;
  height: 62px;
  border-radius: 20px;
  background: var(--soft);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 1.55rem;
}

.card-top span {
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef6ff;
  color: #1e40af;
  font-size: 0.78rem;
  font-weight: 950;
}

.course-card h3 {
  font-size: 1.28rem;
  margin-bottom: 10px;
  letter-spacing: -0.025em;
}

.course-card p {
  color: var(--muted);
  font-weight: 600;
}

.meta {
  display: flex;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 900;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

.card-actions a {
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 11px;
  font-weight: 950;
  transition: 0.3s;
  background: #fff;
}

.card-actions a:last-child {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
}

.card-actions a:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.no-results {
  text-align: center;
  font-weight: 900;
  color: var(--muted);
  display: none;
  margin-top: 30px;
}

/* ================= ROADMAP ================= */
.learning-process {
  background: linear-gradient(135deg, #eff6ff, #f0fdfa);
}

.roadmap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.roadmap-step {
  border-radius: 26px;
  padding: 26px;
  transition: 0.3s;
}

.roadmap-step span {
  font-size: 2.4rem;
  font-weight: 950;
  color: #dbeafe;
}

.roadmap-step h3 {
  margin: -6px 0 8px;
}
.roadmap-step p {
  color: var(--muted);
}

/* ================= ENROLL ================= */
.enroll-section {
  padding: 95px 0;
}

.enroll-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 34px;
  align-items: center;
}

.enroll-copy h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
  margin: 14px 0;
}

.enroll-copy p {
  color: var(--muted);
  max-width: 560px;
}

.support-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.support-cards div {
  border-radius: 20px;
  padding: 18px;
  text-align: center;
  font-weight: 900;
}

.support-cards i {
  display: block;
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.enroll-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.enroll-form input,
.enroll-form select,
.enroll-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #f8fafc;
  padding: 16px;
  font: inherit;
  font-weight: 650;
  outline: 0;
  transition: 0.3s;
}

.enroll-form textarea {
  min-height: 132px;
  resize: vertical;
  margin-bottom: 16px;
}

.enroll-form input:focus,
.enroll-form select:focus,
.enroll-form textarea:focus {
  background: #fff;
  border-color: var(--primary2);
  box-shadow: 0 0 0 5px rgba(20, 184, 166, 0.12);
}

.submit-btn {
  width: 100%;
  justify-content: center;
  border: 0;
}

/* Important: content should be visible even if JS does not run */
.reveal {
  opacity: 1;
  transform: translateY(0);
}

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

.delay-1 {
  transition-delay: 0.14s;
}

@keyframes bgMove {
  to {
    transform: translate(25px, -18px) scale(1.03);
  }
}

@keyframes gridMove {
  to {
    background-position: 52px 52px;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0) rotateX(0);
  }
  50% {
    transform: translateY(-10px) rotateX(2deg);
  }
}

@keyframes progressPulse {
  to {
    filter: saturate(1.4);
    transform: scaleX(0.96);
    transform-origin: left;
  }
}

@media (max-width: 1100px) {
  .hero-layout,
  .enroll-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    max-width: 560px;
    margin: auto;
  }

  .quick-track,
  .courses-grid,
  .roadmap {
    grid-template-columns: repeat(2, 1fr);
  }

  .floating-note {
    display: none;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 118px 0 60px;
  }

  .hero h1 {
    font-size: 2.65rem;
  }

  .hero-actions,
  .form-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .trust-metrics,
  .quick-track,
  .courses-grid,
  .roadmap,
  .support-cards {
    grid-template-columns: 1fr;
  }

  .dashboard-card {
    min-height: 485px;
  }

  .learning-card {
    padding: 24px;
  }

  .learning-card h2 {
    font-size: 1.55rem;
  }

  .card-actions {
    grid-template-columns: 1fr;
  }

  .catalog-section,
  .learning-process,
  .enroll-section {
    padding: 70px 0;
  }
}
