
:root {
  --bg: #ffffff;
  --bg-elevated: #ffffff;
  --bg-soft: #f7f7f8;
  --text: #2a2a2a;
  --text-muted: #646464;
  --brand: #af1a15;
  --brand-light: #c92a24;
  --brand-dark: #901512;
  --brand-gray: #b8b4b4;
  --brand-glow: rgba(175, 26, 21, 0.28);
  
  --accent: #2a2a2a;
  --accent-light: #4a4a4a;
  --accent-glow: rgba(42, 42, 42, 0.1);
  --coral: #d48888;
  --mint: #d8d4d4;
  --border: rgba(42, 42, 42, 0.07);
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 4px 24px rgba(26, 26, 34, 0.04);
  --shadow-lg: 0 20px 48px rgba(26, 26, 34, 0.08);
  --font: 'Vazirmatn', system-ui, sans-serif;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --header-h: 72px;
  --header-bg: rgba(255, 255, 255, 0.82);
  --header-bg-scrolled: rgba(255, 255, 255, 0.96);
  --header-highlight: rgba(255, 255, 255, 0.9);
  --scrollbar-track: rgba(42, 42, 42, 0.05);
  --scrollbar-thumb: #c92a24;
  --scrollbar-thumb-hover: #af1a15;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

*::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 100px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--brand-light), var(--scrollbar-thumb));
  border-radius: 100px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  transition: background 0.2s ease;
}

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

*::-webkit-scrollbar-corner {
  background: transparent;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-loading {
  overflow: hidden;
}

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

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

ul { list-style: none; }

.container {
  position: relative;
  z-index: 1;
  width: min(1160px, 92vw);
  margin-inline: auto;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: transform 0.35s var(--ease-spring), box-shadow 0.35s, background 0.3s, color 0.3s;
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 20px rgba(175, 26, 21, 0.28);
}

.btn--primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px rgba(175, 26, 21, 0.35);
  background: var(--brand-dark);
}

.btn--zonland {
  white-space: nowrap;
}

.btn--zonland.is-preparing {
  pointer-events: none;
  cursor: not-allowed;
  color: #fff;
  background: var(--brand);
  transform: none;
  box-shadow: 0 4px 20px rgba(175, 26, 21, 0.28);
}

.btn--zonland.is-preparing:hover,
.btn--zonland.is-preparing:focus-visible {
  transform: none;
  color: #fff;
  background: var(--brand);
  box-shadow: 0 4px 20px rgba(175, 26, 21, 0.28);
}

.btn--zonland.is-preparing .btn__palm {
  animation-play-state: paused;
}

.btn__label {
  display: inline-block;
  text-align: center;
}

.btn--zonland.is-preparing .btn__label {
  min-width: 11.5em;
}

.btn__palm {
  flex-shrink: 0;
  display: block;
  font-size: 1.05em;
  line-height: 1;
}

span.btn__palm {
  transform-origin: center 85%;
  animation: btn-palm-sway 3.2s ease-in-out infinite;
}

@keyframes btn-palm-sway {
  0%, 100% {
    transform: rotate(0deg) translateY(0);
  }
  25% {
    transform: rotate(-7deg) translateY(-1px);
  }
  50% {
    transform: rotate(0deg) translateY(0);
  }
  75% {
    transform: rotate(7deg) translateY(-1px);
  }
}

.btn--zonland:hover span.btn__palm,
.btn--zonland:focus-visible span.btn__palm {
  animation-duration: 2.4s;
}

.mobile-nav__login {
  margin-top: 8px;
  width: 100%;
  justify-content: center;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn--ghost:hover {
  color: var(--text);
  background: rgba(42, 42, 42, 0.06);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn--outline:hover {
  border-color: var(--text);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--header-highlight) inset;
  transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s;
}

.header.scrolled {
  background: var(--header-bg-scrolled);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border), var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.logo__mark {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s var(--ease-spring);
}

.logo__img {
  display: block;
  height: 44px;
  width: auto;
}

.logo__img--icon {
  height: 40px;
  width: 40px;
  object-fit: cover;
  object-position: top center;
}

.logo--header .logo__img--full {
  height: 52px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  object-position: center;
}

.logo:hover .logo__mark {
  transform: rotate(-4deg) scale(1.04);
}

.logo__text {
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo strong { font-weight: 800; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 1.75rem);
}

.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  transition: color 0.2s ease;
}

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

.nav__link.is-active {
  color: var(--brand);
  font-weight: 700;
}

.nav__link.is-active::after {
  content: '';
  position: absolute;
  right: 0;
  left: 0;
  bottom: -8px;
  height: 2px;
  border-radius: 2px;
  background: var(--brand);
}

.nav__item--dropdown {
  position: relative;
}

.nav__link-row {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  min-height: 36px;
  padding: 0 0.15rem;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.nav__item--dropdown:hover .nav__link-row,
.nav__item--dropdown:focus-within .nav__link-row {
  background: rgba(175, 26, 21, 0.06);
}

.nav__item--dropdown .nav__link.is-active::after {
  bottom: -6px;
}

.nav__caret {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  opacity: 0.7;
  transition: transform 0.25s var(--ease-out-expo), opacity 0.2s ease, color 0.2s ease;
}

.nav__item--dropdown:hover .nav__caret,
.nav__item--dropdown:focus-within .nav__caret {
  transform: rotate(180deg);
  opacity: 1;
  color: var(--brand);
}

.nav__dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 196px;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(42, 42, 42, 0.08);
  border-radius: 16px;
  box-shadow:
    0 16px 36px rgba(26, 26, 34, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.85) inset;
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.26s var(--ease-out-expo),
    visibility 0.22s ease;
  z-index: 1200;
}

.nav__item--dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  right: -8px;
  left: -8px;
  height: 14px;
}

.nav__item--dropdown:hover .nav__dropdown,
.nav__item--dropdown:focus-within .nav__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.nav__dropdown-list,
.nav__subdropdown {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.nav__dropdown-item--nested {
  position: relative;
}

.nav__dropdown-item--nested::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 12px;
}

.nav__dropdown--blog {
  min-width: 220px;
}

.nav__dropdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.nav__dropdown-row .nav__dropdown-link {
  flex: 1;
  min-width: 0;
}

