/* ============================================================
   Intelligence Designed To Evolve
   Single-viewport, full-bleed video-background landing page
   ============================================================ */

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

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

html,
body {
  margin: 0;
  padding: 0;
}

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

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

/* ---------- background video ---------- */

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

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

/* ---------- page shell ---------- */

.page {
  position: relative;
  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 {
  position: relative;
  z-index: 1;
}

/* ---------- header ---------- */

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

.logo {
  flex-shrink: 0;
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--nav-shadow);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

.nav-link {
  position: relative;
  flex: 1;
  text-align: center;
  padding: 8px 6px 10px;
  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;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

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

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

/* three 3x3 dots under the active label */
.nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  background: #000;
  box-shadow: -5px 0 0 0 #000, 5px 0 0 0 #000;
}

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

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

/* ---------- hero ---------- */

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

/* trust row */

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

.avatar {
  position: relative;
  width: var(--trust-size);
  height: var(--trust-size);
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  padding: 5px;
  display: block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

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

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

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

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

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

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

.trust-pill {
  height: var(--trust-size);
  display: inline-flex;
  align-items: center;
  margin-left: calc(var(--trust-size) * -0.42);
  padding-left: calc(var(--trust-size) * 0.58);
  padding-right: clamp(14px, 1.8vw, 18px);
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  border-radius: 999px;
  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 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  color: #fff;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  white-space: nowrap;
  overflow: hidden;
}

.headline .line {
  display: block;
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

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

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

/* the headline block itself does not run the shared reveal */
.headline.anim {
  animation: none;
}

/* subhead */

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

/* cta */

.cta {
  margin-top: clamp(18px, 3vh, 30px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  background: #fff;
  color: #000;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  letter-spacing: -0.01em;
  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.22, 1, 0.36, 1),
    box-shadow 0.25s ease;
}

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

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

/* ---------- stats footer ---------- */

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

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 0.8vh, 8px);
}

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

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

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

/* ---------- shared entrance ----------

   Every entrance animates FROM a start state and fills `backwards`, so the
   element's own declared styles are its resting state. `forwards` would pin
   whatever the last keyframe said and silently overwrite a declared opacity
   or block a hover transform. */

.anim {
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: var(--d, 0s);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
}

/* 100% is omitted on purpose: the animation settles into the element's own
   computed style, which is what lets the CTA keep its hover transform. */
@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1.04);
    filter: blur(0);
  }
}

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

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

/* ---------- mobile burger + menu ---------- */

.burger {
  display: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--pill-dark);
  box-shadow: var(--nav-shadow);
  cursor: pointer;
  place-items: center;
  transition: background 0.25s ease;
}

.burger-bars {
  display: block;
  position: relative;
  width: 18px;
  /* 13px between the outer bars, so the ±6.5px close of the X meets on centre */
  height: 14.5px;
}

.burger-bars span {
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease, background 0.25s ease;
}

.burger-bars span:nth-child(1) {
  top: 0;
}

.burger-bars span:nth-child(2) {
  top: 6.5px;
}

.burger-bars span:nth-child(3) {
  top: 13px;
}

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

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

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

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

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

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

.menu-overlay[hidden],
.mobile-menu[hidden] {
  display: none;
}

.mobile-menu {
  position: fixed;
  z-index: 9;
  top: calc(clamp(16px, 2.4vh, 28px) + 48px + 14px);
  left: clamp(14px, 3vw, 32px);
  right: clamp(14px, 3vw, 32px);
  display: flex;
  justify-content: center;
}

.menu-sheet {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 22px 18px 20px;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.menu-link {
  position: relative;
  padding: 14px 8px 18px;
  text-align: center;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--nav-text);
  opacity: 0.55;
  animation: linkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(0.06s + var(--i, 0) * 0.05s);
}

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

.menu-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  background: #000;
  box-shadow: -5px 0 0 0 #000, 5px 0 0 0 #000;
}

.menu-sign-in {
  margin-top: 10px;
  width: 100%;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.01em;
  animation: linkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(0.06s + var(--i, 0) * 0.05s);
}

body.menu-open {
  overflow: hidden;
}

/* keep the burger (now an X) above the overlay while the menu is open */
body.menu-open .header {
  z-index: 10;
}

body.menu-open .logo,
body.menu-open .nav,
body.menu-open .sign-in {
  visibility: hidden;
}

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

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-14px) scale(0.98);
  }
}

/* no 100%: menu links settle at their own opacity, 0.55 unless active */
@keyframes linkIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* ---------- breakpoints ---------- */

@media (max-width: 720px) {
  .header {
    max-width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .nav,
  .sign-in {
    display: none;
  }

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

  .burger {
    display: grid;
  }

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

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(14px, 3vw, 22px) clamp(12px, 4vw, 24px);
  }

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

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

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

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

  .subhead {
    margin-top: 10px;
  }

  .cta {
    margin-top: 16px;
  }
}

/* ---------- reduced motion ---------- */

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

  /* Killing the animations is enough: every entrance animates FROM a start
     state, so each element's declared style already IS its final state. */
  .headline {
    color: #fff;
  }
}
