/* =============================
   Psycho.gg — Obsidian Psycho Theme
   Built on GFD Blackout core concepts
   ============================= */

:root {
  /* Core Background Layers */
  --bg: #020205;
  --surface-dark: #07070b;
  --surface-mid: #111118;

  /* Text */
  --text: #f5f5f5;
  --muted: #b4b4c4;

  /* Psycho Accents (OMEGA REDLINE × VOID SERAPH) */
  --accent: #ff1438;          /* violent neon red */
  --accent-soft: #ff5a5f;     /* softer red/pink */
  --accent-ember: #ff6a00;    /* ember orange */
  --accent-glow: rgba(255, 20, 56, 0.65);

  /* Utility */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.75);
  --shadow-accent: 0 0 24px rgba(255, 20, 56, 0.4);
  --radius-lg: 18px;

  /* Layout */
  --maxw: 1120px;
}

/* =============================
   RESET / BASE
   ============================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #111118 0%, #020205 55%, #000 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

/* Utility */

.section {
  padding: 70px 1.5rem;
  max-width: var(--maxw);
  margin: 0 auto;
}

/* Section art skins / overlays */
.section-skin {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.section-skin::before,
.section-skin::after {
  content: "";
  position: absolute;
  inset: -4%;
  pointer-events: none;
  z-index: 0;
}

.section-skin::after {
  inset: 0;
  background: url("images/overlay-hud-rect.png") center/180% repeat;
  opacity: 0.12;
  mix-blend-mode: screen;
}

.section-skin > * {
  position: relative;
  z-index: 1;
}

.section-bg-ritual::before {
  background:
    radial-gradient(circle at 24% 20%, rgba(255, 20, 56, 0.24), transparent 46%),
    linear-gradient(135deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.1)),
    url("images/psycho-ritual-2.png") center 48% / cover no-repeat;
  opacity: 0.3;
  mix-blend-mode: screen;
}

.section-bg-mask::before {
  background:
    radial-gradient(circle at 78% 16%, rgba(255,106,0,0.24), transparent 46%),
    linear-gradient(150deg, rgba(0,0,0,0.75), rgba(0,0,0,0.35)),
    url("images/psycho-demon-eyes-mask.png") center 40% / 62% no-repeat;
  opacity: .32;
  mix-blend-mode: screen;
}

.section-bg-loop::before {
  background:
    radial-gradient(circle at 26% 76%, rgba(255, 20, 56, 0.18), transparent 52%),
    linear-gradient(140deg, rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.4)),
    url("images/psycho-loop-bg.png") center / cover no-repeat;
  opacity: 0.26;
}

.section-bg-glitch::before {
  background:
    radial-gradient(circle at 70% 14%, rgba(255, 20, 56, 0.22), transparent 50%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.35)),
    url("images/glitch-pack.png") center / cover no-repeat;
  opacity: 0.35;
  mix-blend-mode: screen;
}

.section-bg-metal::before {
  background:
    radial-gradient(circle at 18% 16%, rgba(255, 20, 56, 0.16), transparent 46%),
    linear-gradient(160deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.35)),
    url("images/psycho-loop.png") 82% 32% / 70% no-repeat;
  opacity: 0.24;
}

.section-bg-graffiti::before {
  background:
    radial-gradient(circle at 18% 50%, rgba(255, 20, 56, 0.2), transparent 48%),
    linear-gradient(150deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.32)),
    url("images/psycho-wordmark-graffiti.png") 88% 36% / 84% no-repeat;
  opacity: 0.3;
  mix-blend-mode: screen;
}

.section-dark {
  background: radial-gradient(circle at top, #151520 0%, #050508 60%, #020205 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(0, 0, 0, 0.85);
}

.section-cta {
  background: linear-gradient(135deg, rgba(255, 20, 56, 0.16), rgba(0, 0, 0, 0.9));
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-header h2 {
  font-family: "Cinzel", serif;
  font-size: clamp(2.0rem, 4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.35rem;
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.8), var(--shadow-accent);
}

.section-header p {
  max-width: 640px;
  margin: 0.25rem auto 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.tight-title {
  white-space: nowrap;
}

.single-line {
  white-space: nowrap;
}

@media (max-width: 720px) {
  .tight-title {
    white-space: normal;
  }

  .single-line {
    white-space: normal;
  }
}

/* Grid */

.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Cards */

.card {
  background: radial-gradient(circle at top left, #191824 0%, #050508 52%, #020205 100%);
  border-radius: var(--radius-lg);
  padding: 20px 20px 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 20, 56, 0.12), transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(255, 106, 0, 0.12), transparent 40%);
  opacity: 0.6;
  mix-blend-mode: screen;
  pointer-events: none;
}

.card::after {
  content: "";
  position: absolute;
  inset: -8px;
  background: url("images/overlay-hud-blade.png") center/cover no-repeat;
  opacity: 0.16;
  mix-blend-mode: screen;
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(255, 20, 56, 0.35));
}

.card h3 {
  position: relative;
  font-size: 1.2rem;
  margin-bottom: 0.35rem;
}

.card p,
.card ul {
  position: relative;
  color: var(--muted);
  font-size: 0.96rem;
}

.card-outline {
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-hot {
  border-color: rgba(255, 20, 56, 0.7);
  box-shadow: var(--shadow-soft), var(--shadow-accent);
}

/* Lists */

.list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.list li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-size: 0.7rem;
  color: var(--accent-soft);
}

/* =============================
   NAVIGATION
   ============================= */

.psycho-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.psycho-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 12px 1.5rem;
  background: rgba(2, 2, 5, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
}

.psycho-nav.nav-scrolled {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.85);
  background: rgba(2, 2, 5, 0.98);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(255, 20, 56, 0.75));
}

