/* ── Google Font is loaded via <link> in HTML ── */

:root {
  --bg: #000;
  --surface: rgba(255, 255, 255, 0.05);
  --border: rgba(255, 255, 255, 0.1);
  --text: #fff;
  --muted: rgba(255, 255, 255, 0.45);
  --font: 'Inter', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
  max-width: 100vw;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  overflow-x: hidden;
  overflow-y: hidden;
}

/* ─────────────────────────────────────────────
   CANVAS & OVERLAYS
───────────────────────────────────────────── */
#dotCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.overlay-radial {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.88) 0%, transparent 100%);
  pointer-events: none;
}

.overlay-top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 30%;
  z-index: 1;
  background: linear-gradient(to bottom, #000 0%, transparent 100%);
  pointer-events: none;
}

/* ─────────────────────────────────────────────
   NAVBAR
───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: calc(100% - 40px);
  max-width: 820px;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(31, 31, 31, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid #333;
  border-radius: 9999px;
  transition: border-radius 0.3s ease;
}

.navbar-inner.open {
  border-radius: 12px;
}

.nav-logo-svg {
  height: 25px;
  width: auto;
  display: block;
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
  font-family: 'Young Serif', serif;
}

.nav-center {
  display: flex;
  gap: 28px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-login {
  background: transparent;
  border: 1px solid #444;
  color: var(--text);
  border-radius: 9999px;
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.btn-login:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-join-nav {
  background: #fff;
  border: none;
  color: #000;
  border-radius: 9999px;
  padding: 7px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-join-nav:hover {
  opacity: 0.88;
}

a.btn-join-nav {
  text-decoration: none !important;
  display: inline-block;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.ham-line {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open .ham-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open .ham-line:nth-child(2) {
  opacity: 0;
}

.hamburger.open .ham-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile dropdown */
.mobile-dropdown {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
  background: rgba(31, 31, 31, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0px solid transparent;
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 0 20px;
}

.mobile-dropdown.open {
  max-height: 260px;
  padding: 12px 20px 16px;
  border: 1px solid #333;
  border-top: none;
}

.mobile-dropdown .nav-link {
  font-size: 0.9rem;
  padding: 6px 0;
}

.mobile-btns {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
}

.mobile-btns .btn-login,
.mobile-btns .btn-join-nav {
  width: 100%;
  text-align: center;
}

/* ─────────────────────────────────────────────
   PAGE CENTER
───────────────────────────────────────────── */
.page-center {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─────────────────────────────────────────────
   STEPS – TRANSITIONS
───────────────────────────────────────────── */
.step {
  position: absolute;
  width: 100%;
  max-width: 480px;
  padding: 0 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

/* Active */
.step.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

/* Waiting off to the right */
.step.from-right {
  opacity: 0;
  transform: translateX(60px);
}

/* Waiting off to the left */
.step.from-left {
  opacity: 0;
  transform: translateX(-60px);
}

/* Exiting to the left */
.step.exit-left {
  opacity: 0;
  transform: translateX(-60px);
}

/* Exiting to the right */
.step.exit-right {
  opacity: 0;
  transform: translateX(60px);
}

/* ─────────────────────────────────────────────
   STEP 1
───────────────────────────────────────────── */

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

/* Pulsing green dot */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(1.5);
  }
}

/* Headlines */
.headline {
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}

/* Typewriter cursor */
.type-cursor {
  display: inline-block;
  color: var(--text);
  font-weight: 300;
  opacity: 1;
  animation: cursorBlink 0.55s ease-in-out infinite alternate;
  margin-left: 2px;
}

@keyframes cursorBlink {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

.subheading {
  font-size: 1rem;
  font-weight: 300;
  color: var(--muted);
  margin-top: -6px;
}

/* Email input row */
.input-wrapper {
  position: relative;
  width: 100%;
  margin-top: 4px;
}

.email-input {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 14px 56px 14px 22px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--text);
  text-align: center;
  outline: none;
  transition: border-color 0.25s;
}

.email-input::placeholder {
  color: var(--muted);
}

.email-input:focus {
  border-color: rgba(255, 255, 255, 0.35);
}

/* Arrow submit button */
.arrow-btn {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: background 0.2s;
}

.arrow-btn:hover {
  background: #e5e5e5;
}

.arrow-icon {
  position: absolute;
  font-size: 1rem;
  color: #000;
  font-style: normal;
  transition: transform 0.3s ease, opacity 0.3s ease;
  line-height: 1;
}

/* Default: show arrow-out, hide arrow-in */
.arrow-out {
  transform: translateX(0);
  opacity: 1;
}

.arrow-in {
  transform: translateX(-16px);
  opacity: 0;
}

/* On hover: arrow-out slides right out, arrow-in slides in from left */
.arrow-btn:hover .arrow-out {
  transform: translateX(16px);
  opacity: 0;
}

.arrow-btn:hover .arrow-in {
  transform: translateX(0);
  opacity: 1;
}

/* Hint & error */
.input-hint {
  font-size: 0.78rem;
  color: var(--muted);
}

.input-hint.error {
  color: #f87171;
}

/* Footer note */
.footer-note {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  line-height: 1.6;
  max-width: 280px;
}

.footer-link {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--text);
}

/* ─────────────────────────────────────────────
   STEP 2
───────────────────────────────────────────── */
.benefits-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
}

.check {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step2-btns {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.btn-back {
  flex: 0 0 30%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 9999px;
  padding: 13px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s;
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.13);
}

.btn-reserve {
  flex: 1;
  background: #fff;
  border: none;
  color: #000;
  border-radius: 9999px;
  padding: 13px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-reserve:hover {
  opacity: 0.88;
}

/* ─────────────────────────────────────────────
   STEP 3
───────────────────────────────────────────── */
.check-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.position-card {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  text-align: center;
}

.position-number {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.position-sub {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 6px;
}

.btn-share {
  width: 100%;
  background: #fff;
  border: none;
  color: #000;
  border-radius: 9999px;
  padding: 14px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-share:hover {
  opacity: 0.88;
}

.btn-home {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 9999px;
  padding: 13px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-home:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 640px) {

  .nav-center {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-dropdown {
    display: flex;
  }

  .navbar-inner {
    padding: 10px 18px;
  }
}

/* ─────────────────────────────────────────────
   TOAST NOTIFICATION
───────────────────────────────────────────── */
.toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(31, 31, 31, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 12px 20px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.toast-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.9;
}

.toast-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.toast-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.toast-sub {
  font-size: 0.75rem;
  color: var(--muted);
}