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

/* CSS Variables */
: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;
}

/* Reset & Base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* Background Video */
.bg {
  position: fixed;
  inset: 0;
  background: var(--bg);
  overflow: hidden;
  z-index: 0;
}

/* Readability scrim: keeps hero copy legible over the brightest video frames */
.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    78% 58% at 50% 50%,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.18) 68%,
    rgba(0, 0, 0, 0) 100%
  );
}

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

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

/* 1) Header */
.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: 2;
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

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

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

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

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

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  list-style: none;
}

.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);
  opacity: 0.5;
  padding: 6px 12px;
  transition: opacity 0.2s ease;
  position: relative;
}

.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-color: #000000;
  border-radius: 50%;
  box-shadow: -5px 0 0 #000000, 5px 0 0 #000000;
}

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

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

/* Mobile Burger Button (hidden by default on desktop) */
.burger-btn {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  width: 48px;
  height: 48px;
  background-color: var(--pill-dark);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: var(--nav-shadow);
  transition: background-color 0.25s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.burger-btn .bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background-color: #ffffff;
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.25s ease, background-color 0.25s ease;
}

/* Burger Open State */
body.menu-open .burger-btn {
  background-color: #ffffff;
}

body.menu-open .burger-btn .bar {
  background-color: #000000;
}

body.menu-open .burger-btn .bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

body.menu-open .burger-btn .bar:nth-child(2) {
  opacity: 0;
}

body.menu-open .burger-btn .bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}


/* 2) Hero Section */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 900px;
  margin: auto 0;
  z-index: 2;
}

/* 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-group {
  display: inline-flex;
  align-items: center;
  position: relative;
}

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

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

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

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

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

.trust-pill {
  height: var(--trust-size);
  background-color: 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, 2vw, 18px);
  display: flex;
  align-items: center;
  z-index: 3;
}

.trust-pill span {
  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);
  color: #ffffff;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: clamp(12px, 1.8vh, 20px);
  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;
}

.line-1 { animation-delay: 0.12s; }
.line-2 { animation-delay: 0.3s; }

/* 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));
  font-weight: 400;
  color: #d0d0d0;
  opacity: 0.8;
  line-height: 1.55;
  margin-bottom: clamp(18px, 2.8vh, 32px);
}

/* CTA Wrap & Button */
.cta-wrap {
  display: flex;
  justify-content: center;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #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;
  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 cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.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.45), 0 0 56px rgba(255, 255, 255, 0.2);
}


/* 3) Stats Footer */
.stats-footer {
  width: 100%;
  max-width: 920px;
  flex-shrink: 0;
  z-index: 2;
  margin-top: auto;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  align-items: center;
}

.stat-item {
  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: 2px;
}

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

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


/* 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);
}

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

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

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

@keyframes reveal {
  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% {
    transform: translateY(-2px) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}


/* Mobile Overlay & Menu Sheet */
.mobile-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.mobile-overlay.active {
  opacity: 1;
  pointer-events: auto;
  animation: overlayIn 0.28s ease forwards;
}

.mobile-sheet {
  position: fixed;
  top: clamp(68px, 10vh, 84px);
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 400px;
  background-color: #ffffff;
  border-radius: 28px;
  padding: 22px 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  z-index: 11;
  display: flex;
  flex-direction: column;
}

.mobile-sheet[hidden] {
  display: none;
}

.mobile-sheet.active {
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.mobile-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  color: var(--nav-text);
  padding: 8px 16px;
  width: 100%;
  text-align: center;
  position: relative;
  opacity: 0;
}

.mobile-sheet.active .mobile-link {
  animation: linkIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 1) * 0.05s + 0.1s);
}

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

.mobile-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  background-color: var(--pill-dark);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  border-radius: 999px;
  opacity: 0;
}

.mobile-sheet.active .mobile-signin {
  animation: linkIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i, 5) * 0.05s + 0.1s);
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translate(-50%, -12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

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


/* Media Queries & Responsiveness */
@media (max-width: 720px) {
  .header {
    justify-content: space-between;
    max-width: 100%;
  }

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

  .burger-btn {
    display: flex;
  }

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

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    row-gap: clamp(14px, 2vh, 20px);
  }
}

@media (max-width: 420px) {
  .trust-row {
    --trust-size: 34px;
  }

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

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

@media (max-height: 700px) {
  .trust-row {
    margin-bottom: 12px;
  }

  .headline {
    margin-bottom: 10px;
  }

  .subhead {
    margin-bottom: 16px;
  }
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .header,
  .anim,
  .pulse-anim,
  .headline-line,
  .mobile-sheet.active,
  .mobile-sheet.active .mobile-link,
  .mobile-sheet.active .mobile-signin {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}
