/* ── Google Fonts & OnlineWebFonts & FontAwesome Imports ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');
@import url('https://db.onlinewebfonts.com/c/8cb707a9b8a73f8a7403336b861c3074?family=BubbledotICG-FinePos');

@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;
}

[hidden] {
  display: none !important;
}

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

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

/* Background video container */
.bg {
  position: absolute;
  inset: 0;
  background: #000;
  overflow: hidden;
  z-index: 0;
}

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

/* Main single viewport layout */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
  overflow: hidden;
}

/* Splash curtain */
.splash-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  pointer-events: none;
}
.splash-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.splash-top {
  flex: 1;
  background: #000;
  animation: splashUp 0.75s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
.splash-bottom {
  flex: 1;
  background: #000;
  animation: splashDown 0.75s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}
@keyframes splashUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-100%); }
}
@keyframes splashDown {
  0% { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ── 1) HEADER ── */
.header {
  flex-shrink: 0;
  width: 100%;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  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 circle */
.logo-btn {
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #ffffff;
  box-shadow: var(--nav-shadow);
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease;
  flex-shrink: 0;
  padding: 0;
}
.logo-btn:hover {
  transform: scale(1.04);
}
.logo-img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

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

.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;
  opacity: 0.5;
  transition: opacity 0.2s ease;
  position: relative;
  padding: 4px 8px;
}
.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;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

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

/* Mobile burger button */
.burger-btn {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pill-dark);
  border: none;
  cursor: pointer;
  position: relative;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  box-shadow: var(--nav-shadow);
  transition: background 0.25s ease, transform 0.25s ease;
}
.burger-bar {
  width: 18px;
  height: 1.5px;
  background: #ffffff;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
}

/* ── 2) HERO ── */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  max-width: 900px;
}

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

.avatar-ring {
  width: var(--trust-size);
  height: var(--trust-size);
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  padding: 5px;
  display: grid;
  place-items: center;
  transition: transform 0.35s ease;
  position: relative;
}
.avatar-ring:nth-child(1) { z-index: 1; }
.avatar-ring:nth-child(2) { z-index: 2; margin-left: calc(var(--trust-size) * -0.42); }
.avatar-ring:nth-child(3) { z-index: 4; margin-left: calc(var(--trust-size) * -0.42); }

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

.avatar-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  display: grid;
  place-items: center;
}
.avatar-icon {
  font-size: calc(var(--trust-size) * 0.34);
  color: #111111;
}

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

/* Headline */
.headline {
  font-family: var(--font-display);
  font-weight: 400;
  color: #ffffff;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: clamp(12px, 2vh, 20px);
}
.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;
}
.headline-line:nth-child(1) { animation-delay: 0.12s; }
.headline-line:nth-child(2) { animation-delay: 0.3s; }

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

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

/* CTA button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  background: #ffffff;
  color: #000000;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  border-radius: 999px;
  text-decoration: none;
  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.25s ease, box-shadow 0.25s ease;
  border: none;
  cursor: pointer;
}
.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 56px rgba(255,255,255,0.22);
}

/* ── 3) STATS FOOTER ── */
.stats {
  flex-shrink: 0;
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  margin-top: auto;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

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

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

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

/* Shared entrance animation for .anim elements */
.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);
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

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

@keyframes revealPulse {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ── MOBILE OVERLAY & MENU (<=720px) ── */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: overlayIn 0.28s ease forwards;
}
@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.mobile-sheet {
  position: fixed;
  top: clamp(64px, 9vh, 84px);
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, 90%);
  background: #ffffff;
  border-radius: 28px;
  padding: 22px 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  z-index: 101;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes menuIn {
  from { opacity: 0; transform: translate(-50%, -12px) scale(0.96); }
  to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

.mobile-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: #2e2e2e;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.2s ease;
  animation: linkIn 0.35s ease cubic-bezier(0.22, 1, 0.36, 1) both;
}
.mobile-link:hover {
  background: rgba(0, 0, 0, 0.04);
}
.mobile-link.active::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

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

.mobile-signin-btn {
  margin-top: 8px;
  width: 100%;
  height: 48px;
  background: #28282a;
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

/* Burger active state (white circle with black X) */
body.menu-open .burger-btn {
  background: #ffffff;
}
body.menu-open .burger-bar {
  background: #000000;
}
body.menu-open .burger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
body.menu-open .burger-bar:nth-child(2) {
  opacity: 0;
}
body.menu-open .burger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Breakpoint rules */
@media (max-width: 720px) {
  .header {
    justify-content: space-between;
  }
  .nav-pill, .sign-in-btn {
    display: none;
  }
  .burger-btn {
    display: flex;
  }
  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
  }
}

@media (max-width: 420px) {
  .trust-row {
    --trust-size: 34px;
  }
  .headline {
    letter-spacing: -0.09em;
    line-height: 1.04;
  }
  .trust-pill {
    font-size: 12px;
  }
}

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