:root {
  --bg: #030305;
  --panel: rgba(8, 9, 12, 0.82);
  --panel-strong: rgba(12, 13, 18, 0.96);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --soft: #62626d;
  --red: #a50000;
  --red-hot: #ff3030;
  --red-dark: #470000;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.66);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 10%, rgba(165, 0, 0, 0.18), transparent 26rem),
    radial-gradient(circle at 10% 70%, rgba(255, 255, 255, 0.05), transparent 20rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  background: rgba(165, 0, 0, 0.35);
  color: #fff;
}

.font-display {
  font-family: Manrope, Inter, system-ui, sans-serif;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.pixel-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.68;
}

#pixel-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scanline-overlay {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.55) 2px,
    rgba(0, 0, 0, 0.55) 4px
  );
  mix-blend-mode: overlay;
}

.top-fade {
  position: fixed;
  inset: 0 0 auto;
  height: 110px;
  z-index: 20;
  pointer-events: none;
  backdrop-filter: blur(1px);
  mask-image: linear-gradient(to top, transparent, black);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(3, 3, 5, 0.7);
  backdrop-filter: blur(18px);
}

.home-page .site-header {
  position: fixed;
  inset: 18px 0 auto;
  border-bottom: 0;
  background: transparent;
  backdrop-filter: none;
}

.home-page .site-nav {
  width: min(74rem, calc(100% - 32px));
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.46);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(20px);
}

.home-page .site-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(165,0,0,0.42), rgba(255,255,255,0.08));
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.site-nav {
  width: min(90rem, 100%);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(135deg, rgba(165, 0, 0, 0.9), rgba(0, 0, 0, 0.2));
  box-shadow: 0 0 24px rgba(165, 0, 0, 0.28);
  font-family: Manrope, sans-serif;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.home-page .brand-mark {
  border-radius: 0;
  background: radial-gradient(circle at 50% 20%, rgba(255, 48, 48, 0.75), rgba(165, 0, 0, 0.75) 46%, rgba(0, 0, 0, 0.9));
}

.brand-word {
  font-family: Manrope, Inter, sans-serif;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 17px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a,
.mobile-panel a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.nav-links a {
  padding: 9px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  border-color: rgba(165, 0, 0, 0.36);
  background: rgba(165, 0, 0, 0.12);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.mobile-panel {
  display: none;
  padding: 0 24px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.mobile-panel.open {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-panel a {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.container {
  width: min(90rem, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 92px 0;
}

.section-tight {
  padding: 56px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--red-hot);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--red);
  box-shadow: 0 0 18px rgba(165, 0, 0, 0.85);
}

.hero {
  position: relative;
  min-height: calc(100svh - 70px);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.home-page .hero {
  min-height: 100svh;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
  background: #000;
}

.hero-media > div {
  position: absolute !important;
  left: 50%;
  top: 50%;
  width: max(100vw, 177.78svh) !important;
  height: max(100svh, 56.25vw) !important;
  transform: translate(-50%, -50%) scale(1.04);
}

.hero-media > div > *,
.hero-media canvas,
.hero-media video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.hero-media iframe {
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100vw, 177.78svh);
  height: max(100svh, 56.25vw);
  transform: translate(-50%, -50%) scale(1.08);
  border: 0;
  opacity: 0.34;
  filter: saturate(1.15) contrast(1.12);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 58% 48%, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.34) 42%, rgba(0, 0, 0, 0.78)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.3) 45%, rgba(0, 0, 0, 0.58));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--bg));
}

