@charset "utf-8";


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

body {
  color: white;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

/* ===============================
   NAVBAR
================================ */

.navbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 32px 60px;
}

.navbar .logo img {
  width: 160px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 32px;
}

.menu a {
  text-decoration: none;
  color: #dbe0ff;
  letter-spacing: 2px;
  font-size: 13px;
  transition: color 0.3s ease;
}

.menu a:hover,
.menu a.active {
  color: #ffb7e6;
}

/* ===============================
   BUTTONS 
================================ */

.buttons {
  display: flex;
  gap: 20px;
}

.buttons a {
  text-decoration: none;
}

.btn {
  padding: 14px 36px;
  border-radius: 14px;
  font-size: 14px;
  letter-spacing: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn.outline {
  background: transparent;
  border: 1.5px solid #5f6cff;
  color: #cdd3ff;
}

.btn.outline:hover {
  background: rgba(95,108,255,0.15);
}

.btn.filled {
  background: #3f4cff;
  border: none;
  color: white;
}

.btn.filled:hover {
  background: #5a66ff;
}

/* ===============================
   HOME PAGE
================================ */

body.home-page {
  min-height: 100vh;
  background: radial-gradient(circle at top, #1a1466, #0a0430);
}

/* Starfield */

body.home-page::before,
body.home-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body.home-page::before {
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, white, transparent),
    radial-gradient(1.5px 1.5px at 40% 60%, white, transparent),
    radial-gradient(1.5px 1.5px at 70% 30%, white, transparent);
  background-size: 300px 300px;
  animation: starDrift 90s linear infinite;
  opacity: 0.8;
}

body.home-page::after {
  background-image:
    radial-gradient(3px 3px at 30% 40%, #b4c8ff, transparent),
    radial-gradient(3px 3px at 60% 70%, #ffb7e6, transparent);
  background-size: 500px 500px;
  animation: starDriftReverse 140s linear infinite;
  opacity: 0.5;
}

@keyframes starDrift {
  from { transform: translateY(0); }
  to { transform: translateY(-300px); }
}

@keyframes starDriftReverse {
  from { transform: translateY(0); }
  to { transform: translateY(300px); }
}

/* Header */

.site-header {
  position: fixed;
  top: 32px;
  width: 100%;
  display: flex;
  justify-content: center;
  z-index: 3;
  pointer-events: none;
}

.catch-copy {
  font-size: 14px;
  letter-spacing: 3px;
  text-transform: uppercase;
  opacity: 0.8;
  animation: floatText 6s ease-in-out infinite;
}

@keyframes floatText {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* Hero */

.hero {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  padding: 180px 20px 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 1.2s ease, opacity 1.2s ease;
}

.logo {
  width: 900px;
  max-width: 95vw;
  margin-bottom: 10px;
  transition: filter 0.4s ease, transform 0.4s ease;
}

.logo:hover {
  filter:
    drop-shadow(0 0 14px rgba(255,120,200,0.6))
    drop-shadow(0 0 30px rgba(120,140,255,0.5));
  transform: scale(1.01);
}

.credit {
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 32px;
  color: #ff79c6;
  font-weight: 600;
}

/* Enter Universe Effect */

.universe-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle, rgba(255,255,255,0.15), black 70%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
  z-index: 5;
}

body.enter-universe {
  overflow: hidden;
  background: black;
}

body.enter-universe .universe-overlay {
  opacity: 1;
}

body.enter-universe .hero {
  transform: scale(1.4);
  opacity: 0;
}

/* ===============================
   STORY PAGE
================================ */

body.story-page {
  background: radial-gradient(circle at top, #1a1466, #0a0430);
  color: #efeaff;
  font-family: 'Inter', sans-serif;
  animation: pageFadeIn 1.4s ease forwards;
}

@keyframes pageFadeIn {
  from { opacity: 0; transform: scale(1.02); }
  to { opacity: 1; transform: scale(1); }
}

.story-page .container {
  max-width: 1300px;
  margin: 120px auto 140px;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 520px;
  gap: 100px;
  align-items: center;
}

.story-page .text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 54px;
  line-height: 1.2;
  margin-bottom: 32px;
  color: #dbe0ff;
}

.story-page .text p {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 22px;
  opacity: 0.9;
}

.story-page .tagline {
  margin-top: 34px;
  font-style: italic;
  color: #ffb7e6;
}


.story-page .poster img {
  width: 100%;
  border-radius: 16px;
  box-shadow:
    0 40px 80px rgba(0,0,0,0.45),
    0 0 40px rgba(120,140,255,0.25);
  animation: posterFloat 6s ease-in-out infinite;
}

@keyframes posterFloat {
  0%,100% { transform: translateY(10px) scale(1.02); }
  50% { transform: translateY(-10px) scale(1.03); }
}

/* ===============================
   FOOTER
================================ */

.footer {
  text-align: center;
  padding: 60px 20px 80px;
  opacity: 0.8;
}


/* ===============================
   CONSTELLATION PAGE
================================ */

body.constellation-page {
  min-height: 100vh;
  background: radial-gradient(circle at top, #140f3d, #05021c);
  color: #efeaff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  animation: constellationFade 1.4s ease forwards;
}

/* Subtle arrival */
@keyframes constellationFade {
  from {
    opacity: 0;
    transform: scale(1.02);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Star overlay */
body.constellation-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1.5px 1.5px at 80% 40%, rgba(200,220,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 50% 70%, rgba(255,200,240,0.5), transparent),
    radial-gradient(2px 2px at 60% 20%, rgba(255,255,255,0.8), transparent);
  background-size: 600px 600px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}


.constellation-container {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 140px auto 160px;
  padding: 0 60px;
  text-align: center;
}

.constellation-intro h1 {
  font-family: 'Playfair Display', serif;
  font-size: 56px;
  letter-spacing: 4px;
  margin-bottom: 16px;
  color: #dbe0ff;
}

.constellation-intro p {
  font-size: 15px;
  letter-spacing: 2px;
  opacity: 0.75;
  margin-bottom: 80px;
}


.constellation-image {
  display: flex;
  justify-content: center;
  margin-bottom: 90px;
}

.constellation-image img {
  width: 70vh;
  max-width: 90vw;
  filter:
    drop-shadow(0 0 40px rgba(120,140,255,0.35))
    drop-shadow(0 0 80px rgba(180,160,255,0.15));
  animation: constellationFloat 10s ease-in-out infinite;
}

/* Slow, sacred motion */
@keyframes constellationFloat {
  0% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  50% {
    transform: translateY(-14px) rotate(0.6deg) scale(1.02);
  }
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
}

.identity-fragments {
  max-width: 680px;
  margin: 0 auto;
}

.identity-fragments p {
  font-size: 17px;
  line-height: 2;
  margin-bottom: 38px;
  opacity: 0.85;
}

.identity-fragments .highlight {
  margin-top: 50px;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  letter-spacing: 2px;
  color: #ffb7e6;
}

.menu a.active {
  color: #ffb7e6;
}


/* ===============================
   SIGNAL PAGE 
================================ */

body.signal-page {
  background: radial-gradient(circle at top, #090622, #020111);
  color: #dbe0ff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  animation: signalFadeIn 1.4s ease forwards;
}

@keyframes signalFadeIn {
  from {
    opacity: 0;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

body.signal-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255,255,255,0.03),
    rgba(255,255,255,0.03) 1px,
    transparent 1px,
    transparent 3px
  );
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
}

body.signal-page::after {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.05;
  pointer-events: none;
  z-index: 1;
}


.signal-container {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 160px auto 120px;
  padding: 0 40px;
  text-align: center;
}


.glitch {
  position: relative;
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  letter-spacing: 6px;
  margin-bottom: 60px;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  opacity: 0.8;
}

.glitch::before {
  color: #ffb7e6;
  transform: translate(2px, -2px);
  animation: glitchTop 2.5s infinite linear alternate-reverse;
}

.glitch::after {
  color: #7f8cff;
  transform: translate(-2px, 2px);
  animation: glitchBottom 3s infinite linear alternate-reverse;
}

@keyframes glitchTop {
  0% { clip-path: inset(0 0 85% 0); }
  100% { clip-path: inset(40% 0 0 0); }
}

@keyframes glitchBottom {
  0% { clip-path: inset(85% 0 0 0); }
  100% { clip-path: inset(0 0 40% 0); }
}


.signal-box {
  border: 1px solid rgba(255,255,255,0.15);
  padding: 48px 40px;
  border-radius: 14px;
  backdrop-filter: blur(4px);
  box-shadow:
    0 0 40px rgba(120,140,255,0.15);
}


.signal-text {
  font-size: 16px;
  line-height: 1.9;
  margin-bottom: 22px;
  opacity: 0.9;
}


.glitch-soft {
  position: relative;
  animation: softFlicker 6s infinite;
}

@keyframes softFlicker {
  0%, 95% { opacity: 0.9; }
  96% { opacity: 0.3; }
  97% { opacity: 1; }
}


.glitch-strong {
  font-size: 20px;
  letter-spacing: 4px;
  color: #ffb7e6;
  animation: hardGlitch 4s infinite;
}

@keyframes hardGlitch {
  0%, 92% {
    transform: translateX(0);
  }
  93% {
    transform: translateX(-3px);
    opacity: 0.6;
  }
  94% {
    transform: translateX(3px);
    opacity: 1;
  }
}


.signal-status {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 40px;
  font-size: 12px;
  letter-spacing: 2px;
  opacity: 0.7;
}

.signal-status em {
  color: #ff79c6;
  font-style: normal;
}

@media (max-width: 768px) {
  .glitch {
    font-size: 38px;
  }

  .signal-box {
    padding: 36px 24px;
  }

  .signal-container {
    margin-top: 120px;
  }
}



/* ===============================
   EXIT PAGE  
================================ */

body.credits-page {
  min-height: 100vh;
  background: radial-gradient(circle at bottom, #080514, #000000);
  color: #d8d6f2;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  animation: exitFade 1.6s ease forwards;
}

@keyframes exitFade {
  from {
    opacity: 0;
    filter: blur(2px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

.credits-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 160px 60px 140px;
  text-align: center;
}


.exit-label {
  font-size: 12px;
  letter-spacing: 4px;
  opacity: 0.5;
  margin-bottom: 18px;
}

.credits-intro h1 {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  margin-bottom: 100px;
  color: #efeaff;
}

.credits-list {
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-bottom: 120px;
}

.credit-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.role {
  font-size: 13px;
  letter-spacing: 3px;
  opacity: 0.6;
  text-transform: uppercase;
}

.name {
  font-size: 18px;
  letter-spacing: 1px;
}

.credit-row.special .name {
  font-style: italic;
  opacity: 0.85;
}


.final-line {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: #ffb7e6;
  margin-bottom: 50px;
}

.restart-link {
  display: inline-block;
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 3px;
  color: #dbe0ff;
  border-bottom: 1px solid rgba(219,224,255,0.4);
  padding-bottom: 6px;
  transition: all 0.3s ease;
}

.restart-link:hover {
  color: #ffb7e6;
  border-color: #ffb7e6;
}


.exit-overlay {
  position: fixed;
  inset: 0;
  background: black;
  opacity: 0;
  pointer-events: none;
  transition: opacity 1.2s ease;
  z-index: 9999;
}

.exit-overlay.active {
  opacity: 1;
}



/* ===============================
   RESPONSIVE-OVERALL
================================ */

@media (max-width: 900px) {
  .story-page .container {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .story-page .text h1 {
    font-size: 40px;
  }

  .story-page .poster img {
    max-width: 420px;
    margin: 0 auto;
    display: block;
  }
}

@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    gap: 20px;
  }

  .buttons {
    flex-direction: column;
  }

  .btn {
    width: 220px;
  }
}

@media (max-width: 768px) {
  .credits-container {
    padding: 120px 30px 120px;
  }

  .credits-intro h1 {
    font-size: 36px;
  }

  .final-line {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .constellation-container {
    padding: 0 30px;
    margin-top: 120px;
  }

  .constellation-intro h1 {
    font-size: 40px;
  }

  .identity-fragments p {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .signal-container {
    padding: 0 30px;
    margin-top: 130px;
  }

  .signal-intro h1 {
    font-size: 38px;
  }

  .signal-text p {
    font-size: 16px;
  }
}