@font-face {
  font-family: "Spotlight Typewriter NC";
  src: url("fonts/Spotlight_Typewriter_NC.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", "Geist Pixel Circle", monospace;
}

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

html, body {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background video */
.bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #000000;
  z-index: 0;
  pointer-events: none;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* Layout container: Single Viewport, 3 regions */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  overflow: hidden;
  transition: justify-content 0.3s ease;
}

/* ------------------------------------------------------------- */
/* 1) HEADER (Top, shrink 0)                                     */
/* ------------------------------------------------------------- */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 720px;
  gap: clamp(18px, 2.8vw, 28px);
  flex-shrink: 0;
  z-index: 10;
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Logo */
.logo-btn {
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--nav-shadow);
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1);
  text-decoration: none;
}

.logo-btn:hover {
  transform: scale(1.04);
}

.logo-btn img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  display: block;
}

/* Desktop Nav Pill */
.nav-pill {
  background: #ffffff;
  height: clamp(44px, 5.2vw, 48px);
  max-width: 430px;
  flex: 1;
  padding: 4px 8px;
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.nav-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  color: var(--nav-text);
  text-decoration: none;
  position: relative;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 10px;
  white-space: nowrap;
}

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

.nav-link.active {
  opacity: 1;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background: #000000;
  border-radius: 50%;
  box-shadow: -5px 0 0 #000000, 5px 0 0 #000000;
}

/* Sign in button */
.sign-in-btn {
  background: var(--pill-dark);
  color: var(--sign-in-text);
  height: clamp(44px, 5.2vw, 48px);
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
  border: none;
  padding: 0 clamp(16px, 2vw, 24px);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.sign-in-btn:hover {
  background-color: #323234;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Mobile burger trigger */
.burger-btn {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #28282a;
  border: none;
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  box-shadow: var(--nav-shadow);
  transition: background-color 0.25s ease, transform 0.25s ease;
  z-index: 110;
}

.burger-bar {
  width: 18px;
  height: 1.5px;
  background-color: #ffffff;
  border-radius: 1px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.28s ease, background-color 0.28s ease;
}

.burger-btn[aria-expanded="true"] {
  background-color: #ffffff;
}

.burger-btn[aria-expanded="true"] .burger-bar {
  background-color: #000000;
}

.burger-btn[aria-expanded="true"] .burger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger-btn[aria-expanded="true"] .burger-bar:nth-child(2) {
  opacity: 0;
}

.burger-btn[aria-expanded="true"] .burger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ------------------------------------------------------------- */
/* 2) HERO (Center, flex 1)                                      */
/* ------------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 900px;
  width: 100%;
  flex: 1;
  min-height: 0;
  z-index: 2;
}

.normal-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Trust Row */
.trust-row {
  display: inline-flex;
  align-items: center;
  --trust-size: clamp(36px, 4.5vw, 42px);
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.trust-avatars {
  display: inline-flex;
  align-items: center;
}

.trust-avatar {
  width: var(--trust-size);
  height: var(--trust-size);
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  padding: 5px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.trust-avatar .inner-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-avatar i {
  color: #111111;
  font-size: calc(var(--trust-size) * 0.34);
  line-height: 1;
}

.trust-avatar:nth-child(1) {
  z-index: 1;
}

.trust-avatar:nth-child(2) {
  margin-left: calc(var(--trust-size) * -0.42);
  z-index: 2;
}

.trust-avatar:nth-child(3) {
  margin-left: calc(var(--trust-size) * -0.42);
  z-index: 4;
}

.trust-avatar:nth-child(1):hover {
  transform: translateY(-2px);
}

.trust-avatar:nth-child(2):hover {
  transform: translateY(-4px);
}

.trust-avatar:nth-child(3):hover {
  transform: translateY(-2px);
}

.trust-pill {
  height: var(--trust-size);
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  margin-left: calc(var(--trust-size) * -0.42);
  padding-left: calc(var(--trust-size) * 0.58);
  padding-right: clamp(14px, 1.8vw, 20px);
  font-family: var(--font-sans);
  font-weight: 500;
  color: var(--trust-text);
  font-size: clamp(12px, 1.4vw, 13.5px);
  white-space: nowrap;
  z-index: 3;
}

/* Headline */
.headline {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0 0 clamp(12px, 2vh, 18px) 0;
  text-align: center;
}

.headline-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--line-delay, 0.12s);
}

@keyframes headlineFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.headline.anim {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
}

/* Subhead */
.subhead {
  max-width: min(500px, 92%);
  font-family: var(--font-sans);
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  color: #d0d0d0;
  opacity: 0.8;
  line-height: 1.55;
  font-weight: 400;
  margin: 0 auto clamp(18px, 2.8vh, 28px) auto;
}

/* CTA */
.cta-btn {
  background: #ffffff;
  color: #000000;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15), 0 0 22px rgba(255,255,255,0.32), 0 0 44px rgba(255,255,255,0.12);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, background-color 0.2s ease;
}

.cta-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25), 0 0 28px rgba(255,255,255,0.48), 0 0 54px rgba(255,255,255,0.2);
}

/* ------------------------------------------------------------- */
/* 3) DEV MODE (UNDER CONSTRUCTION) TYPING EFFECT                */
/* ------------------------------------------------------------- */
.dev-hero-content {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  animation: fadeIn 0.6s ease forwards;
}

