/* Anime Ansem — PSYOPANIME broadcast clone theme */

:root {
  --red: #c5161b;
  --red-hover: #a91216;
  --cream: #f3e7d2;
  --gold: #e7d8a7;
  --black: #000000;
  --panel: #0c0c0c;
  --ink: #111111;
  --font: "Anton", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  display: block;
  max-width: 100%;
}

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.site-shell {
  width: 100%;
}

.section-inner {
  width: min(1600px, 94vw);
  margin: 0 auto;
  padding: 3% 0;
  position: relative;
  z-index: 2;
}

.section-inner.narrow {
  padding: 1.5% 0 3%;
}

/* Top title */
.top-logo-wrap {
  text-align: center;
  padding: 18px 16px 8px;
  position: relative;
  z-index: 4;
}

.title-img {
  display: block;
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.8));
}

.title-img-top {
  width: min(520px, 88vw);
  margin: 0 auto;
}

.title-img-about {
  width: min(480px, 100%);
  margin-bottom: 12px;
}

.symbol-tag {
  font-size: clamp(28px, 5vw, 42px);
  font-style: italic;
  text-transform: uppercase;
  -webkit-text-stroke: 1px #000;
  text-shadow: 6px 0 0 rgba(90, 3, 3, 0.99);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 18px;
}

.join-header {
  text-align: center;
  margin-bottom: 24px;
}

.title-img-join {
  width: min(420px, 80vw);
  margin: 0 auto;
}

/* Header nav */
.header-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header {
  width: 100%;
  background: var(--red);
  transform: skewX(-10deg);
  transform-origin: center;
}

.header-inner {
  padding: 14px 22px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  transform: skewX(10deg);
}

.site-nav a {
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 16px;
  line-height: 1;
  color: var(--cream);
  padding: 8px 10px;
  border-radius: 8px;
  transform: skewX(-2deg);
  transition: transform 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}

.site-nav a:hover {
  background: rgba(0, 0, 0, 0.18);
  transform: skewX(-2deg) translateY(-1px);
}

.nav-divider {
  color: rgba(243, 231, 210, 0.65);
  font-size: 16px;
  user-select: none;
}

/* Sections + overlays */
.section {
  position: relative;
  width: 100%;
}

.section-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.section-overlay-hero {
  background: radial-gradient(at center right, #a80a0a 0%, transparent 62%);
}

.section-overlay-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0,
    rgba(255, 255, 255, 0.04) 2px,
    transparent 4px,
    transparent 8px
  );
  mix-blend-mode: color-dodge;
}

.section-overlay-about {
  background: radial-gradient(at center center, #770c0c 0%, transparent 57%);
}

.section-overlay-about::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.25;
  background: radial-gradient(ellipse at center, rgba(197, 22, 27, 0.15), transparent 70%);
  mix-blend-mode: color-dodge;
}

.section-overlay-network {
  background: radial-gradient(at center center, #8f1111 0%, transparent 73%);
}

.section-overlay-network::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background: radial-gradient(circle at 30% 50%, rgba(197, 22, 27, 0.2), transparent 55%);
  mix-blend-mode: color-dodge;
}

.section-overlay-join {
  background: linear-gradient(360deg, #470505 0%, transparent 72%);
}

.section-overlay-join::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.2;
  background: radial-gradient(circle at center, rgba(197, 22, 27, 0.25), transparent 60%);
}

/* Hero broadcast */
.hero-wrap {
  width: 100%;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.broadcast {
  width: min(720px, 92vw);
  transform: skewX(-10deg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.55));
  border: 2px solid rgba(197, 22, 27, 0.75);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.7);
}

.broadcast-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  transform: skewX(10deg);
  flex-wrap: wrap;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.12em;
  font-size: 14px;
  color: rgba(243, 231, 210, 0.9);
}

.topbar-right {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 14px rgba(197, 22, 27, 0.85);
  flex-shrink: 0;
}

