:root {
  --bg: #07090e;
  --bg-soft: #0b0e15;
  --surface: #10141e;
  --surface-2: #151b28;
  --surface-3: #1b2333;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f7fc;
  --muted: #9aa5ba;
  --muted-2: #6f7b91;
  --blue: #3b82f6;
  --blue-light: #7db1ff;
  --blue-deep: #1d4ed8;
  --blue-ink: #0b3ea8;
  --white: #ffffff;
  --ink: #0a0d13;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  --shadow-blue: 0 24px 70px rgba(37, 99, 235, 0.24);
  --radius: 20px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-loading {
  opacity: 0;
}

body {
  opacity: 1;
  transition: opacity 0.5s ease;
}

body.nav-open,
body.drawer-open,
body.modal-open {
  overflow: hidden;
}

::selection {
  background: var(--blue);
  color: var(--white);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

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

::-webkit-scrollbar-thumb {
  background: #26304a;
  border-radius: 20px;
  border: 2px solid var(--bg);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--blue-deep);
}

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

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

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 112px 0;
  overflow: hidden;
}

.section--light {
  background: #f6f8fc;
  color: var(--ink);
}

.section--soft {
  background: var(--bg-soft);
}

.section--tight {
  padding: 78px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  transition: width 0.4s var(--ease);
}

.eyebrow:hover::before {
  width: 40px;
}

.section--light .eyebrow {
  color: var(--blue-deep);
}

.section-title {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.045em;
  font-weight: 750;
  margin-top: 18px;
}

.section-lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 620px;
  margin-top: 18px;
}

.section--light .section-lead {
  color: #526078;
}

.text-gradient {
  background: linear-gradient(100deg, var(--white) 10%, var(--blue-light) 52%, var(--blue) 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.center {
  text-align: center;
}

.center .eyebrow::before {
  display: none;
}

.center .section-lead {
  margin-inline: auto;
}

.divider {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

.mono {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}

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

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform 0.3s var(--ease);
}

.btn:hover svg {
  transform: translateX(4px);
}

.btn--primary {
  background: linear-gradient(120deg, var(--blue-deep), var(--blue));
  color: var(--white);
  box-shadow: 0 12px 32px rgba(37, 99, 235, 0.28);
}

.btn--primary:hover {
  box-shadow: 0 18px 44px rgba(37, 99, 235, 0.42);
}

.btn--ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: var(--blue);
  background: rgba(59, 130, 246, 0.1);
}

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

.btn--dark:hover {
  box-shadow: 0 16px 36px rgba(10, 13, 19, 0.24);
}

.btn--block {
  width: 100%;
}

.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 13px;
}

.btn--lg {
  min-height: 60px;
  padding: 0 32px;
  font-size: 15px;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.34);
  transform: translate(-50%, -50%) scale(0);
  pointer-events: none;
  animation: ripple 0.65s ease-out forwards;
  z-index: -1;
}

@keyframes ripple {
  to {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  z-index: 300;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue-light));
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.6);
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: height 0.35s var(--ease), background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-scrolled {
  height: 66px;
  background: rgba(7, 9, 14, 0.82);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.04em;
  flex: none;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--blue), var(--blue-deep));
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.35);
  transition: transform 0.5s var(--ease);
}

.logo:hover .logo-mark {
  transform: rotate(-12deg) scale(1.06);
}

.logo-mark svg {
  width: 19px;
  height: 19px;
}

.logo span em {
  font-style: normal;
  color: var(--blue-light);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 550;
  color: var(--muted);
  padding: 8px 0;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
  border-radius: 2px;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  transition: transform 0.3s var(--ease), border-color 0.3s ease, background 0.3s ease;
  position: relative;
}

.icon-btn:hover {
  transform: translateY(-2px);
  border-color: var(--blue);
  background: rgba(59, 130, 246, 0.12);
}

.icon-btn svg {
  width: 19px;
  height: 19px;
}

.cart-count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 800;
  display: grid;
  place-items: center;
  transform: scale(0);
  transition: transform 0.35s var(--ease);
}

.cart-count.is-visible {
  transform: scale(1);
}

.header-cta {
  display: inline-flex;
}

.burger {
  display: none;
}