.nav__dropdown-arrow {
  flex-shrink: 0;
  padding-inline: 0.45rem;
  font-size: 0.95rem;
  line-height: 1;
  color: var(--text-muted);
  opacity: 0.55;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.nav__dropdown-item--nested:hover > .nav__dropdown-row,
.nav__dropdown-item--nested:focus-within > .nav__dropdown-row {
  background: rgba(175, 26, 21, 0.07);
}

.nav__dropdown-item--nested:hover > .nav__dropdown-row .nav__dropdown-link,
.nav__dropdown-item--nested:focus-within > .nav__dropdown-row .nav__dropdown-link,
.nav__dropdown-item--nested.is-active-branch > .nav__dropdown-row .nav__dropdown-link {
  color: var(--brand);
}

.nav__dropdown-item--nested:hover > .nav__dropdown-arrow,
.nav__dropdown-item--nested:focus-within > .nav__dropdown-arrow {
  color: var(--brand);
  opacity: 0.85;
}

.nav__subdropdown--children {
  min-width: 200px;
}

.nav__dropdown-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--text);
  cursor: default;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav__dropdown-label::after {
  content: '›';
  font-size: 0.95rem;
  line-height: 1;
  color: var(--text-muted);
  opacity: 0.55;
}

.nav__dropdown-item--nested:hover > .nav__dropdown-label,
.nav__dropdown-item--nested:focus-within > .nav__dropdown-label {
  background: rgba(175, 26, 21, 0.07);
  color: var(--brand);
}

.nav__dropdown-item--nested:hover > .nav__dropdown-label::after,
.nav__dropdown-item--nested:focus-within > .nav__dropdown-label::after {
  color: var(--brand);
  opacity: 0.85;
}

.nav__subdropdown {
  position: absolute;
  top: 0;
  right: calc(100% + 6px);
  min-width: 188px;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(42, 42, 42, 0.08);
  border-radius: 14px;
  box-shadow: 0 14px 32px rgba(26, 26, 34, 0.1);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.24s var(--ease-out-expo),
    visibility 0.2s ease;
  z-index: 1210;
}

.nav__subdropdown--categories {
  min-width: 196px;
}

.nav__subdropdown--depth2 {
  min-width: 220px;
  max-width: min(280px, 72vw);
  z-index: 1220;
}

.nav__subdropdown .nav__dropdown-item--nested::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  width: 10px;
}

.nav__dropdown-item--nested:hover > .nav__subdropdown,
.nav__dropdown-item--nested:focus-within > .nav__subdropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}

.nav__dropdown-link {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1.45;
}

.nav__subdropdown--depth2 .nav__dropdown-link {
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav__dropdown-link:hover {
  color: var(--text);
  background: rgba(42, 42, 42, 0.05);
}

.nav__dropdown-link.is-active {
  color: var(--brand);
  background: rgba(175, 26, 21, 0.09);
}

.nav__item--dropdown.is-active-branch > .nav__link-row > .nav__link {
  color: var(--brand);
  font-weight: 700;
}

html[data-theme="dark"] .nav__dropdown {
  background: rgba(22, 22, 30, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

html[data-theme="dark"] .nav__item--dropdown:hover .nav__link-row,
html[data-theme="dark"] .nav__item--dropdown:focus-within .nav__link-row {
  background: rgba(201, 42, 36, 0.12);
}

html[data-theme="dark"] .nav__subdropdown {
  background: rgba(22, 22, 30, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.4);
}

html[data-theme="dark"] .nav__dropdown-item--nested:hover > .nav__dropdown-row,
html[data-theme="dark"] .nav__dropdown-item--nested:focus-within > .nav__dropdown-row {
  background: rgba(201, 42, 36, 0.14);
}

html[data-theme="dark"] .nav__dropdown-item--nested:hover > .nav__dropdown-label,
html[data-theme="dark"] .nav__dropdown-item--nested:focus-within > .nav__dropdown-label {
  background: rgba(201, 42, 36, 0.14);
}

html[data-theme="dark"] .nav__dropdown-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .nav__dropdown-link.is-active {
  background: rgba(201, 42, 36, 0.18);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.active span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle.active span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: var(--bg-elevated);
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s var(--ease-out-expo), opacity 0.28s ease;
}

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

.mobile-nav > a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.85rem;
  border-radius: 12px;
  font-weight: 700;
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav > a:hover {
  background: var(--bg-soft);
}

.mobile-nav > a.is-active,
.mobile-nav__summary.is-active {
  color: var(--brand);
  background: rgba(175, 26, 21, 0.08);
}

.mobile-nav__group,
.mobile-nav__subgroup {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
}

.mobile-nav__group {
  margin-top: 0.15rem;
}

.mobile-nav__summary {
  list-style: none;
  cursor: pointer;
  font-weight: 800;
  padding: 0.8rem 0.95rem;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.2s ease;
}

.mobile-nav__summary:hover {
  background: rgba(42, 42, 42, 0.04);
}

.mobile-nav__summary::-webkit-details-marker {
  display: none;
}

.mobile-nav__summary::after {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.mobile-nav__group[open] > .mobile-nav__summary::after,
.mobile-nav__subgroup[open] > .mobile-nav__summary::after {
  content: '−';
  color: var(--brand);
}

.mobile-nav__panel {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.35rem 0.55rem 0.7rem;
}

.mobile-nav__panel--nested {
  padding-right: 0.35rem;
}

.mobile-nav__panel a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.75rem;
  border-radius: 10px;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease;
}

.mobile-nav__panel a:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.mobile-nav__panel a.is-active {
  color: var(--brand);
  background: rgba(175, 26, 21, 0.08);
}

.mobile-nav__subgroup .mobile-nav__summary {
  font-size: 0.92rem;
  font-weight: 700;
  padding: 0.65rem 0.85rem;
}

.mobile-nav__subgroup--category {
  margin-top: 0.2rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-elevated);
}

.mobile-nav__panel--depth2 {
  padding-right: 0.5rem;
}

.mobile-nav__panel--depth2 a {
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-h) + 48px);
  padding-bottom: 80px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
  animation: float 12s ease-in-out infinite;
}

.orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(175, 26, 21, 0.28) 0%, rgba(175, 26, 21, 0) 68%);
  top: -10%;
  right: -10%;
  animation-delay: 0s;
}

.orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 128, 128, 0.22) 0%, rgba(212, 128, 128, 0) 68%);
  bottom: 10%;
  left: -5%;
  animation-delay: -4s;
}

