:root {
  color-scheme: dark;
  --landing-bg: #030303;
  --landing-surface: rgba(10, 10, 10, 0.78);
  --landing-surface-strong: rgba(15, 15, 15, 0.92);
  --landing-text: #f7f7f7;
  --landing-muted: #cecece;
  --landing-border: rgba(255, 255, 255, 0.12);
  --landing-accent: #ffc800;
  --landing-accent-shadow: rgba(255, 200, 0, 0.34);
  --landing-shadow: rgba(0, 0, 0, 0.48);
}

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

html {
  min-height: 100%;
  background: var(--landing-bg);
}

body.landingPage {
  margin: 0;
  min-height: 100vh;
  color: var(--landing-text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 30%, rgba(181, 0, 82, 0.3), transparent 28%),
    radial-gradient(circle at 80% 72%, rgba(0, 138, 255, 0.22), transparent 25%),
    linear-gradient(180deg, #090909 0%, #020202 100%);
}

body.landingPage::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.72)),
    repeating-linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.025) 0,
      rgba(255, 255, 255, 0.025) 1px,
      transparent 1px,
      transparent 140px
    );
  pointer-events: none;
}

.landingShell {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landingHeader {
  position: relative;
  z-index: 2;
}

.landingNav {
  width: min(100%, calc(100% - 1.25rem));
  margin: 0 auto;
  padding: 1rem 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.landingBrand {
  color: var(--landing-text);
  text-decoration: none;
}

.landingBrandText {
  display: inline-block;
  font-family: "Sora", "Space Grotesk", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.landingSubscribeButton,
.landingChannelButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

.landingSubscribeButton {
  padding: 0.82rem 1.1rem;
  font-size: 0.95rem;
  background: var(--landing-accent);
  color: #121212;
  box-shadow: 0 14px 36px var(--landing-accent-shadow);
}

.landingSubscribeButton:hover,
.landingSubscribeButton:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(255, 200, 0, 0.42);
}

.landingMain {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.75rem 1.5rem;
}

.landingHero {
  position: relative;
  width: min(1180px, 100%);
  min-height: calc(100vh - 5.5rem);
  overflow: hidden;
  border: 1px solid var(--landing-border);
  border-radius: 1.5rem;
  background:
    linear-gradient(140deg, rgba(22, 22, 22, 0.88), rgba(4, 4, 4, 0.92)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 28px 80px var(--landing-shadow);
  isolation: isolate;
}

.landingHero::before,
.landingHero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(28px);
  animation: landingGlow 14s ease-in-out infinite alternate;
}

.landingHero::before {
  width: 30rem;
  height: 30rem;
  left: -8rem;
  bottom: -10rem;
  background: rgba(177, 0, 87, 0.28);
}

.landingHero::after {
  width: 28rem;
  height: 28rem;
  right: -6rem;
  top: 3rem;
  background: rgba(0, 138, 255, 0.2);
  animation-duration: 16s;
}

.landingHeroInner {
  position: relative;
  z-index: 1;
  min-height: inherit;
  max-width: 1000px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.3rem;
  text-align: center;
}

.landingHeroTitle {
  margin: 0;
  font-family: "Sora", "Space Grotesk", sans-serif;
  font-size: clamp(1.75rem, 9vw, 2.6rem);
  line-height: 1;
  font-weight: 800;
  text-wrap: balance;
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.34);
}

.landingAccent {
  color: var(--landing-accent);
}

.landingHeroDescription {
  margin: 0;
  max-width: 48rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--landing-muted);
  text-wrap: balance;
}

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

.landingChannelButton {
  width: 100%;
  padding: 0.35rem 0.4rem 0.35rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.04);
  color: var(--landing-text);
  backdrop-filter: blur(8px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.26);
}

.landingChannelButton:hover,
.landingChannelButton:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
}

.landingChannelIcon {
  width: 2.9rem;
  height: 2.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-size: 1.3rem;
}

.landingSubscribeButton:focus-visible,
.landingChannelButton:focus-visible {
  outline: 2px solid var(--landing-accent);
  outline-offset: 3px;
}

@keyframes landingGlow {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(0, -18px, 0) scale(1.06);
  }
}

@media (min-width: 761px) {
  .landingNav {
    width: min(1180px, calc(100% - 2rem));
    padding-top: 1.25rem;
  }

  .landingBrandText {
    font-size: 0.95rem;
    letter-spacing: 0.2em;
  }

  .landingSubscribeButton {
    padding: 0.9rem 1.5rem;
    font-size: inherit;
  }

  .landingMain {
    padding: 1.75rem 1rem 3rem;
  }

  .landingHero {
    min-height: min(760px, calc(100vh - 6.5rem));
    border-radius: 2rem;
  }

  .landingHeroInner {
    gap: 1.5rem;
    padding: clamp(2rem, 5vw, 2rem);
  }

  .landingHeroTitle {
    font-size: clamp(2rem, 4.8vw, 4.1rem);
    line-height: 1.5;
  }

  .landingHeroDescription {
    font-size: clamp(1rem, 1.8vw, 1.35rem);
  }

  .landingChannelButton {
    width: auto;
    padding: 0.35rem 0.4rem 0.35rem 1.55rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