/* Mobile navigation */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(7, 9, 14, 0.97);
  backdrop-filter: blur(20px);
  padding: calc(var(--header-h) + 40px) 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-14px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease), visibility 0.35s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav a {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.25s ease, padding-left 0.3s var(--ease);
}

.mobile-nav a:hover {
  color: var(--blue-light);
  padding-left: 10px;
}

.mobile-nav .btn {
  margin-top: 26px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 70px) 0 90px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.026) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 45%, #000 0%, transparent 72%);
  pointer-events: none;
}

.hero-orb {
  position: absolute;
  width: 720px;
  height: 720px;
  right: -140px;
  top: 50%;
  margin-top: -360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.24) 0%, rgba(37, 99, 235, 0.07) 42%, transparent 70%);
  filter: blur(12px);
  animation: orbFloat 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes orbFloat {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-40px, 34px, 0) scale(1.08); }
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 64px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  backdrop-filter: blur(10px);
}

.hero-badge b {
  color: var(--white);
  background: var(--blue);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  letter-spacing: 0.04em;
}

.hero h1 {
  font-size: clamp(44px, 5.6vw, 76px);
  line-height: 1.03;
  letter-spacing: -0.058em;
  font-weight: 780;
  margin: 28px 0 24px;
}

.hero h1 .type-line {
  display: block;
  min-height: 1.1em;
}

.type-caret {
  display: inline-block;
  width: 3px;
  height: 0.92em;
  margin-left: 5px;
  vertical-align: -0.08em;
  background: var(--blue-light);
  animation: caret 0.85s steps(1) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

.hero-sub {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 560px;
}

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

.hero-trust {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.avatars {
  display: flex;
}

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: var(--white);
  border: 2px solid var(--bg);
  margin-left: -10px;
  background: linear-gradient(145deg, #1e40af, #3b82f6);
}

.avatar:first-child {
  margin-left: 0;
}

.avatar:nth-child(2) { background: linear-gradient(145deg, #0e7490, #3b82f6); }
.avatar:nth-child(3) { background: linear-gradient(145deg, #4338ca, #60a5fa); }
.avatar:nth-child(4) { background: linear-gradient(145deg, #1e3a8a, #7db1ff); }

.stars {
  display: inline-flex;
  gap: 2px;
  color: #ffd166;
}

.stars svg {
  width: 15px;
  height: 15px;
}

.hero-trust-copy {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

.hero-trust-copy b {
  color: var(--text);
}

/* Hero visual */
.hero-visual {
  position: relative;
  perspective: 1000px;
}

.visual-card {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 26px;
  padding: 26px;
  background: linear-gradient(155deg, rgba(21, 27, 40, 0.94), rgba(10, 13, 20, 0.96));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: rotateY(var(--ry, -6deg)) rotateX(var(--rx, 4deg));
  transition: transform 0.18s ease-out;
  overflow: hidden;
}

.visual-card::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, 0.16), transparent 42%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.hero-visual:hover .visual-card::after,
.course-card:hover::after,
.tilt-card:hover::after {
  opacity: 1;
}

.visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.visual-dots {
  display: flex;
  gap: 6px;
}

.visual-dots i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2b3447;
}

.visual-dots i:first-child { background: var(--blue); }

.visual-top span {
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.visual-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: 24px;
}

.visual-heading p {
  font-size: 12px;
  color: var(--muted);
}

.visual-heading strong {
  display: block;
  font-size: 26px;
  letter-spacing: -0.04em;
  margin-top: 4px;
}

.visual-pill {
  font-size: 11px;
  font-weight: 700;
  color: #9ec5ff;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 6px 10px;
  border-radius: 999px;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 150px;
  margin: 26px 0 22px;
  padding-bottom: 2px;
  border-bottom: 1px dashed var(--line);
}

.chart-bar {
  flex: 1;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, var(--blue), rgba(29, 78, 216, 0.25));
  transform-origin: bottom;
  transform: scaleY(0);
  animation: barGrow 1.1s var(--ease) forwards;
  animation-delay: calc(var(--i) * 0.09s);
  position: relative;
}

@keyframes barGrow {
  to { transform: scaleY(1); }
}

.chart-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 55%);
}

.visual-rows {
  display: grid;
  gap: 10px;
}

.visual-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  opacity: 0;
  animation: fadeSlide 0.7s var(--ease) forwards;
}

.visual-row:nth-child(1) { animation-delay: 0.85s; }
.visual-row:nth-child(2) { animation-delay: 1s; }
.visual-row:nth-child(3) { animation-delay: 1.15s; }

.visual-row i {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.16);
  display: grid;
  place-items: center;
  flex: none;
}

.visual-row i svg {
  width: 14px;
  height: 14px;
  color: var(--blue-light);
}

.visual-row span {
  font-size: 12px;
  color: var(--muted);
  flex: 1;
}

.visual-row b {
  font-size: 12px;
}

.float-chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 15px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 20, 30, 0.9);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  font-size: 12px;
  font-weight: 650;
  animation: chipFloat 6s ease-in-out infinite alternate;
}

