: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);
  --font-sans: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: "BubbledotICG-FinePos", monospace;
}

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

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

body.menu-open {
  overflow: hidden;
}

.bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
  z-index: 0;
}

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

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

.header,
.hero,
.stats,
.mobile-menu,
.overlay {
  z-index: 1;
}

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

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

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

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

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

.nav-link {
  position: relative;
  color: var(--nav-text);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 15px);
  letter-spacing: -0.01em;
  text-decoration: none;
  opacity: 0.5;
  padding: 0 8px;
  line-height: clamp(44px, 5.2vw, 48px);
}

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

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

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

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

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

.burger {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #28282a;
  place-items: center;
  gap: 5px;
  cursor: pointer;
  padding: 0;
}

.burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.28s, opacity 0.2s, background 0.2s;
}

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

.burger[aria-expanded="true"] span {
  background: #000;
}

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

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

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

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 900px;
  width: 100%;
  min-height: 0;
}

.eyebrow {
  margin: 0 0 clamp(12px, 2vh, 20px);
  font-family: var(--font-display);
  font-size: clamp(20px, 3.2vw, 36px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: rgba(255, 255, 255, 0.72);
  text-transform: lowercase;
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(32px, 7.4vw, 92px);
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #fff;
  max-width: 14ch;
}

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

.subhead {
  margin: clamp(14px, 2vh, 22px) auto 0;
  max-width: min(500px, 92%);
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  line-height: 1.55;
  font-weight: 400;
  color: #d0d0d0;
  opacity: 0.8;
}

.cta {
  margin-top: clamp(18px, 2.8vh, 28px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  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, box-shadow 0.25s;
  animation: revealPulse 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0.4s);
  opacity: 0;
}

.cta:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 0 28px rgba(255, 255, 255, 0.42),
    0 0 56px rgba(255, 255, 255, 0.18);
}

.stats {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  width: 100%;
  max-width: 920px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

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

.stat-value {
  font-family: var(--font-display);
  color: #fff;
  font-size: clamp(22px, 2.8vw, 34px);
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

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

.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.anim {
  filter: none;
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  animation: overlayIn 0.28s ease both;
}

.mobile-menu {
  position: fixed;
  z-index: 30;
  left: 50%;
  top: calc(clamp(16px, 2.4vh, 28px) + 56px);
  transform: translateX(-50%);
  width: min(92vw, 420px);
  border-radius: 28px;
  background: #fff;
  padding: 22px 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 4px;
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* `display: flex` above overrides the UA [hidden] rule — restore hide */
.overlay[hidden],
.mobile-menu[hidden] {
  display: none !important;
}

.mobile-link,
.mobile-signin {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: #2e2e2e;
  text-decoration: none;
  font-weight: 500;
  animation: linkIn 0.4s 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-signin {
  animation-delay: 0.25s;
  margin-top: 8px;
  border-radius: 999px;
  background: #28282a;
  color: #c8c8c8;
}

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

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

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes revealPulse {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes headlineFade {
  to {
    opacity: 1;
    transform: none;
  }
}

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

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

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

@media (max-width: 720px) {
  .nav-pill,
  .sign-in {
    display: none;
  }
  .header {
    justify-content: space-between;
  }
  .logo-btn {
    width: 48px;
    height: 48px;
  }
  .burger {
    display: grid;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
  }
}

@media (max-width: 420px) {
  .headline {
    letter-spacing: -0.09em;
    line-height: 1.04;
  }
}

@media (max-height: 700px) {
  .eyebrow {
    margin-bottom: 8px;
    font-size: 18px;
  }
  .subhead {
    margin-top: 10px;
  }
  .cta {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .anim,
  .headline-line,
  .cta {
    opacity: 1;
    transform: none;
    filter: none;
  }
  .headline {
    color: #fff;
  }
}
