:root {
  color-scheme: dark;
  --bg: #101114;
  --bg-soft: #15161a;
  --panel: #191a20;
  --text: #f4f3f8;
  --muted: #a5a3b1;
  --line: rgba(255, 255, 255, 0.1);
  --lime: #c4f36b;
  --purple: #b8a1ff;
  --pink: #f28cc8;
  --font: "Space Grotesk", sans-serif;
  --mono: "DM Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

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

body,
button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 5px;
}

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

.page-shell {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 max(24px, calc((100vw - 1160px) / 2));
  background: rgba(16, 17, 20, 0.88);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.06em;
}

.brand-accent {
  color: var(--lime);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(196, 243, 107, 0.5);
  border-radius: 10px;
  color: var(--lime);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: -0.12em;
}

.brand-mark i {
  color: var(--purple);
  font-style: normal;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
  color: #c4c2cd;
  font-size: 0.88rem;
}

.nav-links a:not(.nav-cta) {
  transition: color 0.2s ease;
}

.nav-links a:not(.nav-cta):hover,
.nav-links a.active {
  color: var(--text);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(196, 243, 107, 0.45);
  border-radius: 8px;
  color: var(--lime);
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-cta:hover {
  background: var(--lime);
  color: #171a10;
}

.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  width: 17px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hamburger.toggle span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.toggle span:nth-child(2) {
  opacity: 0;
}

.hamburger.toggle span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 55px;
  min-height: 640px;
  padding-top: 45px;
  padding-bottom: 70px;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 8px 1px 0;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px rgba(196, 243, 107, 0.75);
}

.hero h1 {
  margin-top: 23px;
  font-size: clamp(3.8rem, 7vw, 6.6rem);
  line-height: 0.97;
  letter-spacing: -0.09em;
}

.title-highlight {
  color: var(--lime);
}

.title-cursor {
  color: var(--purple);
  animation: blink 1s steps(2, start) infinite;
}

@keyframes blink {
  to {
    visibility: hidden;
  }
}

.hero-tagline {
  margin-top: 17px;
  color: var(--purple);
  font-family: var(--mono);
  font-size: 1.15rem;
  letter-spacing: 0.015em;
}

.hero-description {
  max-width: 440px;
  margin-top: 17px;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.button-primary {
  background: var(--lime);
  color: #171a10;
}

.button-primary:hover {
  background: #d3fb8a;
}

.button-quiet {
  border: 1px solid var(--line);
  color: var(--text);
}

.button-quiet:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.play-icon {
  color: var(--pink);
  font-size: 0.72rem;
}

.hero-note {
  margin-top: 25px;
  color: #777582;
  font-family: var(--mono);
  font-size: 0.73rem;
}

.hero-note span {
  margin-right: 7px;
  color: var(--pink);
}

.quest-art {
  position: relative;
  display: grid;
  min-height: 440px;
  place-items: center;
  isolation: isolate;
}

.quest-art::before {
  position: absolute;
  z-index: -2;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(153, 117, 255, 0.19), rgba(153, 117, 255, 0) 68%);
  content: "";
}

.art-orbit {
  position: absolute;
  z-index: -1;
  width: 350px;
  height: 350px;
  border: 1px solid rgba(184, 161, 255, 0.13);
  border-radius: 50%;
  transform: rotate(-27deg) scaleY(0.44);
}

.orbit-two {
  width: 410px;
  height: 410px;
  border-color: rgba(196, 243, 107, 0.12);
  transform: rotate(37deg) scaleY(0.45);
}