.float-chip svg {
  width: 16px;
  height: 16px;
  color: var(--blue-light);
}

.float-chip--one {
  top: -22px;
  right: -18px;
  animation-delay: -2s;
}

.float-chip--two {
  bottom: -24px;
  left: -26px;
  animation-delay: -4s;
}

@keyframes chipFloat {
  0% { transform: translateY(0) rotate(-2deg); }
  100% { transform: translateY(-14px) rotate(2deg); }
}

/* Logos strip */
.logos {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  overflow: hidden;
  background: var(--bg-soft);
}

.logos-label {
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 20px;
}

.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 64px;
  animation: marquee 28s linear infinite;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #7d88a0;
  white-space: nowrap;
  transition: color 0.3s ease;
}

.marquee-item:hover {
  color: var(--text);
}

.marquee-item svg {
  width: 20px;
  height: 20px;
  color: var(--blue);
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.stat {
  background: var(--bg);
  padding: 32px 28px;
  transition: background 0.35s ease;
}

.stat:hover {
  background: var(--surface);
}

.stat-value {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 780;
  letter-spacing: -0.05em;
  line-height: 1;
}

.stat-value span {
  color: var(--blue-light);
}

.stat-label {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
}

/* Course cards */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 34px 0 30px;
  justify-content: center;
}

.filter-btn {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
  transition: all 0.3s var(--ease);
}

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

.filter-btn.is-active {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.3);
}

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

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  transition: transform 0.45s var(--ease), border-color 0.35s ease, box-shadow 0.45s ease;
  isolation: isolate;
}

.course-card::after {
  content: "";
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(59, 130, 246, 0.14), transparent 42%);
  opacity: 0;
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.4s ease;
}

.course-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: var(--shadow-blue);
}

.card-art {
  position: relative;
  height: 152px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(150deg, #121826, #0b0e15);
}

.card-art-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  transform: perspective(300px) rotateX(45deg) scale(1.5);
  transform-origin: bottom;
  opacity: 0.7;
  transition: transform 0.6s var(--ease);
}

.course-card:hover .card-art-grid {
  transform: perspective(300px) rotateX(35deg) scale(1.7) translateY(-10px);
}

.card-art-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.card-art-icon svg {
  width: 62px;
  height: 62px;
  color: var(--accent, var(--blue));
  stroke-width: 1.15;
  filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.45));
  transition: transform 0.6s var(--ease);
}

.course-card:hover .card-art-icon svg {
  transform: scale(1.12) rotate(-6deg);
}

.card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--white);
  background: rgba(37, 99, 235, 0.9);
  backdrop-filter: blur(6px);
}

.fav-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(7, 9, 14, 0.6);
  border: 1px solid var(--line-strong);
  color: var(--muted);
  backdrop-filter: blur(8px);
  transition: all 0.3s var(--ease);
}

.fav-btn:hover {
  color: var(--white);
  border-color: var(--blue);
  transform: scale(1.1);
}

.fav-btn.is-active {
  color: #ff8ba7;
  border-color: rgba(255, 139, 167, 0.5);
}

.fav-btn svg {
  width: 16px;
  height: 16px;
}

.fav-btn.is-active svg {
  fill: currentColor;
}

