:root {
  --font-sans: 'Space Grotesk', sans-serif;
  --font-serif: 'DM Serif Display', serif;
  --black: #09090b;
  --white: #fafafa;
  --muted: #71717a;
  --dim: #3f3f46;
}

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

body {
  font-family: var(--font-sans);
  background: var(--black);
  color: var(--white);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}

.bg-glow {
  position: fixed;
  top: -30%;
  left: -15%;
  width: 55%;
  height: 80%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(167,139,250,0.07), transparent 70%);
  pointer-events: none;
  z-index: -1;
  animation: glowDrift 25s ease-in-out infinite alternate;
}

@keyframes glowDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(8%, 12%) scale(1.1); }
  100% { transform: translate(-3%, 5%) scale(0.95); }
}

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

.layout {
  display: flex;
  flex-direction: column;
}

.hero-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 5rem 3rem;
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.hero-left {
  display: flex;
  flex-direction: column;
}

.hero-tag {
  display: inline-block;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  font-weight: 500;
  animation: fadeUp 0.8s ease both;
}

.hero-line {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(5rem, 14vw, 12rem);
  line-height: 0.88;
  letter-spacing: -0.02em;
  color: var(--white);
  animation: splitIn 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-line-1 { animation-delay: 0.3s; }

.hero-line-2 {
  animation-delay: 0.45s;
  margin-left: 10%;
  color: var(--black);
  -webkit-text-stroke: 2px rgba(255,255,255,0.25);
  paint-order: stroke fill;
}

@keyframes splitIn {
  from { opacity: 0; transform: translateY(50px) skewY(2deg); }
  to   { opacity: 1; transform: translateY(0) skewY(0deg); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-logo-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--white);
  transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  animation: fadeUp 0.8s ease 0.3s both;
}

.hero-logo-link:hover {
  opacity: 0.8;
  transform: scale(1.02);
}

.hero-logo-svg {
  width: 140px;
  height: auto;
  fill: currentColor;
}

.hero-right {
  animation: fadeUp 1s ease 0.6s both;
}

.about-heading {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.about-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.75;
  margin-bottom: 1.75rem;
}

.about-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dim);
  flex-shrink: 0;
}

.is-live .status-dot {
  background: #22c55e;
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

.status-text {
  font-size: 0.78rem;
  color: var(--dim);
  letter-spacing: 0.02em;
}

.hero-scroll-cue {
  margin-top: 4rem;
  display: flex;
  justify-content: center;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.5));
  animation: scrollDrop 2.2s infinite;
}

@keyframes scrollDrop {
  0%   { top: -100%; }
  100% { top: 100%; }
}

.links-section,
.stream-section {
  position: relative;
}

.links-section::before,
.stream-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06) 30%, rgba(255,255,255,0.06) 70%, transparent);
}

.links-section {
  padding: 5rem 5rem;
}

.links-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.links-label {
  font-size: 0.8rem;
  color: var(--dim);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  font-weight: 500;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.07);
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  font-family: var(--font-sans);
}

.pill svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  opacity: 0.5;
  transition: opacity 0.3s;
}

.pill:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--white);
  background: rgba(255,255,255,0.03);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.pill:hover svg { opacity: 1; }

.stream-section {
  padding: 4rem 5rem;
}

.stream-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 1200px;
  margin: 0 auto 1.5rem;
}

.stream-label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dim);
  font-weight: 600;
}

.stream-live-badge {
  display: none;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.7rem 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.15);
  font-size: 0.72rem;
  font-weight: 700;
  color: #ef4444;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stream-live-badge .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  animation: livePulse 1.5s infinite;
}

.is-live .stream-live-badge {
  display: inline-flex;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.3; }
}

.stream-wrapper {
  max-width: 1200px;
  margin: 0 auto;
}

.stream-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.02);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.stream-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.b-footer {
  padding: 3rem 5rem;
  text-align: center;
  color: var(--dim);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.b-footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.3s;
}

.b-footer a:hover {
  color: var(--white);
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.08); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

