:root {
  --bg: #08090d;
  --bg-soft: #0f1118;
  --card: rgba(18, 20, 28, .88);
  --card-solid: #11131a;
  --text: #f7f7fa;
  --muted: #969baa;
  --line: rgba(255,255,255,.09);
  --accent: #9147ff;
  --accent-2: #bf94ff;
  --accent-dark: #4b1b91;
  --danger: #ff385d;
  --radius: 24px;
  --shell: 1220px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 16% -8%, rgba(145,71,255,.16), transparent 32rem),
    linear-gradient(180deg, #090a0f 0%, var(--bg) 44%, #06070a 100%);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  z-index: 999;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.page-glow {
  position: fixed;
  width: 400px;
  height: 400px;
  filter: blur(120px);
  border-radius: 999px;
  pointer-events: none;
  opacity: .14;
}

.glow-one { background: var(--accent); top: 18%; left: -200px; }
.glow-two { background: var(--accent-2); right: -240px; top: 58%; }

.site-header {
  width: min(calc(100% - 40px), 1280px);
  margin: 18px auto 0;
  min-height: 72px;
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  gap: 28px;
  position: sticky;
  top: 14px;
  z-index: 100;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(8,9,13,.75);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 50px rgba(0,0,0,.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -.04em;
  font-family: "Space Grotesk", sans-serif;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  box-shadow: 0 8px 22px rgba(145,71,255,.28);
}

.brand-mark.small { width: 32px; height: 32px; border-radius: 9px; }
.brand-letter { font-size: 21px; font-weight: 900; color: white; }

.nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav a { transition: color .2s ease; }
.nav a:hover { color: #fff; }

.button {
  border: 1px solid transparent;
  min-height: 50px;
  padding: 0 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  transition: .2s ease;
  cursor: pointer;
}

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

.button-small { min-height: 42px; padding-inline: 15px; }

.button-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 32px rgba(145,71,255,.27);
}

.button-ghost,
.button-outline {
  border-color: var(--line);
  background: rgba(255,255,255,.025);
}

.button-light { color: #09090c; background: #fff; }
.play-icon { font-size: 11px; }

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 40px;
  padding-block: 80px 48px;
}

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

.channel-pill {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  margin-bottom: 26px;
  background: rgba(145,71,255,.10);
  border: 1px solid rgba(145,71,255,.25);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  color: #c8a7ff;
}

.live-dot,
.status-dot {
  width: 8px;
  height: 8px;
  display: inline-block;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 0 0 5px rgba(255,56,93,.1);
  animation: pulse 1.6s infinite;
}

@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50% { opacity:.55; transform:scale(.8); }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.hero h1 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(66px, 9vw, 126px);
  line-height: .79;
  letter-spacing: -.075em;
}

.hero h1 span { display: block; }

.hero-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.32);
  opacity: .9;
}

.hero-description {
  max-width: 640px;
  margin: 32px 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 16px;
}

.hero-actions { display: flex; gap: 10px; margin-top: 28px; }

.stats {
  display: flex;
  margin-top: 44px;
  gap: 42px;
}

.stats div { display: grid; gap: 4px; }
.stats strong { font-size: 19px; letter-spacing: -.04em; }
.stats span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .1em;
}

.hero-art {
  min-height: 500px;
  position: relative;
  display: grid;
  place-items: center;
  perspective: 900px;
}

.hero-card {
  position: absolute;
  width: min(88%, 390px);
  aspect-ratio: 4/5;
  border-radius: 34px;
}

.hero-card-back {
  background: linear-gradient(140deg, var(--accent-dark), transparent 70%);
  transform: translate(48px, 22px) rotate(9deg);
  opacity: .52;
  border: 1px solid rgba(255,255,255,.08);
}

.hero-card-main {
  overflow: hidden;
  transform: rotate(-7deg);
  border: 1px solid rgba(255,255,255,.11);
  background:
    linear-gradient(145deg, rgba(255,255,255,.07), transparent 35%),
    radial-gradient(circle at 80% 18%, rgba(191,148,255,.58), transparent 29%),
    linear-gradient(145deg, #17131f, #0b0c11 70%);
  box-shadow: 0 40px 80px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 32px;
}

.hero-card-main::before {
  content: "";
  position: absolute;
  width: 310px;
  height: 310px;
  border: 55px solid rgba(145,71,255,.13);
  border-radius: 50%;
  top: -80px;
  right: -100px;
}

.hero-logo {
  width: 118px;
  height: 118px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: linear-gradient(145deg, var(--accent), var(--accent-dark));
  margin-bottom: auto;
  box-shadow: 0 24px 50px rgba(145,71,255,.25);
}

.hero-logo span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 72px;
  font-weight: 900;
  line-height: 1;
}

.hero-card-main > span {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 900;
  font-size: 36px;
  letter-spacing: -.06em;
}

.hero-card-main small {
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .18em;
  margin-top: 5px;
}

.section {
  padding-block: 58px;
  scroll-margin-top: 110px;
}

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

.section-heading h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(34px, 5vw, 56px);
  letter-spacing: -.055em;
  line-height: 1;
}

.text-link {
  font-size: 13px;
  color: var(--muted);
  font-weight: 700;
  transition: color .2s ease;
}

.text-link:hover { color: #fff; }

.live-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 14px;
}

.media-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-solid);
  box-shadow: 0 25px 70px rgba(0,0,0,.2);
}

.media-topbar {
  min-height: 48px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
}

