/* ===================================================
   Sanatorium Landing Page — lp.css
   Light / Dark dual theme
   Light: sterile white room aesthetic
   Dark: deep observation terminal aesthetic
   =================================================== */

/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* ---- Light theme (default) ---- */
  --bg: #f5f5f7;
  --bg-pure: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fafafa;
  --surface: #eeeef0;
  --surface-dim: #e4e4e8;
  --border: #dddde2;
  --border-light: #c8c8d0;
  --text: #2a2a32;
  --text-dim: #6a6a74;
  --text-muted: #9a9aa4;
  --white: #ffffff;
  --black: #1a1a20;
  --accent: #6a9ab5;
  --accent-dim: #8ab4cc;
  --accent-glow: rgba(106, 154, 181, 0.15);
  --accent-glow-strong: rgba(106, 154, 181, 0.3);
  --iv-black: #1a1a20;
  --nav-bg: rgba(245, 245, 247, 0.85);
  --nav-bg-scroll: rgba(255, 255, 255, 0.95);
  --nav-shadow: rgba(0, 0, 0, 0.04);
  --mobile-menu-bg: rgba(255, 255, 255, 0.97);
  --card-shadow: rgba(0, 0, 0, 0.06);
  --card-shadow-light: rgba(0, 0, 0, 0.04);
  --noise-opacity: 0.015;
  --mio-filter: contrast(1.05) brightness(1.02);
  --mio-opacity: 0.9;
  --jacket-shadow: rgba(0, 0, 0, 0.1);
  --cta-hover-shadow: rgba(0, 0, 0, 0.08);
  --particle-color: rgba(140, 160, 180, 0.35);
  --serif: "Noto Serif JP", "Georgia", serif;
  --sans: "Noto Sans JP", "Helvetica Neue", sans-serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---- Dark theme variables ---- */
[data-theme="dark"] {
  --bg: #0a0a0c;
  --bg-pure: #0e0e12;
  --bg-card: #111114;
  --bg-card-hover: #18181c;
  --surface: #1a1a1e;
  --surface-dim: #141418;
  --border: #2a2a30;
  --border-light: #3a3a42;
  --text: #d8d8dc;
  --text-dim: #8a8a92;
  --text-muted: #5a5a62;
  --white: #f0f0f2;
  --black: #f0f0f2;
  --accent: #8ab4cc;
  --accent-dim: #5a8ea8;
  --accent-glow: rgba(138, 180, 204, 0.25);
  --accent-glow-strong: rgba(138, 180, 204, 0.5);
  --iv-black: #8ab4cc;
  --nav-bg: rgba(10, 10, 12, 0.8);
  --nav-bg-scroll: rgba(10, 10, 12, 0.95);
  --nav-shadow: rgba(0, 0, 0, 0.2);
  --mobile-menu-bg: rgba(10, 10, 12, 0.97);
  --card-shadow: rgba(0, 0, 0, 0.3);
  --card-shadow-light: rgba(0, 0, 0, 0.2);
  --noise-opacity: 0.025;
  --mio-filter: grayscale(0.6) contrast(1.1) brightness(0.9);
  --mio-opacity: 0.85;
  --jacket-shadow: rgba(0, 0, 0, 0.5);
  --cta-hover-shadow: rgba(138, 180, 204, 0.2);
  --particle-color: rgba(200, 215, 225, 0.5);
}

/* Auto-detect OS dark preference (only when no manual choice) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0a0a0c;
    --bg-pure: #0e0e12;
    --bg-card: #111114;
    --bg-card-hover: #18181c;
    --surface: #1a1a1e;
    --surface-dim: #141418;
    --border: #2a2a30;
    --border-light: #3a3a42;
    --text: #d8d8dc;
    --text-dim: #8a8a92;
    --text-muted: #5a5a62;
    --white: #f0f0f2;
    --black: #f0f0f2;
    --accent: #8ab4cc;
    --accent-dim: #5a8ea8;
    --accent-glow: rgba(138, 180, 204, 0.25);
    --accent-glow-strong: rgba(138, 180, 204, 0.5);
    --iv-black: #8ab4cc;
    --nav-bg: rgba(10, 10, 12, 0.8);
    --nav-bg-scroll: rgba(10, 10, 12, 0.95);
    --nav-shadow: rgba(0, 0, 0, 0.2);
    --mobile-menu-bg: rgba(10, 10, 12, 0.97);
    --card-shadow: rgba(0, 0, 0, 0.3);
    --card-shadow-light: rgba(0, 0, 0, 0.2);
    --noise-opacity: 0.025;
    --mio-filter: grayscale(0.6) contrast(1.1) brightness(0.9);
    --mio-opacity: 0.85;
    --jacket-shadow: rgba(0, 0, 0, 0.5);
    --cta-hover-shadow: rgba(138, 180, 204, 0.2);
    --particle-color: rgba(200, 215, 225, 0.5);
  }
}

/* ---- Theme toggle button ---- */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 2px;
  white-space: nowrap;
}

.theme-toggle:hover {
  color: var(--black);
  border-color: var(--black);
}


html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: var(--black);
}