.quest-window {
  z-index: 1;
  width: min(100%, 410px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 13px;
  background: #17181e;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45), 0 0 55px rgba(157, 129, 255, 0.12);
  transform: rotate(-3deg);
}

.window-bar {
  display: flex;
  height: 43px;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: #777582;
  font-family: var(--mono);
  font-size: 0.62rem;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef7d7d;
}

.window-dots i:nth-child(2) {
  background: #f3c96c;
}

.window-dots i:nth-child(3) {
  background: var(--lime);
}

.window-menu {
  font-size: 1rem;
  letter-spacing: 0.1em;
}

.terminal-content {
  padding: 26px 29px 30px;
  color: #e6e2ef;
  font-family: var(--mono);
  font-size: clamp(0.74rem, 1.4vw, 0.88rem);
  line-height: 2.05;
}

.terminal-comment {
  margin-bottom: 13px;
  color: #777582;
}

.terminal-purple {
  color: var(--purple);
}

.terminal-green {
  color: var(--lime);
}

.terminal-orange {
  color: #ffc17a;
}

.terminal-indent {
  padding-left: 21px;
}

.terminal-run {
  margin-top: 17px;
  color: #adabb8;
}

.terminal-prompt {
  color: var(--pink);
}

.terminal-cursor {
  color: var(--lime);
  animation: blink 1s steps(2, start) infinite;
}

.spark {
  position: absolute;
  color: var(--lime);
  font-size: 1.8rem;
}

.spark-one {
  top: 57px;
  right: 58px;
}

.spark-two {
  bottom: 93px;
  left: 28px;
  color: var(--pink);
  font-size: 1.45rem;
}

.pixel-token {
  position: absolute;
  display: grid;
  width: 55px;
  height: 55px;
  place-items: center;
  border: 1px solid rgba(196, 243, 107, 0.4);
  border-radius: 15px;
  background: rgba(196, 243, 107, 0.09);
  box-shadow: 0 10px 35px rgba(196, 243, 107, 0.08);
  transform: rotate(12deg);
}

.pixel-token span {
  width: 17px;
  height: 17px;
  background: var(--lime);
  box-shadow: 8px 0 var(--lime), 0 8px var(--lime), 8px 8px var(--lime), 4px 4px #8dc94c;
  transform: scale(0.65);
}

.token-one {
  top: 70px;
  left: 19px;
}

.token-two {
  right: 8px;
  bottom: 84px;
  width: 43px;
  height: 43px;
  border-color: rgba(242, 140, 200, 0.42);
  background: rgba(242, 140, 200, 0.08);
  transform: rotate(-13deg);
}

.token-two span {
  background: var(--pink);
  box-shadow: 8px 0 var(--pink), 0 8px var(--pink), 8px 8px var(--pink), 4px 4px #bf6095;
}

.art-label {
  position: absolute;
  right: 12px;
  bottom: 36px;
  color: #7f7d8a;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
}

.label-icon {
  padding: 4px 7px;
  border: 1px solid rgba(196, 243, 107, 0.35);
  border-radius: 5px;
  color: var(--lime);
}

.label-divider {
  margin: 0 7px;
  color: var(--purple);
}

.channel-section {
  padding: 92px 0 84px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(ellipse at 12% 18%, rgba(169, 139, 255, 0.06), transparent 31%),
    var(--bg-soft);
}

.section-heading {
  max-width: 630px;
  margin: 0 auto 42px;
  text-align: center;
}

.heading-slash {
  color: var(--lime);
}

.section-heading h2,
.latest-heading h2 {
  margin-top: 12px;
  font-size: clamp(2.1rem, 4vw, 3.25rem);
  line-height: 1.1;
  letter-spacing: -0.065em;
}

.section-heading h2 span,
.latest-heading h2 span {
  color: var(--purple);
}

.section-heading > p:last-child {
  margin-top: 13px;
  color: var(--muted);
  font-size: 0.95rem;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 19px;
}

.path-card {
  position: relative;
  min-height: 255px;
  overflow: hidden;
  padding: 25px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: border-color 0.2s ease, transform 0.2s ease;
}

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

.path-code:hover {
  border-color: rgba(196, 243, 107, 0.42);
}

.path-game:hover {
  border-color: rgba(242, 140, 200, 0.42);
}

.path-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.path-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.code-icon {
  background: rgba(196, 243, 107, 0.1);
  color: var(--lime);
}

.game-icon {
  background: rgba(242, 140, 200, 0.1);
  color: var(--pink);
}

.path-number {
  color: #81808c;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
}

.path-card h3 {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  font-size: 1.5rem;
  letter-spacing: -0.04em;
}

.path-card > p {
  position: relative;
  z-index: 1;
  max-width: 360px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
}

.path-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  gap: 10px;
  margin-top: 20px;
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 600;
}

