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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: #fff;
  overflow: hidden;
}

/* NAV */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid #ebebeb;
  position: fixed;
  top: 0;
  width: 100%;
  background: #fff;
  z-index: 100;
}

/* LEFT LOGO (UNIFIED WITH OTHER PAGES) */
.nav-logo {
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.3px;
  line-height: 1;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #111;
  font: inherit;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background: #111;
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

/* RIGHT SIDE */
.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  font-size: 13px;
  color: #555;
  text-decoration: none;
}

.nav-links a:hover {
  color: #111;
}

.nav-signin {
  font-size: 13px;
  color: #555;
  text-decoration: none;
}

.nav-signin:hover {
  color: #111;
}

/* HARD RESET FOR CONSISTENCY */
.nav-links a,
.nav-signin,
.logo-link {
  text-decoration: none;
}

/* HERO */
.hero {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10;
}

/* WHITE BOX */
.hero-box {
  background: rgba(255,255,255,0.9);
  padding: 40px 60px;
  border-radius: 16px;
  backdrop-filter: blur(6px);
  text-align: center;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  pointer-events: auto;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
}

.hero-sub {
  margin-top: 10px;
  font-size: 14px;
  color: #888;
}

.hero-meta {
  margin-top: 6px;
  font-size: 12px;
  color: #bbb;
}

.enter-btn {
  margin-top: 24px;
  padding: 10px 18px;
  border: 1px solid #111;
  background: #111;
  color: #fff;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
  pointer-events: auto;
}

/* CANVAS (FIXED FOR INFINITE FEEL) */
.canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  height: max-content;
  cursor: grab;
  will-change: transform;
}

.canvas:active {
  cursor: grabbing;
}

.canvas {
  will-change: transform;
}

/* GRID (infinite-style density fix) */
.grid {
  display: grid;
  grid-template-columns: repeat(45, 220px);
  gap: 40px;
  padding: 200px;
  justify-content: center;
  align-content: center;
}

/* CARDS */
.card {
  text-decoration: none;
  color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
}

/* title below image */
.card-title {
  margin-top: 8px;
  font-size: 13px;
  text-align: center;
  color: #111;
}

/* =========================== MOBILE NAV (max-width: 768px) =========================== */
@media (max-width: 768px) {

  .nav-links { display: none; }
  .nav-right > #auth-area { display: none; }

  .nav-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin-left: 12px;
  }
  .nav-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #111;
    border-radius: 2px;
  }

  .mobile-menu {
    display: none;
    position: fixed;
    top: 57px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #ebebeb;
    z-index: 99;
    padding: 12px 0 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  }
  .mobile-menu.open { display: block; }
  .mobile-menu a {
    display: block;
    padding: 12px 24px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
  }
  .mobile-menu a:last-child { border-bottom: none; }
  .mobile-menu a:hover { background: #fafafa; }
  .mobile-menu-signin {
    display: block;
    padding: 12px 24px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
  }

  /* =========================== MOBILE SPLASH =========================== */
  body { overflow: auto; }

  .hero {
    position: fixed;
    top: 57px;
    left: 0; right: 0; bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 32px 24px;
    pointer-events: auto;
    z-index: 5;
  }

  .hero-box {
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
    padding: 36px 32px;
    margin: 0;
    text-align: center;
    width: 100%;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid #ebebeb;
    border-radius: 16px;
  }

  /* Logo icon above the title */
  .hero-box::before {
    content: 'B';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #111;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    border-radius: 10px;
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
    color: #111;
    line-height: 1;
    margin-bottom: 8px;
  }

  .hero-sub {
    font-size: 11px;
    color: #aaa;
    margin-top: 0;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
  }

  .hero-meta {
    font-size: 12px;
    color: #bbb;
    margin-bottom: 28px;
    margin-top: 6px;
  }

  .enter-btn {
    display: block;
    width: 100%;
    padding: 14px 20px;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    letter-spacing: 0.2px;
    margin-top: 0;
  }

  .mobile-splash-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    max-width: 300px;
  }

  .mobile-splash-links a {
    font-size: 12px;
    color: #999;
    text-decoration: none;
  }

  .mobile-splash-links a:hover { color: #111; }

}

/* Hide mobile-only elements on desktop */
@media (min-width: 769px) {
  .nav-hamburger { display: none; }
  .mobile-menu { display: none !important; }
  .mobile-splash-links { display: none; }
}