.dev-typing-container {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dev-typing-text {
  font-family: "Spotlight Typewriter NC", "Geist Pixel Circle", monospace;
  font-size: clamp(34px, 7.5vw, 86px);
  letter-spacing: 0.02em;
  color: #ffffff;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 0 25px rgba(255, 255, 255, 0.45);
}

.typing-cursor {
  display: inline-block;
  width: clamp(3px, 0.4vw, 5px);
  height: clamp(30px, 6.5vw, 74px);
  background-color: #ffffff;
  margin-left: clamp(4px, 0.8vw, 10px);
  border-radius: 2px;
  animation: blinkCursor 0.85s infinite;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.7);
}

@keyframes blinkCursor {
  0%, 45% {
    opacity: 1;
  }
  50%, 95% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.97);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ------------------------------------------------------------- */
/* BODY IN DEV MODE (Hides everything except background & typing)*/
/* ------------------------------------------------------------- */
body.dev-mode-active .page {
  justify-content: center;
  align-items: center;
}

body.dev-mode-active .header,
body.dev-mode-active .normal-hero-content,
body.dev-mode-active .stats-footer,
body.dev-mode-active .mobile-overlay,
body.dev-mode-active .mobile-sheet {
  display: none !important;
}

body.dev-mode-active .dev-hero-content {
  display: flex !important;
}

/* Subtle secret admin link in dev mode (accessible in bottom right) */
body.dev-mode-active .admin-floating-btn {
  opacity: 0;
  pointer-events: auto;
}

body.dev-mode-active .admin-floating-btn:hover {
  opacity: 0.8;
}

/* ------------------------------------------------------------- */
/* 4) STATS FOOTER (Bottom, shrink 0)                           */
/* ------------------------------------------------------------- */
.stats-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 920px;
  width: 100%;
  gap: clamp(12px, 2vw, 24px);
  flex-shrink: 0;
  z-index: 10;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stat-icon {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: clamp(22px, 3vw, 33px);
  margin-bottom: 2px;
  line-height: 1;
}

.stat-value {
  font-family: var(--font-sans);
  color: #ffffff;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 600;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.stat-label {
  font-family: var(--font-sans);
  color: var(--muted);
  font-size: clamp(11px, 1.2vw, 12.5px);
  margin-top: 4px;
}

/* ------------------------------------------------------------- */
/* SHARED ENTRANCE ANIMATIONS                                    */
/* ------------------------------------------------------------- */
.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

.cta-btn.anim {
  animation: revealPulse 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0.4s);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.95);
    filter: blur(6px);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ------------------------------------------------------------- */
/* MOBILE MENU OVERLAY & SHEET                                   */
/* ------------------------------------------------------------- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-sheet {
  position: fixed;
  top: 76px;
  left: 16px;
  right: 16px;
  max-width: 440px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 28px;
  padding: 22px 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  z-index: 101;
  transform: translateY(-16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.38s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-sheet.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mobile-nav-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--nav-text);
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 14px;
  text-align: center;
  position: relative;
  opacity: 0.7;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.mobile-nav-link:hover {
  background-color: rgba(0, 0, 0, 0.04);
  opacity: 1;
}

.mobile-nav-link.active {
  opacity: 1;
  font-weight: 600;
}

.mobile-nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  background: #000000;
  border-radius: 50%;
  box-shadow: -5px 0 0 #000000, 5px 0 0 #000000;
}

.mobile-sign-in {
  background: var(--pill-dark);
  color: var(--sign-in-text);
  height: 48px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-top: 6px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.mobile-sign-in:hover {
  background-color: #323234;
  color: #ffffff;
}

/* Floating admin link */
.admin-floating-btn {
  position: fixed;
  bottom: 14px;
  right: 14px;
  z-index: 99;
  background: rgba(40, 40, 42, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #c4c2c3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-decoration: none;
  opacity: 0.45;
  transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.admin-floating-btn:hover {
  opacity: 1;
  transform: scale(1.1);
  background: rgba(50, 50, 52, 0.95);
  color: #ffffff;
}

/* ------------------------------------------------------------- */
/* RESPONSIVE MEDIA QUERIES                                      */
/* ------------------------------------------------------------- */

/* <=720px Breakpoint */
@media (max-width: 720px) {
  .header {
    justify-content: space-between;
    max-width: 100%;
  }

  .nav-pill,
  .sign-in-btn {
    display: none;
  }

  .logo-btn {
    width: 48px;
    height: 48px;
  }

  .burger-btn {
    display: flex;
  }

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
  }

  .dev-typing-text {
    letter-spacing: -0.08em;
  }

  .stats-footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 10px;
    max-width: 420px;
  }
}

/* <=420px Breakpoint */
@media (max-width: 420px) {
  .trust-row {
    --trust-size: 34px;
  }

  .trust-pill {
    font-size: 12px;
  }

  .headline {
    letter-spacing: -0.09em;
    line-height: 1.04;
  }

  .dev-typing-text {
    letter-spacing: -0.09em;
  }
}

/* <=700px Viewport Height */
@media (max-height: 700px) {
  .page {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .trust-row {
    margin-bottom: 12px;
  }

  .headline {
    margin-bottom: 10px;
  }

  .subhead {
    margin-bottom: 16px;
    line-height: 1.4;
  }

  .stats-footer {
    gap: 8px 12px;
  }

  .stat-icon {
    font-size: 20px;
  }

  .stat-value {
    font-size: 18px;
  }

  .stat-label {
    font-size: 10.5px;
    margin-top: 2px;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .anim,
  .cta-btn.anim,
  .header,
  .headline-line {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