.orb--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(200, 196, 196, 0.16) 0%, rgba(200, 196, 196, 0) 68%);
  top: 40%;
  left: 30%;
  animation-delay: -8s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent);
  opacity: 0.5;
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}

.badge__dot {
  width: 8px;
  height: 8px;
  background: var(--text);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 45%, var(--brand-light) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero__desc {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 32px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
}

.hero__media-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 40px;
}

.hero__media-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
  background: rgba(255, 255, 255, 0.72);
  color: var(--text, #111);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hero__media-link:hover {
  transform: translateY(-1px);
  border-color: rgba(26, 122, 140, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

html[data-theme="dark"] .hero__media-link {
  background: rgba(24, 32, 44, 0.85);
  border-color: rgba(255, 255, 255, 0.1);
  color: #f2f4f8;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px 28px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: fit-content;
}

.stat__num {
  font-size: 1.75rem;
  font-weight: 800;
  display: inline;
}

.stat__suffix {
  font-size: 1.25rem;
  font-weight: 700;
}

.stat__label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.stat__divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero__visual {
  position: relative;
  perspective: 1200px;
}

.hero__player-wrap {
  width: 100%;
}

.live-player--theme-react .live-player__gradient {
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(56, 132, 255, 0.42), transparent),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(120, 196, 255, 0.28), transparent),
    linear-gradient(160deg, #142238 0%, #0d1218 100%);
}

.live-player--theme-data .live-player__gradient {
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(34, 168, 108, 0.42), transparent),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(120, 220, 170, 0.28), transparent),
    linear-gradient(160deg, #12241c 0%, #0b1210 100%);
}

.live-player--theme-career .live-player__gradient {
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(196, 120, 48, 0.42), transparent),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(255, 196, 120, 0.28), transparent),
    linear-gradient(160deg, #2a1d12 0%, #120d08 100%);
}

.live-player__badge--replay {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  box-shadow: none;
}

.live-player {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.1s ease-out;
}

.live-player__glow {
  position: absolute;
  inset: -20%;
  background: radial-gradient(ellipse at 50% 30%, var(--accent-glow), transparent 60%);
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}

.live-player.is-playing .live-player__glow {
  animation: player-glow 6s ease-in-out infinite;
}

@keyframes player-glow {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

.live-player__frame {
  background: #0f0f14;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 32px 80px rgba(0, 0, 0, 0.35),
    0 0 60px rgba(175, 26, 21, 0.14);
  overflow: hidden;
}

.live-player__viewport {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
}

.live-player__poster {
  position: absolute;
  inset: 0;
  background: #12121a;
}

.live-player__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(175, 26, 21, 0.42), transparent),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(212, 128, 128, 0.28), transparent),
    linear-gradient(160deg, #1a1a28 0%, #0d0d12 100%);
}

@keyframes poster-drift {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50% { transform: scale(1.06) translate(-2%, 1%); }
}

.live-player.is-playing .live-player__gradient {
  animation: poster-drift 8s ease-in-out infinite;
}

.live-player__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
}

.live-player__scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
}

.live-player__scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}

.live-player.is-playing .live-player__scanlines {
  opacity: 1;
  animation: scan-move 8s linear infinite;
}

@keyframes scan-move {
  0% { background-position: 0 0; }
  100% { background-position: 0 100px; }
}

.live-player__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,0.5) 100%);
  pointer-events: none;
}

.live-player__top {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 4;
  padding: 12px 14px;
  background: linear-gradient(
    180deg,
    rgba(15, 15, 20, 0.82) 0%,
    rgba(15, 15, 20, 0.35) 70%,
    transparent 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.live-player__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: rgba(239, 68, 68, 0.9);
  backdrop-filter: blur(12px);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border-radius: 6px;
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

.live-player__badge-dot {
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite;
}

.live-player__quality {
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.1em;
}

.live-player__chat {
  position: absolute;
  bottom: 56px;
  left: 14px;
  right: auto;
  width: max-content;
  max-width: min(260px, 58%);
  display: flex;
  flex-direction: column;
  align-items: flex-end; 
  gap: 8px;
  z-index: 3;
  pointer-events: none;
  max-height: 120px;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 82%, transparent 100%);
}

.live-player__bubble {
  display: inline-block;
  max-width: 100%;
  padding: 8px 14px;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px 12px 12px 4px; 
  direction: rtl;
  text-align: right;
  font-size: 0.75rem;
  font-weight: 500;
  color: #fff;
  line-height: 1.4;
  opacity: 0;
  transform: translateX(-20px) scale(0.92);
  transition:
    opacity 0.45s var(--ease-out-expo),
    transform 0.5s var(--ease-out-expo);
  will-change: opacity, transform;
}

.live-player__bubble.is-visible {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.live-player__bubble.is-leaving {
  opacity: 0;
  transform: translateX(-16px) scale(0.9);
  transition-duration: 0.4s;
}

.live-player__bubble--alt {
  border-radius: 14px 14px 14px 6px;
}

.live-player__bubble strong {
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  margin-left: 0;
  margin-right: 6px;
}

.live-player.is-playing .live-player__chat {
  mask-image: linear-gradient(180deg, transparent 0%, black 8%, black 88%, transparent 100%);
}

.live-player__big-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 5;
  transition: opacity 0.4s;
}

.live-player__big-play-ring {
  position: absolute;
  width: 80px;
  height: 80px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  animation: play-ring 2.5s ease-out infinite;
}

@keyframes play-ring {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

.live-player__big-play-icon {
  position: relative;
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text);
  border-radius: 50%;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.35s var(--ease-spring), background 0.3s;
}

.live-player__big-play:hover .live-player__big-play-icon {
  transform: scale(1.08);
  background: #fff;
}

.live-player__big-play .icon-pause { display: none; }

.live-player.is-playing .live-player__big-play {
  opacity: 0;
  pointer-events: none;
}

.live-player.is-playing .live-player__big-play .icon-play { display: none; }
.live-player.is-playing .live-player__big-play .icon-pause { display: block; }

.live-player__waveform {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 32px;
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 2;
}

.live-player.is-playing .live-player__waveform {
  opacity: 0.7;
}

.live-player__waveform span {
  width: 3px;
  height: 8px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 3px;
  animation: wave-bar 0.8s ease-in-out infinite;
  animation-play-state: paused;
}

.live-player.is-playing .live-player__waveform span {
  animation-play-state: running;
}

.live-player__waveform span:nth-child(odd) { animation-duration: 0.6s; }
.live-player__waveform span:nth-child(3n) { animation-duration: 1s; }
.live-player__waveform span:nth-child(1) { animation-delay: 0s; }
.live-player__waveform span:nth-child(2) { animation-delay: 0.05s; }
.live-player__waveform span:nth-child(3) { animation-delay: 0.1s; }
.live-player__waveform span:nth-child(4) { animation-delay: 0.15s; }
.live-player__waveform span:nth-child(5) { animation-delay: 0.2s; }
.live-player__waveform span:nth-child(6) { animation-delay: 0.08s; }
.live-player__waveform span:nth-child(7) { animation-delay: 0.12s; }
.live-player__waveform span:nth-child(8) { animation-delay: 0.18s; }
.live-player__waveform span:nth-child(9) { animation-delay: 0.22s; }
.live-player__waveform span:nth-child(10) { animation-delay: 0.03s; }
.live-player__waveform span:nth-child(11) { animation-delay: 0.14s; }
.live-player__waveform span:nth-child(12) { animation-delay: 0.09s; }
.live-player__waveform span:nth-child(13) { animation-delay: 0.16s; }
.live-player__waveform span:nth-child(14) { animation-delay: 0.11s; }
.live-player__waveform span:nth-child(15) { animation-delay: 0.19s; }

@keyframes wave-bar {
  0%, 100% { height: 8px; }
  50% { height: 28px; }
}

.live-player--has-media .live-player__video {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.live-player--has-media .live-player__scanlines,
.live-player--has-media .live-player__vignette,
.live-player--has-media .live-player__waveform,
.live-player--has-media .live-player__pip,
.live-player--has-media .live-player__chat {
  display: none !important;
}

.live-player--has-media .live-player__viewport {
  cursor: pointer;
  background: #000;
}

.live-player--has-media .live-player__controls {
  display: flex;
}

.live-player:not(.is-playing) .live-player__waveform span {
  animation: none;
  height: 8px;
}

.live-player__pip {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px 8px 8px;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  z-index: 4;
  transition: transform 0.35s var(--ease-spring);
}

.live-player.is-playing .live-player__pip {
  animation: pip-pulse 3s ease-in-out infinite;
}

@keyframes pip-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, 0); }
}