.card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-category {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.card-title {
  font-size: 19px;
  line-height: 1.28;
  font-weight: 720;
  letter-spacing: -0.03em;
  margin-top: 10px;
  min-height: 49px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
  color: var(--muted-2);
  font-size: 12px;
}

.card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.card-meta svg {
  width: 13px;
  height: 13px;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.card-rating b {
  color: var(--text);
}

.card-rating .stars svg {
  width: 12px;
  height: 12px;
}

.card-price {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-top: auto;
  padding: 20px 0 16px;
}

.card-price strong {
  font-size: 26px;
  letter-spacing: -0.04em;
}

.card-price s {
  color: var(--muted-2);
  font-size: 13px;
}

.card-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.card-actions .btn {
  padding-inline: 14px;
}

/* Steps light section */
.steps-wrap {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

.steps-wrap::before {
  content: "";
  position: absolute;
  top: 42px;
  left: 16%;
  right: 16%;
  height: 1px;
  background: repeating-linear-gradient(90deg, #b9c6dd 0 8px, transparent 8px 16px);
  z-index: 0;
}

.step {
  position: relative;
  z-index: 1;
  padding: 28px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid #e1e7f1;
  box-shadow: 0 18px 40px rgba(16, 40, 90, 0.06);
  transition: transform 0.4s var(--ease), box-shadow 0.4s ease;
}

.step:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 54px rgba(16, 40, 90, 0.13);
}

.step-num {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
  box-shadow: 0 10px 24px rgba(10, 13, 19, 0.2);
  transition: background 0.35s ease, transform 0.5s var(--ease);
}

.step:hover .step-num {
  background: var(--blue);
  transform: rotate(-8deg) scale(1.06);
}

.step h3 {
  font-size: 20px;
  letter-spacing: -0.03em;
  margin-top: 24px;
}

.step p {
  color: #5d6a80;
  font-size: 14px;
  margin-top: 10px;
}

/* Testimonials */
.testi-wrap {
  margin-top: 54px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: center;
}

.testi-stage {
  position: relative;
  min-height: 260px;
}

.testi-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(22px) scale(0.98);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), visibility 0.6s;
}

.testi-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.testi-quote {
  font-size: clamp(21px, 2.6vw, 32px);
  line-height: 1.4;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 820px;
}

.testi-mark {
  color: var(--blue);
  font-size: 70px;
  line-height: 0.6;
  font-family: Georgia, serif;
  opacity: 0.55;
}

.testi-person {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.testi-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--blue-deep), var(--blue));
  font-weight: 800;
  font-size: 14px;
}

.testi-person b {
  display: block;
  font-size: 14px;
}

.testi-person span {
  font-size: 12px;
  color: var(--muted);
}

.testi-controls {
  display: flex;
  gap: 10px;
  align-items: center;
}

.testi-dots {
  display: flex;
  gap: 7px;
  margin-top: 26px;
}

.testi-dot {
  width: 24px;
  height: 4px;
  border-radius: 4px;
  background: #2b3447;
  transition: width 0.4s var(--ease), background 0.3s ease;
}

.testi-dot.is-active {
  width: 48px;
  background: var(--blue);
}

/* Accordion */
.accordion {
  margin-top: 44px;
  border-top: 1px solid var(--line);
}

.section--light .accordion {
  border-color: #dde4ef;
}

.acc-item {
  border-bottom: 1px solid var(--line);
}

.section--light .acc-item {
  border-color: #dde4ef;
}

.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  text-align: left;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

.acc-trigger:hover {
  color: var(--blue-light);
}

.section--light .acc-trigger:hover {
  color: var(--blue-deep);
}

.acc-icon {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  transition: all 0.4s var(--ease);
}

.section--light .acc-icon {
  border-color: #cfd9e9;
}

.acc-icon svg {
  width: 14px;
  height: 14px;
  transition: transform 0.4s var(--ease);
}

.acc-item.is-open .acc-icon {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  transform: rotate(90deg);
}

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.acc-item.is-open .acc-panel {
  grid-template-rows: 1fr;
}

.acc-panel-inner {
  overflow: hidden;
}

.acc-panel p {
  color: var(--muted);
  font-size: 14px;
  padding: 0 52px 24px 0;
  max-width: 760px;
}

.section--light .acc-panel p {
  color: #5d6a80;
}

