@font-face {
  font-family: "Geist Pixel Circle";
  src: url("./fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

.cinematic-door {
  --bg: #000000;
  --text: #ffffff;
  --muted: #d0d0d0;
  --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;
  --trust-size: clamp(36px, 4.5vw, 42px);
  box-sizing: border-box;
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.cinematic-door.menu-open {
  overflow: hidden;
}

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

.cinematic-door .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);
}

.page-under-nav {
  padding-top: 88px;
}

.hero,
.stats {
  z-index: 0;
}

.mobile-menu,
.overlay {
  z-index: 8;
}

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

.cin-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px) 0;
  pointer-events: none;
}

.cin-bar .header {
  pointer-events: auto;
}

.header {
  position: relative;
  z-index: 20;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1180px;
  gap: clamp(14px, 2vw, 22px);
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.cin-login {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 10px;
  color: #fff;
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.4vw, 15px);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  text-shadow: 0 1px 8px rgb(0 0 0 / 0.55);
}

.cin-login:hover {
  color: #fff;
}

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

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

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

.nav-pill > a,
.nav-drop-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 8px;
  border: 0;
  background: none;
  color: var(--nav-text);
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.82;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.nav-pill > a:hover,
.nav-drop-trigger:hover {
  opacity: 1;
}

.nav-pill > a[aria-current="page"],
.nav-drop-trigger[aria-current="page"],
.nav-drop[open] > .nav-drop-trigger {
  opacity: 1;
}

.nav-drop {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.nav-drop-trigger {
  list-style: none;
}

.nav-drop-trigger::-webkit-details-marker {
  display: none;
}

.nav-drop-trigger::marker {
  content: "";
}

.nav-drop-caret {
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.nav-drop[open] > .nav-drop-trigger .nav-drop-caret {
  transform: rotate(180deg);
}

.nav-drop-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 60;
  min-width: 248px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.18);
  transform: translateX(-50%);
}

.nav-drop-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #2e2e2e;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-drop-menu a:hover,
.nav-drop-menu a[aria-current="page"] {
  background: #f4f4f4;
}

.nav-drop-note {
  display: block;
  margin-top: 2px;
  color: #6a6a6a;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.35;
}

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

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

.burger {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--pill-dark);
  box-shadow: var(--nav-shadow);
  cursor: pointer;
}

.burger-bars {
  position: relative;
  width: 18px;
  height: 14px;
}

.burger-bars span {
  position: absolute;
  left: 0;
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.28s ease, top 0.28s ease, background 0.28s ease;
}

.burger-bars span:nth-child(1) { top: 0; }
.burger-bars span:nth-child(2) { top: 6.25px; }
.burger-bars span:nth-child(3) { top: 12.5px; }

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

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

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

.trust {
  --d: 0.05s;
  display: inline-flex;
  align-items: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
}

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

.trust-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--trust-size);
  height: var(--trust-size);
  padding: 5px;
  border: 1px solid var(--trust-border);
  border-radius: 50%;
  background: var(--trust-bg);
  transition: transform 0.35s ease;
}

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

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

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

.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-pill {
  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: 1px solid var(--trust-border);
  border-radius: 999px;
  background: var(--trust-bg);
  color: var(--trust-text);
  font-family: var(--font-sans);
  font-size: clamp(12px, 1.4vw, 13.5px);
  font-weight: 500;
  white-space: nowrap;
}

.headline {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(28px, 6.2vw, 80px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.12;
}

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

.headline span {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(14px);
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.headline span:nth-child(1) { animation-delay: 0.12s; }
.headline span:nth-child(2) { animation-delay: 0.3s; }

.subhead {
  --d: 0.28s;
  max-width: min(500px, 92%);
  margin: 18px 0 0;
  color: #ececec;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  font-weight: 400;
  line-height: 1.55;
  opacity: 1;
}

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

.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 {
  flex-shrink: 0;
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%;
  max-width: 920px;
  margin: 8px auto 0;
  overflow: hidden;
  border: 1px solid var(--trust-border);
  border-radius: 28px;
  background: var(--trust-bg);
  box-shadow: var(--nav-shadow);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 16px 14px 18px;
  text-align: center;
}

.stat + .stat {
  border-left: 1px solid var(--trust-border);
}

.stat-mark {
  display: grid;
  place-items: center;
  width: clamp(32px, 3.6vw, 40px);
  height: clamp(32px, 3.6vw, 40px);
  padding: 4px;
  border: 1px solid var(--trust-border);
  border-radius: 50%;
  background: #1a1a1c;
}

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

.stat-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

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

.stat-label {
  margin-top: 4px;
  max-width: 16ch;
  color: var(--muted);
  font-size: clamp(11px, 1.2vw, 12.5px);
  font-weight: 400;
  line-height: 1.35;
}

.stat:nth-child(1) { --d: 0.5s; }
.stat:nth-child(2) { --d: 0.58s; }
.stat:nth-child(3) { --d: 0.66s; }
.stat:nth-child(4) { --d: 0.74s; }

/* ---------- 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);
}

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

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

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

.mobile-menu {
  position: fixed;
  top: 88px;
  left: 50%;
  z-index: 9;
  width: min(420px, calc(100% - 28px));
  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 cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mobile-menu a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  color: var(--nav-text);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  opacity: 0;
  animation: linkIn 0.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.mobile-menu a:nth-child(1) { animation-delay: 0.06s; }
.mobile-menu a:nth-child(2) { animation-delay: 0.12s; }
.mobile-menu a:nth-child(3) { animation-delay: 0.18s; }
.mobile-menu a:nth-child(4) { animation-delay: 0.24s; }
.mobile-menu a:nth-child(5) { animation-delay: 0.3s; }

.mobile-menu a.mobile-sub {
  min-height: 44px;
  font-size: 15px;
  opacity: 0.7;
}

.mobile-menu a.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;
}

.mobile-signin {
  margin-top: 8px;
  border-radius: 999px;
  background: var(--pill-dark);
  color: #fff !important;
}

/* ---------- Motion ---------- */

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

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

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

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

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

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px) 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;
  }
}

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

@media (max-width: 1040px) {
  .nav-pill,
  .header .sign-in,
  .cin-login {
    display: none;
  }

  .header {
    justify-content: space-between;
    max-width: none;
  }

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

  .burger {
    display: inline-flex;
  }

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

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

@media (max-width: 860px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    border-radius: 22px;
  }

  .stat {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 14px 14px 14px 16px;
    text-align: left;
  }

  .stat + .stat {
    border-left: 0;
  }

  .stat:nth-child(2n) {
    border-left: 1px solid var(--trust-border);
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--trust-border);
  }

  .stat-copy {
    align-items: flex-start;
  }

  .stat-value {
    margin-top: 0;
  }

  .stat-label {
    max-width: none;
  }
}

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

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

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

  .subhead {
    margin-top: 12px;
  }

  .cta {
    margin-top: 18px;
  }

  .stats {
    margin-top: 4px;
  }

  .stat {
    padding: 10px 12px;
  }
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 21;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.scroll-cue::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

html:has(> body.cinematic-door) {
  margin: 0;
  height: 100%;
}

@media (prefers-reduced-motion: reduce) {
  .anim,
  .cta.anim,
  .header,
  .headline span,
  .overlay,
  .mobile-menu,
  .mobile-menu a {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .headline {
    color: #fff;
  }

  .cinematic-door .bg-video {
    display: none;
  }
}
