/* ============================================================
   ERHU STUDIO - Acid Brutalist / Swiss Kinetic
   ============================================================ */

:root {
  --bg: #0b0b0a;
  --bg-2: #111110;
  --ink: #f4f1e8;
  --ink-dim: #a3a096;
  --ink-mute: #6b685f;
  --line: rgba(244, 241, 232, 0.12);
  --line-strong: rgba(244, 241, 232, 0.28);
  --acid: #d8ff3c;
  --acid-2: #b8e000;
  --hot: #ff4d2e;
  --card: #141412;
  --card-hi: #1b1b18;

  --display: 'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --mono: 'Space Mono', ui-monospace, monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

::selection { background: var(--acid); color: #000; }

/* ============================================================
   BACKGROUND
   ============================================================ */
.bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg__noise {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.5;
  mix-blend-mode: overlay;
}

.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(244,241,232,0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244,241,232,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 85%);
}

.bg__glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216,255,60,0.16), rgba(216,255,60,0) 65%);
  left: 0; top: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease;
  will-change: transform;
}

.bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}
.bg__orb--1 {
  width: 480px; height: 480px;
  background: #d8ff3c;
  top: -120px; right: -80px;
  opacity: 0.12;
  animation: orbDrift 18s ease-in-out infinite alternate;
}
.bg__orb--2 {
  width: 560px; height: 560px;
  background: #ff4d2e;
  bottom: -180px; left: -120px;
  opacity: 0.09;
  animation: orbDrift 22s ease-in-out infinite alternate-reverse;
}

@keyframes orbDrift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(60px,40px) scale(1.15); }
}

.bg__scan {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(0,0,0,0.25) 3px,
    rgba(0,0,0,0.25) 4px
  );
  opacity: 0.35;
  mix-blend-mode: multiply;
}

/* ============================================================
   TOP BAR
   ============================================================ */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
  mix-blend-mode: difference;
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: var(--ink);
}
.topbar__mark {
  width: 10px; height: 10px;
  background: var(--acid);
  display: inline-block;
  animation: markPulse 1.6s ease-in-out infinite;
}
@keyframes markPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.5; }
}
.topbar__meta {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar__sep { opacity: 0.4; }
.topbar__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--acid);
}
.topbar__live i {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--acid);
  display: inline-block;
  animation: liveBlink 1.2s ease-in-out infinite;
}
@keyframes liveBlink {
  0%,100% { opacity: 1; }
  50% { opacity: 0.2; }
}
.topbar b { color: var(--ink); font-weight: 700; }

/* ============================================================
   STAGE
   ============================================================ */
.stage {
  position: relative;
  z-index: 1;
  max-width: 1440px;
  margin: 0 auto;
  padding: 110px 40px 60px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  align-items: center;
  min-height: calc(100dvh - 140px);
  padding-bottom: 40px;
}

.hero__kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero__kicker span {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.hero__kicker span:first-child {
  background: var(--acid);
  color: #000;
  border-color: var(--acid);
}

.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.2rem, 8.5vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}
.hero__title .line {
  display: block;
  overflow: hidden;
}
.hero__title .line__inner {
  display: inline-block;
  will-change: transform;
}
.hero__title .line > * {
  display: inline-block;
}
.line--italic {
  font-style: italic;
  font-weight: 600;
  color: var(--acid);
}

.hero__sub {
  max-width: 540px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-dim);
  margin-bottom: 40px;
}
.hero__cn {
  display: block;
  margin-top: 10px;
  font-family: var(--display);
  font-size: 15px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.3s, color 0.3s, box-shadow 0.3s;
  position: relative;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.btn--primary {
  background: var(--acid);
  color: #000;
  border-color: var(--acid);
  box-shadow: 6px 6px 0 var(--ink);
}
.btn--primary:hover {
  transform: translate(-3px,-3px);
  box-shadow: 9px 9px 0 var(--ink);
}
.btn--primary:hover svg { transform: translateX(4px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--ink);
  color: #000;
}
.btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }

/* HERO DISC */
.hero__right {
  display: flex;
  justify-content: center;
  align-items: center;
}
.disc {
  position: relative;
  width: min(420px, 80vw);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.disc__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
}
.disc__ring::before {
  content: '';
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  border: 1px dashed var(--line);
  animation: spin 40s linear infinite;
}
.disc__ring--2 {
  inset: 40px;
  border-color: var(--acid);
  border-style: dashed;
  opacity: 0.5;
  animation: spin 24s linear infinite reverse;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.disc__core {
  position: relative;
  z-index: 2;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--card-hi), var(--bg-2));
  border: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 0 80px rgba(216,255,60,0.12), inset 0 0 40px rgba(0,0,0,0.6);
}
.disc__num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  color: var(--acid);
  line-height: 1;
}
.disc__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.25em;
  color: var(--ink-mute);
}
.disc__text {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: spin 30s linear infinite;
}
.disc__textpath {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.32em;
  fill: var(--ink-dim);
  text-transform: uppercase;
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  position: relative;
  width: 106vw;
  left: 50%;
  margin-left: -53vw;
  margin-top: 20px;
  margin-bottom: 80px;
  padding: 22px 0;
  background: var(--acid);
  color: #000;
  overflow: hidden;
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  transform: rotate(-1.2deg);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 28px;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.02em;
  text-transform: uppercase;
  animation: marquee 28s linear infinite;
  width: max-content;
}
.marquee__track i {
  font-style: normal;
  color: #000;
  opacity: 0.5;
  font-size: 0.6em;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ============================================================
   NUMBERS
   ============================================================ */
.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 100px;
}
.num {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-right: 1px solid var(--line);
  position: relative;
}
.num:last-child { border-right: none; }
.num__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.num__value {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: -0.04em;
  line-height: 1;
}
.num__cn {
  font-size: 13px;
  color: var(--ink-dim);
}
.num--accent .num__value { color: var(--acid); }
.num--accent {
  background: linear-gradient(180deg, rgba(216,255,60,0.06), transparent);
}