/* CTA */
.cta-panel {
  position: relative;
  border-radius: 30px;
  padding: 74px 48px;
  text-align: center;
  overflow: hidden;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: linear-gradient(135deg, #101a33 0%, #0a1020 55%, #0d1630 100%);
  box-shadow: var(--shadow-blue);
}

.cta-panel::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.25), transparent 68%);
  top: -260px;
  left: 50%;
  transform: translateX(-50%);
  animation: orbFloat 10s ease-in-out infinite alternate;
}

.cta-panel > * {
  position: relative;
}

.cta-panel h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.05em;
  margin: 18px 0 18px;
}

.cta-panel p {
  color: var(--muted);
  max-width: 580px;
  margin: 0 auto 30px;
}

/* Forms */
.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 12px;
  font-weight: 650;
  color: var(--muted);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.input::placeholder,
.textarea::placeholder {
  color: var(--muted-2);
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.13);
  background: rgba(59, 130, 246, 0.05);
}

.input.is-invalid {
  border-color: #ef6a7b;
  box-shadow: 0 0 0 4px rgba(239, 106, 123, 0.12);
}

.textarea {
  min-height: 112px;
  resize: vertical;
}

.form-note {
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.5;
}

.form-error {
  color: #ff8fa0;
  font-size: 12px;
  min-height: 16px;
}

/* Footer */
.site-footer {
  background: #05070b;
  border-top: 1px solid var(--line);
  padding: 76px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 44px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 18px;
  max-width: 320px;
}

.footer-col h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text);
  margin-bottom: 20px;
}

.footer-col a,
.footer-col li {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-col a:hover {
  color: var(--blue-light);
  transform: translateX(4px);
}

.footer-form {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}

.footer-form .input {
  min-height: 46px;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 12px;
}

/* Cart drawer */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 240;
  background: rgba(3, 5, 9, 0.7);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(100%, 440px);
  z-index: 250;
  background: var(--surface);
  border-left: 1px solid var(--line-strong);
  box-shadow: -30px 0 70px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  transform: translateX(102%);
  transition: transform 0.45s var(--ease);
}

.drawer.is-open {
  transform: translateX(0);
}

.drawer-head {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-head h3 {
  font-size: 19px;
  letter-spacing: -0.03em;
}

.drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 24px;
}

.drawer-foot {
  padding: 22px 24px 26px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.cart-item {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  animation: fadeSlide 0.4s var(--ease) both;
}

@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.cart-thumb {
  width: 58px;
  height: 58px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #17233c, #0d1220);
  border: 1px solid var(--line);
}

.cart-thumb svg {
  width: 27px;
  height: 27px;
  color: var(--blue-light);
}

.cart-item h4 {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 650;
}

.cart-item small {
  display: block;
  color: var(--muted-2);
  font-size: 11px;
  margin-top: 5px;
}

.cart-item b {
  display: block;
  font-size: 14px;
  margin-top: 7px;
}

.cart-remove {
  color: var(--muted-2);
  font-size: 11px;
  transition: color 0.25s ease;
}

.cart-remove:hover {
  color: #ff8fa0;
}

.qty {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
}

.qty button {
  width: 20px;
  height: 20px;
  color: var(--muted);
  font-weight: 700;
}

.qty button:hover {
  color: var(--blue-light);
}

.qty span {
  font-size: 12px;
  min-width: 12px;
  text-align: center;
}

.cart-empty {
  text-align: center;
  padding: 70px 20px;
  color: var(--muted);
}

.cart-empty svg {
  width: 54px;
  height: 54px;
  margin: 0 auto 20px;
  color: #3e4a63;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
  padding: 5px 0;
}

.summary-line.total {
  color: var(--text);
  font-size: 18px;
  font-weight: 750;
  padding-top: 14px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
}

.summary-line.discount {
  color: var(--blue-light);
}

.coupon-row {
  display: flex;
  gap: 8px;
  margin: 16px 0 8px;
}

.coupon-row .input {
  min-height: 42px;
  text-transform: uppercase;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  place-items: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border-radius: 24px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 32px;
  transform: translateY(26px) scale(0.97);
  transition: transform 0.45s var(--ease);
}

.modal.is-open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  color: var(--muted);
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--blue);
}

.modal-card h3 {
  font-size: 24px;
  letter-spacing: -0.04em;
  padding-right: 40px;
}