.media-topbar > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-dot {
  width: 6px;
  height: 6px;
  box-shadow: none;
}

.embed-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 400px;
  background:
    linear-gradient(135deg, rgba(145,71,255,.08), transparent),
    #06070a;
}

.chat-wrap {
  height: 100%;
  min-height: 400px;
  background: #0b0c10;
}

.embed-wrap iframe,
.chat-wrap iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  border: 0;
}

.placeholder {
  min-height: inherit;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 38px;
  text-align: center;
  color: var(--muted);
  line-height: 1.6;
}

.placeholder strong {
  color: #fff;
  display: block;
  font-size: 20px;
  margin-bottom: 8px;
}

.embed-note {
  margin: 14px 4px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

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

.content-card {
  min-height: 290px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 100% 0, rgba(145,71,255,.11), transparent 34%),
    rgba(255,255,255,.025);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: .22s ease;
}

.content-card:hover {
  transform: translateY(-4px);
  border-color: rgba(191,148,255,.35);
  background:
    radial-gradient(circle at 100% 0, rgba(145,71,255,.18), transparent 38%),
    rgba(255,255,255,.04);
}

.content-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(145,71,255,.13);
  border: 1px solid rgba(145,71,255,.22);
  font-weight: 900;
  margin-bottom: 48px;
}

.tag {
  color: var(--accent-2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .13em;
}

.content-card h3 {
  margin: 8px 0 8px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 25px;
  letter-spacing: -.04em;
  line-height: 1.05;
}

.content-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13px;
  max-width: 330px;
}

.content-arrow {
  position: absolute;
  right: 24px;
  top: 24px;
  color: var(--muted);
  font-size: 20px;
}

.cta-card {
  min-height: 400px;
  padding: 38px;
  border-radius: 28px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  position: relative;
}

.prebsz-cta {
  background:
    radial-gradient(circle at 92% 10%, rgba(255,255,255,.11), transparent 29%),
    radial-gradient(circle at 75% 20%, rgba(191,148,255,.27), transparent 28%),
    linear-gradient(145deg, #6131ac, #241238 72%);
}

.cta-card::after {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  right: -100px;
  bottom: -130px;
  border: 55px solid rgba(255,255,255,.05);
}

.cta-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 48px;
  border-radius: 15px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  font-size: 21px;
  font-weight: 900;
}

.cta-card .eyebrow { color: rgba(255,255,255,.67); }

.cta-card h3 {
  max-width: 650px;
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(32px, 5vw, 48px);
  line-height: .98;
  letter-spacing: -.055em;
}

.cta-card p:not(.eyebrow) {
  max-width: 580px;
  color: rgba(255,255,255,.7);
  line-height: 1.65;
}

.cta-card .button { margin-top: auto; }

.footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-inner {
  min-height: 130px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 12px;
}

.footer .brand { color: #fff; font-size: 14px; }

@media (max-width: 1050px) {
  .live-layout { grid-template-columns: 1fr; }
  .chat-wrap { min-height: 500px; }
  .content-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 90px; }
  .hero-art { min-height: 430px; }
}

@media (max-width: 650px) {
  .shell,
  .site-header { width: min(calc(100% - 24px), var(--shell)); }

  .site-header { top: 8px; margin-top: 8px; }
  .site-header .button { display: none; }

  .hero {
    min-height: auto;
    padding-block: 70px 20px;
  }

  .hero h1 { font-size: clamp(58px, 20vw, 90px); }
  .hero-art { min-height: 360px; }
  .hero-card { width: min(80%, 310px); }

  .hero-actions { flex-wrap: wrap; }
  .stats { gap: 24px; flex-wrap: wrap; }

  .section { padding-block: 42px; }
  .section-heading { align-items: flex-start; }
  .section-heading .text-link { display: none; }

  .embed-wrap { min-height: 240px; }
  .chat-wrap { min-height: 460px; }

  .content-grid { grid-template-columns: 1fr; }
  .content-card { min-height: 245px; }

  .cta-card { min-height: 390px; padding: 27px; }

  .footer-inner {
    padding-block: 30px;
    flex-direction: column;
    justify-content: center;
  }
}


/* Twitch v2: official combined Twitch embed */
.twitch-frame {
  overflow: hidden;
}

.twitch-combined-wrap {
  width: 100%;
  height: clamp(560px, 68vw, 760px);
  min-height: 500px;
  background:
    linear-gradient(135deg, rgba(145,71,255,.08), transparent),
    #06070a;
}

.twitch-combined-wrap iframe {
  display: block;
  width: 100% !important;
  height: 100% !important;
  border: 0;
}

.twitch-error {
  min-height: 500px;
  display: grid;
  place-items: center;
  padding: 36px;
  text-align: center;
  color: var(--muted);
  line-height: 1.65;
}

.twitch-error strong {
  display: block;
  color: white;
  font-size: 20px;
  margin-bottom: 10px;
}

.twitch-error .button {
  margin-top: 18px;
}

@media (max-width: 650px) {
  .twitch-combined-wrap {
    height: 720px;
    min-height: 720px;
  }
}


/* Custom uploaded icon/logo */
.image-mark {
  overflow: hidden;
  padding: 0;
}

.image-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.image-logo {
  overflow: hidden;
  padding: 0;
}

.image-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 28px;
}

/* Hide the old letter styling when using image marks */
.image-mark .brand-letter,
.image-logo span {
  display: none;
}