.path-game .path-link {
  color: var(--pink);
}

.path-decoration {
  position: absolute;
  right: 24px;
  bottom: -38px;
  color: rgba(196, 243, 107, 0.08);
  font-family: var(--mono);
  font-size: 9rem;
  font-weight: 700;
  letter-spacing: -0.15em;
}

.game-decoration {
  right: 26px;
  bottom: -34px;
  color: rgba(242, 140, 200, 0.09);
  font-family: var(--font);
  font-size: 8rem;
}

.about-strip {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 20px;
  padding: 22px 25px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
}

.about-avatar {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 2px solid rgba(184, 161, 255, 0.55);
  border-radius: 50%;
}

.about-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy {
  flex: 1;
}

.about-copy .eyebrow {
  font-size: 0.62rem;
}

.about-copy h3 {
  margin-top: 3px;
  font-size: 1.14rem;
}

.about-copy > p:last-child {
  max-width: 600px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
}

.about-link,
.text-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: var(--lime);
  font-size: 0.81rem;
  font-weight: 600;
}

.latest {
  padding-top: 88px;
  padding-bottom: 100px;
}

.latest-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}

.latest-heading h2 {
  margin-top: 8px;
}

.text-link {
  margin-bottom: 5px;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.video-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.24);
}

.video-wrap iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 8px;
  background: #08090b;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0d0e11;
}

.footer-inner {
  display: flex;
  width: min(1160px, calc(100% - 48px));
  min-height: 94px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
}

.footer-brand {
  font-size: 1.05rem;
}

.footer-brand .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.7rem;
}

.footer-inner > p {
  color: #777582;
  font-size: 0.76rem;
}

.footer-inner > p span {
  color: var(--pink);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  color: #898794;
  font-size: 0.73rem;
}

.footer-links a {
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--lime);
}

@media (max-width: 900px) {
  .hero {
    gap: 25px;
    min-height: 570px;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 8vw, 5.3rem);
  }

  .quest-art {
    min-height: 390px;
  }

  .art-orbit {
    width: 300px;
    height: 300px;
  }

  .orbit-two {
    width: 350px;
    height: 350px;
  }

  .footer-inner {
    flex-wrap: wrap;
    padding-top: 23px;
    padding-bottom: 23px;
  }
}

@media (max-width: 700px) {
  html {
    scroll-padding-top: 72px;
  }

  .page-shell {
    width: min(100% - 36px, 520px);
  }

  .site-nav {
    height: 68px;
    padding: 0 18px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: absolute;
    top: 67px;
    left: 0;
    right: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 20px;
    border-bottom: 1px solid var(--line);
    background: rgba(16, 17, 20, 0.98);
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
  }

  .nav-links li {
    padding: 12px 2px;
  }

  .nav-links .nav-cta {
    justify-content: center;
    margin-top: 5px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: 68px;
    padding-bottom: 48px;
  }

  .hero h1 {
    font-size: clamp(4rem, 15vw, 5.5rem);
  }

  .hero-description {
    max-width: 420px;
  }

  .quest-art {
    min-height: 360px;
    margin-top: 2px;
  }

  .quest-window {
    width: min(100% - 34px, 410px);
  }

  .art-orbit {
    width: 280px;
    height: 280px;
  }

  .orbit-two {
    width: 330px;
    height: 330px;
  }

  .token-one {
    left: 4px;
  }

  .token-two {
    right: 1px;
  }

  .spark-one {
    right: 30px;
  }

  .channel-section {
    padding: 68px 0 62px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

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

  .path-card {
    min-height: 235px;
    padding: 22px;
  }

  .about-strip {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    padding: 19px;
  }

  .about-copy {
    min-width: calc(100% - 78px);
  }

  .about-link {
    margin-left: 72px;
  }

  .latest {
    padding-top: 67px;
    padding-bottom: 72px;
  }

  .latest-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
  }

  .video-wrap {
    padding: 6px;
    border-radius: 10px;
  }

  .video-wrap iframe {
    border-radius: 6px;
  }

  .footer-inner {
    width: min(100% - 36px, 520px);
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }

  .footer-links {
    gap: 15px;
  }
}

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