@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@300;400;500&family=Space+Mono:wght@400;700&family=Syne:wght@400;700;800&family=Fraunces:ital,wght@0,300;0,500;1,300;1,500&family=Figtree:wght@300;400;500&display=swap');

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

/* ── Site-wide nav pill ── */
.site-nav {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99;
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(10,10,10,0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50px;
  padding: 6px 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.site-nav a {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  border-radius: 40px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.55);
  transition: all 0.2s;
  white-space: nowrap;
}

.site-nav a:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.08);
}

.site-nav a.active {
  background: #fff;
  color: #0a0a0a;
}

.site-nav a .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.site-nav a:nth-of-type(1) .dot { background: #c9a96e; }
.site-nav a:nth-of-type(2) .dot { background: #e8c547; }
.site-nav a:nth-of-type(3) .dot { background: #d4845a; }

.site-nav a.active .dot { opacity: 1; }
.site-nav a:not(.active) .dot { opacity: 0.5; }

.site-nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  scroll-behavior: smooth;
  width: 100%;
}
.site-nav-inner::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.nav-arrow {
  display: none;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 16px;
  cursor: pointer;
  padding: 0 4px;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
  user-select: none;
}
.nav-arrow:hover { color: #fff; }

.site-nav .divider {
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.12);
  margin: 0 2px;
  flex-shrink: 0;
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  padding: 10px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 280px;
  background: #0a0a0a;
  border-left: 1px solid rgba(255,255,255,0.1);
  padding: 100px 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1000;
}

nav.menu-open .mobile-menu {
  transform: translateX(0);
}

nav.menu-open .hamburger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
nav.menu-open .hamburger span:nth-child(2) { opacity: 0; }
nav.menu-open .hamburger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu a {
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.mobile-menu a:hover, .mobile-menu a.active {
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 850px) {
  nav {
    flex-wrap: wrap;
    height: auto !important;
    padding: 16px 24px !important;
    gap: 16px;
  }

  .nav-right, .nav-links {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }

  .site-nav {
    position: static;
    transform: none;
    order: 3;
    width: 100%;
    max-width: 320px;
    margin: 8px auto 0;
    justify-content: space-between;
    background: #0a0a0a;
    padding: 6px 4px;
  }

  body.page-signup .site-nav {
    display: none;
  }

  .nav-arrow {
    display: flex;
  }

  .site-nav-inner {
    padding: 0 4px;
  }

  /* Theme specific overrides for mobile */
  body.page-signup .survey-container {
    padding-top: 20px;
  }
}

/* ── Early Access Popup ── */
.ea-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.ea-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ea-modal {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 48px;
  max-width: 440px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5);
}

.ea-overlay.active .ea-modal {
  transform: scale(1) translateY(0);
}

.ea-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 24px;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}

.ea-close:hover {
  color: #fff;
}

.ea-modal h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.ea-modal h2 em {
  font-style: italic;
  color: #c9a96e;
}

.ea-modal p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 32px;
}

.ea-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ea-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 14px 18px;
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}

.ea-input:focus {
  border-color: #c9a96e;
}

.ea-submit {
  background: #c9a96e;
  color: #000;
  border: none;
  border-radius: 10px;
  padding: 14px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.2s;
}

.ea-submit:hover {
  background: #e0c078;
  transform: translateY(-2px);
}

.ea-success {
  display: none;
  color: #c9a96e;
}

.ea-overlay.success .ea-form { display: none; }
.ea-overlay.success .ea-modal p { display: none; }
.ea-overlay.success .ea-success { display: block; }
