@font-face {
  font-family: 'Quicksand';
  src: url('assets/fonts/quicksand-regular.ttf') format('truetype');
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: 'Quicksand';
  src: url('assets/fonts/quicksand-bold.ttf') format('truetype');
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --ink: #0b0910;
  --panel: #121019;
  --purple-deep: #2a1738;
  --purple: #5b2b74;
  --green: #63b82e;
  --cream: #f2e8c9;
  --orange: #e85c2a;
  --muted: #aaa0b4;
  --faint: #7d7584;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgb(91 43 116 / 22%), transparent 31rem),
    radial-gradient(circle at 84% 38%, rgb(99 184 46 / 8%), transparent 30rem),
    var(--ink);
  color: var(--cream);
  font-family: 'Quicksand', Arial, sans-serif;
}

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

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgb(242 232 201 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(242 232 201 / 2%) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
}

.site-header,
.stream-section,
.about-section,
.feature-section,
.emote-section,
.final-cta,
footer {
  width: min(1480px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 88px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgb(242 232 201 / 11%);
}

.brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand img {
  width: 54px;
  height: 54px;
  border: 2px solid var(--purple);
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgb(99 184 46 / 12%);
}

.brand span {
  display: grid;
  gap: 2px;
}

.brand strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.brand small {
  color: var(--green);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: #b7afbe;
  font-size: 0.86rem;
  font-weight: 700;
}

.site-header nav a {
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.site-header nav a:hover,
.site-header nav a:focus-visible {
  color: var(--cream);
}

.twitch-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  border: 1px solid rgb(99 184 46 / 35%);
  border-radius: 8px;
  background: rgb(99 184 46 / 10%);
  color: #dff8cf !important;
}

.twitch-link:hover {
  transform: translateY(-1px);
  background: rgb(99 184 46 / 16%);
}

.stream-section {
  padding: clamp(44px, 7vh, 82px) 0 40px;
}

.stream-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 470px);
  gap: 40px;
  align-items: end;
  margin-bottom: 26px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow-mark {
  display: inline-block;
  width: 9px;
  height: 9px;
  border: 2px solid var(--green);
  transform: rotate(45deg);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.stream-heading h1 {
  max-width: 870px;
  margin-bottom: 0;
  font-size: clamp(2.3rem, 5vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.96;
  text-wrap: balance;
}

.stream-heading > p {
  max-width: 430px;
  margin: 0 0 8px auto;
  color: var(--muted);
  font-size: clamp(0.93rem, 1.3vw, 1.05rem);
  line-height: 1.65;
}

.stream-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgb(242 232 201 / 14%);
  border-radius: 15px;
  background: #070609;
  box-shadow: 0 30px 80px rgb(0 0 0 / 42%), 0 0 0 1px rgb(91 43 116 / 25%);
}

.stream-stage::before {
  position: absolute;
  inset: 0 0 auto;
  z-index: 5;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--green) 42%, var(--orange));
  content: '';
  pointer-events: none;
}

.embed-grid {
  display: grid;
  grid-template-columns: minmax(400px, 1fr) 360px;
  min-height: 560px;
}

.player-frame {
  min-width: 400px;
  background: #050407;
}

.player-frame iframe,
.chat-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.chat-frame {
  position: relative;
  min-height: 500px;
  border-left: 1px solid rgb(242 232 201 / 13%);
  background: var(--ink);
}

.chat-label {
  position: absolute;
  top: 13px;
  right: 15px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border: 1px solid rgb(99 184 46 / 25%);
  border-radius: 999px;
  background: rgb(11 9 16 / 88%);
  color: #dff8cf;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

.signal-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgb(99 184 46 / 12%), 0 0 16px rgb(99 184 46 / 60%);
}

.embed-loading {
  position: absolute;
  inset: 0;
  z-index: 4;
  overflow: hidden;
  background: #08070b;
  opacity: 1;
  transition: opacity 240ms ease;
}

.embed-loading.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.embed-loading > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.embed-loading::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgb(11 9 16 / 74%) 58%);
  content: '';
}

.loading-copy {
  position: absolute;
  top: 50%;
  right: 15%;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 14px;
  max-width: 310px;
  transform: translateY(-50%);
  color: #cfc4d4;
  font-size: 0.86rem;
  line-height: 1.5;
  text-align: center;
}

.loader-mark {
  width: 35px;
  height: 35px;
  border: 3px solid rgb(242 232 201 / 18%);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.embed-error {
  position: absolute;
  inset: auto 20px 20px;
  z-index: 9;
  padding: 12px;
  background: #23122d;
  text-align: center;
}

.stream-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px 26px;
  align-items: center;
  padding: 18px 4px 0;
  color: var(--faint);
  font-size: 0.74rem;
  font-weight: 700;
}

.stream-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.about-section {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
  padding: clamp(85px, 11vw, 160px) 0;
}

.about-art {
  position: relative;
  overflow: hidden;
  border: 1px solid rgb(242 232 201 / 13%);
  border-radius: 14px;
  background: #09070c;
  box-shadow: 0 28px 70px rgb(0 0 0 / 35%);
  transform: rotate(-1.2deg);
}

.about-art::after {
  position: absolute;
  inset: 9px;
  border: 1px solid rgb(99 184 46 / 23%);
  border-radius: 8px;
  content: '';
  pointer-events: none;
}

.about-art img {
  display: block;
  width: 100%;
  aspect-ratio: 2.5 / 1;
  object-fit: cover;
}