.nav-brand-lockup {
  display: flex;
  flex-direction: column;
}

.nav-brand-main {
  font-family: "Cinzel", serif;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-brand-sub {
  font-size: 0.72rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  margin: 0;
}

.nav-links a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-ember));
  transition: width 0.2s ease;
}

.nav-links a:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  color: #fff !important;
  border-radius: 999px;
  padding: 6px 14px !important;
  border: 1px solid rgba(255, 20, 56, 0.75);
  box-shadow: 0 0 16px rgba(255, 20, 56, 0.4);
}
/* Disable underline hover for Acquire / Partner only */
.nav-cta::after {
  display: none !important;
}

/* Mobile nav toggle */

.nav-toggle {
  display: none;
  width: 34px;
  height: 30px;
  border: none;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0;
}

.nav-toggle span {
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 999px;
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    right: 1.5rem;
    top: 66px;
    background: rgba(2, 2, 5, 0.98);
    padding: 14px 16px;
    border-radius: 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: none;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}

.hero-inner {
  position: relative;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  z-index: 5;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  background: rgba(2, 2, 5, 0.75);
}

.hero-title {
  font-family: "Cinzel", serif;
  font-size: clamp(3.2rem, 8vw, 4.4rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0 0 12px;
  text-shadow:
    0 0 9px rgba(0, 0, 0, 0.9),
    0 0 18px var(--accent-glow),
    0 0 32px rgba(255, 106, 0, 0.55);
}

.hero-title span {
  display: inline-block;
}

.hero-dot {
  color: var(--accent-ember);
}

.hero-sub {
  font-size: 1.02rem;
  color: #e0e0ea;
  max-width: 760px;
  margin: 0 auto 18px;
  text-wrap: balance;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.chip {
  padding: 4px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  backdrop-filter: blur(10px);
  background: rgba(2, 2, 5, 0.7);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 14px;
}

.hero-meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.meta-strong {
  color: #ffffff;
  font-weight: 600;
}

.meta-pill {
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(0, 255, 161, 0.1);
  border: 1px solid rgba(0, 255, 161, 0.6);
}

@keyframes psychoDrift {
  0%   { transform: scale(1.05) translate(0, 0); }
  50%  { transform: scale(1.08) translate(-10px, 12px); }
  100% { transform: scale(1.05) translate(0, 0); }
}

@keyframes maskBreath {
  0%   { transform: scale(0.99) translateY(4px); filter: drop-shadow(0 0 28px rgba(255, 20, 56, 0.85)); }
  50%  { transform: scale(1.03) translateY(0); filter: drop-shadow(0 0 48px rgba(255, 20, 56, 1)); }
  100% { transform: scale(0.99) translateY(4px); }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: radial-gradient(circle at 0 0, #ffffff 0%, #ff6a00 18%, #ff1438 40%, #020205 100%);
  color: #000;
  box-shadow: 0 0 18px rgba(255, 20, 56, 0.75);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 24px rgba(255, 20, 56, 0.9);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(2, 2, 5, 0.8);
  color: #ffffff;
}

.btn-ghost:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 0 14px rgba(255, 20, 56, 0.7);
}

.btn-wide {
  min-width: 220px;
}

/* Glitch */

.glitch {
  position: relative;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  mix-blend-mode: screen;
}

.glitch-active::before {
  color: #00ffa1;
  transform: translate(2px, -2px);
  opacity: 0.6;
}

.glitch-active::after {
  color: #ff1438;
  transform: translate(-2px, 1px);
  opacity: 0.6;
}

/* =============================
   ENGINE / META
   ============================= */

.section-split {
  max-width: var(--maxw);
}

.engine-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.engine-pill {
  flex: 1 1 240px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  color: var(--muted);
}

.engine-pill.alt {
  border-color: rgba(0, 255, 161, 0.6);
}

/* Game Modes */

.mode-card {
  border-radius: 16px;
}

.mode-tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.73rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.mode-tag.hot {
  border-color: rgba(255, 20, 56, 0.7);
}

/* HUD framing on cards */

.hud-framed {
  position: relative;
  overflow: hidden;
}

.hud-framed::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background-image: url("images/overlay-hud-blade.png");
  background-size: cover;
  background-position: center;
  mix-blend-mode: screen;
  opacity: 0.22;
  pointer-events: none;
}

/* CTA big HUD panel */

.hud-panel {
  position: relative;
  border-radius: 22px;
  padding: 30px 26px;
  background: radial-gradient(circle at top, rgba(255, 20, 56, 0.16), rgba(0, 0, 0, 0.92));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.9);
}