::selection { background: rgba(167, 139, 250, 0.4); color: #fff; }

@media (max-width: 1000px) {
  .hero-section { padding: 4rem 3rem 3rem; }
  .hero-inner { gap: 3.5rem; }
  .hero-line { font-size: clamp(4rem, 12vw, 8rem); }
  .links-section { padding: 4rem 3rem; }
  .stream-section { padding: 3rem; }
  .b-footer { padding: 2.5rem 3rem; }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 3.5rem 1.5rem 2rem;
    min-height: auto;
    padding-top: max(3.5rem, env(safe-area-inset-top, 3.5rem));
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    text-align: center;
  }
  .hero-left {
    align-items: center;
  }
  .hero-tag {
    margin-bottom: 1.25rem;
    font-size: 0.7rem;
    letter-spacing: 0.25em;
  }
  .hero-line {
    font-size: clamp(4rem, 20vw, 7rem);
    letter-spacing: normal;
  }

  .bg-glow {
    top: -20%;
    left: -30%;
    width: 120%;
    height: 60%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167,139,250,0.06), transparent 70%);
  }
  .hero-line-1 {
    position: relative;
    left: -0.75rem;
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.3);
  }
  .hero-line-2 {
    position: relative;
    left: 0.75rem;
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.3);
  }
  .hero-right { text-align: left; }
  .about-heading { font-size: 1.2rem; margin-bottom: 1rem; }
  .about-text {
    font-size: 0.88rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
  }
  .about-status { justify-content: flex-start; }
  .hero-scroll-cue { display: none; }
  .links-section { padding: 2.5rem 1.5rem; }
  .links-label { font-size: 0.72rem; margin-bottom: 1.25rem; }
  .pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
  }
  .pill {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    font-size: 0.82rem;
    min-height: 44px;
  }
  .pill svg {
    width: 16px;
    height: 16px;
    justify-self: center;
  }
  .stream-section { padding: 2.5rem 1.5rem; }
  .stream-embed {
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  }
  .b-footer { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 2.5rem 1.25rem 1.5rem;
    padding-top: max(2.5rem, env(safe-area-inset-top, 2.5rem));
  }
  .hero-tag {
    font-size: 0.65rem;
    margin-bottom: 1rem;
    letter-spacing: 0.22em;
  }
  .hero-line {
    font-size: clamp(3.5rem, 19vw, 5.5rem);
    line-height: 0.92;
    letter-spacing: normal;
  }

  .bg-glow {
    top: -15%;
    left: -40%;
    width: 140%;
    height: 50%;
    background: radial-gradient(circle, rgba(167,139,250,0.05), transparent 65%);
  }
  .hero-line-1 {
    position: relative;
    left: -0.6rem;
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
  }
  .hero-line-2 {
    position: relative;
    left: 0.6rem;
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
  }
  .about-heading { font-size: 1.1rem; }
  .about-text { font-size: 0.84rem; line-height: 1.65; }
  .status-text { font-size: 0.72rem; }
  .links-section { padding: 2rem 1.25rem; }
  .links-label { font-size: 0.68rem; }

  .pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }
  .pill {
    display: grid;
    grid-template-columns: 18px 1fr;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    font-size: 0.8rem;
    border-radius: 12px;
    min-height: 44px;
  }
  .pill svg {
    width: 15px;
    height: 15px;
    justify-self: center;
  }

  .stream-section { padding: 2rem 1.25rem; }
  .stream-embed {
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
  }
  .stream-header { margin-bottom: 1rem; }
  .b-footer {
    padding: 1.75rem 1.25rem;
    padding-bottom: max(1.75rem, env(safe-area-inset-bottom, 1.75rem));
    font-size: 0.7rem;
  }
}

@media (max-width: 360px) {
  .hero-section { padding: 2rem 1rem 1.25rem; }
  .hero-line {
    font-size: clamp(3rem, 18vw, 4.5rem);
  }
  .about-text { font-size: 0.8rem; line-height: 1.6; }
  .pills {
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .pill {
    font-size: 0.75rem;
    padding: 0.6rem 0.75rem;
  }
  .links-section { padding: 1.75rem 1rem; }
  .stream-section { padding: 1.75rem 1rem; }
  .b-footer { padding: 1.5rem 1rem; }
}

@media (max-height: 500px) and (orientation: landscape) {
  .hero-section {
    min-height: auto;
    padding: 2rem 3rem;
  }
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .hero-line { font-size: clamp(2.5rem, 8vw, 4rem); }
  .hero-scroll-cue { display: none; }
}