.dim {
  opacity: 0.65;
}

.chip {
  font-size: 12px;
  letter-spacing: 0.14em;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(243, 231, 210, 0.18);
  background: rgba(0, 0, 0, 0.35);
  color: rgba(243, 231, 210, 0.85);
  text-transform: uppercase;
  white-space: nowrap;
}

.chip a {
  color: inherit;
}

.logo-stage {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background: #000;
  border: 2px solid rgba(243, 231, 210, 0.14);
  overflow: hidden;
  position: relative;
  transform: skewX(10deg);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.65);
}

.logo-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
}

.logo-layer img {
  max-width: min(520px, 78%);
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.75));
  user-select: none;
}

.logo-layer.is-on {
  opacity: 1;
}

.stage-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-layer.fx-glitch {
  opacity: 1;
  animation: glitchBurst 0.45s steps(2, end) both;
}

.logo-layer.fx-glitch::before,
.logo-layer.fx-glitch::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.logo-layer.fx-glitch::before {
  background: linear-gradient(90deg, rgba(197, 22, 27, 0.22), transparent);
  mix-blend-mode: screen;
  animation: glitchSlice 380ms steps(3, end) both;
}

.logo-layer.fx-glitch::after {
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05),
    rgba(255, 255, 255, 0.05) 2px,
    transparent 4px,
    transparent 8px
  );
  opacity: 0.5;
  mix-blend-mode: overlay;
  animation: glitchJitter 420ms steps(2, end) both;
}

@keyframes glitchBurst {
  0% { transform: translateX(0); filter: none; }
  10% { transform: translateX(-10px) translateY(2px); filter: contrast(1.25); }
  40% { transform: translateX(8px) translateY(-1px); filter: contrast(1.2); }
  100% { transform: translateX(0); filter: none; }
}

@keyframes glitchSlice {
  0% { clip-path: inset(0 0 0 0); }
  18% { clip-path: inset(12% 0 62% 0); }
  60% { clip-path: inset(70% 0 14% 0); }
  100% { clip-path: inset(0 0 0 0); }
}

@keyframes glitchJitter {
  0% { transform: translateX(0); opacity: 0.25; }
  55% { transform: translateX(-8px); opacity: 0.45; }
  100% { transform: translateX(0); opacity: 0.25; }
}

.broadcast-caption {
  transform: skewX(10deg);
  text-align: center;
  opacity: 0;
  transition: opacity 420ms ease;
}

.broadcast-caption.is-on {
  opacity: 1;
}

.broadcast-caption p {
  margin: 10px 0 0;
  font-size: 18px;
  letter-spacing: 0.12em;
  color: rgba(243, 231, 210, 0.9);
}

.subline {
  width: min(720px, 92vw);
  padding: 10px 14px;
  background: #000;
  border-left: 4px solid var(--red);
  letter-spacing: 0.14em;
  font-size: 14px;
  transform: skewX(-10deg);
  text-align: center;
}

.subline span {
  display: inline-block;
  transform: skewX(10deg);
}

/* Contract */
.contract-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.contract-box {
  flex: 1 1 auto;
  min-width: 260px;
  background: var(--ink);
  border: 2px solid var(--red);
  border-radius: 12px;
  padding: 16px 18px;
  transform: skewX(-10deg);
}

.contract-text {
  font-family: var(--font);
  letter-spacing: 0.04em;
  font-size: 16px;
  color: var(--cream);
  word-break: break-all;
  transform: skewX(10deg);
  display: block;
}

.btn-copy {
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 16px;
  color: var(--cream);
  background: var(--red);
  border-radius: 12px;
  padding: 16px 22px;
  transform: skewX(-10deg);
  transition: transform 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}

.btn-copy span {
  transform: skewX(10deg);
  display: inline-block;
}

.btn-copy:hover {
  background: var(--red-hover);
  transform: skewX(-10deg) translateY(-2px);
}

