/* ===== GLOBAL STYLES ===== */
::selection {
  background: rgba(255, 254, 239, 0.3);
  color: inherit;
}

::-moz-selection {
  background: rgba(255, 254, 239, 0.3);
  color: inherit;
}

/* Full-viewport background */
html, body {
  height: 100%;
}
body {
  margin: 0;
  background-color: #18202B;
  min-height: 100vh;
  overflow: hidden; /* Prevent scrollbars if the video overflows */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  color: #FFFEEF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Video background container */
#video-bg {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  width: 100vw;
  height: 100vh;
  pointer-events: none; /* Ensure background doesn't capture clicks */
  isolation: isolate;   /* Keep background rendering clean */
  z-index: -1;
}

/* Video element styling */
#bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures video covers entire viewport */
  display: block;
  opacity: 1; /* Similar opacity to the SVG */
  pointer-events: none; /* Prevent any interaction with video */
}

/* Hide video controls on all devices - more aggressive approach */
#bg-video::-webkit-media-controls {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#bg-video::-webkit-media-controls-enclosure {
  display: none !important;
  opacity: 0 !important;
}

#bg-video::-webkit-media-controls-panel {
  display: none !important;
  opacity: 0 !important;
}

#bg-video::-webkit-media-controls-play-button {
  display: none !important;
  opacity: 0 !important;
}

#bg-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  opacity: 0 !important;
}

#bg-video::-webkit-media-controls-overlay-play-button {
  display: none !important;
  opacity: 0 !important;
}

/* Additional iOS-specific hiding */
video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none !important;
}

/* Prevent the video from showing any UI */
#video-bg video {
  pointer-events: none;
}

/* ===== SVG STYLES - DISABLED BUT PRESERVED ===== */
/* 
SVG background container - DISABLED
#svg-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  isolation: isolate;
}

Ensure embedded object scales to viewport - DISABLED
#svg-bg object#svg-obj {
  width: 100%;
  height: 100%;
  display: block;
}

Ensure inline injected <svg> scales to container and shows fully - DISABLED
#svg-bg svg {
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.10;
}

Random pop animation for individual symbols - DISABLED
.symbol-pop {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity, filter;
  animation-name: random-pop;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
}

Pop effect: opacity + movement + glow - DISABLED
@keyframes random-pop {
  0%, 100% {
    transform: translateY(0px);
    opacity: 0.5;
    filter: brightness(0.9) drop-shadow(0 0 0px rgba(255, 255, 255, 0));
  }
  50% {
    transform: translateY(-2px);
    opacity: 0.85;
    filter: brightness(1.1) drop-shadow(0 0 1px rgba(255, 255, 255, 0.3));
  }
}
*/

/* ===== ANIMATION INITIAL STATES ===== */
.navbar,
.footer {
  opacity: 0;
}

.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
}

.hero-buttons .btn {
  opacity: 0;
  transform: translateY(20px);
}

/* ===== NEW STYLES FOR LAYOUT ===== */

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
}

