/* CSS variables (exact) */
: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: "Geist Pixel Circle", monospace;
}

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

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

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

a {
  text-decoration: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

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

.bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.35); /* Darkens the video */
  pointer-events: none;
}

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

/* Layout composition */
.page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

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

.logo-btn {
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  background-color: #fff;
  border-radius: 50%;
  box-shadow: var(--nav-shadow);
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}

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

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

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

.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;
  padding: 0 12px;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

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

.sign-in-btn {
  background-color: var(--pill-dark);
  color: var(--sign-in-text);
  height: clamp(44px, 5.2vw, 48px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 999px;
  box-shadow: var(--nav-shadow);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  transition: all 0.2s ease;
}

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

.burger-btn {
  display: none;
}

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

.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: flex;
  align-items: center;
}

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

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

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

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

.avatar-ring.a1:hover { transform: translateY(-2px); z-index: 10; }
.avatar-ring.a2:hover { transform: translateY(-4px); z-index: 10; }
.avatar-ring.a3:hover { transform: translateY(-2px); z-index: 10; }

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

.headline {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  white-space: nowrap;
  margin-bottom: 24px;
}

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

.headline-line.line1 {
  animation-delay: 0.12s;
}

.headline-line.line2 {
  animation-delay: 0.3s;
}

.subhead {
  max-width: min(500px, 92%);
  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-bottom: 32px;
}

.cta {
  background-color: #fff;
  color: #000;
  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.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.25), 0 0 32px rgba(255,255,255,0.42), 0 0 54px rgba(255,255,255,0.22);
}

.cta.anim {
  opacity: 0;
  animation-name: revealPulse;
}

/* Download Cards */
.download-grid {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 680px;
  margin-top: 1.5rem;
}

.download-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: #fff;
  text-decoration: none;
  min-width: 280px;
  max-width: 320px;
  flex: 1;
  text-align: left;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}

.download-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(255, 255, 255, 0.1);
}

.download-card.primary {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.download-card.primary:hover {
  background: #f0f0f0;
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.5), 0 12px 30px rgba(0, 0, 0, 0.3);
}

.download-card.disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

.download-card.disabled:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.download-card-icon {
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.download-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.download-card-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  opacity: 0.8;
}

.download-card.primary .download-card-tag {
  color: #10b981;
}

.download-card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.download-card-sub {
  font-size: 12px;
  opacity: 0.7;
}

.download-card-action {
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}


/* 3) Stats footer */
.stats-footer {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  max-width: 920px;
  gap: 16px;
}

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

.stat-icon {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(22px, 3vw, 33px);
  margin-bottom: 8px;
}

.stat-value {
  font-family: var(--font-sans);
  color: #fff;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  margin-bottom: 2px;
}

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

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

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

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .anim {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .headline-line {
    opacity: 1;
    transform: none;
  }
  .cta {
    opacity: 1;
    transform: none;
  }
}

/* Mobile (<=720px) */
@media (max-width: 720px) {
  .header {
    justify-content: space-between;
    max-width: 100%;
  }
  
  .desktop-nav, .sign-in-btn {
    display: none;
  }

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

  .burger-btn {
    display: flex;
    width: 48px;
    height: 48px;
    background-color: #28282a;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 100; /* above menu */
    transition: background-color 0.2s ease;
  }

  .burger-bars {
    width: 18px;
    height: 1.5px;
    background-color: #fff;
    position: relative;
    transition: all 0.2s ease;
  }

  .burger-bars::before, .burger-bars::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 1.5px;
    background-color: #fff;
    left: 0;
    transition: all 0.2s ease;
  }

  .burger-bars::before { transform: translateY(-6.5px); }
  .burger-bars::after { transform: translateY(6.5px); }

  /* Burger open state */
  body.menu-open .burger-btn {
    background-color: #fff;
  }
  
  body.menu-open .burger-bars {
    background-color: transparent;
  }

  body.menu-open .burger-bars::before {
    background-color: #000;
    transform: translateY(0) rotate(45deg);
  }

  body.menu-open .burger-bars::after {
    background-color: #000;
    transform: translateY(0) rotate(-45deg);
  }

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

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
  }
  
  /* Mobile menu overlay */
  .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: 40;
    display: none;
    opacity: 0;
  }
  
  body.menu-open .mobile-overlay {
    display: block;
    animation: overlayIn 0.28s forwards;
  }

  .mobile-menu {
    position: fixed;
    top: calc(clamp(16px, 2.4vh, 28px) + 48px + 16px); /* padding top + header height + gap */
    left: 16px;
    right: 16px;
    background-color: #fff;
    border-radius: 28px;
    padding: 22px 18px 20px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.45);
    z-index: 50;
    display: none;
    transform-origin: top;
    opacity: 0;
    transform: scaleY(0.95) translateY(-10px);
  }

  body.menu-open .mobile-menu {
    display: block;
    animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }

  .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: var(--nav-text);
    padding: 10px;
    width: 100%;
    text-align: center;
    position: relative;
    opacity: 0;
  }

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

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

  .mobile-sign-in {
    margin-top: 8px;
    background-color: var(--pill-dark);
    color: var(--sign-in-text);
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 999px;
    font-weight: 500;
    font-size: 15px;
    opacity: 0;
  }

  body.menu-open .mobile-sign-in {
    animation: linkIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: calc(0.1s + var(--i) * 0.04s);
  }

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

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

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

/* <=420px tweaks */
@media (max-width: 420px) {
  .headline {
    letter-spacing: -0.09em;
    line-height: 1.04;
  }
  .trust-row {
    --trust-size: 34px;
  }
}

/* Height tighten hero spacing */
@media (max-height: 700px) {
  .hero {
    gap: 16px;
  }
  .headline {
    margin-bottom: 16px;
  }
  .subhead {
    margin-bottom: 24px;
  }
  .trust-row {
    margin-bottom: 16px;
  }
}
