:root {
  --bg: #050403;
  --ink: #f6efe4;
  --mute: #8f877a;
  --red: #ff2d1a;
  --ember: #ff6a2a;
  --line: rgba(246, 239, 228, 0.1);
  --font-display: "Syne", "Noto Sans SC", "Noto Sans TC", sans-serif;
  --font-body: "Noto Sans SC", "Noto Sans TC", "Syne", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(255, 45, 26, 0.18), transparent 60%),
    radial-gradient(700px 420px at 8% 90%, rgba(255, 106, 42, 0.08), transparent 55%),
    #050403;
  font-family: var(--font-body);
  overflow-x: hidden;
}

.glyph {
  position: fixed;
  right: -4vw;
  bottom: -16vh;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(14rem, 40vw, 32rem);
  line-height: 0.78;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 45, 26, 0.22);
  pointer-events: none;
  user-select: none;
  transform: rotate(-8deg);
  animation: drift 16s ease-in-out infinite alternate;
  z-index: 0;
}

.scan {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.06) 4px
  );
  opacity: 0.4;
  z-index: 1;
}

main,
.foot { position: relative; z-index: 2; }

.top {
  position: relative;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem clamp(1.25rem, 4vw, 3.5rem);
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

.top-end { display: flex; align-items: center; gap: 0.75rem; }

.lang-switch { position: relative; }

.lang-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-btn:hover,
.lang-btn[aria-expanded="true"] {
  border-color: rgba(255, 106, 42, 0.5);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 10.5rem;
  max-height: min(60vh, 22rem);
  overflow: auto;
  padding: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: #120c0a;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
  z-index: 60;
}

.lang-menu[hidden] { display: none !important; }

html[dir="rtl"] .lang-menu {
  right: auto;
  left: 0;
}

.lang-option {
  display: block;
  width: 100%;
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: start;
  padding: 0.55rem 0.7rem;
  border-radius: 0.55rem;
  cursor: pointer;
}

.lang-option:hover { background: rgba(255, 45, 26, 0.12); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  min-height: calc(100svh - 4.8rem);
  padding: 1rem clamp(1.25rem, 5vw, 4rem) 2.5rem;
}

.hero-copy { max-width: 34rem; }

.eyebrow,
.section-kicker {
  margin: 0 0 1rem;
  color: var(--ember);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.045em;
}

.line { display: block; }

.line.en {
  font-size: clamp(2.1rem, 5.8vw, 4.6rem);
}

.line.zh {
  margin-top: 0.06em;
  font-size: clamp(3.8rem, 13vw, 8.5rem);
  color: var(--red);
  text-shadow: 0 0 48px rgba(255, 45, 26, 0.4);
}

.lead {
  margin: 1.2rem 0 0;
  max-width: 22rem;
  color: var(--mute);
  font-size: 1.08rem;
  line-height: 1.6;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.85rem;
}

.tweet-shot {
  margin: 0;
  justify-self: end;
  width: min(100%, 620px);
}

.tweet-shot a { display: block; }

.tweet-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.55),
    0 0 80px rgba(255, 45, 26, 0.12);
  background: #fff;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn.follow {
  background: var(--red);
  color: #fff8f2;
  font-weight: 700;
  padding-left: 0.55rem;
}

.btn.follow img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.btn.follow:hover { background: #ff4735; }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn.ghost:hover {
  border-color: var(--ember);
  color: #fff;
}

.btn.host-follow {
  padding-left: 1.2rem;
  padding-right: 1.2rem;
  align-self: center;
}

.credits {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.35rem;
  padding: 1.35rem clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.credits a {
  color: var(--mute);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.credits a:hover { color: var(--ink); }

.pulse {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.stat {
  padding: 1.35rem 1rem;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  letter-spacing: -0.03em;
}

.stat span {
  color: var(--mute);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.meaning {
  padding: 4rem clamp(1.25rem, 5vw, 4rem);
  max-width: 680px;
}

.meaning h2 {
  margin: 0 0 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
}

.meaning p {
  margin: 0;
  color: var(--mute);
  font-size: 1.08rem;
  line-height: 1.8;
}

.host {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.1rem 1.35rem;
  align-items: center;
  margin: 0 clamp(1.25rem, 4vw, 3.5rem) 2.5rem;
  padding: 1.4rem 0;
  border-top: 1px solid var(--line);
}

.host-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 45, 26, 0.4);
}

.host-body .section-kicker { margin-bottom: 0.35rem; }

.host-body h2 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.host-body h2 span {
  color: var(--mute);
  font-weight: 600;
  font-size: 0.78em;
}

.host-bio {
  margin: 0;
  color: var(--mute);
  max-width: 34rem;
  line-height: 1.6;
  font-size: 0.98rem;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.4rem clamp(1.25rem, 4vw, 3.5rem) 2.4rem;
  color: var(--mute);
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
}

.copy-inline {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 45, 26, 0.45);
  padding: 0;
}

.copy-inline:hover,
.copy-inline.copied { color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .eyebrow,
  .line,
  .lead,
  .actions,
  .tweet-shot {
    animation: rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .eyebrow { animation-delay: 0.06s; }
  .line.en { animation-delay: 0.14s; }
  .line.zh { animation-name: slam; animation-delay: 0.26s; }
  .lead { animation-delay: 0.4s; }
  .actions { animation-delay: 0.52s; }
  .tweet-shot { animation-delay: 0.22s; }
}

@keyframes rise {
  from { transform: translateY(16px); }
  to { transform: translateY(0); }
}

@keyframes slam {
  0% { transform: translateY(24px) scale(0.97); }
  100% { transform: translateY(0) scale(1); }
}

@keyframes drift {
  from { transform: rotate(-8deg) translate3d(0, 0, 0); }
  to { transform: rotate(-5deg) translate3d(-2vw, -2vh, 0); }
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 0.5rem;
  }
  .tweet-shot {
    order: -1;
    justify-self: stretch;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .pulse { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .host {
    grid-template-columns: auto 1fr;
  }

  .host-follow {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .credits {
    gap: 0.45rem 1rem;
    justify-content: flex-start;
  }
}
