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

[data-download].download-disabled, [data-update-download].download-disabled {
  cursor: not-allowed;
  opacity: 0.58;
  pointer-events: none;
}

: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;
}

* { box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
body.menu-open .site-header { z-index: 7; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #000;
  z-index: 0;
}
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
}
.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.25);
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3vw, 32px);
}
.site-header, .hero, .stats, .mobile-menu { position: relative; z-index: 1; }
.site-header {
  width: 100%;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 2.8vw, 28px);
  flex-shrink: 0;
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.logo {
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #303030;
  box-shadow: var(--nav-shadow);
  transition: transform 0.3s ease;
}
.logo:hover { transform: scale(1.04); }
.logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.desktop-nav {
  flex: 1;
  max-width: 430px;
  min-width: 0;
  height: clamp(44px, 5.2vw, 48px);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  padding: 4px 8px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--nav-shadow);
}
.nav-link {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 0 8px 4px;
  border: 0;
  background: none;
  color: var(--nav-text);
  opacity: 0.5;
  cursor: pointer;
  font: 500 clamp(13px, 1.4vw, 15px)/1 var(--font-sans);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.nav-link:hover { opacity: 0.75; }
.nav-link.active { opacity: 1; }
.nav-link.active::after, .mobile-link.active::after {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #000;
  box-shadow: -5px 0 #000, 5px 0 #000;
  position: absolute;
  bottom: 5px;
  left: calc(50% - 1.5px);
}
.sign-in {
  flex: none;
  height: clamp(44px, 5.2vw, 48px);
  display: grid;
  place-items: center;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--pill-dark);
  box-shadow: var(--nav-shadow);
  color: var(--sign-in-text);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.sign-in:hover { background: #323234; color: #fff; transform: translateY(-1px); }
.menu-toggle { display: none; }

.hero {
  flex: 1;
  min-height: auto;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.trust-row {
  --trust-size: clamp(36px, 4.5vw, 42px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: clamp(16px, 2.5vh, 26px);
  isolation: isolate;
  white-space: nowrap;
}
.avatar {
  width: var(--trust-size);
  height: var(--trust-size);
  flex: none;
  padding: 5px;
  border: 1px solid var(--trust-border);
  border-radius: 50%;
  background: var(--trust-bg);
  transition: transform 0.35s ease;
}
.avatar + .avatar { margin-left: calc(var(--trust-size) * -0.42); }
.avatar.a1 { z-index: 1; }
.avatar.a2 { z-index: 2; }
.avatar.a3 { z-index: 4; }
.avatar span {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #111;
  font-size: calc(var(--trust-size) * 0.34);
}
.trust-row:hover .a1 { transform: translateY(-2px); }
.trust-row:hover .a2 { transform: translateY(-4px); }
.trust-row:hover .a3 { transform: translateY(-2px); }
.trust-pill {
  z-index: 3;
  height: var(--trust-size);
  margin-left: calc(var(--trust-size) * -0.42);
  display: grid;
  align-items: center;
  padding: 0 18px 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-size: clamp(12px, 1.4vw, 13.5px);
  font-weight: 500;
}
.headline {
  max-width: 100%;
  margin: 0;
  overflow: hidden;
  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;
  white-space: nowrap;
}
.headline span { display: block; opacity: 0; transform: translateY(14px); }
.headline.anim { opacity: 1; transform: none; filter: none; animation: none; }
.headline.anim span:first-child { animation: headlineFade 0.85s 0.12s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.headline.anim span:last-child { animation: headlineFade 0.85s 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.subhead {
  max-width: min(500px, 92%);
  margin: clamp(15px, 2.5vh, 25px) 0 clamp(22px, 3vh, 32px);
  color: #d0d0d0;
  opacity: 0.8;
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  font-weight: 400;
  line-height: 1.55;
}
.hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; }
.download-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: min(760px, 100%);
  text-align: left;
}
.download-option {
  min-width: 0;
  padding: clamp(16px, 2.3vw, 22px);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 22px;
  background: rgba(17, 20, 21, 0.7);
  backdrop-filter: blur(12px);
}
.download-option-label {
  margin: 0 0 7px;
  color: #aadcc5;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
}
.download-option h2 { margin: 0 0 7px; font-size: clamp(19px, 2vw, 24px); line-height: 1.15; letter-spacing: -0.035em; }
.download-option > p:not(.download-option-label) { min-height: 3.2em; margin: 0 0 14px; color: #d6d6d6; font-size: 14px; line-height: 1.55; }
.download-option .cta, .update-cta { min-height: 42px; padding: 10px 18px; font-size: 13px; }
.update-cta { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid rgba(255,255,255,0.75); border-radius: 999px; background: rgba(255,255,255,0.12); color: #fff; font-weight: 600; transition: background 0.2s ease, transform 0.2s ease; }
.update-cta:hover { background: rgba(255,255,255,0.22); transform: translateY(-2px); }
.download-size { display: block; margin-top: 10px; color: #b7c0bb; font-size: 12px; }
.hero-secondary { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 15px; }
.demo-cta[hidden] { display: none; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  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 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.3), 0 0 28px rgba(255,255,255,0.45), 0 0 58px rgba(255,255,255,0.18); }
.cta.anim { animation-name: revealPulse; }
.demo-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: 999px;
  background: rgba(24, 27, 27, 0.62);
  color: #fff;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.demo-cta:hover { background: rgba(47, 55, 52, 0.9); border-color: #fff; transform: translateY(-2px); }
.demo-cta i { font-size: 11px; }
.download-note { margin: 14px 0 0; color: #b5b5b5; font-size: 12px; letter-spacing: 0.01em; }
.testing-badge { display: inline-block; margin-right: 5px; padding: 3px 7px; border: 1px solid rgba(242, 195, 129, 0.6); border-radius: 999px; color: #f2cf9c; font-size: 10px; font-weight: 600; letter-spacing: 0.08em; vertical-align: middle; }
.release-details { border: 0; border-bottom: 1px solid currentColor; padding: 0; margin-left: 6px; background: transparent; color: #fff; font: inherit; cursor: pointer; }
.release-details:hover { color: #c5d6ff; }
.release-details[hidden] { display: none; }

.stats {
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  flex-shrink: 0;
  padding-bottom: clamp(0px, 1vh, 10px);
}
.stat { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.stat-symbol { color: #fff; font: 400 clamp(22px, 3vw, 33px)/1 var(--font-display); }
.stat-value { color: #fff; font-size: clamp(18px, 2.2vw, 26px); font-weight: 600; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: clamp(11px, 1.2vw, 12.5px); line-height: 1.25; }

.anim { opacity: 0; transform: translateY(22px) scale(0.98); filter: blur(6px); animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) forwards; }
@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 { 70% { opacity: 1; transform: translateY(-2px) scale(1.03); filter: blur(0); } 100% { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); } }
@keyframes headlineFade { to { opacity: 1; transform: translateY(0); } }

.menu-overlay, .mobile-menu { display: none; }
.info-dialog {
  width: min(480px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 32px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 24px;
  background: #191a20;
  color: #fff;
  box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  font-family: var(--font-sans);
}
.info-dialog::backdrop { background: rgba(0,0,0,0.65); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 15px; right: 18px; border: 0; background: none; color: #fff; font-size: 28px; cursor: pointer; }
.dialog-kicker { margin: 0 0 12px; color: #9ca5c1; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; }
.info-dialog h2 { margin: 0 0 14px; font-size: 25px; letter-spacing: -0.04em; }
.info-dialog p:not(.dialog-kicker) { color: #c7c7d0; line-height: 1.6; }
.info-dialog p a { color: #d7e8ff; text-decoration: underline; text-underline-offset: 3px; }
.info-dialog .install-warning { padding: 13px 15px; border: 1px solid rgba(242, 195, 129, 0.4); border-radius: 14px; background: rgba(242, 195, 129, 0.08); }
.info-dialog .install-warning strong { color: #fff; }
.release-list { margin: 4px 0 14px; padding-left: 20px; color: #c7c7d0; line-height: 1.55; }
.release-list li { margin-bottom: 8px; }
.info-dialog > a { display: inline-flex; gap: 9px; align-items: center; margin-top: 12px; padding: 12px 18px; border-radius: 999px; background: #fff; color: #111; font-size: 14px; font-weight: 600; }
.demo-dialog {
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100dvh - 24px);
  padding: 20px;
  overflow: auto;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 26px;
  background: #111817;
  color: #fff;
  box-shadow: 0 30px 100px rgba(0,0,0,0.7);
  font-family: var(--font-sans);
}
.demo-dialog::backdrop { background: rgba(0,0,0,0.8); backdrop-filter: blur(9px); }
.demo-dialog-header, .demo-dialog-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.demo-dialog-header { margin-bottom: 16px; }
.demo-kicker { margin: 0 0 6px; color: #56d8ab; font-size: 11px; font-weight: 600; letter-spacing: 0.16em; }
.demo-dialog h2 { margin: 0; font-size: clamp(20px, 3vw, 29px); letter-spacing: -0.035em; }
.demo-close { width: 38px; height: 38px; flex: none; border: 1px solid rgba(255,255,255,0.25); border-radius: 50%; background: #25302c; color: #fff; font-size: 25px; line-height: 1; cursor: pointer; }
.demo-close:hover { background: #344b40; }
.demo-video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 1px solid rgba(255,255,255,0.14); border-radius: 15px; background: #080c0c; object-fit: contain; }
.demo-dialog-footer { margin-top: 16px; color: #b9c2bd; font-size: 13px; }
.demo-download { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; color: #111; font-weight: 600; white-space: nowrap; }
.demo-download:hover { background: #dff8e9; }

@media (max-width: 720px) {
  .page { padding: clamp(16px, 2.4vh, 28px) 18px; }
  .site-header { max-width: none; justify-content: space-between; }
  .logo { width: 48px; height: 48px; }
  .desktop-nav, .desktop-sign-in { display: none; }
  .menu-toggle {
    position: relative;
    width: 48px; height: 48px;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
    border: 0; border-radius: 50%;
    background: var(--pill-dark); color: #fff;
    cursor: pointer; z-index: 6;
    transition: background 0.25s ease;
  }
  .menu-toggle span { width: 18px; height: 1.5px; background: currentColor; transition: transform 0.3s ease, opacity 0.2s ease; }
  .menu-toggle[aria-expanded="true"] { background: #fff; color: #000; }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(6.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-6.5px) rotate(-45deg); }
  .headline { font-size: clamp(29px, 8.8vw, 62px); letter-spacing: -0.08em; line-height: 1.05; }
  .download-options { max-width: 520px; }
  .download-option { padding: 15px; }
  .download-option > p:not(.download-option-label) { min-height: 4.5em; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: clamp(14px, 2.4vh, 28px); max-width: 520px; }
  .menu-overlay:not([hidden]) { position: fixed; inset: 0; z-index: 4; display: block; background: rgba(0,0,0,0.62); backdrop-filter: blur(6px); animation: overlayIn 0.28s both; }
  .mobile-menu:not([hidden]) {
    position: fixed; top: 84px; left: 50%; width: min(480px, calc(100% - 28px)); z-index: 5;
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 22px 18px 20px;
    border-radius: 28px; background: #fff; color: #222;
    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-link { position: relative; width: 100%; min-height: 49px; display: grid; place-items: center; padding: 8px 12px; border: 0; border-radius: 16px; background: none; color: #222; font-size: 15px; font-weight: 500; cursor: pointer; animation: linkIn 0.45s both; }
  .mobile-link:nth-child(2) { animation-delay: 0.04s; }
  .mobile-link:nth-child(3) { animation-delay: 0.08s; }
  .mobile-link:nth-child(4) { animation-delay: 0.12s; }
  .mobile-link:hover { background: #f2f2f2; }
  .mobile-link.active::after { bottom: 8px; }
  .mobile-download { width: 100%; display: grid; place-items: center; height: 48px; margin-top: 10px; border-radius: 999px; background: var(--pill-dark); color: #fff; font-size: 14px; font-weight: 600; animation: linkIn 0.45s 0.16s both; }
}
@keyframes overlayIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes menuIn { from { opacity: 0; transform: translate(-50%, -12px) scale(0.96); } to { opacity: 1; transform: translate(-50%, 0) scale(1); } }
@keyframes linkIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 420px) {
  .trust-row { --trust-size: 34px; }
  .trust-pill { font-size: 12px; padding-right: 12px; }
  .headline { font-size: clamp(28px, 8.1vw, 36px); letter-spacing: -0.09em; line-height: 1.04; }
  .stat-label { font-size: 11px; }
  .download-options { grid-template-columns: 1fr; gap: 10px; }
  .download-option { padding: 13px 16px; border-radius: 18px; }
  .download-option > p:not(.download-option-label) { min-height: 0; margin-bottom: 10px; }
  .download-option .cta, .update-cta { min-height: 38px; padding: 9px 15px; }
  .demo-dialog { padding: 12px; border-radius: 18px; }
  .demo-dialog-header { margin-bottom: 12px; }
  .demo-dialog-footer { align-items: flex-start; gap: 12px; font-size: 11px; }
  .demo-download { padding: 9px 11px; font-size: 11px; }
}
@media (max-height: 700px) {
  .hero { justify-content: center; }
  .trust-row { margin-bottom: 12px; }
  .subhead { margin-top: 12px; margin-bottom: 18px; line-height: 1.4; }
  .download-note { margin-top: 8px; }
  .stats { row-gap: 8px; }
  .stat { gap: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .anim, .headline span { opacity: 1 !important; transform: none !important; filter: none !important; }
  .headline { color: #fff; }
}