.about-copy h2,
.section-title h2,
.emote-copy h2,
.final-cta h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  letter-spacing: -0.055em;
  line-height: 1;
  text-wrap: balance;
}

.about-copy > p,
.emote-copy > p {
  margin: 24px 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #dff8cf;
  font-size: 0.86rem;
  font-weight: 800;
}

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

.feature-section {
  padding: 100px 0 120px;
  border-top: 1px solid rgb(242 232 201 / 8%);
}

.section-title {
  max-width: 760px;
  margin-bottom: 42px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-grid article {
  position: relative;
  min-height: 260px;
  overflow: hidden;
  padding: 30px;
  border: 1px solid rgb(242 232 201 / 11%);
  border-radius: 12px;
  background: linear-gradient(145deg, rgb(24 18 31 / 94%), rgb(12 10 15 / 96%));
}

.feature-grid article::after {
  position: absolute;
  right: -22px;
  bottom: -32px;
  width: 120px;
  height: 120px;
  border: 24px solid rgb(91 43 116 / 12%);
  transform: rotate(45deg);
  content: '';
}

.feature-number {
  display: block;
  margin-bottom: 50px;
  color: var(--green);
  font-family: monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.feature-grid h3 {
  margin-bottom: 12px;
  color: var(--cream);
  font-size: 1.25rem;
}

.feature-grid p {
  max-width: 340px;
  margin-bottom: 0;
  color: #8f8698;
  font-size: 0.88rem;
  line-height: 1.65;
}

.emote-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 60px;
  align-items: center;
  padding: 110px 0;
  border-top: 1px solid rgb(242 232 201 / 8%);
}

.emote-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.emote-row figure {
  position: relative;
  display: grid;
  min-height: 310px;
  margin: 0;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(242 232 201 / 11%);
  border-radius: 13px;
  background: radial-gradient(circle at 50% 38%, rgb(91 43 116 / 30%), transparent 56%), #100c15;
}

.emote-row figure:nth-child(2) {
  transform: translateY(-22px);
  border-color: rgb(99 184 46 / 25%);
}

.emote-row img {
  width: min(88%, 270px);
  height: 250px;
  object-fit: contain;
}

.emote-row figcaption {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 5px 9px;
  border: 1px solid rgb(242 232 201 / 12%);
  border-radius: 5px;
  background: rgb(11 9 16 / 75%);
  color: #c8becd;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.final-cta {
  display: flex;
  min-height: 300px;
  padding: 58px clamp(28px, 5vw, 74px);
  align-items: center;
  justify-content: space-between;
  overflow: hidden;
  border: 1px solid rgb(99 184 46 / 22%);
  border-radius: 15px;
  background:
    linear-gradient(90deg, rgb(11 9 16 / 25%), rgb(11 9 16 / 94%)),
    url('assets/profile-banner.png') left center / cover no-repeat;
}

.final-cta > a {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 10px;
  padding: 15px 19px;
  border: 1px solid #79d33d;
  border-radius: 8px;
  background: var(--green);
  color: #091006;
  font-size: 0.87rem;
  font-weight: 850;
  box-shadow: 0 12px 34px rgb(99 184 46 / 18%);
  transition: transform 180ms ease, background 180ms ease;
}

.final-cta > a:hover {
  transform: translateY(-2px);
  background: #72ca38;
}

footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  min-height: 180px;
  align-items: center;
  color: #77707e;
  font-size: 0.76rem;
}

footer > p {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

footer > a:last-child {
  justify-self: end;
}

.footer-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

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

@media (max-width: 980px) {
  .embed-grid { grid-template-columns: 1fr; }
  .player-frame { min-height: max(300px, 56.25vw); }
  .chat-frame {
    height: 520px;
    border-top: 1px solid rgb(242 232 201 / 13%);
    border-left: 0;
  }
  .about-section,
  .emote-section { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid article { min-height: 210px; }
  .feature-number { margin-bottom: 35px; }
}

@media (max-width: 760px) {
  .site-header,
  .stream-section,
  .about-section,
  .feature-section,
  .emote-section,
  .final-cta,
  footer {
    width: min(100% - 24px, 1480px);
  }
  .site-header nav > a:not(.twitch-link) { display: none; }
  .brand small { display: none; }
  .stream-section { padding-top: 40px; }
  .stream-heading {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .stream-heading > p { margin: 0; }
  .stream-stage { overflow-x: auto; }
  .embed-grid { min-width: 400px; }
  .stream-meta span:last-child { display: none; }
  .loading-copy { right: 8%; }
  .about-section {
    padding: 80px 0;
    grid-template-columns: 1fr;
  }
  .about-art { transform: none; }
  .about-art img { aspect-ratio: 1.55 / 1; }
  .feature-section,
  .emote-section { padding: 80px 0; }
  .emote-row { grid-template-columns: 1fr; }
  .emote-row figure,
  .emote-row figure:nth-child(2) {
    min-height: 280px;
    transform: none;
  }
  .final-cta {
    min-height: 360px;
    padding: 34px 24px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 28px;
    background-position: 25% center;
  }
  footer {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 50px 0;
  }
  footer > a:last-child { justify-self: start; }
}

@media (max-width: 430px) {
  .site-header { min-height: 76px; }
  .brand img { width: 46px; height: 46px; }
  .twitch-link { padding: 9px 11px; font-size: 0.76rem; }
  .stream-heading h1 { font-size: 2.45rem; }
}

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