.modal-card > p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}

.checkout-form {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.checkout-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.pay-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.pay-option {
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 12px 8px;
  font-size: 12px;
  font-weight: 650;
  text-align: center;
  color: var(--muted);
  transition: all 0.3s var(--ease);
}

.pay-option:hover {
  border-color: var(--blue);
  color: var(--text);
}

.pay-option.is-active {
  border-color: var(--blue);
  background: rgba(59, 130, 246, 0.14);
  color: var(--white);
}

.pay-extra {
  display: none;
}

.pay-extra.is-visible {
  display: grid;
  gap: 14px;
  animation: fadeSlide 0.4s var(--ease);
}

.success-mark {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(59, 130, 246, 0.45);
  color: var(--blue-light);
  animation: popIn 0.6s var(--ease);
}

.success-mark svg {
  width: 32px;
  height: 32px;
}

@keyframes popIn {
  0% { transform: scale(0.4); opacity: 0; }
  70% { transform: scale(1.12); }
  100% { transform: scale(1); opacity: 1; }
}

.success-list {
  margin: 22px 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.success-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.success-list span {
  color: var(--muted);
}

/* Toast */
.toasts {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 400;
  display: grid;
  gap: 10px;
  pointer-events: none;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 20, 30, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: toastIn 0.45s var(--ease), toastOut 0.4s ease 3.6s forwards;
  pointer-events: auto;
}

.toast svg {
  width: 17px;
  height: 17px;
  color: var(--blue-light);
  flex: none;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateX(40px) scale(0.95); }
  to { opacity: 1; transform: translateX(0) scale(1); }
}

@keyframes toastOut {
  to { opacity: 0; transform: translateX(30px); }
}

/* Back to top */
.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 150;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(16, 20, 30, 0.9);
  backdrop-filter: blur(10px);
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.8);
  transition: all 0.4s var(--ease);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.to-top:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.to-top svg {
  width: 18px;
  height: 18px;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.line-reveal {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 1s var(--ease);
}

.line-reveal.is-visible {
  clip-path: inset(0 0 0 0);
}

/* Page transition */
.page-wipe {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--blue-deep);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
  transition: transform 0.42s var(--ease);
}

.page-wipe.is-active {
  transform: scaleY(1);
  transform-origin: top;
}

/* Course page */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 66px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 84% 30%, rgba(37, 99, 235, 0.16), transparent 56%);
  pointer-events: none;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted-2);
  position: relative;
}

.crumbs a:hover {
  color: var(--blue-light);
}

.crumbs svg {
  width: 12px;
  height: 12px;
}

.page-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 60px;
  align-items: start;
  margin-top: 38px;
}

.course-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.course-label i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.14);
}

.page-hero h1 {
  font-size: clamp(38px, 4.8vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.055em;
  font-weight: 780;
  margin: 20px 0 20px;
}

.page-hero-lead {
  font-size: 18px;
  color: var(--muted);
  max-width: 640px;
  line-height: 1.65;
}

.course-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  font-size: 12px;
  color: var(--muted);
}

.meta-chip svg {
  width: 14px;
  height: 14px;
  color: var(--blue-light);
}

.meta-chip b {
  color: var(--text);
}

.hero-visual-badge {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}

.hero-visual-badge .stars svg {
  width: 15px;
  height: 15px;
}

.hero-visual-badge b {
  font-size: 13px;
}

.hero-visual-badge span {
  font-size: 12px;
  color: var(--muted);
}

/* Enroll card */
.enroll-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: linear-gradient(160deg, rgba(21, 27, 40, 0.97), rgba(10, 13, 20, 0.98));
  box-shadow: var(--shadow);
  padding: 26px;
  overflow: hidden;
}

.enroll-card::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 70%);
  pointer-events: none;
}

.enroll-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue-light);
}

.enroll-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 12px 0 6px;
}

.enroll-price strong {
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.055em;
}

.enroll-price s {
  color: var(--muted-2);
  font-size: 15px;
}

.enroll-installment {
  font-size: 13px;
  color: var(--muted);
}

.enroll-actions {
  display: grid;
  gap: 10px;
  margin: 24px 0 20px;
}

