@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);
  --nav-active: #2f6bff;
  --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;
  --trust-size: clamp(36px, 4.5vw, 42px);
}

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

html,
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html {
  scroll-behavior: auto;
}

.page-loader {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: #000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

html.page-loading .page-loader {
  opacity: 1;
  visibility: visible;
  animation: pageLoaderOut 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

body.page-exit {
  animation: pageExit 0.28s ease forwards;
  pointer-events: none;
}

@keyframes pageLoaderOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

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

/* Keep the page scrollbar hidden on every OS/browser; scrolling still works. */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.menu-open {
  overflow: hidden;
}

.site {
  background: #000;
}

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

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
  color: inherit;
}

.hero-screen {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #000;
}

.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;
  filter: grayscale(1) brightness(1.06) contrast(1.28);
  -webkit-mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 52%,
    rgba(0, 0, 0, 0.78) 70%,
    rgba(0, 0, 0, 0.42) 84%,
    rgba(0, 0, 0, 0.16) 93%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    #000 0%,
    #000 52%,
    rgba(0, 0, 0, 0.78) 70%,
    rgba(0, 0, 0, 0.42) 84%,
    rgba(0, 0, 0, 0.16) 93%,
    transparent 100%
  );
}

.bg::before,
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Remap the desaturated footage onto a cyan-to-cobalt ramp so the hero reads as
   the neon side of the site's blue accent instead of warm sand tones. */
.bg::before {
  z-index: 1;
  background: linear-gradient(
    180deg,
    #6fd6ff 0%,
    #55b2ff 20%,
    #3f8dff 40%,
    #3273f2 62%,
    #24509a 82%,
    #16306e 100%
  );
  mix-blend-mode: color;
}

/* Neon bloom that also lifts the crushed blacks into deep blue. */
.bg::after {
  z-index: 2;
  background:
    radial-gradient(
      95% 58% at 50% 2%,
      rgba(126, 224, 255, 0.17),
      rgba(126, 224, 255, 0.07) 38%,
      transparent 68%
    ),
    radial-gradient(
      70% 55% at 12% 68%,
      rgba(47, 107, 255, 0.22),
      rgba(47, 107, 255, 0.09) 42%,
      transparent 72%
    ),
    radial-gradient(
      70% 55% at 90% 60%,
      rgba(76, 155, 255, 0.19),
      rgba(76, 155, 255, 0.08) 42%,
      transparent 72%
    ),
    linear-gradient(
      180deg,
      rgba(23, 62, 170, 0.24) 0%,
      rgba(17, 47, 136, 0.19) 38%,
      rgba(12, 33, 100, 0.12) 62%,
      transparent 88%
    );
  mix-blend-mode: screen;
}

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

/* ---------- Header ---------- */

.header {
  position: fixed;
  top: clamp(16px, 2.4vh, 28px);
  left: 0;
  right: 0;
  z-index: 115;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2vw, 24px);
  width: calc(100% - clamp(28px, 6vw, 64px));
  max-width: 920px;
  margin-inline: auto;
  pointer-events: none;
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.header > * {
  pointer-events: auto;
}

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

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

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

.nav-pill {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  max-width: 620px;
  height: clamp(44px, 5.2vw, 48px);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.58);
  box-shadow:
    0 4px 18px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.nav-link {
  position: relative;
  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.72;
  padding: 8px 6px 14px;
  transition: opacity 0.2s ease, color 0.2s ease;
}

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

.nav-link.is-active {
  opacity: 1;
  color: var(--nav-active);
}

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

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

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

.burger {
  display: none;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--pill-dark);
  box-shadow: var(--nav-shadow);
  place-items: center;
  position: relative;
  z-index: 2;
}

.burger span {
  position: absolute;
  left: 50%;
  width: 18px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.28s ease, background 0.28s ease, top 0.28s ease,
    opacity 0.2s ease;
}

.burger span:nth-child(1) {
  top: calc(50% - 6.5px);
}

.burger span:nth-child(2) {
  top: 50%;
  transform: translate(-50%, -50%);
}

.burger span:nth-child(3) {
  top: calc(50% + 6.5px);
}

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

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

.burger[aria-expanded="true"] span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

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

.burger[aria-expanded="true"] span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ---------- Hero ---------- */

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

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

.trust-avatars {
  display: flex;
  align-items: center;
}

.trust-avatar {
  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;
}