.btn-copy.copied {
  background: #2a6b2a;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.heading-body {
  font-size: clamp(16px, 2vw, 25px);
  font-style: italic;
  text-transform: uppercase;
  -webkit-text-stroke: 1px #000;
  text-shadow: 5px 0 0 #661313;
  color: var(--gold);
  line-height: 1.35;
  max-width: 73%;
  margin-bottom: 25px;
}

.visual-frame {
  overflow: hidden;
  border: 2px solid var(--gold);
  border-radius: 15px;
  box-shadow: 15px 15px 0 rgba(214, 184, 98, 0.12);
}

.visual-frame img {
  width: 100%;
  transform: scaleX(-1);
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.btn-red {
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 18px;
  line-height: 1;
  color: var(--cream);
  background: var(--red);
  padding: 18px 28px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transform: skewX(-10deg);
  transition: transform 0.12s ease, background 0.12s ease;
  white-space: nowrap;
}

.btn-red span {
  transform: skewX(10deg);
  display: inline-block;
}

.btn-red:hover {
  background: var(--red-hover);
  transform: skewX(-10deg) translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border: 2px solid var(--red);
}

.btn-ghost:hover {
  background: rgba(197, 22, 27, 0.16);
}

.btn-icon {
  width: 20px;
  height: 20px;
  transform: skewX(10deg);
}

/* Section bar */
.section-bar {
  background: var(--red);
  padding: 18px 22px;
  transform: skewX(-10deg);
  margin-bottom: 24px;
}

.section-bar h2 {
  margin: 0;
  font-size: 28px;
  letter-spacing: 0.08em;
  transform: skewX(10deg);
}

/* Cards / panels */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}

.card,
.panel {
  background: var(--panel);
  border: 2px solid rgba(197, 22, 27, 0.78);
  border-radius: 16px;
  padding: 18px;
  transform: skewX(-6deg);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.65);
}

.card-inner,
.panel-inner {
  transform: skewX(6deg);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 0.14em;
  font-size: 13px;
  text-transform: uppercase;
  color: rgba(243, 231, 210, 0.9);
  margin-bottom: 10px;
}

.card-title {
  margin: 0 0 10px;
  font-size: 22px;
  letter-spacing: 0.06em;
}

.card-body {
  margin: 0;
  font-size: 15px;
  letter-spacing: 0.03em;
  line-height: 1.55;
  color: rgba(243, 231, 210, 0.92);
}

.step-logo {
  width: 40px;
  height: 40px;
  margin-top: 14px;
}

.ticker {
  margin-top: 18px;
  padding: 10px 14px;
  background: #000;
  border-left: 4px solid var(--red);
  font-size: 14px;
  letter-spacing: 0.12em;
}

/* Chart / tracker */
.track-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.status-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

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

.metric {
  background: #000;
  border: 1px solid rgba(197, 22, 27, 0.55);
  border-radius: 14px;
  padding: 14px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55);
}

.metric-label {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 231, 210, 0.78);
  margin-bottom: 8px;
}

.metric-value {
  font-size: 26px;
  letter-spacing: 0.06em;
  line-height: 1;
}

.metric-sub {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(243, 231, 210, 0.72);
  text-transform: uppercase;
}

.chart-embed-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(197, 22, 27, 0.55);
  background: #000;
  min-height: 480px;
}

.chart-embed-wrap iframe {
  width: 100%;
  height: 520px;
  border: none;
  display: block;
}

.chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 480px;
  color: rgba(243, 231, 210, 0.6);
  letter-spacing: 0.1em;
  font-size: 14px;
}

.chart-placeholder img {
  width: 56px;
  opacity: 0.7;
}

/* Signal Feed — stack grid */
.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.tweet-card {
  background: var(--panel);
  border: 2px solid rgba(197, 22, 27, 0.78);
  border-radius: 16px;
  padding: 14px;
  transform: skewX(-6deg);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.65);
  display: flex;
  flex-direction: column;
}