.live-player__pip-avatar {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5a5a62, #3a3a42);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 10px;
}

.live-player__pip strong {
  display: block;
  font-size: 0.8rem;
  color: #fff;
}

.live-player__pip small {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.55);
}

.live-player__controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: linear-gradient(180deg, rgba(15, 15, 20, 0.6) 0%, #0f0f14 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.live-player__ctrl {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: 10px;
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s var(--ease-spring);
}

.live-player__ctrl:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: scale(1.05);
}

.live-player__ctrl .icon-pause-sm { display: none; }
.live-player.is-playing .live-player__ctrl .icon-play-sm { display: none; }
.live-player.is-playing .live-player__ctrl .icon-pause-sm { display: block; }

.live-player__progress {
  flex: 1;
  position: relative;
  height: 6px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  cursor: pointer;
  overflow: visible;
}

.live-player__buffer {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 45%;
  background: rgba(255, 255, 255, 0.15);
  border-radius: inherit;
}

.live-player__fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: var(--progress, 18%);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.95));
  border-radius: inherit;
  transition: width 0.15s linear;
}

.live-player__thumb {
  position: absolute;
  top: 50%;
  left: calc(var(--progress, 18%) - 6px);
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.2s, left 0.15s linear;
}

.live-player__progress:hover .live-player__thumb,
.live-player__progress:focus .live-player__thumb {
  opacity: 1;
}

.live-player__chapter {
  position: absolute;
  top: 50%;
  left: var(--p);
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.live-player__time {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  font-variant-numeric: tabular-nums;
  min-width: 72px;
}

.live-player__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px 16px;
  background: #0f0f14;
}

.live-player__lesson-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.live-player__title h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

.live-player__viewers {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  flex-shrink: 0;
}

.live-player__viewers .avatars span {
  border-color: #0f0f14;
}

.avatars {
  display: flex;
}

.avatars span {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6a6a72, #4a4a52);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 50%;
  border: 2px solid var(--bg-elevated);
  margin-right: -10px;
  animation: avatar-pop 0.5s var(--ease-spring) backwards;
  animation-delay: calc(var(--i) * 0.1s + 0.8s);
}

@keyframes avatar-pop {
  from { transform: scale(0); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.live-player-placeholder {
  flex-shrink: 0;
  width: 100%;
  max-width: 100%;
  pointer-events: none;
}

.live-player.is-mini {
  display: flex;
  flex-direction: column;
  position: fixed;
  right: 20px;
  bottom: 20px;
  left: auto;
  top: auto;
  z-index: 9500;
  width: min(300px, calc(100vw - 32px));
  margin: 0;
  transform: none !important;
  transition:
    width 0.45s var(--ease-out-expo),
    box-shadow 0.45s var(--ease-out-expo),
    opacity 0.35s ease;
  animation: player-mini-in 0.5s var(--ease-out-expo) backwards;
}

@keyframes player-mini-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.live-player.is-mini .live-player__glow {
  display: none;
}

.live-player.is-mini .live-player__frame {
  border-radius: 16px 16px 0 0;
  overflow: hidden;
  box-shadow: none;
  border-bottom: none;
}

.live-player.is-mini {
  border-radius: 16px;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.live-player.is-mini .live-player__pip,
.live-player.is-mini .live-player__waveform,
.live-player.is-mini .live-player__big-play,
.live-player.is-mini .live-player__chat,
.live-player.is-mini .live-player__footer,
.live-player.is-mini .live-player__ctrl,
.live-player.is-mini .live-player__time {
  display: none !important;
}

.live-player.is-mini .live-player__controls {
  padding: 8px 10px 10px;
  gap: 8px;
}

.live-player.is-mini .live-player__progress {
  flex: 1;
  min-width: 0;
}

.live-player.is-mini .live-player__mini-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #16161c 0%, #0f0f14 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0 0 16px 16px;
}

.live-player__mini-chrome {
  display: none;
}

.live-player__mini-info {
  min-width: 0;
  flex: 1;
}

.live-player__mini-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 2px;
}

.live-player__mini-live .live-player__badge-dot {
  width: 5px;
  height: 5px;
}

.live-player__mini-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.live-player__mini-actions {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.live-player__mini-btn {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, transform 0.3s var(--ease-spring);
}

.live-player__mini-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.06);
}