.nav-container {
  margin: 0 auto;
  padding: 0 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand-text {
  font-size: 1.5rem;
  font-weight: 300;
  font-style: italic;
  color: #FFFEEF;
  text-decoration: none;
}

.nav-brand {
  display: flex;
  align-items: center;
}

.brand-link {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.brand-link:hover {
  opacity: 0.8;
}

.brand-logo {
  height: 2rem;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-link {
  color: #FFFEEF;
  text-decoration: none;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease;
}

.nav-link:hover {
  opacity: 0.7;
}

/* Hero Section */
.hero-section {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 2rem;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-family: 'Cardo', serif;
  font-size: 64px;
  font-weight: 400;
  line-height: 110%;
  margin: 0 0 3rem 0;
  color: #FFFEEF;
  max-width: 628px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0 16px;
  height: 44px;
  border: 1px solid rgba(255, 254, 239, 0.3);
  border-radius: 2px;
  background: transparent;
  color: #FFFEEF;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  box-sizing: border-box;
}

.btn-primary {
  background: #FFFEEF;
  color: #18202B;
  border-color: #FFFEEF;
}

.btn-primary:hover {
  background: rgba(255, 254, 239, 0.9);
  border-color: rgba(255, 254, 239, 0.9);
}

.btn-secondary {
  background: transparent;
  color: #FFFEEF;
  border-color: #FFFEEF;
}

.btn-secondary:hover {
  background: rgba(255, 254, 239, 0.1);
  border-color: #FFFEEF;
}

/* Early Access Form */
.early-access-container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.email-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.email-form.show {
  opacity: 1;
  transform: scale(1);
}

.email-input {
  padding: 0 12px;
  height: 44px;
  border: 1px solid rgba(255, 254, 239, 0.3);
  border-radius: 2px 0 0 2px;
  border-right: none;
  background: rgba(255, 254, 239, 0.1);
  color: #FFFEEF;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  width: 200px;
  box-sizing: border-box;
  outline: none;
}

.email-input::placeholder {
  color: rgba(255, 254, 239, 0.6);
}

.email-input:focus {
  background: rgba(255, 254, 239, 0.15);
  border-color: rgba(255, 254, 239, 0.5);
}

.submit-btn {
  border-radius: 0 2px 2px 0;
  border-left: none;
  position: relative;
}

.submit-btn .btn-text {
  transition: opacity 0.3s ease;
}

.submit-btn .loading-icon,
.submit-btn .success-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.submit-btn .loading-icon {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid #18202B;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.submit-btn .success-icon {
  color: #18202B;
  font-size: 16px;
  font-weight: bold;
}

.check-svg {
  width: 16px;
  height: 16px;
  filter: brightness(0) saturate(100%) invert(11%) sepia(18%) saturate(1015%) hue-rotate(184deg) brightness(95%) contrast(91%);
}

@keyframes spin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.submit-btn.loading .btn-text {
  opacity: 0;
}

.submit-btn.loading .loading-icon {
  opacity: 1;
}

.submit-btn.success .btn-text,
.submit-btn.success .loading-icon {
  opacity: 0;
}

.submit-btn.success .success-icon {
  opacity: 1;
}



/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.5rem 0;
}

.footer-container {
  margin: 0 auto;
  padding: 0 2.5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copyright {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  color: rgba(255, 254, 239, 0.6);
  font-weight: 400;
}

.twitter-link {
  display: inline-block;
  padding: 0.5rem;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.twitter-logo {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
  opacity: 0.5;
  transition: opacity 0.3s ease;
  filter: brightness(0) invert(1); /* Makes SVG white */
}

.twitter-link:hover .twitter-logo {
  opacity: 1;
}

.footer-close {
  background: none;
  border: none;
  color: rgba(255, 254, 239, 0.6);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
}

.footer-close:hover {
  color: rgba(255, 254, 239, 0.8);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 768px) {
  .nav-container,
  .footer-container {
    padding: 0 1.5rem;
  }
  
  .hero-container {
    padding: 0 1.5rem;
  }
  
  .hero-title {
    font-size: 48px;
    margin-bottom: 2rem;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: fit-content;
    min-width: 200px;
    padding: 0 16px;
    height: 44px;
    box-sizing: border-box;
  }
  
  .email-form {
    flex-direction: column;
    gap: 8px;
  }
  
  .email-input {
    border-radius: 2px;
    border-right: 1px solid rgba(255, 254, 239, 0.3);
    width: 200px;
  }
  
  .submit-btn {
    border-radius: 2px;
    border-left: 1px solid #FFFEEF;
    width: 200px;
  }
  
  .email-form {
    flex-direction: column;
    gap: 8px;
  }
  
  .email-input {
    border-radius: 2px;
    border-right: 1px solid rgba(255, 254, 239, 0.3);
    width: 200px;
  }
  
  .submit-btn {
    border-radius: 2px;
    border-left: 1px solid #FFFEEF;
    width: 200px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .navbar {
    padding: 1rem 0;
  }
  
  .nav-container,
  .footer-container {
    padding: 0 1rem;
  }
  
  .hero-container {
    padding: 0 1rem;
  }
  
  .brand-logo {
    height: 1.5rem;
  }
  
  .nav-link {
    font-size: 12px;
  }
  
  .hero-title {
    font-size: 36px;
    line-height: 110%;
    margin-bottom: 1.5rem;
  }
  
  .btn {
    width: fit-content;
    min-width: 200px;
    padding: 0 16px;
    height: 44px;
    box-sizing: border-box;
  }
  
  .footer {
    padding: 1rem 0;
  }
  
  .footer-copyright {
    font-size: 14px;
  }
}