.tweet-card-inner {
  transform: skewX(6deg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.tweet-frame {
  flex: 1;
  border-radius: 12px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.35));
  border: 1px solid rgba(197, 22, 27, 0.65);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  min-height: 340px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.tweet-frame .twitter-tweet {
  margin: 0 auto !important;
  width: 100% !important;
  max-width: 550px !important;
}

.tweet-link {
  font-family: var(--font);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
  line-height: 1;
  color: var(--cream);
  background: var(--red);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  transition: background 0.12s ease, transform 0.12s ease;
  align-self: flex-start;
}

.tweet-link:hover {
  background: var(--red-hover);
  transform: translateY(-2px);
}

/* Join */
.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.join-card {
  background: var(--panel);
  border: 2px solid rgba(197, 22, 27, 0.78);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.banner-box {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  min-height: 280px;
  background:
    radial-gradient(closest-side at 55% 52%, rgba(197, 22, 27, 0.3), transparent 72%),
    linear-gradient(180deg, rgba(197, 22, 27, 0.1), transparent);
}

.banner-box::after {
  content: "";
  position: absolute;
  inset: -2px;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.035),
    rgba(255, 255, 255, 0.035) 1px,
    transparent 2px,
    transparent 6px
  );
  opacity: 0.25;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.join-banner {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.75));
}

.join-title {
  margin: 0 0 10px;
  font-size: 28px;
  letter-spacing: 0.06em;
}

.join-body {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.03em;
  line-height: 1.55;
  color: rgba(243, 231, 210, 0.92);
}

.join-body.spaced {
  margin-top: 12px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.chip-link {
  transition: background 0.15s ease, transform 0.15s ease;
}

.chip-link:hover {
  background: rgba(197, 22, 27, 0.22);
  transform: translateY(-1px);
}

.join-btns {
  margin-top: 18px;
}

/* Footer */
.site-footer {
  padding-bottom: 2%;
}

.footer-shell {
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.55));
  border: 2px solid rgba(197, 22, 27, 0.68);
  border-radius: 18px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.footer-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255, 255, 255, 0.03),
    rgba(255, 255, 255, 0.03) 1px,
    transparent 2px,
    transparent 5px
  );
  opacity: 0.2;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red);
}

.footer-brand h3 {
  margin-bottom: 4px;
}

.footer-brand p {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(243, 231, 210, 0.75);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.footer-links a {
  font-size: 14px;
  letter-spacing: 0.1em;
  padding: 8px 12px;
  border: 1px solid rgba(243, 231, 210, 0.18);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease;
}

.footer-links a:hover {
  background: rgba(197, 22, 27, 0.22);
}

.footer-copy {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: rgba(243, 231, 210, 0.55);
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Responsive */
@media (max-width: 1024px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .heading-body {
    max-width: 100%;
  }

  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }

  .join-grid {
    grid-template-columns: 1fr;
  }

  .card,
  .panel,
  .card-inner,
  .panel-inner,
  .tweet-card,
  .tweet-card-inner,
  .section-bar,
  .section-bar h2,
  .broadcast,
  .broadcast-topbar,
  .logo-stage,
  .broadcast-caption,
  .subline,
  .subline span,
  .contract-box,
  .contract-text,
  .btn-copy,
  .btn-copy span {
    transform: none;
  }

  .metrics-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .title-img-top {
    width: 94vw;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 14px;
    padding: 9px 10px;
  }

  .broadcast {
    width: 94vw;
    padding: 12px;
  }

  .broadcast-caption p {
    font-size: 12px;
  }

  .subline {
    width: 94vw;
    font-size: 11px;
  }

  .heading-body {
    font-size: 16px;
  }

  .title-img-top {
    width: 94vw;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .contract-row {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-copy {
    width: 100%;
    text-align: center;
  }

  .btn-row {
    justify-content: center;
  }

  .section-bar h2 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