.enroll-guard {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.enroll-guard svg {
  width: 17px;
  height: 17px;
  color: var(--blue-light);
  flex: none;
  margin-top: 2px;
}

.enroll-guard span {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.enroll-guard b {
  color: var(--text);
}

.enroll-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.enroll-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

.enroll-list svg {
  width: 14px;
  height: 14px;
  color: var(--blue-light);
  flex: none;
}

/* Learning grid */
.learn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.learn-item {
  display: flex;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  transition: transform 0.35s var(--ease), border-color 0.3s ease;
}

.learn-item:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
}

.learn-item i {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.14);
  color: var(--blue-light);
}

.learn-item i svg {
  width: 16px;
  height: 16px;
}

.learn-item span {
  font-size: 14px;
  line-height: 1.5;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 42px;
}

.info-panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.info-panel h3 {
  font-size: 19px;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.info-panel li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  font-size: 14px;
  color: var(--muted);
}

.info-panel li svg {
  width: 16px;
  height: 16px;
  color: var(--blue-light);
  flex: none;
  margin-top: 4px;
}

/* Curriculum */
.curriculum-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  margin-top: 42px;
}

.curriculum-summary {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.curriculum-summary h3 {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.curriculum-summary p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 8px;
}

.progress-ring {
  width: 116px;
  height: 116px;
  margin: 22px auto 12px;
  position: relative;
}

.progress-ring svg {
  transform: rotate(-90deg);
}

.progress-ring circle {
  fill: none;
  stroke-width: 8;
}

.progress-ring .track { stroke: #222b3d; }
.progress-ring .value {
  stroke: var(--blue);
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 0.6s var(--ease);
}

.progress-ring b {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.curriculum-summary small {
  display: block;
  text-align: center;
  color: var(--muted-2);
  font-size: 11px;
}

.module {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.module.is-open {
  border-color: rgba(59, 130, 246, 0.45);
}

.module.is-done {
  border-color: rgba(59, 130, 246, 0.38);
  background: linear-gradient(100deg, rgba(59, 130, 246, 0.07), var(--surface) 55%);
}

.module.is-done .module-num {
  background: var(--blue);
  color: var(--white);
}

.module.is-done .module-head b {
  color: var(--blue-light);
}

.module-head {
  width: 100%;
  display: grid;
  grid-template-columns: 42px 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  text-align: left;
}

.module-num {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.12);
  color: var(--blue-light);
  font-weight: 750;
  font-size: 13px;
}

.module-head b {
  font-size: 15px;
  letter-spacing: -0.02em;
  display: block;
}

.module-head small {
  color: var(--muted-2);
  font-size: 11px;
}

.module-time {
  font-size: 11px;
  color: var(--muted);
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.module-toggle {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 0.4s var(--ease), color 0.3s ease;
}

.module.is-open .module-toggle {
  transform: rotate(180deg);
  color: var(--blue-light);
}

.module-toggle svg {
  width: 16px;
  height: 16px;
}

.module-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}

.module.is-open .module-body {
  grid-template-rows: 1fr;
}

.module-body-inner {
  overflow: hidden;
}

.lesson {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  transition: background 0.25s ease, color 0.25s ease;
}

.lesson:hover {
  background: rgba(59, 130, 246, 0.06);
  color: var(--text);
}

.lesson svg {
  width: 14px;
  height: 14px;
  color: var(--blue-light);
  flex: none;
}

.lesson span {
  flex: 1;
}

.lesson em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted-2);
}

/* Projects */
.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 38px;
}

.project-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  min-height: 168px;
  display: flex;
  flex-direction: column;
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.45);
}

.project-card svg {
  width: 26px;
  height: 26px;
  color: var(--blue-light);
}

.project-card p {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.project-card small {
  color: var(--muted-2);
  font-size: 11px;
  margin-top: 8px;
}

/* Instructor */
.instructor-card {
  margin-top: 40px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(120deg, var(--surface), var(--bg-soft));
}

.instructor-avatar {
  width: 168px;
  height: 168px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.05em;
  color: var(--white);
  background: linear-gradient(145deg, #1e40af, #3b82f6 60%, #7db1ff);
  box-shadow: 0 20px 50px rgba(37, 99, 235, 0.28);
  position: relative;
  overflow: hidden;
}

.instructor-avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.09) 1px, transparent 1px);
  background-size: 20px 20px;
}