.hero-grid {
  min-height: calc(100svh - 70px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 40px;
  padding-top: 64px;
  padding-bottom: 64px;
}

.hero-grid-open {
  display: flex;
  align-items: end;
  justify-content: flex-start;
}

.hero-grid-open .hero-copy {
  align-self: end;
  width: min(760px, 100%);
  padding-bottom: clamp(36px, 8vh, 92px);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  color: #fff;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(54px, 8vw, 126px);
  line-height: 0.92;
  letter-spacing: 0;
}

.home-page .hero h1 {
  text-shadow: 0 18px 70px rgba(0, 0, 0, 0.85);
}

.hero h1 span,
.page-hero h1 span {
  color: var(--red-hot);
}

.home-page .hero h1 span {
  background: linear-gradient(90deg, var(--red-hot), #fff 48%, var(--red-hot));
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-shine 5s linear infinite;
}

@keyframes text-shine {
  to {
    background-position: -220% center;
  }
}

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

.lede {
  max-width: 620px;
  color: rgba(244, 244, 245, 0.72);
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.6;
  margin: 24px 0 0;
}

.hero-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
}

.btn-primary {
  border-color: rgba(165, 0, 0, 0.68);
  background: linear-gradient(180deg, var(--red-hot), var(--red));
  box-shadow: 0 0 32px rgba(165, 0, 0, 0.32);
}

@property --cta-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.shiny-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-color: transparent;
  background:
    linear-gradient(#08080a, #030305) padding-box,
    conic-gradient(from var(--cta-angle), transparent 0%, var(--red) 6%, #fff 16%, var(--red-hot) 28%, transparent 40%, transparent 100%) border-box;
  animation: cta-spin 3.6s linear infinite;
}

.shiny-cta:not(.ghost) {
  background:
    linear-gradient(180deg, #ff3030, #a50000) padding-box,
    conic-gradient(from var(--cta-angle), transparent 0%, #fff 10%, var(--red-hot) 24%, transparent 42%, transparent 100%) border-box;
}

.shiny-cta::after {
  content: "";
  position: absolute;
  inset: -90%;
  z-index: -1;
  background: linear-gradient(50deg, transparent, rgba(255,255,255,0.22), transparent);
  transform: rotate(20deg);
  animation: cta-sheen 4.8s linear infinite;
}

@keyframes cta-spin {
  to {
    --cta-angle: 360deg;
  }
}

@keyframes cta-sheen {
  to {
    transform: translateX(55%) rotate(20deg);
  }
}

.btn-quiet {
  background: rgba(0, 0, 0, 0.42);
}

.hero-dashboard,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-dashboard {
  position: relative;
  overflow: hidden;
}

.hero-dashboard::before,
.panel::before,
.channel-card::before,
.roster-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.09), transparent 35%, rgba(165, 0, 0, 0.12));
  opacity: 0.7;
}

.dashboard-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.dashboard-title {
  margin: 0;
  color: #fff;
  font-weight: 800;
}

.dashboard-subtitle {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.signal {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.signal::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--red-hot);
  border-radius: 999px;
  box-shadow: 0 0 18px rgba(255, 48, 48, 0.9);
}

.dashboard-grid {
  position: relative;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric {
  min-height: 120px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(3, 3, 5, 0.58);
}

.metric span {
  color: var(--soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.metric strong {
  display: block;
  margin-top: 14px;
  color: #fff;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: 0;
}

.metric p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.6fr);
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head h2,
.page-hero h1 {
  margin: 0;
  color: #fff;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 1;
  letter-spacing: 0;
}

.section-head p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

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

.panel {
  position: relative;
  padding: 24px;
  overflow: hidden;
}

.panel h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 20px;
}

.panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.panel-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border: 1px solid rgba(165, 0, 0, 0.36);
  border-radius: 8px;
  background: rgba(165, 0, 0, 0.12);
  color: var(--red-hot);
}

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.home-page .marquee {
  margin-top: -34px;
  border-color: rgba(165, 0, 0, 0.22);
  background: linear-gradient(90deg, rgba(165, 0, 0, 0.08), rgba(255, 255, 255, 0.03), rgba(165, 0, 0, 0.08));
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 34s linear infinite;
}

.marquee span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 20px 28px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

.psyqo-wave {
  position: relative;
  z-index: 2;
  height: 190px;
  margin-top: -132px;
  pointer-events: none;
  overflow: hidden;
  color: var(--red);
}

.psyqo-wave svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.psyqo-wave .wave-fill {
  opacity: 0.72;
}

.wave-top,
.wave-bottom {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 1;
}

.wave-top {
  top: 0;
  height: 72px;
  background: linear-gradient(to bottom, var(--bg), transparent);
}

.wave-bottom {
  bottom: 0;
  height: 70px;
  background: linear-gradient(to top, var(--bg), transparent);
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

.page-hero {
  padding: 92px 0 48px;
}

.page-hero .container {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.52fr);
  gap: 36px;
  align-items: end;
}

.stat-list {
  display: grid;
  gap: 10px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 13px;
}

.stat-row strong {
  color: #fff;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(320px, 0.55fr);
  gap: 16px;
  align-items: stretch;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.timeline-item time {
  color: var(--red-hot);
  font-weight: 900;
}

.timeline-item h3 {
  margin: 0 0 6px;
  color: #fff;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.channel-card,
.roster-card,
.product-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(165, 0, 0, 0.14), transparent 40%),
    rgba(8, 9, 12, 0.78);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.channel-card:hover,
.roster-card:hover,
.product-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 48, 48, 0.42);
}

