/* =============================================
   VOID SOCIETY — COMING SOON
   Minimal dark aesthetic
   ============================================= */

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

:root {
  --bg: #050505;
  --bg-elevated: #0a0a0a;
  --text-primary: #e8e8e8;
  --text-secondary: #6b6b6b;
  --text-muted: #3a3a3a;
  --accent: #c0c0c0;
  --border: #1a1a1a;
  --border-hover: #2a2a2a;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: transparent;
  color: var(--text-primary);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* --- Video Background --- */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

.video-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--bg) 0%,
    transparent 15%,
    transparent 85%,
    var(--bg) 100%
  );
  pointer-events: none;
}

#bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.35) contrast(1.1); /* Darken to ensure text readability */
}

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

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 2.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.nav-logo img {
  height: 36px;
  width: auto;
  opacity: 0.9;
  transition: opacity 0.3s ease;
  filter: brightness(1.1);
}

.nav-logo:hover img {
  opacity: 1;
}

.nav-tag {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  color: var(--text-secondary);
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 0.4rem 1rem;
  border-radius: 100px;
}

/* --- Hero Section --- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem 2rem 4rem;
  text-align: center;
  min-height: 100vh;
  position: relative;
}

/* --- Center Logo --- */
.center-logo {
  margin-bottom: 3.5rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.3s forwards;
}

.center-logo img {
  height: 50px;
  width: auto;
  filter: brightness(1.1);
}

/* --- Carousel --- */
.carousel-container {
  overflow: hidden;
  width: 100%;
  max-width: 800px;
  margin-bottom: 3rem;
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}

.carousel-track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  min-height: 4rem;
}

.carousel-word {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 200;
  letter-spacing: 0.04em;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, color 0.4s ease;
  text-transform: lowercase;
}

.carousel-word.visible {
  opacity: 1;
  transform: translateY(0);
}

.carousel-word.fading {
  opacity: 0;
  transform: translateY(-15px);
}

/* Highlight "cold" and "void" */
.carousel-word[data-index="1"],
.carousel-word[data-index="6"] {
  font-weight: 400;
  color: #ffffff;
}


/* --- Footer --- */
.footer {
  padding: 2rem 2.5rem;
  background: var(--bg);
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 10;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 0.68rem;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.social-link {
  color: var(--text-muted);
  transition: color 0.3s ease, transform 0.3s ease;
  display: flex;
  align-items: center;
}

.social-link:hover {
  color: var(--text-secondary);
  transform: translateY(-1px);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .navbar {
    padding: 0.8rem 1.5rem;
  }

  .nav-logo img {
    height: 28px;
  }

  .nav-tag {
    font-size: 0.55rem;
    padding: 0.3rem 0.7rem;
  }

  .hero {
    padding: 7rem 1.5rem 3rem;
  }

  .center-logo img {
    height: 36px;
  }

  .carousel-track {
    gap: 0.4rem;
  }

  .carousel-word {
    font-size: 1.2rem;
  }

  .signup-form {
    flex-direction: column;
    border-radius: 16px;
  }

  .email-input {
    min-width: unset;
    width: 100%;
    text-align: center;
    padding: 1rem 1.4rem;
  }

  .submit-btn {
    border-left: none;
    border-top: 1px solid var(--border);
    width: 100%;
    justify-content: center;
    padding: 1rem 1.4rem;
  }

  .footer-inner {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}