.live-player__mini-btn--close:hover {
  background: rgba(239, 68, 68, 0.35);
}

.live-player__mini-btn .icon-play-mini { display: none; }

.live-player:not(.is-playing) .live-player__mini-btn .icon-pause-mini { display: none; }
.live-player:not(.is-playing) .live-player__mini-btn .icon-play-mini { display: block; }

.live-player.is-playing .live-player__mini-btn .icon-play-mini { display: none; }

@media (max-width: 768px) {
  .live-player.is-mini {
    right: 12px;
    left: auto;
    bottom: 12px;
    width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-player.is-mini {
    animation: none;
  }
}

.scroll-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 9400;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow:
    0 8px 28px rgba(26, 26, 34, 0.12),
    0 0 0 1px var(--border);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.9);
  transition:
    opacity 0.4s var(--ease-out-expo),
    transform 0.45s var(--ease-spring),
    visibility 0.4s,
    background 0.25s,
    color 0.25s,
    box-shadow 0.35s;
}

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

.scroll-top:hover {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 12px 32px rgba(175, 26, 21, 0.32);
  transform: translateY(-3px) scale(1.05);
}

.scroll-top:focus-visible {
  outline: 3px solid rgba(175, 26, 21, 0.35);
  outline-offset: 3px;
}

body.is-player-mini .scroll-top {
  bottom: min(300px, 42vh);
}

@media (max-width: 768px) {
  .scroll-top {
    bottom: 20px;
    left: 20px;
    width: 46px;
    height: 46px;
  }

  body.is-player-mini .scroll-top {
    bottom: min(280px, 48vh);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-top {
    transition: opacity 0.2s, visibility 0.2s;
  }
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: 0.85rem;
  animation: float-card 5s ease-in-out infinite;
}

.float-card strong { display: block; font-weight: 700; }
.float-card small { color: var(--text-muted); }

.float-card--1 {
  top: -20px;
  left: -40px;
  animation-delay: 0s;
}

.float-card--2 {
  bottom: 40px;
  right: -30px;
  animation-delay: -2.5s;
}

.float-card__icon { font-size: 1.5rem; }

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

.marquee {
  position: relative;
  z-index: 1;
  margin-top: 64px;
  padding: 16px 0;
  overflow: hidden;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    var(--bg-soft) 50%,
    #ffffff 100%
  );
  border-block: 1px solid var(--border);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee__track {
  display: flex;
  gap: 32px;
  width: max-content;
  animation: marquee 30s linear infinite;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.marquee__track span:nth-child(odd) {
  color: var(--text);
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(50%); }
}

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

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-head p {
  color: var(--text-muted);
  max-width: 520px;
}

.section-head--center {
  text-align: center;
}

.section-head--center p {
  margin-inline: auto;
}

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

.course-card {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s;
}

.course-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.course-card__img {
  height: 180px;
  position: relative;
  overflow: hidden;
}

.course-card__img--1 {
  background: linear-gradient(135deg, #5a5a62 0%, #3a3a42 100%);
}

.course-card__img--2 {
  background: linear-gradient(135deg, #7a7a82 0%, #52525a 100%);
}

.course-card__img--3 {
  background: linear-gradient(135deg, var(--mint) 0%, var(--brand-gray) 100%);
}

.course-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.2), transparent);
  opacity: 0;
  transition: opacity 0.4s;
}

.course-card:hover .course-card__img::after { opacity: 1; }

.course-card__level,
.course-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 12px;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.course-card__badge {
  background: var(--text);
  color: #fff;
}

.course-card__body {
  padding: 24px;
}

.course-card__meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.course-card__body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.course-card__body > p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.course-card__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-weight: 800;
  font-size: 1.1rem;
}

.price small {
  font-weight: 500;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.link-arrow {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.3s;
}

.link-arrow::before {
  content: '←';
}

.course-card:hover .link-arrow { gap: 8px; }

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}

.bento__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.bento__item--large {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
}

.bento__item--large img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.bento__item--large:hover img {
  transform: scale(1.05);
}

.bento__item:not(.bento__item--large) {
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.bento__num {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text);
}

.bento__item--accent {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  border: none;
}

.bento__item--accent p {
  font-weight: 500;
  line-height: 1.6;
}

.check-list {
  margin: 24px 0 32px;
}

.check-list li {
  position: relative;
  padding-right: 28px;
  margin-bottom: 12px;
  font-weight: 500;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  right: 0;
  color: var(--mint);
  font-weight: 800;
}

.about__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.features {
  background: #ffffff;
  color: var(--text);
  border-block: 1px solid var(--border);
}

.features .section-label { color: var(--text-muted); }

.features .section-head h2 { color: var(--text); }

.features__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.feature {
  padding: 32px 24px;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease-out-expo), background 0.4s, box-shadow 0.4s;
}

.feature:hover {
  transform: translateY(-6px);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.feature__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 20px;
  transition: transform 0.4s var(--ease-spring);
}

.feature:hover .feature__icon {
  transform: scale(1.1) rotate(-5deg);
}

.feature__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--text);
}

.feature h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.testimonials__slider {
  margin-top: 40px;
  overflow: hidden;
}

.testimonial-track {
  display: flex;
  gap: 24px;
  transition: transform 0.6s var(--ease-out-expo);
}

.testimonial {
  flex: 0 0 min(100%, 360px);
  padding: 32px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.testimonial p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--text);
}

.testimonial footer {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonial__avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5a5a62, #3a3a42);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
}

.testimonial cite {
  font-style: normal;
  font-weight: 700;
  display: block;
}

.testimonial footer span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: var(--border);
  cursor: pointer;
  transition: transform 0.3s, background 0.3s, width 0.3s;
}

.slider-dots button.active {
  background: var(--accent);
  width: 28px;
  border-radius: 100px;
}

.cta__box {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 56px 64px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}

.cta__glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--brand-glow), transparent 70%);
  top: -50%;
  left: -20%;
  animation: cta-glow 8s ease-in-out infinite;
}

@keyframes cta-glow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(40px, 40px); }
}

.cta__content {
  position: relative;
  z-index: 1;
}