/* ---------- GLOBAL OVERLAYS ---------- */
.global-scanline {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.012) 3px,
    rgba(0, 0, 0, 0.012) 6px
  );
}

.global-noise {
  /* Use var for opacity but can't in shorthand, set via style in JS */

  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.015;
  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;
}

/* ---------- NAVIGATION ---------- */
.lp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  height: 64px;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: all 0.4s;
}

.lp-nav.scrolled {
  background: var(--nav-bg-scroll);
  box-shadow: 0 1px 20px var(--nav-shadow);
}

.nav-logo {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--black);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--black);
  transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
  color: var(--black);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  padding: 0.4rem 1.2rem !important;
  border: 1px solid var(--black) !important;
  color: var(--black) !important;
  transition: all 0.3s !important;
}

.nav-cta:hover {
  background: var(--black) !important;
  color: var(--white) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: var(--text-dim);
  transition: all 0.3s;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 64px 2.5rem 0;
  background: var(--bg-pure);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(106, 154, 181, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 20% 80%, rgba(200, 200, 210, 0.1) 0%, transparent 40%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
  text-align: left;
}

.hero-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title-main {
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--black);
  display: block;
  line-height: 1.1;
}

.hero-copy {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: var(--text);
  line-height: 2;
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
}

.hero-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-button {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.9rem 2.8rem;
  border: 1px solid var(--black);
  color: var(--black);
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.hero-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--black);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease-out);
  z-index: -1;
}

.hero-button:hover {
  color: var(--white);
}

.hero-button:hover::before {
  transform: scaleX(1);
}

.hero-visual {
  position: absolute;
  right: 5%;
  bottom: 0;
  width: 40%;
  max-width: 520px;
  z-index: 1;
}

.hero-mio {
  width: 100%;
  filter: var(--mio-filter);
  opacity: var(--mio-opacity);
  mask-image: linear-gradient(to top, transparent 0%, black 15%);
  -webkit-mask-image: linear-gradient(to top, transparent 0%, black 15%);
}

.hero-glass {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 4px,
    rgba(0, 0, 0, 0.008) 4px,
    rgba(0, 0, 0, 0.008) 8px
  );
  pointer-events: none;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hero-scroll-hint span {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- SECTIONS (SHARED) ---------- */
.section {
  padding: 8rem 2.5rem;
  position: relative;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 600;
  color: var(--black);
  line-height: 1.5;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--text-dim);
  margin-bottom: 3.5rem;
}

/* ---------- CONCEPT ---------- */
.concept {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.concept-body p {
  margin-bottom: 1.5rem;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 2;
}

.monitor-frame {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 0.75rem;
  box-shadow: 0 4px 24px var(--card-shadow-light);
}

.monitor-header {
  display: flex;
  justify-content: space-between;
  padding: 0.7rem 1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  letter-spacing: 0.08em;
  font-size: 0.65rem;
}

.monitor-body {
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.signal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--surface);
}

.signal-label {
  color: var(--text-muted);
  letter-spacing: 0.1em;
  font-size: 0.7rem;
}

.signal-value {
  color: var(--text);
  font-size: 0.9rem;
}

.signal-glow {
  color: var(--accent);
}

.monitor-log {
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.monitor-log p {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
  letter-spacing: 0.03em;
  line-height: 1.8;
}

/* ---------- GAMEPLAY ---------- */
.gameplay {
  background: var(--bg-pure);
  border-top: 1px solid var(--border);
}

.gameplay-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.gameplay-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  transition: all 0.4s var(--ease-out);
  position: relative;
  overflow: hidden;
}

.gameplay-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--iv-black);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out);
}

.gameplay-card:hover {
  background: var(--bg-pure);
  border-color: var(--border-light);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--card-shadow);
}

.gameplay-card:hover::before {
  transform: scaleX(1);
}

.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1.5rem;
  color: var(--text-muted);
  transition: color 0.3s;
}

.gameplay-card:hover .card-icon {
  color: var(--black);
}

.gameplay-card h3 {
  font-family: var(--mono);
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  color: var(--black);
  margin-bottom: 0.8rem;
}

.gameplay-card p {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ---------- WORLD ---------- */
.world {
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.world-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 2rem;
}

.world-subtitle {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
}

.world-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}

.dream-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.dream-list li {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text);
  padding: 0.5rem 0.8rem;
  border-left: 2px solid var(--border);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.dream-list li:hover {
  border-left-color: var(--iv-black);
  background: var(--accent-glow);
}

.dream-depth {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  min-width: 1.5rem;
}

.dream-locked {
  color: var(--text-muted) !important;
  font-style: italic;
}

.dream-locked .dream-depth {
  color: var(--border);
}