.channel-card {
  min-height: 230px;
  padding: 20px;
}

.channel-card h2,
.channel-card h3 {
  margin: 0;
  color: #fff;
  font-family: Manrope, Inter, sans-serif;
  font-size: 24px;
}

.channel-card p {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 14px;
}

.channel-meta {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.theater-frame {
  overflow: hidden;
  border: 1px solid rgba(165, 0, 0, 0.42);
  border-radius: 8px;
  background: #000;
  box-shadow: 0 0 70px rgba(165, 0, 0, 0.18), var(--shadow);
}

.video-box {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-box iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.theater-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-top: 1px solid var(--line);
  background: rgba(8, 9, 12, 0.94);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tab.active {
  border-color: rgba(255, 48, 48, 0.55);
  background: rgba(165, 0, 0, 0.24);
  color: #fff;
}

.roster-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
}

.filter-panel {
  position: sticky;
  top: 94px;
  align-self: start;
}

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

.roster-card {
  padding: 18px;
}

.roster-tag {
  color: var(--red-hot);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.roster-card h3 {
  margin: 12px 0 8px;
  color: #fff;
  font-size: 22px;
}

.roster-card p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.55;
}

.roster-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(255, 255, 255, 0.035);
}

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

.product-card {
  padding: 0;
}

.product-art {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(165, 0, 0, 0.12), transparent 45%),
    rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.15);
  font-family: Manrope, Inter, sans-serif;
  font-size: 26px;
  font-weight: 900;
  text-transform: uppercase;
  text-align: center;
}

.product-body {
  padding: 18px;
}

.product-body h3 {
  margin: 0;
  color: #fff;
  font-size: 20px;
}

.product-price {
  display: block;
  margin-top: 8px;
  color: var(--red-hot);
  font-weight: 900;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
}

.modal.open {
  display: flex;
}

.modal-panel {
  width: min(880px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 20px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 42px 0;
  color: var(--soft);
}

.footer-grid {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.footer strong {
  display: block;
  color: #fff;
  font-family: Manrope, Inter, sans-serif;
  font-size: 22px;
  margin-bottom: 8px;
}

#psyqo-chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
}

#psyqo-chat-bubble {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 48, 48, 0.42);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--red-hot), var(--red));
  color: #fff;
  box-shadow: 0 0 34px rgba(165, 0, 0, 0.45);
}

#psyqo-chat-panel {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  display: none;
  border: 1px solid var(--line);
  border-top-color: rgba(255, 48, 48, 0.66);
  border-radius: 8px;
  background: rgba(7, 7, 9, 0.98);
  box-shadow: var(--shadow);
}

#psyqo-chat-panel.open {
  display: block;
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.chat-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.chat-dot {
  width: 8px;
  height: 8px;
  background: var(--red-hot);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(255, 48, 48, 0.8);
}

.chat-close {
  border: 0;
  background: transparent;
  color: var(--muted);
}

#psyqo-chat-messages {
  min-height: 220px;
  max-height: 390px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
}