.cta__content h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.cta__content p {
  color: var(--text-muted);
}

.cta__form {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta__form input {
  padding: 14px 24px;
  font-family: inherit;
  font-size: 1rem;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  min-width: 220px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.cta__form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.site-pagination,
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.site-pagination__btn,
.blog-pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--brand);
  background: rgba(175, 26, 21, 0.08);
  border: 1px solid rgba(175, 26, 21, 0.15);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.site-pagination__btn:hover,
.blog-pagination__btn:hover {
  color: var(--brand);
  background: rgba(175, 26, 21, 0.14);
  border-color: rgba(175, 26, 21, 0.28);
}

.site-pagination__btn.is-disabled,
.blog-pagination__btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.site-pagination__status,
.blog-pagination__status {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
}

.footer {
  position: relative;
  margin-top: 88px;
  padding: 0 0 40px;
  color: rgba(255, 255, 255, 0.9);
  background:
    radial-gradient(ellipse 90% 60% at 85% -10%, rgba(175, 26, 21, 0.28), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 100%, rgba(212, 128, 128, 0.14), transparent 50%),
    linear-gradient(168deg, #3a2424 0%, #261818 38%, #141010 100%);
  border-radius: 44px 44px 0 0;
  overflow: hidden;
  box-shadow:
    0 -24px 80px rgba(175, 26, 21, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(175, 26, 21, 0.2) 15%,
    rgba(201, 42, 36, 0.95) 50%,
    rgba(175, 26, 21, 0.2) 85%,
    transparent 100%
  );
  z-index: 3;
}

.footer__curve {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--bg);
  border-radius: 0 0 50% 50% / 0 0 32px 32px;
  transform: translateY(-100%);
  z-index: 2;
  box-shadow: 0 12px 40px rgba(26, 26, 34, 0.06);
}

.footer__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.footer__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.5;
  animation: footer-orb-drift 18s ease-in-out infinite;
}

.footer__orb--1 {
  width: 460px;
  height: 460px;
  top: -22%;
  right: -10%;
  background: rgba(175, 26, 21, 0.5);
}

.footer__orb--2 {
  width: 360px;
  height: 360px;
  bottom: -18%;
  left: -8%;
  background: rgba(212, 136, 136, 0.32);
  animation-delay: -6s;
}

@keyframes footer-orb-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-12px, 10px) scale(1.04); }
}

.footer__grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, black 0%, transparent 88%);
}

.footer__inner {
  position: relative;
  z-index: 1;
  padding-top: 56px;
}

.footer__ribbon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px 18px;
  flex-wrap: wrap;
  padding: 16px 22px;
  margin-bottom: 52px;
  text-align: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.04) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.footer__ribbon-text {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
}

.footer__ribbon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-light) 0%, var(--brand) 55%, var(--brand-dark) 100%);
  border-radius: 100px;
  box-shadow: 0 8px 24px rgba(175, 26, 21, 0.38);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.footer__ribbon-btn:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(175, 26, 21, 0.45);
}

.footer__ribbon-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
  animation: blink 2s ease-in-out infinite;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr 1.05fr;
  gap: 36px 40px;
  margin-bottom: 52px;
}

.footer__col {
  position: relative;
}

.footer__col:not(:first-child)::before {
  content: '';
  position: absolute;
  top: 4px;
  right: calc(100% + 20px);
  width: 1px;
  height: calc(100% - 8px);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

.logo--footer {
  align-items: flex-start;
  margin-bottom: 6px;
  transition: opacity 0.3s ease;
}

.logo--footer:hover {
  opacity: 0.92;
}

.logo--footer .logo__img--footer {
  height: 58px;
  width: auto;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.logo--footer .logo__text {
  font-size: 1.4rem;
  color: #fff;
}

.logo--footer .logo__text strong {
  color: #fff;
}

.footer__tagline {
  margin: 14px 0 10px;
  font-size: 1.02rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.02em;
  line-height: 1.45;
}

.footer__desc {
  font-size: 0.88rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.52);
  max-width: 340px;
}

.footer__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.footer__stats li {
  flex: 1 1 92px;
  padding: 16px 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  text-align: center;
  transition:
    border-color 0.35s ease,
    transform 0.35s var(--ease-spring),
    box-shadow 0.35s ease;
}

.footer__stats li:hover {
  border-color: rgba(201, 42, 36, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
}

.footer__stats strong {
  display: block;
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
}

.footer__stats span {
  display: block;
  margin-top: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.48);
}

.footer__heading {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 22px;
}

.footer__heading::before {
  content: '';
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-light), var(--brand));
  flex-shrink: 0;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

  .footer__links a,
  .footer__contact-item {
    margin-inline: auto;
  }

  .footer__links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.62);
  transition: color 0.28s ease, transform 0.28s ease;
}

.footer__links a::before {
  content: '›';
  font-size: 1rem;
  line-height: 1;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.28s ease, transform 0.28s ease;
  color: var(--brand-light);
}

.footer__links a:hover {
  color: #fff;
  transform: translateX(-3px);
}

.footer__links a:hover::before {
  opacity: 1;
  transform: translateX(0);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__contact-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  padding: 6px 12px 6px 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  transition:
    color 0.3s ease,
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s var(--ease-spring);
}

.footer__contact-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}

.footer__contact-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.88);
  transition: background 0.3s ease, transform 0.35s var(--ease-spring);
}

.footer__contact-item:hover .footer__contact-icon {
  background: linear-gradient(145deg, rgba(201, 42, 36, 0.55), rgba(175, 26, 21, 0.35));
  transform: scale(1.04);
}

.footer__hours {
  margin-top: 18px;
  padding: 10px 12px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.65;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.footer__social-desc {
  font-size: 0.86rem;
  color: rgba(255, 255, 255, 0.48);
  margin-bottom: 18px;
  line-height: 1.7;
}

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

.footer__social-link {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.88);
  transition:
    transform 0.35s var(--ease-spring),
    background 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease,
    box-shadow 0.3s ease;
}

.footer__social-link:hover {
  transform: translateY(-5px) scale(1.05);
  background: linear-gradient(145deg, var(--brand-light), var(--brand));
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 12px 28px rgba(175, 26, 21, 0.35);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.12));
}

.footer__copy {
  font-size: 0.86rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.42);
}