.instructor-card h3 {
  font-size: 26px;
  letter-spacing: -0.04em;
}

.instructor-card .role {
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 650;
  margin-top: 6px;
}

.instructor-card p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 16px;
  max-width: 620px;
}

.instructor-exp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

.instructor-exp svg {
  width: 14px;
  height: 14px;
  color: var(--blue-light);
}

/* Course testimonials */
.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.quote-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: transform 0.4s var(--ease), border-color 0.3s ease;
}

.quote-card:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.4);
}

.quote-card .stars svg {
  width: 13px;
  height: 13px;
}

.quote-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
  margin: 16px 0 24px;
}

.quote-person {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.quote-person i {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(59, 130, 246, 0.16);
  color: var(--blue-light);
  font-size: 11px;
  font-weight: 800;
  font-style: normal;
}

.quote-person b {
  font-size: 12px;
  display: block;
}

.quote-person small {
  color: var(--muted-2);
  font-size: 11px;
}

/* Tool chips */
.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tool-chip {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}

/* Mobile buy bar */
.mobile-buy {
  display: none;
  position: fixed;
  inset: auto 0 0 0;
  z-index: 140;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(7, 9, 14, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.mobile-buy strong {
  font-size: 22px;
  letter-spacing: -0.04em;
}

.mobile-buy small {
  display: block;
  font-size: 10px;
  color: var(--muted);
}

/* Loader skeleton */
.page-loader {
  min-height: 60vh;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}

.spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #24304a;
  border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 1100px) {
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 36px; }
  .page-hero-grid { gap: 36px; }
  .curriculum-layout { grid-template-columns: 1fr; }
  .curriculum-summary { position: static; }
}

@media (max-width: 900px) {
  .main-nav { display: none; }
  .burger { display: grid; }
  .header-cta { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .page-hero-grid { grid-template-columns: 1fr; }
  .enroll-card { position: static; max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .testi-wrap { grid-template-columns: 1fr; }
  .instructor-card { grid-template-columns: 1fr; gap: 24px; }
  .instructor-avatar { width: 130px; height: 130px; font-size: 34px; }
}

@media (max-width: 680px) {
  .section { padding: 78px 0; }
  .container { width: min(100% - 32px, var(--maxw)); }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 50px); }
  .hero h1 { font-size: clamp(38px, 10vw, 54px); }
  .hero-sub { font-size: 16px; }
  .hero-actions .btn { width: 100%; }
  .hero-trust { flex-wrap: wrap; }
  .float-chip { display: none; }
  .steps-wrap { grid-template-columns: 1fr; }
  .steps-wrap::before { display: none; }
  .learn-grid,
  .two-col,
  .quote-grid { grid-template-columns: 1fr; }
  .project-grid { grid-template-columns: 1fr; }
  .course-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .checkout-form .row { grid-template-columns: 1fr; }
  .modal-card { padding: 24px; }
  .cta-panel { padding: 48px 24px; }
  .enroll-card { display: none; }
  .mobile-buy { display: flex; }
  .mobile-buy .btn { min-height: 46px; padding-inline: 18px; }
  .module-head { grid-template-columns: 38px 1fr auto; }
  .module-time { display: none; }
  .toasts { left: 16px; right: 16px; bottom: 84px; }
  .toast { max-width: none; }
  .to-top { bottom: 84px; }
  body.has-mobile-buy { padding-bottom: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
  }

  .line-reveal {
    clip-path: none;
  }

  .chart-bar {
    transform: scaleY(1);
  }

  .visual-row {
    opacity: 1;
  }
}

/* Acessibilidade */
.skip-link {
  position: fixed;
  top: -70px;
  left: 16px;
  z-index: 600;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  box-shadow: var(--shadow);
  transition: top 0.25s var(--ease);
}

.skip-link:focus {
  top: 14px;
}

:focus-visible {
  outline: 2px solid var(--blue-light);
  outline-offset: 3px;
}

.btn:focus-visible,
.icon-btn:focus-visible,
.filter-btn:focus-visible,
.acc-trigger:focus-visible {
  outline-color: var(--white);
}
