/* Local Fallback Font */
@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;
}

/* Global Reset */
*, *::before, *::after {
  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;
}

body.menu-open {
  overflow: hidden;
}

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

/* Background Video Container */
.bg {
  position: absolute;
  inset: 0;
  background-color: var(--bg);
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
}

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

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

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  width: 100%;
  max-width: 720px;
  flex-shrink: 0;
  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-color: #ffffff;
  box-shadow: var(--nav-shadow);
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

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

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

/* Nav Pill (White) */
.nav-pill {
  background-color: #ffffff;
  height: clamp(44px, 5.2vw, 48px);
  max-width: 430px;
  flex: 1;
  padding: 4px 12px;
  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);
  opacity: 0.5;
  transition: opacity 0.2s ease;
  position: relative;
  padding: 6px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

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

/* Active indicator: three 3x3px black dots */
.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;
}

/* Sign in Button */
.sign-in-btn {
  background-color: var(--pill-dark);
  color: var(--sign-in-text);
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 clamp(18px, 2vw, 24px);
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  cursor: pointer;
  border: 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 Button (Hidden on Desktop) */
.burger-btn {
  display: none;
}

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

/* Trust Row */
.trust-row {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  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-color: 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 ease;
}

.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); }

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

/* Trust Pill */
.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: inline-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(14px, 2vh, 20px);
  display: flex;
  flex-direction: column;
  align-items: 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(--d, 0.12s);
}

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

/* Subhead */
.subhead {
  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;
  max-width: min(500px, 92%);
  margin: 0 auto clamp(20px, 3vh, 32px);
}

/* CTA Button */
.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 ease, box-shadow 0.25s ease;
  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 30px rgba(255, 255, 255, 0.45),
              0 0 60px rgba(255, 255, 255, 0.22);
}

/* Stats Footer */
.stats-footer {
  width: 100%;
  max-width: 920px;
  flex-shrink: 0;
  padding-top: clamp(12px, 2vh, 20px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 3vw, 32px);
  align-items: flex-start;
  text-align: center;
}

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

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

.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;
  margin-bottom: 2px;
}

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

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

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

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

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.95);
    filter: blur(6px);
    box-shadow: 0 0 0 rgba(255, 255, 255, 0);
  }
  70% {
    opacity: 1;
    transform: translateY(-2px) scale(1.03);
    filter: blur(0);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.3),
                0 0 30px rgba(255, 255, 255, 0.5),
                0 0 60px rgba(255, 255, 255, 0.25);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    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);
  }
}

/* Mobile Breakpoints */
@media (max-width: 720px) {
  .desktop-only, .nav-pill {
    display: none !important;
  }

  .header {
    justify-content: space-between;
    max-width: 100%;
  }

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

  .burger-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--pill-dark);
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 4.5px;
    z-index: 1001;
    transition: background-color 0.3s ease;
  }

  .burger-bar {
    width: 18px;
    height: 1.5px;
    background-color: #ffffff;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .burger-btn.active {
    background-color: #ffffff;
  }

  .burger-btn.active .burger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background-color: #000000;
  }

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

  .burger-btn.active .burger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
    background-color: #000000;
  }

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

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
  }

  .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: 999;
    animation: overlayIn 0.28s ease forwards;
  }

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

  .mobile-menu {
    position: fixed;
    top: clamp(70px, 10vh, 90px);
    left: 16px;
    right: 16px;
    max-width: 400px;
    margin: 0 auto;
    background-color: #ffffff;
    border-radius: 28px;
    padding: 22px 18px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 16px;
    animation: menuIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

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

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

  .mobile-link {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 16px;
    color: #2e2e2e;
    opacity: 0.6;
    padding: 8px 16px;
    position: relative;
    transition: opacity 0.2s ease;
    animation: linkIn 0.3s ease both;
  }

  .mobile-link:nth-child(1) { animation-delay: 0.05s; }
  .mobile-link:nth-child(2) { animation-delay: 0.1s; }
  .mobile-link:nth-child(3) { animation-delay: 0.15s; }
  .mobile-link:nth-child(4) { animation-delay: 0.2s; }

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

  .mobile-link.active::after {
    content: "";
    position: absolute;
    bottom: 8px;
    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-sign-in {
    background-color: var(--pill-dark);
    color: #ffffff;
    text-align: center;
    padding: 14px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 15px;
    margin-top: 4px;
    animation: linkIn 0.3s ease 0.25s both;
  }

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

@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) {
  .page {
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .trust-row {
    margin-bottom: 12px;
  }
  .headline {
    margin-bottom: 10px;
  }
  .subhead {
    margin-bottom: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .anim, .headline-line, .anim-pulse, .header {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .headline {
    color: #ffffff;
  }
}
