
html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 15% 15%, rgba(103, 89, 255, 0.3), transparent 45%), radial-gradient(circle at 85% 10%, rgba(255, 125, 209, 0.25), transparent 50%), radial-gradient(circle at 50% 90%, rgba(71, 224, 196, 0.18), transparent 55%), linear-gradient(135deg, #080a1f 0%, #13163c 48%, #080a1f 100%);
  color: #f8faff;
  padding: clamp(1.25rem, 2vw, 2.2rem);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

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

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

.instructions-shell {
  position: relative;
  z-index: 1;
  width: min(1220px, 100%);
  background: rgba(8, 10, 27, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  backdrop-filter: blur(32px);
  box-shadow: 0 40px 80px rgba(4, 7, 20, 0.55);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.8rem, 3vw, 2.6rem);
}

.instructions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-cont {
  border-radius: 10px;
  padding: 10px;
  a {
    display: flex;
    width: 300px;
  }
  img {
  max-height: 150px;
  }
  .logo-link {
    max-width: 228px;
  }
  .logo-animate {
    animation: rotate-logo 1s 1s;
    max-width: 50px;
    display: inline-flex;
  }
  .logo-main {
    max-width: 180px;
    margin-left: 5px;
    display: inline-flex;
  }
}
.logo-cont:hover {
  transform: translateY(-2px);
}

@keyframes rotate-logo {
  0% {
    transform: rotate(-90deg);
  }
  50% {
    transform: rotate(-45deg);
  }
  100% {
    transform: rotate(0);
  }
}

.back-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f8faff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.back-chip:hover,
.back-chip:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 24px rgba(9, 12, 30, 0.35);
}

.back-chip--ghost {
  background: rgba(255, 255, 255, 0.06);
}

.instructions-main {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 3vw, 2.8rem);
}

.hero-intro {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.hero-intro__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(103, 89, 255, 0.16);
  border: 1px solid rgba(103, 89, 255, 0.3);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(214, 219, 255, 0.9);
  width: fit-content;
}

.hero-intro__title {
  text-align: center;
  color: rgba(232, 235, 255, 0.68);
}

.categories-menu {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 3vw, 2.6rem);
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.2rem, 2vw, 1.8rem);
}

.category-card {
  position: relative;
  padding: 1.9rem;
  border-radius: 22px;
  background: rgba(20, 22, 45, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 26px 60px rgba(7, 10, 25, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  cursor: pointer;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  overflow: hidden;
}

.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0));
  opacity: 0;
  transition: opacity 0.35s ease;
}

.category-card > * {
  position: relative;
  z-index: 1;
}

.category-card__icon {
  font-size: 2.4rem;
}

.category-card__title {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.45rem;
}

.category-card__text {
  margin: 0;
  color: rgba(232, 235, 255, 0.68);
  line-height: 1.6;
  font-size: 1rem;
}

.category-card__cta {
  margin-top: auto;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
}

.category-card__cta::after {
  content: "→";
  transition: transform 0.3s ease;
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(29, 31, 62, 0.85);
}

.category-card:hover::before,
.category-card:focus-visible::before {
  opacity: 1;
}

.category-card:hover .category-card__cta::after,
.category-card:focus-visible .category-card__cta::after {
  transform: translateX(4px);
}

.videos-content {
  display: flex;
  flex-direction: column;
  gap: clamp(1.8rem, 2.8vw, 2.4rem);
}

.videos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 10px;
  padding: 0 14px;
}

.videos-header__copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.videos-header__eyebrow {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(214, 219, 255, 0.68);
}

.videos-header__title {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 18px;
}

.video-layout {
  display: flex;
  align-items: center;
  justify-content: center;
}

.category-collections {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.category-heading {
  margin: 0 0 0.9rem;
  font-size: 1.35rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.1rem;
}

.video-card {
  position: relative;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px rgba(9, 12, 30, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.35s ease, border-color 0.35s ease, background 0.35s ease;
}

.video-card__thumb {
  position: relative;
  width: 100%;
  padding: 0.9rem;
  background: rgba(0, 0, 0, 0.55);
}

.video-card__thumb video {
  width: 100%;
  border-radius: 6px;
  background: #000;
}

.video-card__content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 8px 10px;
}

.video-card h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
}

.video-card:hover,
.video-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
}

.video-card:hover .video-card__thumb::after,
.video-card:focus-visible .video-card__thumb::after {
  opacity: 1;
}

.video-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.video-card video::-webkit-media-controls {
  opacity: 0.4;
}

.video-card video:hover::-webkit-media-controls {
  opacity: 1;
}

@media (max-width: 1080px) {
  .video-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body {
    padding: 1rem;
  }

  .instructions-shell {
    border-radius: 26px;
    padding: 1.6rem;
  }

  .instructions-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .hero-intro__title {
    font-size: clamp(1.9rem, 6vw, 2.6rem);
  }
}

@media (max-width: 620px) {
  body {
    padding: 0.85rem;
  }

  .instructions-shell {
    padding: 1.35rem;
  }

  .categories-grid {
    grid-template-columns: 1fr;
  }

  .videos-header {
    flex-direction: column;
    align-items: stretch;
  }

  .back-chip,
  .back-chip--ghost {
    width: 100%;
    justify-content: center;
  }

  .hero-intro__badges {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 420px) {
  .video-card__content {
    padding: 0 0.95rem 1rem;
  }
}