/* Vertical HUD blade */

.section-with-blade {
  position: relative;
}

.hud-blade {
  position: absolute;
  left: -32px;
  top: 16px;
  bottom: 16px;
  width: 8px;
  background-image: url("images/overlay-hud-blade.png");
  background-size: cover;
  background-position: center;
  opacity: 0.9;
  filter: drop-shadow(0 0 18px rgba(255, 20, 56, 0.9));
  pointer-events: none;
}

@media (max-width: 900px) {
  .hud-blade {
    display: none;
  }
}

/* Proof */

.proof-grid {
  margin-top: 12px;
}

.proof-card h3 {
  font-size: 1.03rem;
}

/* CTA */

.cta-inner {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 24px;
  align-items: center;
}

.cta-copy p {
  color: var(--text);
}

.cta-copy .list li {
  color: var(--muted);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

/* Footnotes */

.section-footnote {
  margin-top: 16px;
  font-size: 0.8rem;
  color: var(--muted);
  text-align: center;
}

/* =============================
   BACK TO TOP
   ============================= */

.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(2, 2, 5, 0.92);
  border-radius: 999px;
  padding: 8px 8px 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.85);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 20px rgba(255, 20, 56, 0.7);
}

.back-to-top svg {
  width: 22px;
  height: 22px;
  fill: var(--accent-soft);
}

.back-to-top span {
  font-size: 0.7rem;
  color: var(--muted);
}
/* === Hero kicker (GFD · MTD · AIDU) === */

.hero-kicker-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.9;
}

.hero-kicker {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(2, 2, 5, 0.75);
  backdrop-filter: blur(8px);
}

.kicker-divider {
  color: var(--accent-soft);
  font-weight: 600;
}

/* =============================
   FOOTER
   ============================= */

.psycho-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 1.5rem 40px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  background: radial-gradient(circle at top, #151520 0%, #020205 60%, #000 100%);
}

.psycho-footer span {
  color: var(--accent-soft);
}

/* =============================
   RESPONSIVE
   ============================= */

@media (max-width: 720px) {
  .hero {
    padding-top: 80px;
    padding-bottom: 60px;
  }

  .section {
    padding: 52px 1.25rem;
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }
}


/* the panning animation */
@keyframes loopPan {
  0% { background-position: 0 0; }
  100% { background-position: 1150px 1150px; }
}

/* ==============================
   PSYCHO.GG HERO LAYER STACK
   ============================== */

.hero {
  position: relative;
  overflow: hidden;
}

/* BACKGROUND WRAPPER */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

/* LOOP LAYER */
.hero-image {
  position: absolute;
  inset: 0;
  background: url("images/psycho-loop.png") repeat;
  background-size: 1100px 1100px;
  opacity: 0.22;
  animation: loopPan 38s linear infinite;
  z-index: 1;
}

/* GLITCH LAYER */
.hero-glitch-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.25;
  z-index: 2;
}

/* DARK OVERLAY */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.35), rgba(0,0,0,0.8));
  z-index: 3;
}

/* DEMON MASK — MUST BE ABOVE EVERYTHING */
.hero-mask-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4; /* 🔥 critical */
  pointer-events: none;
}

.hero-mask-img {
  width: 650px;
  max-width: 80vw;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(255, 60, 0, 0.55));
  opacity: 1;
  transform: translateY(0);
  animation: maskPulse 3.4s ease-in-out infinite;
}

/* TEXT LAYER */
.hero-inner {
  position: relative;
  z-index: 5; /* 🔥 always above mask */
}
/* ===== HERO CENTERING FIX ===== */

/* Center the hero text block relative to full viewport */
.hero-inner {
  position: relative;
  z-index: 5;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;     /* <— key */
  justify-content: center; /* <— key */
  text-align: center;
}

/* Force the mask to be perfectly horizontally centered */
.hero-mask-img {
  margin: 0 auto;        /* center in container */
  transform: translateX(0) translateY(0); /* remove accidental drift */
}

/* Ensure hero section centers all its contents vertically & horizontally */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;   /* <— critical */
  justify-content: center;
}

/* Optional: If mask PNG has off-center negative space, correct here */
.hero-mask-wrap {
  display: flex;
  align-items: center;
  justify-content: center;

}
.cta-copy p {
  max-width: 600px;
}
.hero-mask-img {
  max-height: 110vh;
}
/* Psycho.gg Scrollbar (Balanced Visibility) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #0a0a0e; /* slightly lighter to increase visibility */
}

::-webkit-scrollbar-thumb {
  background: #1a1a22; /* still dark, but clearly visible */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff1438;
  box-shadow: 0 0 10px rgba(255, 20, 56, 0.6),
              0 0 4px rgba(255, 106, 0, 0.4);
}