.trust-avatar + .trust-avatar {
  margin-left: calc(var(--trust-size) * -0.42);
}

.trust-avatar.a1 {
  z-index: 1;
}

.trust-avatar.a2 {
  z-index: 2;
}

.trust-avatar.a3 {
  z-index: 4;
}

.trust:hover .a1 {
  transform: translateY(-2px);
}

.trust:hover .a2 {
  transform: translateY(-4px);
}

.trust:hover .a3 {
  transform: translateY(-2px);
}

.trust-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.trust-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: grayscale(1);
}

.trust-inner i {
  color: #111;
  font-size: calc(var(--trust-size) * 0.34);
  line-height: 1;
}

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

.headline {
  font-family: "General Sans", "Outfit", var(--font-sans);
  font-weight: 600;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
}

.headline.anim {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
}

.headline-line {
  display: block;
  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;
}

.shiny-text {
  display: inline-block;
  width: max-content;
  background-image: linear-gradient(
    90deg,
    #3b82f6 0%,
    #64cefb 28%,
    #ffffff 50%,
    #64cefb 72%,
    #2563eb 100%
  );
  background-position: 0% 50%;
  background-size: 220% 100%;
  background-clip: text;
  color: transparent;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 3s linear infinite;
}

@keyframes shine {
  from {
    background-position: 100% 50%;
  }
  to {
    background-position: 0% 50%;
  }
}

.subhead {
  max-width: min(500px, 92%);
  margin-top: clamp(14px, 2.2vh, 22px);
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  line-height: 1.55;
  font-weight: 400;
  color: rgba(208, 208, 208, 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);
  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;
}

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

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

/* ---------- Stats ---------- */

.stats {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: clamp(10px, 1.6vw, 20px);
  width: 100%;
  max-width: 1040px;
  padding-top: clamp(8px, 1.2vh, 16px);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}

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

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

/* ---------- Platform (below hero) ---------- */

.platform {
  position: relative;
  z-index: 1;
  background: #000;
  color: #fff;
  padding: clamp(72px, 12vh, 120px) clamp(14px, 3vw, 32px);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.platform-inner {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.platform-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 3vw, 40px);
  width: 100%;
}

.platform-stats .stat-value {
  font-size: clamp(22px, 2.8vw, 34px);
}

.platform-stats .stat-label {
  font-size: clamp(12px, 1.3vw, 14px);
  margin-top: 2px;
}

/* ---------- Mobile menu ---------- */

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

.mobile-menu {
  position: fixed;
  z-index: 120;
  top: clamp(72px, 10vh, 96px);
  left: 50%;
  transform: translateX(-50%);
  width: min(360px, calc(100% - 28px));
  background: #fff;
  border-radius: 28px;
  padding: 22px 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-link {
  position: relative;
  display: block;
  text-align: center;
  padding: 14px 12px 18px;
  color: var(--nav-text);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  opacity: 0;
  animation: linkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.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:nth-child(5) {
  animation-delay: 0.25s;
}

.mobile-link:nth-child(6) {
  animation-delay: 0.3s;
}

.mobile-link.is-active {
  opacity: 1;
  color: var(--nav-active);
}

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

.mobile-sign-in {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-weight: 500;
  font-size: 15px;
  opacity: 0;
  animation: linkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.35s forwards;
}

[hidden] {
  display: none !important;
}

/* ---------- Shared entrance ---------- */

.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 slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  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.98);
    filter: blur(6px);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1.02);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

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

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

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

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

/* ---------- Breakpoints ---------- */

@media (max-width: 720px) {
  .nav-pill,
  .desktop-sign-in {
    display: none;
  }

  .header {
    justify-content: space-between;
    max-width: none;
    width: calc(100% - 28px);
    padding-inline: 0;
  }

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

  .burger {
    display: grid;
  }

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

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

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

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

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

  .trust {
    --trust-size: 34px;
  }

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

@media (max-height: 700px) {
  .trust {
    margin-bottom: clamp(10px, 1.6vh, 16px);
  }

  .subhead {
    margin-top: clamp(10px, 1.4vh, 14px);
  }

  .cta {
    margin-top: clamp(12px, 1.8vh, 18px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .anim,
  .headline-line,
  .header,
  .cta,
  .platform-stats .stat {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .headline {
    color: #fff;
  }

  .shiny-text {
    background-position: 40% 50%;
  }

  html.page-loading .page-loader,
  body.page-exit {
    animation: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }
}