/* ============================================================
   CHANNELS
   ============================================================ */
.channels { margin-bottom: 100px; }
.channels__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.channels__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.channels__title .line { display: block; overflow: hidden; }
.channels__title .line__inner { display: inline-block; will-change: transform; }
.channels__sub {
  max-width: 360px;
  color: var(--ink-dim);
  font-size: 15px;
}
.channels__sub .cn {
  display: block;
  margin-top: 6px;
  color: var(--ink-mute);
  font-size: 13px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

/* CARD */
.card {
  position: relative;
  background: var(--card);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-height: 260px;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.4s var(--ease), transform 0.5s var(--ease);
  opacity: 0;
  transform: translateY(24px);
}
.card__arrow {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: all 0.3s var(--ease);
  z-index: 2;
  opacity: 0;
  transform: scale(0.6) rotate(0deg);
}
.card.is-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), background 0.4s;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,50%), color-mix(in srgb, var(--cc) 18%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover {
  background: var(--card-hi);
  transform: translateY(-4px);
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.card__logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--cc);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--cc) 35%, transparent);
  transition: transform 0.4s var(--ease-bounce);
}
.card:hover .card__logo { transform: rotate(-8deg) scale(1.08); }
.card__logo img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}
.card__logo img:not([src$=".svg"]) {
  filter: brightness(0) invert(1);
}
.card__idx {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  margin-left: auto;
}
.card__arrow svg { width: 16px; height: 16px; }
.card:hover .card__arrow,
.card.is-in .card__arrow {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.card:hover .card__arrow {
  background: var(--acid);
  color: #000;
  border-color: var(--acid);
  transform: scale(1) rotate(-45deg);
}

.card__mid {
  position: relative;
  z-index: 1;
}
.card__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.card__handle {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
  margin-top: 6px;
  word-break: break-all;
}

.card__stats {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}
.stat .stat__val {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--cc);
}
.card--douyin .stat .stat__val {
  background: linear-gradient(90deg, #25F4EE, #FE2C55);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat .stat__lab {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
}

/* ============================================================
   OUTRO
   ============================================================ */
.outro {
  position: relative;
  padding: 100px 0 60px;
  text-align: center;
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.outro__eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--acid);
  margin-bottom: 24px;
}
.outro__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.outro__title .line { display: block; overflow: hidden; }
.outro__title .line__inner { display: inline-block; will-change: transform; }
.outro__sub {
  max-width: 540px;
  margin: 0 auto;
  color: var(--ink-dim);
  font-size: 16px;
}
.outro__sub .cn {
  display: block;
  margin-top: 8px;
  color: var(--ink-mute);
  font-size: 14px;
}
.outro__bars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
  height: 70px;
  margin-top: 48px;
}
.outro__bars span {
  width: 6px;
  background: var(--acid);
  border-radius: 2px;
  animation: eq 1.1s ease-in-out infinite;
}
.outro__bars span:nth-child(1) { height: 30%; animation-delay: 0s; }
.outro__bars span:nth-child(2) { height: 70%; animation-delay: 0.15s; }
.outro__bars span:nth-child(3) { height: 50%; animation-delay: 0.3s; }
.outro__bars span:nth-child(4) { height: 90%; animation-delay: 0.45s; }
.outro__bars span:nth-child(5) { height: 40%; animation-delay: 0.6s; }
.outro__bars span:nth-child(6) { height: 75%; animation-delay: 0.1s; }
.outro__bars span:nth-child(7) { height: 55%; animation-delay: 0.35s; }
.outro__bars span:nth-child(8) { height: 85%; animation-delay: 0.5s; }
.outro__bars span:nth-child(9) { height: 35%; animation-delay: 0.2s; }
.outro__bars span:nth-child(10) { height: 65%; animation-delay: 0.55s; }
@keyframes eq {
  0%,100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 32px 40px 48px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
}
.footer__brand { color: var(--acid); font-weight: 700; }
.footer__dash { width: 24px; height: 1px; background: var(--line-strong); }
.footer__cn {
  font-family: var(--display);
  text-transform: none;
  letter-spacing: 0.04em;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .stage { padding: 100px 24px 40px; }
  .hero {
    grid-template-columns: 1fr;
    gap: 50px;
    min-height: auto;
    padding-top: 20px;
  }
  .hero__right { order: -1; }
  .disc { width: min(300px, 70vw); }
  .marquee { margin-top: 40px; margin-bottom: 60px; }
  .numbers { grid-template-columns: 1fr; }
  .num { border-right: none; border-bottom: 1px solid var(--line); }
  .num:last-child { border-bottom: none; }
  .channels__head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .topbar { padding: 14px 18px; font-size: 10px; }
  .topbar__meta span:not(.topbar__live):not(.topbar__sep) { display: none; }
  .stage { padding: 90px 18px 40px; }
  .hero__kicker { gap: 6px; }
  .hero__kicker span { font-size: 10px; padding: 5px 10px; }
  .btn { padding: 14px 22px; font-size: 12px; }
  .grid { grid-template-columns: 1fr; }
  .card { min-height: auto; padding: 22px; }
  .marquee { margin-top: 40px; margin-bottom: 60px; transform: rotate(-1.8deg); }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .card { opacity: 1; transform: none; }
}