.footer__legal {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.footer__legal a {
  font-size: 0.86rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.42);
  transition: color 0.3s ease;
}

.footer__legal a:hover {
  color: rgba(255, 255, 255, 0.82);
}

.process {
  padding-bottom: 40px;
}

.process__stack {
  position: relative;
  z-index: 1;
  margin-top: 48px;
  padding-bottom: 30vh;
}

.process__sticky {
  width: min(720px, 92vw);
  margin-inline: auto;
  position: relative;
}

.stack-card {
  position: sticky;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 36px 40px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  margin-bottom: 28px;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out-expo);
}

.stack-card--1 { top: calc(var(--header-h) + 16px); z-index: 1; }
.stack-card--2 { top: calc(var(--header-h) + 40px); z-index: 2; }
.stack-card--3 { top: calc(var(--header-h) + 64px); z-index: 3; }

.stack-card__num {
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 4rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  pointer-events: none;
}

.stack-card__content {
  position: relative;
  z-index: 1;
  padding-top: 48px;
}

.stack-card__content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.stack-card__content > p {
  color: var(--text-muted);
  margin-bottom: 16px;
  max-width: 420px;
}

.stack-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.stack-card__tags li {
  padding: 6px 14px;
  background: var(--bg);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
}

.stack-card--2 { background: linear-gradient(135deg, #1a1a22 0%, #2d2a35 100%); color: #fff; }
.stack-card--2 .stack-card__content > p { color: rgba(255,255,255,0.7); }
.stack-card--2 .stack-card__tags li { background: rgba(255,255,255,0.1); color: #fff; }
.stack-card--2 .stack-card__num { color: rgba(255,255,255,0.08); }

.stack-card--3 {
  background: linear-gradient(135deg, #3a3a42 0%, #52525a 100%);
  color: #fff;
}
.stack-card--3 .stack-card__content > p { color: rgba(255,255,255,0.85); }
.stack-card--3 .stack-card__tags li { background: rgba(255,255,255,0.2); }
.stack-card--3 .stack-card__num { color: rgba(255,255,255,0.15); }

.stack-card__visual {
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stack-card__ring {
  width: 100px;
  height: 100px;
  border: 3px dashed var(--accent);
  border-radius: 50%;
  animation: spin-slow 12s linear infinite;
}

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

.stack-card__visual--code pre {
  padding: 16px 20px;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  font-size: 0.75rem;
  direction: ltr;
  text-align: left;
}

.stack-card__visual--code code { color: var(--mint); }

.mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 80px;
}

.mini-bars span {
  width: 16px;
  height: var(--h);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 6px 6px 2px 2px;
  animation: bar-grow 1.2s var(--ease-out-expo) backwards;
}

.stack-card--3 .mini-bars span:nth-child(1) { background: rgba(255, 255, 255, 0.45); }
.stack-card--3 .mini-bars span:nth-child(2) { background: rgba(255, 255, 255, 0.65); }
.stack-card--3 .mini-bars span:nth-child(3) { background: rgba(255, 255, 255, 0.55); }
.stack-card--3 .mini-bars span:nth-child(4) { background: rgba(255, 255, 255, 0.85); }

.mini-bars span:nth-child(1) { animation-delay: 0.1s; }
.mini-bars span:nth-child(2) { animation-delay: 0.2s; }
.mini-bars span:nth-child(3) { animation-delay: 0.3s; }
.mini-bars span:nth-child(4) { animation-delay: 0.4s; }

@keyframes bar-grow {
  from { height: 0; }
}

.journey {
  background: var(--bg-soft);
  border-block: 1px solid var(--border);
}

.journey__wrap {
  margin-top: 48px;
  padding: 40px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.journey__line {
  height: 4px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 40px;
  overflow: hidden;
}

.journey__line-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--text), var(--text-muted));
  border-radius: 4px;
  transition: width 0.6s var(--ease-out-expo);
}

.journey__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.journey-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 8px;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  color: var(--text-muted);
  transition: background 0.3s, color 0.3s, transform 0.35s var(--ease-spring);
}

.journey-step:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.journey-step.active {
  color: var(--text);
  background: var(--bg-elevated);
  box-shadow: var(--shadow);
}

.journey-step.active .journey-step__dot {
  background: var(--accent);
  color: #fff;
  transform: scale(1.1);
}

.journey-step__dot {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--border);
  border-radius: 50%;
  font-weight: 800;
  font-size: 0.9rem;
  transition: transform 0.35s var(--ease-spring), background 0.3s;
}

.journey-step__title {
  font-weight: 700;
  font-size: 0.85rem;
  text-align: center;
}

.journey-step__desc {
  font-size: 0.75rem;
  opacity: 0.8;
}

.journey__panel {
  position: relative;
  min-height: 200px;
}

.journey-panel {
  padding: 32px 40px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.45s, transform 0.45s var(--ease-out-expo);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.journey-panel.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
  pointer-events: auto;
}

.journey-panel[hidden] { display: none; }

.journey-panel__emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: 12px;
}

.journey-panel h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.journey-panel p {
  color: var(--text-muted);
  max-width: 560px;
}

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

.mentor-card {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s;
}

.mentor-card::before {
  content: '';
  position: absolute;
  inset: 0;
  padding: 2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--text-muted), var(--mint), var(--brand-gray));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s;
}

.mentor-card:hover::before { opacity: 1; }

.mentor-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.mentor-card__glow {
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--accent-glow);
  border-radius: 50%;
  top: -80px;
  right: -60px;
  filter: blur(40px);
  opacity: 0;
  transition: opacity 0.4s;
}

.mentor-card:hover .mentor-card__glow { opacity: 0.6; }

.mentor-card--featured {
  background: var(--text);
  color: #fff;
  transform: scale(1.03);
}

.mentor-card--featured .mentor-card__role,
.mentor-card--featured p { color: rgba(255,255,255,0.75); }

.mentor-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  background: var(--text);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 100px;
}

.mentor-card__avatar {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #5a5a62, #3a3a42);
  color: #fff;
  font-size: 1.75rem;
  font-weight: 800;
  border-radius: 20px;
  margin-bottom: 20px;
}

