:root {
  color-scheme: dark;
  --bg: #11101a;
  --bg-deep: #08080f;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.16);
  --text: #f8f7fb;
  --muted: #c7c0d8;
  --accent: #c487cf;
  --accent-strong: #e6a2ee;
  --violet: #4b315f;
  --bluegray: #4d5875;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(196, 135, 207, 0.2), transparent 32rem),
    radial-gradient(circle at 92% 16%, rgba(77, 88, 117, 0.36), transparent 34rem),
    linear-gradient(135deg, var(--bg-deep), var(--bg) 44%, #20162a);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(30deg, rgba(255, 255, 255, 0.14) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.14) 87.5%, rgba(255, 255, 255, 0.14)),
    linear-gradient(150deg, rgba(255, 255, 255, 0.14) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.14) 87.5%, rgba(255, 255, 255, 0.14)),
    linear-gradient(30deg, rgba(255, 255, 255, 0.14) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.14) 87.5%, rgba(255, 255, 255, 0.14)),
    linear-gradient(150deg, rgba(255, 255, 255, 0.14) 12%, transparent 12.5%, transparent 87%, rgba(255, 255, 255, 0.14) 87.5%, rgba(255, 255, 255, 0.14));
  background-position: 0 0, 0 0, 46px 80px, 46px 80px;
  background-size: 92px 160px;
}

a {
  color: inherit;
}

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

.site-header,
.hero,
.videos-section,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.36);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
}

.site-nav a {
  min-height: 36px;
  padding: 8px 13px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a[aria-current="page"],
.site-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}

.site-nav a[aria-disabled="true"] {
  color: rgba(199, 192, 216, 0.58);
}

.hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.66fr);
  align-items: center;
  gap: 48px;
  padding: 42px 0 92px;
}

.hero-copy {
  max-width: 740px;
}

.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(3.1rem, 8vw, 6.8rem);
  line-height: 0.94;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-copy p {
  margin: 28px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  line-height: 1.7;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: var(--text);
  color: #1a1023;
  box-shadow: 0 14px 42px rgba(196, 135, 207, 0.22);
}

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.hero-panel {
  align-self: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05)),
    linear-gradient(145deg, rgba(75, 49, 95, 0.75), rgba(77, 88, 117, 0.5));
  box-shadow: var(--shadow);
}

.hero-panel img {
  width: min(100%, 240px);
  height: auto;
  margin: 0 auto 28px;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.42);
}

.panel-label,
.video-meta {
  margin: 0;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-title {
  margin: 10px 0 0;
  color: var(--text);
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1.16;
  font-weight: 800;
}

.videos-section {
  padding: 68px 0 84px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0;
}

.section-heading a {
  color: var(--accent-strong);
  font-weight: 800;
  text-decoration: none;
}

.section-heading a:hover {
  text-decoration: underline;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.thumbnail-link {
  position: relative;
  display: block;
  margin: 3px 3px 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--violet);
}

.thumbnail-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease, filter 220ms ease;
}

.thumbnail-link:hover img {
  transform: scale(1.04);
  filter: saturate(1.08);
}

.duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 5px 7px;
  border-radius: 6px;
  background: rgba(8, 8, 15, 0.86);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.video-content {
  padding: 18px;
}

.video-content h3 {
  margin: 8px 0 10px;
  font-size: 1.16rem;
  line-height: 1.28;
  letter-spacing: 0;
}

.video-content h3 a {
  text-decoration: none;
}

.video-content h3 a:hover {
  color: var(--accent-strong);
}

.video-content p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 34px;
  }

  .hero-panel {
    display: grid;
    grid-template-columns: 96px 1fr;
    align-items: center;
    gap: 18px;
    padding: 18px;
  }

  .hero-panel img {
    width: 96px;
    margin: 0;
  }

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

@media (max-width: 620px) {
  .site-header,
  .hero,
  .videos-section,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  .site-header {
    min-height: 104px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding-top: 18px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .site-nav a {
    flex: 1;
    text-align: center;
  }

  .hero {
    gap: 30px;
    padding: 24px 0 44px;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.08;
    max-width: 17rem;
  }

  .hero-copy p {
    margin-top: 22px;
    font-size: 1rem;
    line-height: 1.62;
  }

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

  .section-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-panel {
    width: 100%;
    grid-template-columns: 70px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
    overflow: hidden;
  }

  .hero-panel img {
    width: 70px;
  }

  .panel-label,
  .video-meta {
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .panel-title {
    font-size: 1.08rem;
    overflow-wrap: anywhere;
  }

  .videos-section {
    padding-top: 34px;
  }
}

@media (max-width: 380px) {
  .hero-panel {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .hero-panel img {
    width: 56px;
  }

  .panel-label {
    font-size: 0.64rem;
  }

  .panel-title {
    font-size: 1rem;
  }
}
