@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;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: clamp(44px, 5.2vw, 48px);
  --trust-size: clamp(36px, 4.5vw, 42px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100vh;
  height: 100dvh;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------- Background ---------- */
.bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000 url("assets/bg-poster.jpg") center / cover no-repeat;
}

@media (max-width: 720px) {
  .bg {
    background-image: url("assets/bg-poster-mobile.jpg");
  }
}

/* Scrim: darkens the bright top of the video so the white headline stands out. */
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.5) 45%,
    rgba(0, 0, 0, 0.45) 70%,
    rgba(0, 0, 0, 0.6) 100%
  );
  pointer-events: none;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Page ---------- */
.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,
.menu-overlay {
  position: relative;
  z-index: 1;
}

/* ---------- Header ---------- */
.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 var(--ease) both;
}

.logo {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  height: var(--nav-h);
  padding: 0 clamp(16px, 1.8vw, 20px);
  border-radius: 999px;
  background: #fff;
  color: #111;
  box-shadow: var(--nav-shadow);
  transition: transform 0.3s var(--ease);
}

.logo:hover {
  transform: scale(1.04);
}

.logo svg {
  display: block;
  height: 72%;
  width: auto;
  aspect-ratio: 96 / 46;
  font-family: var(--font-sans);
}

.nav {
  flex: 1;
  max-width: 430px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--nav-shadow);
}

.nav-link {
  position: relative;
  padding: 8px 6px;
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--nav-text);
  opacity: 0.5;
  transition: opacity 0.25s ease;
  white-space: nowrap;
}

.nav-link:hover {
  opacity: 0.75;
}

.nav-link.is-active {
  opacity: 1;
}

.nav-link.is-active::after,
.mobile-link.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 3px;
  height: 3px;
  margin-left: -1.5px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

.sign-in {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 clamp(18px, 2.2vw, 24px);
  border-radius: 999px;
  background: var(--pill-dark);
  color: var(--sign-in-text);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: var(--nav-shadow);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s var(--ease);
}

.sign-in:hover {
  background: #323234;
  color: #fff;
  transform: translateY(-1px);
}

.burger {
  display: none;
}

.menu-overlay,
.mobile-menu {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 900px;
  text-align: center;
  min-height: 0;
}

.trust {
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

.trust-avatar {
  position: relative;
  width: var(--trust-size);
  height: var(--trust-size);
  padding: 5px;
  border-radius: 50%;
  background: var(--trust-bg);
  border: 1px solid var(--trust-border);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}

.trust-avatar > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: calc(var(--trust-size) * 0.34);
}

.trust-avatar + .trust-avatar {
  margin-left: calc(var(--trust-size) * -0.42);
}

.a1 { z-index: 1; }
.a2 { z-index: 2; }
.a3 { z-index: 4; }

.trust:hover .a1 { transform: translateY(-2px); }
.trust:hover .a2 { transform: translateY(-4px); }
.trust:hover .a3 { transform: translateY(-2px); }

.trust-pill {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  height: var(--trust-size);
  margin-left: calc(var(--trust-size) * -0.42);
  padding: 0 16px 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-size: clamp(12px, 1.4vw, 13.5px);
  font-weight: 500;
  white-space: nowrap;
}

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(28px, 6.2vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
}

/* The headline itself does not reveal; each line fades in on its own. */
.headline.anim {
  opacity: 1;
  transform: none;
  filter: none;
  animation: none;
}

.headline span {
  display: block;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s var(--ease) forwards;
}

.headline span:nth-child(1) { animation-delay: 0.12s; }
.headline span:nth-child(2) { animation-delay: 0.3s; }

.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));
  font-weight: 400;
  line-height: 1.55;
  color: #d0d0d0;
  opacity: 0.8;
}

.cta {
  display: inline-flex;
  align-items: center;
  margin-top: clamp(20px, 3.2vh, 32px);
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  background: #fff;
  color: #000;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  font-weight: 600;
  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.3s var(--ease), box-shadow 0.3s 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);
}

/* ---------- Stats (services) ---------- */
.stats {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 24px);
  width: 100%;
  max-width: 920px;
  text-align: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

