/* Landing hero: the full-bleed video hero spec, framed with 28px corners inside the white page.
   Every selector is scoped under .hx so nothing leaks into the rest of the site. */
@font-face { font-family: "Geist Pixel Square"; src: url("/fonts/GeistPixel-Square.woff2") format("woff2"); font-weight: 400; font-display: swap; }

.hx-shell { padding: 12px 12px 0; background: #fff; }
.hx {
  --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 Square", "JetBrains Mono", monospace;
  position: relative;
  isolation: isolate;
  height: calc(100vh - 24px);
  height: calc(100dvh - 24px);
  min-height: 600px;
  max-height: 1040px;
  border-radius: 28px;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- header ---------- */
.hx .header {
  position: relative; z-index: 1; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 100%; max-width: 720px;
  gap: clamp(18px, 2.8vw, 28px);
  animation: hxSlideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes hxSlideDown { from { opacity: 0; transform: translateY(-18px); } to { opacity: 1; transform: none; } }

.hx .logo {
  flex: 0 0 auto;
  width: clamp(52px, 5.4vw, 62px); height: clamp(52px, 5.4vw, 62px);
  border-radius: 50%; background: #fff; box-shadow: var(--nav-shadow);
  display: grid; place-items: center; transition: transform .25s ease;
}
.hx .logo:hover { transform: scale(1.04); }
.hx .logo img { width: 74%; height: 74%; object-fit: contain; }

.hx .nav {
  flex: 1; max-width: 430px;
  height: clamp(44px, 5.2vw, 48px);
  padding: 4px 8px; border-radius: 999px; background: #fff; box-shadow: var(--nav-shadow);
  display: flex; align-items: center; justify-content: space-around;
}
.hx .nav a {
  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.5; padding: 6px 10px; transition: opacity .2s ease; white-space: nowrap;
}
.hx .nav a:hover { opacity: 0.75; }
.hx .nav a.active { opacity: 1; }
.hx .nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 3px; height: 3px; margin-left: -1.5px;
  background: #000; border-radius: 50%; box-shadow: -5px 0 0 #000, 5px 0 0 #000;
}

.hx .sign-in {
  flex: 0 0 auto;
  height: clamp(44px, 5.2vw, 48px); padding: 0 22px; border-radius: 999px;
  background: var(--pill-dark); color: var(--sign-in-text); box-shadow: var(--nav-shadow);
  display: inline-flex; align-items: center; font-weight: 500; font-size: clamp(13px, 1.4vw, 15px);
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.hx .sign-in:hover { background: #323234; color: #fff; transform: translateY(-1px); }

.hx .burger { display: none; }

/* ---------- hero center ---------- */
.hx .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;
}

.hx .trust {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex; align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}
.hx .trust .av {
  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);
  transition: transform .35s ease; flex: 0 0 auto;
}
.hx .trust .av + .av { margin-left: calc(var(--trust-size) * -0.42); }
.hx .trust .av i {
  width: 100%; height: 100%; border-radius: 50%; background: #fff; color: #111;
  display: grid; place-items: center; font-size: calc(var(--trust-size) * 0.34);
}
.hx .trust .a1 { z-index: 1; }
.hx .trust .a2 { z-index: 2; }
.hx .trust .a3 { z-index: 4; }
.hx .trust:hover .a1 { transform: translateY(-2px); }
.hx .trust:hover .a2 { transform: translateY(-4px); }
.hx .trust:hover .a3 { transform: translateY(-2px); }
.hx .trust .pill {
  position: relative; z-index: 3;
  height: var(--trust-size); display: inline-flex; align-items: center;
  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-family: var(--font-sans); font-weight: 500; font-size: clamp(12px, 1.4vw, 13.5px); white-space: nowrap;
}

.hx .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;
}
.hx .headline span { display: block; opacity: 0; transform: translateY(14px); animation: hxHeadlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.hx .headline span:nth-child(1) { animation-delay: 0.12s; }
.hx .headline span:nth-child(2) { animation-delay: 0.3s; }
@keyframes hxHeadlineFade { to { opacity: 1; transform: none; } }

.hx .subhead {
  max-width: min(500px, 92%); margin: clamp(12px, 2vh, 20px) auto 0;
  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;
}

.hx .cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: clamp(18px, 3vh, 30px);
  background: #fff; color: #000; font-family: var(--font-sans); 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 .3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow .3s ease;
}
.hx .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 ---------- */
.hx .stats {
  position: relative; z-index: 1; flex-shrink: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  width: 100%; max-width: 920px; text-align: center;
}
.hx .stat .icon { font-family: var(--font-display); font-size: clamp(22px, 3vw, 33px); color: #fff; line-height: 1; }
.hx .stat .value { margin-top: 8px; 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; }
.hx .stat .label { margin-top: 3px; color: var(--muted); font-size: clamp(11px, 1.2vw, 12.5px); }

/* ---------- shared entrance ---------- */
.hx .anim { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); animation: hxReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards; animation-delay: var(--d, 0s); }
.hx .headline.anim { opacity: 1; transform: none; filter: none; animation: none; }
.hx .cta.anim { animation-name: hxRevealPulse; }
@keyframes hxReveal { to { opacity: 1; transform: none; filter: blur(0); } }
@keyframes hxRevealPulse {
  0% { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); }
  70% { opacity: 1; transform: translateY(0) scale(1.03); filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

/* ---------- mobile menu ---------- */
.hx-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: hxOverlayIn .28s ease both; }
.hx-sheet {
  position: fixed; z-index: 61; top: 84px; left: 50%; transform: translateX(-50%);
  width: min(360px, calc(100vw - 40px)); background: #fff; border-radius: 28px; padding: 22px 18px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.45); animation: hxMenuIn .38s cubic-bezier(0.22, 1, 0.36, 1) both;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
}
.hx-sheet nav { display: flex; flex-direction: column; }
.hx-sheet a { position: relative; display: block; text-align: center; padding: 14px 0 20px; font-weight: 500; font-size: 17px; letter-spacing: -0.01em; color: #2e2e2e; opacity: 0; animation: hxLinkIn .4s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.hx-sheet a:nth-child(1) { animation-delay: .06s; }
.hx-sheet a:nth-child(2) { animation-delay: .11s; }
.hx-sheet a:nth-child(3) { animation-delay: .16s; }
.hx-sheet a:nth-child(4) { animation-delay: .21s; }
.hx-sheet a.active::after { content: ""; position: absolute; left: 50%; bottom: 8px; width: 3px; height: 3px; margin-left: -1.5px; background: #000; border-radius: 50%; box-shadow: -5px 0 0 #000, 5px 0 0 #000; }
.hx-sheet .sheet-signin { display: flex; align-items: center; justify-content: center; margin-top: 10px; height: 48px; border-radius: 999px; background: #28282a; color: #fff; opacity: 0; animation: hxLinkIn .4s cubic-bezier(0.22, 1, 0.36, 1) .26s forwards; padding: 0; font-size: 15px; }
@keyframes hxOverlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes hxMenuIn { from { opacity: 0; transform: translate(-50%, -12px) scale(.97); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes hxLinkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
body.menu-open { overflow: hidden; }

@media (max-width: 720px) {
  .hx .nav, .hx .sign-in { display: none; }
  .hx .header { justify-content: space-between; max-width: none; }
  .hx .logo { width: 54px; height: 54px; }
  .hx .burger {
    display: grid; place-content: center; gap: 5px;
    width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    background: #28282a; box-shadow: var(--nav-shadow); transition: background .25s ease;
  }
  .hx .burger span { display: block; width: 18px; height: 1.5px; background: #fff; border-radius: 2px; transition: transform .3s cubic-bezier(0.22, 1, 0.36, 1), opacity .2s ease, background .25s ease; }
  .hx .burger[aria-expanded="true"] { background: #fff; }
  .hx .burger[aria-expanded="true"] span { background: #000; }
  .hx .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .hx .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hx .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }
  .hx .burger[aria-expanded="true"] { position: relative; z-index: 62; }
  .hx .headline { letter-spacing: -0.08em; line-height: 1.05; }
  .hx .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
}
@media (max-width: 420px) {
  .hx .headline { letter-spacing: -0.09em; line-height: 1.04; }
  .hx .trust { --trust-size: 34px; }
  .hx .trust .pill { font-size: 12px; }
}
@media (max-height: 700px) {
  .hx .trust { margin-bottom: 12px; }
  .hx .subhead { margin-top: 10px; }
  .hx .cta { margin-top: 14px; }
  .hx .stat .value { margin-top: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .hx .header, .hx .anim, .hx .headline span, .hx-overlay, .hx-sheet, .hx-sheet a, .hx-sheet .sheet-signin { animation: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .hx-sheet { transform: translateX(-50%) !important; }
  .hx .headline { color: #fff; }
}