.psyqo-msg {
  display: flex;
}

.psyqo-msg-user {
  justify-content: flex-end;
}

.psyqo-msg-bubble {
  max-width: 84%;
  padding: 10px 12px;
  border-radius: 8px;
  color: #e7e7ea;
  font-size: 13px;
  line-height: 1.48;
}

.psyqo-msg-ai .psyqo-msg-bubble {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.psyqo-msg-user .psyqo-msg-bubble {
  background: var(--red);
  color: #fff;
}

.typing {
  display: inline-flex;
  gap: 4px;
}

.typing span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--muted);
  animation: typing 1s infinite;
}

.typing span:nth-child(2) {
  animation-delay: 160ms;
}

.typing span:nth-child(3) {
  animation-delay: 320ms;
}

@keyframes typing {
  50% {
    transform: translateY(-4px);
    opacity: 0.45;
  }
}

.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.chat-input input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  padding: 10px 11px;
  outline: 0;
}

.chat-input input:focus {
  border-color: rgba(255, 48, 48, 0.5);
}

.chat-input button {
  width: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
}

.hidden {
  display: none !important;
}

@media (max-width: 980px) {
  .nav-links,
  .header-actions .btn-quiet {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .hero-grid,
  .section-head,
  .page-hero .container,
  .split,
  .roster-layout {
    grid-template-columns: 1fr;
  }

  .hero-dashboard {
    max-width: 620px;
  }

  .card-grid,
  .channel-grid,
  .shop-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .filter-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-nav {
    padding: 14px 16px;
  }

  .container {
    padding: 0 16px;
  }

  .hero-grid {
    min-height: calc(100svh - 60px);
    padding-top: 44px;
  }

  .hero-actions,
  .row-actions,
  .footer-grid,
  .theater-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-grid,
  .card-grid,
  .channel-grid,
  .shop-grid,
  .roster-grid,
  .modal-panel {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}

/* PsyQo org pass */
.home-page .site-nav {
  width: min(116rem, calc(100% - 48px));
  padding: 14px 28px;
  gap: clamp(18px, 3vw, 46px);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.38);
}

.home-page .brand-mark {
  display: none;
}

.home-page .brand-word {
  font-size: clamp(22px, 2vw, 32px);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 600;
}

.home-page .nav-links {
  flex: 1;
  justify-content: space-between;
  gap: clamp(8px, 1.2vw, 18px);
}

.home-page .nav-links a {
  min-width: clamp(112px, 13vw, 276px);
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background:
    linear-gradient(90deg, transparent 58%, rgba(165, 0, 0, 0.48) 100%) bottom / 100% 1px no-repeat,
    rgba(0, 0, 0, 0.3);
  color: rgba(255, 255, 255, 0.82);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-page .nav-links a:hover,
.home-page .nav-links a.active {
  border-color: rgba(255, 48, 48, 0.38);
  background:
    linear-gradient(90deg, transparent 40%, rgba(255, 48, 48, 0.8) 100%) bottom / 100% 1px no-repeat,
    rgba(165, 0, 0, 0.08);
}

.home-page .header-actions {
  display: none;
}

.home-hero {
  min-height: 100svh;
  border: 1px solid rgba(255, 48, 48, 0.22);
  box-shadow: inset 0 0 42px rgba(255, 48, 48, 0.15);
}

.home-hero::before {
  background:
    radial-gradient(circle at 52% 52%, rgba(165, 0, 0, 0.18), rgba(0, 0, 0, 0.2) 25%, rgba(0, 0, 0, 0.74) 58%, rgba(0, 0, 0, 0.92)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.1) 42%, rgba(0, 0, 0, 0.78));
}

.home-hero::after {
  height: 42%;
  background: linear-gradient(to bottom, transparent, rgba(3, 3, 5, 0.72) 52%, var(--bg));
}

.psyqo-hero-emblem {
  position: absolute;
  left: 50%;
  top: 51%;
  z-index: -1;
  width: min(62vw, 980px);
  min-width: 420px;
  transform: translate(-50%, -50%);
  opacity: 0.78;
  filter: drop-shadow(0 0 42px rgba(255, 48, 48, 0.48));
}

.psyqo-hero-emblem svg {
  width: 100%;
  overflow: visible;
}

.emblem-back {
  fill: rgba(165, 0, 0, 0.42);
  stroke: rgba(255, 48, 48, 0.25);
  stroke-width: 14;
  filter: url(#hero-emblem-glow);
}

.emblem-line,
.emblem-inner,
.emblem-cut {
  fill: none;
  stroke: url(#hero-emblem-stroke);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: url(#hero-emblem-glow);
}

.emblem-inner {
  fill: rgba(165, 0, 0, 0.22);
  stroke-width: 2;
}

.emblem-cut {
  stroke-width: 3;
  opacity: 0.74;
}

.home-page .hero-grid-open {
  align-items: center;
  justify-content: center;
  min-height: 100svh;
  padding-top: clamp(110px, 15vh, 190px);
  padding-bottom: clamp(120px, 18vh, 200px);
}

.home-page .hero-grid-open .hero-copy {
  align-self: center;
  width: min(1500px, 100%);
  max-width: 1500px;
  padding-bottom: 0;
  text-align: center;
}

.home-page .hero h1 {
  font-size: clamp(58px, 7.6vw, 154px);
  line-height: 0.9;
  letter-spacing: 0;
  white-space: nowrap;
}

.home-page .hero h1 span {
  background: linear-gradient(90deg, #9a0000 0%, #ff1e1e 42%, #ffd2d2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: none;
  text-shadow: none;
}

.home-page .lede {
  max-width: 950px;
  margin: 54px auto 0;
  color: rgba(244, 244, 245, 0.72);
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.34;
  font-weight: 700;
}

.home-page .hero-actions {
  justify-content: center;
  gap: 40px;
  margin-top: clamp(54px, 8vh, 106px);
}

.home-page .hero-actions .btn {
  min-width: min(318px, 42vw);
  min-height: 88px;
  border-radius: 16px;
  font-size: clamp(19px, 1.6vw, 28px);
  font-weight: 900;
}

.social-rail {
  position: relative;
  z-index: 4;
  margin-top: -88px;
  border: 0;
  background: transparent;
  mask-image: linear-gradient(90deg, transparent, #000 16%, #000 84%, transparent);
}

.social-rail .marquee span {
  padding: 26px 42px;
  color: rgba(255, 255, 255, 0.52);
  font-size: clamp(18px, 1.5vw, 28px);
  letter-spacing: 0;
}

.ecosystem-section {
  padding-top: 130px;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.ecosystem-card {
  position: relative;
  min-height: 280px;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background:
    linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.035)),
    rgba(6, 6, 8, 0.72);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.ecosystem-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 28%),
    radial-gradient(circle at 100% 0%, rgba(255, 48, 48, 0.2), transparent 42%);
  opacity: 0.62;
  pointer-events: none;
}

.ecosystem-card.feature-card {
  grid-column: span 8;
  min-height: 360px;
}

.ecosystem-card:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 48, 48, 0.42);
  background: rgba(10, 10, 12, 0.86);
}

.ecosystem-card svg {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  color: var(--red-hot);
  opacity: 0.86;
}

.card-index {
  position: absolute;
  top: 20px;
  left: 22px;
  color: rgba(255, 255, 255, 0.26);
  font-family: Manrope, Inter, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.ecosystem-card h3 {
  position: relative;
  margin: 0 0 12px;
  color: #fff;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(24px, 2.7vw, 44px);
  line-height: 1;
}

.ecosystem-card p {
  position: relative;
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.visual-section {
  overflow: hidden;
}

.signal-map,
.environment-visual {
  position: relative;
  width: min(100%, 1080px);
  margin: 0 auto;
}

.signal-map svg,
.environment-visual svg {
  width: 100%;
  overflow: visible;
}

.signal-dots circle {
  fill: rgba(255, 255, 255, 0.2);
}

.signal-lines path {
  fill: none;
  stroke: url(#signal-line);
  stroke-width: 1.6;
  stroke-dasharray: 760;
  stroke-dashoffset: 760;
  animation: draw-line 1.7s ease forwards;
}

.signal-nodes circle {
  fill: rgba(165, 0, 0, 0.14);
  stroke: rgba(255, 255, 255, 0.72);
  stroke-width: 1.2;
  filter: drop-shadow(0 0 16px rgba(255, 48, 48, 0.28));
}

.signal-nodes text {
  fill: rgba(255, 255, 255, 0.78);
  font: 800 15px Inter, sans-serif;
  text-anchor: middle;
}

@keyframes draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

.environment-visual {
  min-height: 430px;
  display: grid;
  place-items: center;
}

.controller-halo {
  fill: rgba(165, 0, 0, 0.16);
  filter: drop-shadow(0 0 34px rgba(255, 48, 48, 0.38));
}

.controller-shell,
.controller-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.8);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.controller-shell {
  stroke: rgba(255, 255, 255, 0.76);
  filter: drop-shadow(0 0 18px rgba(255, 48, 48, 0.36));
}

.incoming-line {
  fill: none;
  stroke: rgba(255, 48, 48, 0.7);
  stroke-width: 2.2;
  stroke-dasharray: 140;
  animation: draw-line 1.1s ease forwards;
}

.deflect-line {
  fill: none;
  stroke: rgba(255, 255, 255, 0.62);
  stroke-width: 2;
  stroke-dasharray: 90;
  animation: draw-line 1.1s ease 0.45s forwards;
}

.controller-visual text {
  fill: rgba(255, 48, 48, 0.78);
  font: 800 14px Inter, sans-serif;
  letter-spacing: 0.04em;
}

.strategy-panel h2 {
  margin: 0 0 16px;
  color: #fff;
  font-family: Manrope, Inter, sans-serif;
  font-size: clamp(34px, 4vw, 66px);
  line-height: 1;
}

.program-grid {
  display: grid;
  gap: 10px;
}

.program-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.34fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 84px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.028);
}

.program-row strong {
  color: #fff;
  font-size: 19px;
}

.program-row span {
  color: var(--muted);
  line-height: 1.55;
}

.program-row a {
  min-width: 108px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 48, 48, 0.35);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

@media (max-width: 1180px) {
  .home-page .site-nav {
    width: min(74rem, calc(100% - 32px));
  }

  .home-page .nav-links a {
    min-width: auto;
    padding: 9px 16px;
    font-size: 13px;
  }

  .home-page .header-actions {
    display: flex;
  }

  .home-page .header-actions .btn-quiet {
    display: none;
  }
}

@media (max-width: 980px) {
  .home-page .site-nav {
    padding: 14px 18px;
  }

  .home-page .brand-mark {
    display: grid;
  }

  .home-page .brand-word {
    font-size: 18px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 800;
  }

  .psyqo-hero-emblem {
    width: 88vw;
    min-width: 0;
  }

  .home-page .hero h1 {
    white-space: normal;
    font-size: clamp(64px, 15vw, 118px);
  }

  .home-page .lede {
    margin-top: 28px;
    font-size: 20px;
  }

  .ecosystem-card,
  .ecosystem-card.feature-card {
    grid-column: span 6;
    min-height: 260px;
  }

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

@media (max-width: 640px) {
  .home-page .site-nav {
    width: calc(100% - 24px);
  }

  .home-page .hero-grid-open {
    padding-top: 116px;
  }

  .home-page .hero-actions {
    gap: 14px;
  }

  .home-page .hero-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 62px;
    font-size: 18px;
  }

  .social-rail {
    margin-top: -72px;
  }

  .social-rail .marquee span {
    padding: 20px 28px;
    font-size: 18px;
  }

  .ecosystem-card,
  .ecosystem-card.feature-card {
    grid-column: span 12;
  }

  .environment-visual {
    min-height: 260px;
  }

  .controller-visual text {
    display: none;
  }
}