a.stat .stat-icon,
a.stat .stat-value {
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
}

a.stat:hover .stat-icon {
  transform: translateY(-3px);
}

a.stat:hover .stat-value {
  opacity: 0.8;
}

.stat-icon {
  font-family: var(--font-display);
  font-size: clamp(22px, 3vw, 33px);
  line-height: 1;
  color: #fff;
  margin-bottom: 6px;
}

.stat-value {
  font-size: clamp(15px, 1.8vw, 21px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: #fff;
  white-space: nowrap;
}

.stat-label {
  font-size: clamp(11px, 1.2vw, 12.5px);
  color: var(--muted);
}

/* ---------- Entrance ---------- */
.anim {
  opacity: 0;
  transform: translateY(22px) scale(0.98);
  filter: blur(6px);
  animation: reveal 0.85s var(--ease) forwards;
  animation-delay: var(--d, 0s);
}

.cta.anim {
  animation-name: revealPulse;
  animation-duration: 1.1s;
}

@keyframes reveal {
  to {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1.03);
    filter: none;
  }
  100% {
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@keyframes headlineFade {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translate(-50%, -10px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

@keyframes linkIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .header {
    justify-content: space-between;
    max-width: none;
  }

  .nav,
  .sign-in {
    display: none;
  }

  .logo {
    height: 48px;
    padding: 0 18px;
  }

  .burger {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--pill-dark);
    box-shadow: var(--nav-shadow);
    transition: background 0.25s ease;
  }

  .burger span {
    display: block;
    width: 18px;
    height: 1.5px;
    border-radius: 1px;
    background: #fff;
    transition: transform 0.3s var(--ease), opacity 0.2s ease, background 0.25s ease;
  }

  body.menu-open .burger {
    background: #fff;
  }

  body.menu-open .burger span {
    background: #000;
  }

  body.menu-open .burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  body.menu-open .burger span:nth-child(2) { opacity: 0; }
  body.menu-open .burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .menu-overlay:not([hidden]) {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 2;
    background: rgba(0, 0, 0, 0.62);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    animation: overlayIn 0.28s ease both;
  }

  .mobile-menu:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: fixed;
    z-index: 3;
    top: calc(clamp(16px, 2.4vh, 28px) + 60px);
    left: 50%;
    width: calc(100% - 28px);
    max-width: 420px;
    padding: 22px 18px 20px;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
    transform: translateX(-50%);
    animation: menuIn 0.38s var(--ease) both;
  }

  .mobile-link {
    position: relative;
    display: block;
    padding: 14px 0 20px;
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--nav-text);
    opacity: 0;
    animation: linkIn 0.4s var(--ease) both;
    animation-delay: calc(0.08s + var(--i) * 0.05s);
  }

  .mobile-link:not(.is-active) {
    color: rgba(46, 46, 46, 0.55);
  }

  .mobile-link.is-active::after {
    bottom: 8px;
  }

  .mobile-sign-in {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 52px;
    margin-top: 10px;
    border-radius: 999px;
    background: var(--pill-dark);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    opacity: 0;
    animation: linkIn 0.4s var(--ease) both;
    animation-delay: calc(0.08s + var(--i) * 0.05s);
  }

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.05;
    font-size: clamp(22px, 7.4vw, 52px);
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: clamp(14px, 2.4vh, 22px);
  }
}

@media (max-width: 420px) {
  :root {
    --trust-size: 34px;
  }

  .trust-pill {
    font-size: 12px;
    padding-right: 12px;
  }

  .headline {
    letter-spacing: -0.09em;
    line-height: 1.04;
  }
}

@media (max-height: 700px) {
  .trust {
    margin-bottom: 12px;
  }

  .subhead {
    margin-top: 10px;
    line-height: 1.45;
  }

  .cta {
    margin-top: 16px;
  }

  .stat-icon {
    margin-bottom: 2px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .anim,
  .headline span,
  .header,
  .mobile-link,
  .mobile-sign-in {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .mobile-menu:not([hidden]) {
    transform: translateX(-50%) !important;
  }
}