.encounter-cards {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.encounter-card {
  background: var(--bg-pure);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: all 0.3s;
}

.encounter-card:hover {
  border-color: var(--border-light);
  box-shadow: 0 2px 12px var(--card-shadow-light);
}

.enc-severity {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  align-self: flex-start;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

.enc-severity.low {
  color: var(--accent);
  background: rgba(106, 154, 181, 0.08);
}

.enc-severity.mid {
  color: #b08840;
  background: rgba(176, 136, 64, 0.08);
}

.enc-severity.high {
  color: #b04040;
  background: rgba(176, 64, 64, 0.08);
}

.encounter-card strong {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--black);
}

.encounter-card small {
  font-size: 0.78rem;
  color: var(--text-dim);
}

.enc-hidden {
  opacity: 0.35;
  border-style: dashed;
}

.enc-hidden strong {
  color: var(--text-muted);
}

/* ---------- CHARACTER ---------- */
.character {
  background: var(--bg-pure);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.character-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 2rem;
}

.character-visual {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.character-3view {
  width: 100%;
  filter: contrast(1.02) brightness(1.0);
}

.character-glass {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 5px,
    rgba(0, 0, 0, 0.006) 5px,
    rgba(0, 0, 0, 0.006) 10px
  );
  pointer-events: none;
}

.char-dossier {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.dossier-row {
  display: flex;
  justify-content: space-between;
  padding: 0.4rem 0;
  border-bottom: 1px solid var(--surface);
}

.dossier-row:last-child {
  border-bottom: none;
}

.dossier-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.dossier-value {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text);
  letter-spacing: 0.05em;
}

.dossier-signal {
  color: var(--accent);
  animation: signalPulse 3s ease-in-out infinite;
}

@keyframes signalPulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.char-quote {
  border-left: 2px solid var(--iv-black);
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.char-quote p {
  font-family: var(--serif);
  font-size: 0.92rem;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.char-desc {
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 2;
}

/* ---------- SOUNDTRACK ---------- */
.soundtrack {
  border-top: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
}

.soundtrack-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.soundtrack-visual {
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.jacket-img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 20px 60px var(--jacket-shadow);
}

.jacket-reflection {
  position: absolute;
  bottom: -60%;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to bottom, rgba(128, 128, 128, 0.15), var(--bg));
  transform: scaleY(-1);
  opacity: 0.1;
  filter: blur(4px);
  pointer-events: none;
}

.soundtrack-desc {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 2;
  margin-bottom: 1.5rem;
}

.soundtrack-sub {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

/* ---------- CTA ---------- */
.cta {
  border-top: 1px solid var(--border);
  text-align: center;
  position: relative;
  background: var(--bg-pure);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    rgba(106, 154, 181, 0.04) 0%,
    transparent 60%
  );
}

.cta-inner {
  position: relative;
  z-index: 1;
}

.cta-protocol {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.cta-title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  color: var(--black);
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
}

.cta-sub {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 3rem;
  line-height: 2;
}

.cta-button {
  display: inline-block;
  position: relative;
  font-family: var(--mono);
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  padding: 1.1rem 3.5rem;
  border: 1px solid var(--iv-black);
  color: var(--iv-black);
  transition: all 0.4s var(--ease-out);
  overflow: hidden;
}

.cta-button-text {
  position: relative;
  z-index: 1;
}

.cta-button-glow {
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: var(--iv-black);
  opacity: 0;
  transition: opacity 0.4s;
  z-index: 0;
}

.cta-button:hover {
  color: var(--white);
  box-shadow: 0 0 30px var(--cta-hover-shadow);
}

.cta-button:hover .cta-button-glow {
  opacity: 1;
}

.cta-button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--iv-black);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.5s var(--ease-out);
  z-index: 0;
}

.cta-button:hover::after {
  transform: scaleX(1);
}

.cta-note {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  margin-top: 1.5rem;
}

/* ---------- FOOTER ---------- */
.lp-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2.5rem;
  text-align: center;
  background: var(--bg);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-title {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 0.5rem;
}

.footer-copy {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.footer-credit {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* ---------- FADE-IN ANIMATION ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.gameplay-cards .fade-in:nth-child(2) { transition-delay: 0.1s; }
.gameplay-cards .fade-in:nth-child(3) { transition-delay: 0.2s; }
.gameplay-cards .fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .gameplay-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 5rem 1.5rem;
  }

  .lp-nav {
    padding: 0 1.5rem;
  }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    bottom: 0;
    flex-direction: column;
    background: var(--mobile-menu-bg);
    backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    gap: 1.5rem;
    z-index: 999;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-hamburger.open span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .nav-hamburger.open span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger.open span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .hero {
    flex-direction: column;
    padding: 100px 1.5rem 4rem;
    min-height: auto;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
    margin-bottom: 2rem;
  }

  .hero-visual {
    position: relative;
    right: 0;
    width: 80%;
    max-width: 320px;
  }

  .hero-scroll-hint {
    display: none;
  }

  .concept-grid,
  .world-grid,
  .character-grid,
  .soundtrack-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .gameplay-cards {
    grid-template-columns: 1fr;
  }

  .character-grid {
    direction: ltr;
  }

  .soundtrack-visual {
    max-width: 320px;
  }

  .soundtrack-grid {
    direction: rtl;
  }

  .soundtrack-grid > * {
    direction: ltr;
  }
}

@media (max-width: 480px) {
  .hero-title-main {
    font-size: 2.5rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .cta-button {
    padding: 0.9rem 2.5rem;
  }
}