.mentor-card--featured .mentor-card__avatar {
  background: linear-gradient(135deg, #6a6a72, #4a4a52);
}

.mentor-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.mentor-card__role {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.mentor-card p {
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.mentor-card__stats {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.mentor-card--featured .mentor-card__stats {
  border-color: rgba(255,255,255,0.15);
}

.mentors__scroll {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.mentor-chip {
  padding: 10px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: transform 0.3s var(--ease-spring), border-color 0.3s, color 0.3s;
}

.mentor-chip:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  color: var(--accent);
}

.events {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
}

.events__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.events__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 20px;
}

.event-card {
  position: relative;
  display: flex;
  gap: 24px;
  padding: 28px;
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s;
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.event-card--large {
  grid-row: span 2;
  flex-direction: column;
}

.event-card__date {
  flex-shrink: 0;
  width: 72px;
  text-align: center;
  padding: 12px;
  background: var(--bg);
  border-radius: var(--radius);
}

.event-card__day {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
}

.event-card__month {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}

.event-card__type {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.event-card h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.event-card--large h3 { font-size: 1.5rem; }

.event-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.event-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.event-card__pulse {
  position: absolute;
  top: 24px;
  left: 24px;
  width: 12px;
  height: 12px;
  background: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { box-shadow: 0 0 0 16px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.event-card--large .event-card__date {
  width: auto;
  align-self: flex-start;
}

.statement {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
  background: var(--text);
}

.statement__track {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
}

.statement__text {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25em 0.5em;
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 800;
  color: #fff;
  text-align: center;
  line-height: 1.3;
  transform: scale(0.85);
  opacity: 0.6;
  transition: transform 0.2s linear, opacity 0.2s linear;
}

.statement__text.in-view {
  opacity: 1;
}

.faq__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.faq__intro p {
  color: var(--text-muted);
  margin: 16px 0 28px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  transition: color 0.3s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 400;
  transition: transform 0.4s var(--ease-spring), background 0.3s;
}

.faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
  background: var(--accent);
  color: #fff;
}

.faq-item[open] summary { color: var(--accent); }

.faq-item p {
  padding-bottom: 22px;
  color: var(--text-muted);
  line-height: 1.8;
  animation: faq-open 0.4s var(--ease-out-expo);
}

@keyframes faq-open {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.partners {
  position: relative;
  padding: 64px 0 80px;
  overflow: hidden;
}

.partners .container,
.partners__marquee {
  position: relative;
  z-index: 1;
}

.partners__label {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.partners__marquee {
  overflow: hidden;
  margin-bottom: 16px;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.partners__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.partners__marquee--2 .partners__track {
  animation-direction: reverse;
  animation-duration: 30s;
}

.partners__track span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
  opacity: 0.5;
  white-space: nowrap;
  transition: opacity 0.3s, color 0.3s;
}

.partners__track span:hover {
  opacity: 1;
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

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

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }

@media (max-width: 1024px) {
  .nav {
    gap: 0.85rem;
  }

  .nav__link {
    font-size: 0.86rem;
  }

  .hero__grid,
  .about__grid,
  .faq__grid {
    grid-template-columns: 1fr;
  }

  .hero__visual { order: -1; max-width: 420px; margin-inline: auto; }
  .courses__grid { grid-template-columns: 1fr 1fr; }
  .features__grid { grid-template-columns: 1fr 1fr; }
  .mentors__grid { grid-template-columns: 1fr; }
  .mentor-card--featured { transform: none; }
  .journey__steps { grid-template-columns: repeat(3, 1fr); }
  .events__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .event-card--large { grid-row: span 1; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stack-card { grid-template-columns: 1fr; }
  .stack-card__visual { justify-content: flex-start; }
}

@media (max-width: 768px) {
  .nav, .header__actions .btn--ghost { display: none; }
  .menu-toggle { display: flex; }

  .courses__grid,
  .features__grid {
    grid-template-columns: 1fr;
  }

  .hero__stats {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }

  .stat__divider {
    width: 100%;
    height: 1px;
  }

  .float-card--1 { left: 0; }
  .float-card--2 { right: 0; }

  .cta__box {
    padding: 32px 24px;
    flex-direction: column;
    text-align: center;
  }

  .cta__form {
    width: 100%;
    flex-direction: column;
  }

  .cta__form input { width: 100%; }

  .footer {
    margin-top: 48px;
    border-radius: 28px 28px 0 0;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__col:not(:first-child)::before {
    display: none;
  }

  .footer__ribbon {
    flex-direction: column;
    padding: 18px 20px;
    border-radius: 18px;
  }

  .footer__ribbon-btn {
    width: 100%;
    max-width: 260px;
  }

  .logo--footer {
    justify-content: center;
  }

  .footer__desc {
    margin-inline: auto;
  }

  .footer__stats {
    justify-content: center;
  }

  .footer__stats li {
    flex: 0 1 auto;
    min-width: 100px;
  }

  .footer__heading {
    justify-content: center;
  }

  .footer__links a,
  .footer__contact-item {
    margin-inline: auto;
  }

  .footer__contact-item {
    justify-content: center;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer__legal {
    justify-content: center;
  }

  .journey__steps { grid-template-columns: 1fr 1fr; }
  .journey__wrap { padding: 24px 20px; }
  .journey-step__desc { display: none; }
  .stack-card { padding: 28px 24px; }
  .stack-card--2 { top: calc(var(--header-h) + 32px); }
  .stack-card--3 { top: calc(var(--header-h) + 48px); }
  .statement { padding: 80px 0; }
}

iframe,
video,
embed {
  max-width: 100%;
}

@media (max-width: 768px) {
  .mobile-nav {
    padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  }

  .scroll-top {
    left: max(20px, env(safe-area-inset-left, 0px));
    bottom: max(20px, env(safe-area-inset-bottom, 0px));
  }

  body.is-player-mini .scroll-top {
    bottom: max(min(280px, 48vh), calc(20px + env(safe-area-inset-bottom, 0px)));
  }
}

@media (max-width: 480px) {
  .header__inner {
    gap: 8px;
  }

  .logo--header .logo__img--full {
    max-width: 110px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 0.88rem;
  }
}

body.is-page-hidden .orb,
body.is-page-hidden .marquee__track,
body.is-page-hidden .float-card,
body.is-page-hidden .live-player__glow,
body.is-page-hidden .live-player__gradient,
body.is-page-hidden .live-player__scanlines,
body.is-page-hidden .live-player__waveform span,
body.is-page-hidden .deco-shape {
  animation-play-state: paused !important;
}

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

  .reveal { opacity: 1; transform: none; }
}
