/* ============================================================
   DÉJA DAMNATION — Landing Page
   Palette: dark eggplant + neon red primary + yellow accent
   ============================================================ */

:root {
  --bg:         #0d0008;
  --surface:    #1a0018;
  --panel:      #111827;
  --red:        #d91e41;
  --red-bright: #df405e;
  --red-dark:   #8b0000;
  --yellow:     #ffff00;
  --cyan:       #17a2b8;
  --plum:       #4b1b3f;
  --text:       #f4edf2;
  --muted:      #bba8b1;
  --disabled:   #666066;
  --border:     rgba(217, 30, 65, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Xanh Mono', 'Courier New', monospace;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* ---- NOISE + SCANLINES ---- */
.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.06) 2px,
    rgba(0,0,0,0.06) 4px
  );
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 8999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ---- HEADER ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 28px;
  background: rgba(10, 0, 10, 0.85);
  border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.studio-tag {
  color: var(--muted);
  font-weight: bold;
}
.studio-tag .accent { color: var(--red); }

.genre-tags {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
}
.genre-tags .dot { color: var(--red-dark); }

/* ---- HERO ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 44px;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: saturate(0.5) brightness(0.55);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,0,8,0.35) 0%, rgba(10,0,8,0.0) 35%, rgba(10,0,8,0.55) 75%, rgba(10,0,8,1) 100%),
    linear-gradient(to right, rgba(10,0,8,0.5) 0%, transparent 40%, transparent 60%, rgba(10,0,8,0.5) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 40px 24px 80px;
  max-width: 760px;
  width: 100%;
}

/* Japanese vertical text decorative element */
.jp-vert {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--muted);
  opacity: 0.6;
  margin-bottom: 24px;
  writing-mode: horizontal-tb;
}

/* Title */
.title-block {
  display: inline-block;
  border: 2px solid var(--red);
  padding: 16px 32px 12px;
  margin-bottom: 28px;
  position: relative;
  background: rgba(10,0,8,0.55);
}

.title-block::before,
.title-block::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--yellow);
  border-style: solid;
}
.title-block::before { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.title-block::after  { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }

.title {
  font-size: clamp(28px, 6vw, 52px);
  font-family: 'VT323', monospace;
  font-weight: normal;
  color: var(--red);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow:
    0 0 20px rgba(217,30,65,0.7),
    0 0 40px rgba(217,30,65,0.3);
  line-height: 1.1;
}

.glitch-char {
  display: inline-block;
  color: var(--yellow);
  animation: glitch-flicker 4s infinite;
}

@keyframes glitch-flicker {
  0%, 92%, 100% { opacity: 1; transform: none; color: var(--yellow); }
  93%  { opacity: 0.2; transform: translateX(-2px); color: var(--red); }
  94%  { opacity: 1; transform: translateX(2px); }
  95%  { opacity: 0.4; transform: none; }
  96%  { opacity: 1; }
}

.title-jp {
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--muted);
  margin-top: 6px;
}

/* Tagline */
.tagline {
  font-size: clamp(14px, 2.2vw, 18px);
  color: var(--text);
  opacity: 0.9;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* CTA Buttons */
.cta-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.btn {
  display: inline-block;
  padding: 13px 32px;
  font-family: 'VT323', monospace;
  font-size: 22px;
  font-weight: bold;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  min-width: 280px;
  text-align: center;
}

.btn-bracket {
  color: var(--yellow);
  font-weight: normal;
}

.btn-primary {
  background: var(--red-dark);
  color: var(--text);
  border: 2px solid var(--red);
  box-shadow: 0 0 12px rgba(217,30,65,0.35), inset 0 0 0 0 var(--red);
}
.btn-primary:hover {
  background: var(--red);
  box-shadow: 0 0 24px rgba(217,30,65,0.65);
}

.btn-secondary {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(217,30,65,0.3);
}
.btn-secondary:hover {
  border-color: var(--red);
  color: var(--text);
}

.demo-note {
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--disabled);
  text-transform: uppercase;
}

.demo-note--lang {
  margin-top: 4px;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ---- PITCH ---- */
.pitch {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
}

.pitch-inner {
  max-width: 680px;
  margin: 0 auto;
}

.pitch-text {
  font-size: clamp(15px, 2.2vw, 19px);
  color: var(--text);
  line-height: 1.8;
  opacity: 0.88;
}

/* ---- CHARACTERS ---- */
.characters {
  padding: 72px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0.8;
}

.char-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.char-card {
  background: var(--panel);
  border: 1px solid var(--border);
  padding: 28px 24px;
  position: relative;
}

.char-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  opacity: 0.7;
}

.char-card--signal::before {
  background: var(--cyan);
  opacity: 0.5;
}

.char-name {
  font-size: 20px;
  font-family: 'VT323', monospace;
  font-weight: normal;
  letter-spacing: 0.2em;
  color: var(--red);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.char-card--signal .char-name {
  color: var(--cyan);
}

.char-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 14px;
}

.char-bio {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---- DETAILS ---- */
.details {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 24px;
}

.detail-row {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}

.detail-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--yellow);
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.75;
}

.detail-value {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

/* ---- FOOTER ---- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  background: rgba(0,0,0,0.6);
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--red); }
.footer-links .dot { color: var(--red-dark); }

.footer-copy {
  font-size: 11px;
  color: var(--disabled);
  letter-spacing: 0.08em;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .site-header { padding: 10px 16px; }
  .genre-tags { display: none; }
  .title-block { padding: 12px 18px 10px; }
  .btn { min-width: 240px; padding: 12px 20px; }
  .cta-group { gap: 10px; }
  .char-grid { grid-template-columns: 1fr; }
  .detail-row { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 400px) {
  .detail-row { grid-template-columns: 1fr; }
}
