@font-face { font-family: "Syncopate"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/syncopate-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Syncopate"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/syncopate-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Blinker"; font-style: normal; font-weight: 300; font-display: swap; src: url("/fonts/blinker-latin-300-normal.woff2") format("woff2"); }
@font-face { font-family: "Blinker"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/blinker-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Blinker"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/blinker-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --space: #0a081c; /* The galaxy sky's average, shown only until WebGL paints. */
  --accent: #5554ff;
  --text: #ffffff;
  --text-soft: #c3c3d8;
  --heading: "Syncopate", system-ui, sans-serif;
  --body: "Blinker", system-ui, sans-serif;
  --gutter: clamp(16px, 5vw, 96px);
}

* { box-sizing: border-box; }

a, img, button { -webkit-user-drag: none; }
.connect, .download-button, .contact-email { user-select: none; -webkit-user-select: none; }

/* The page color lives on html only, so body doesn't cover the canvases behind it. */
html { background: var(--space); }

body {
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  font: 400 19px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}

main { flex: 1 0 auto; }

:focus-visible { outline: 2px solid #6b8fff; outline-offset: 3px; }

.skip-link { position: fixed; z-index: 70; top: -80px; left: 16px; padding: 10px 18px; border-radius: 12px; background: #14163a; color: #fff; }
.skip-link:focus { top: 16px; }

#sky { position: fixed; inset: 0; z-index: -2; width: 100%; height: 100%; display: block; }

/* The single cursor that travels through the page, above the glass cards and below the top bar. */
#tour-cursor {
  position: fixed;
  z-index: 55;
  left: 0;
  top: 0;
  width: clamp(22px, 2vw, 32px);
  height: clamp(22px, 2vw, 32px);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
  filter: drop-shadow(0 2px 4px rgb(0 0 0 / 0.5));
}
#tour-cursor svg { display: block; width: 100%; height: 100%; }

/* Top bar */
.topbar-wrap { position: fixed; top: 20px; left: 0; right: 0; z-index: 60; display: flex; justify-content: center; padding: 0 16px; }

.topbar {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 11px 28px;
  border-radius: 999px;
  font-size: 17px;
}

.topbar-links { display: flex; gap: 28px; }
.topbar a { color: var(--text); text-decoration: none; }
.topbar .brand { display: flex; align-items: center; gap: 10px; font: 700 15px var(--heading); letter-spacing: 0.02em; }
.topbar .brand img { display: block; border-radius: 7px; }

/* Footer */
.site-footer { position: relative; flex: none; background: rgb(8 9 26 / 0.94); display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 28px var(--gutter); border-top: 1px solid rgb(255 255 255 / 0.14); font-size: 18px; }
.site-footer a { color: var(--text-soft); text-decoration: none; }
.site-footer a:hover { color: var(--text); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font: 700 13px var(--heading); }
.footer-brand img { display: block; border-radius: 6px; }

/* Updates, Privacy and Contact */
.page { width: min(760px, 100%); margin: 0 auto; padding: 22vh 16px 14vh; }
.page h1 { margin: 0; font: 400 clamp(32px, 5vw, 72px)/1.1 var(--heading); letter-spacing: -0.02em; }
.page .page-lead { margin: 18px 0 56px; color: var(--text-soft); font-size: clamp(20px, 1.6vw, 24px); font-weight: 300; }
.page section { margin-top: 44px; }
.page h2 { margin: 0 0 10px; font: 400 clamp(16px, 1.3vw, 20px)/1.3 var(--heading); }
.page p, .page li { color: var(--text-soft); }
.page p { margin: 0; }
.page ul { margin: 0; padding-left: 22px; }
.page ul + p { margin-top: 14px; }
.page li + li { margin-top: 6px; }
.page a { color: var(--text); }
.release { padding: 30px 0; border-top: 1px solid rgb(255 255 255 / 0.16); }
.release h2 { margin: 0; }
.release time { display: block; margin: 4px 0 16px; color: var(--text-soft); font-size: 17px; }
.changelog-empty { color: var(--text-soft); }
.page a.contact-email { position: relative; z-index: 50; display: inline-block; padding: 15px 40px; border-radius: 999px; background: var(--accent); color: #fff; text-decoration: none; font: 600 20px var(--body); }

/* Hamburger menu, phones only. */
.menu-button { display: none; width: 34px; height: 34px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; position: relative; }
.menu-button span { position: absolute; left: 7px; right: 7px; height: 1.5px; background: currentColor; transition: transform 0.25s ease, top 0.25s ease; }
.menu-button span:first-child { top: 13px; }
.menu-button span:last-child { top: 20px; }
.menu-button[aria-expanded="true"] span { top: 16.5px; }
.menu-button[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }
.mobile-menu { position: absolute; top: 66px; left: 16px; right: 16px; padding: 10px 24px; border-radius: 24px; background: #14163a; }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { display: block; padding: 13px 0; color: var(--text); text-decoration: none; font-size: 20px; }
.mobile-menu a + a { border-top: 1px solid rgb(255 255 255 / 0.14); }

/* Hero: the same composition as the app's welcome screen. */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
}

.hero-logo {
  width: clamp(92px, 8vw, 136px);
  height: auto;
  margin-bottom: 26px;
  filter: drop-shadow(0 12px 32px rgb(0 0 0 / 0.55));
  animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s backwards;
}

.hero h1 {
  margin: 0 0 16px;
  font: 400 clamp(25px, 3vw, 56px)/1.15 var(--heading);
  text-shadow: 0 0 2px rgb(0 0 0 / 0.9), 0 0 14px rgb(0 0 0 / 0.8), 0 0 32px rgb(0 0 0 / 0.7);
  animation: rise 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s backwards;
}

.hero p {
  margin: 0;
  font-size: clamp(19px, 1.6vw, 28px);
  font-weight: 300;
  text-shadow: 0 0 2px rgb(0 0 0 / 0.9), 0 0 10px rgb(0 0 0 / 0.8), 0 0 24px rgb(0 0 0 / 0.7);
  animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 1.4s backwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(20px); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

.connect {
  /* Floating glass must sit above Glassparency's float canvas (z-index 49) or Safari hides its label. */
  position: absolute;
  z-index: 60;
  /* Centered without translate, which Glassparency's squish uses. */
  left: 0;
  right: 0;
  bottom: 64px;
  width: fit-content;
  margin-inline: auto;
  padding: 13px 44px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font: 600 20px var(--body);
  cursor: pointer;
}

/* Section openers */
.beat-intro {
  min-height: 100vh;
  display: grid;
  place-content: center;
  padding: 0 var(--gutter);
  text-align: center;
}

.beat-intro h2 {
  margin: 0;
  font: 400 clamp(32px, 7vw, 124px)/1.05 var(--heading);
  letter-spacing: -0.02em;
}

.beat-intro p { margin: 28px auto 0; max-width: 30em; color: var(--text-soft); font-size: clamp(18px, 1.6vw, 24px); font-weight: 300; }

/* Showcases */
.feature { position: relative; padding: 0 var(--gutter); }
.feature-shot { margin: 0; position: relative; }
.feature-window { position: relative; }
.feature-frame { position: relative; overflow: hidden; border-radius: 14px; }
.feature-frame img { display: block; width: 100%; height: auto; }

.feature-text h3 { margin: 0 0 12px; font: 400 clamp(20px, 1.75vw, 30px)/1.25 var(--heading); }
.feature-text p { margin: 0; color: var(--text-soft); }

.feature-spotlight {
  position: absolute;
  border: 1.5px solid #6b8fff;
  border-radius: 10px;
  box-shadow: 0 0 0 200vmax rgb(4 5 15 / 0.42);
  opacity: 0;
  pointer-events: none;
}

/* wide: a statement above one large window. */
.feature[data-layout="wide"] { padding-block: 16vh; text-align: center; }
.feature[data-layout="wide"] .feature-text { margin-bottom: 7vh; }
.feature[data-layout="wide"] .feature-text h3 { font-size: clamp(24px, 3.1vw, 58px); letter-spacing: -0.01em; margin-bottom: 18px; }
.feature[data-layout="wide"] .feature-text p { font-size: clamp(18px, 1.5vw, 24px); font-weight: 300; }
.feature[data-layout="wide"] .feature-shot { max-width: min(1320px, 100%); margin-inline: auto; }

/* offset: a window with a glass card overlapping one corner. */
.feature[data-layout="offset"] { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; min-height: 112vh; }
.feature[data-layout="offset"] .feature-shot { grid-row: 1; grid-column: 1 / 10; }
.feature[data-layout="offset"][data-side="right"] .feature-shot { grid-column: 4 / 13; }
.feature[data-layout="offset"] .feature-text {
  grid-row: 1;
  grid-column: 8 / 13;
  z-index: 2; /* Over its window, and under the top bar's glass. */
  align-self: end;
  margin-bottom: 14vh;
  padding: 34px 38px 38px;
  border-radius: 28px;
  background: #14163a;
}
.feature[data-layout="offset"][data-side="right"] .feature-text { grid-column: 1 / 6; }

/* stack: two windows layered in depth, with plain text alongside. */
.feature[data-layout="stack"] { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 0 32px; align-items: center; min-height: 118vh; }
.feature[data-layout="stack"] .feature-text { grid-column: 1 / 5; }
.feature[data-layout="stack"] .feature-shot { grid-column: 5 / 13; padding: 9% 0 0 16%; }
.feature[data-layout="stack"][data-side="right"] .feature-text { grid-column: 9 / 13; grid-row: 1; }
.feature[data-layout="stack"][data-side="right"] .feature-shot { grid-column: 1 / 9; grid-row: 1; padding: 9% 16% 0 0; }
.feature-back { position: absolute; top: 0; left: 0; width: 78%; }
.feature[data-side="right"] .feature-back { left: auto; right: 0; }
.feature-back img { display: block; width: 100%; height: auto; border-radius: 12px; filter: brightness(0.58); }
.feature[data-layout="stack"] .feature-frame { box-shadow: 0 24px 60px rgb(0 0 0 / 0.55); }
.feature[data-layout="stack"] .feature-text h3 { font-size: clamp(22px, 2.2vw, 40px); }

/* The smaller features, as a quiet list. */
.feature-more { max-width: 1120px; margin: 0 auto; padding: 14vh var(--gutter) 20vh; }
.feature-more-title { margin: 0 0 34px; color: var(--text-soft); font: 400 clamp(15px, 1.1vw, 19px) var(--heading); }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 64px; }
.feature-list li { padding: 24px 0 30px; border-top: 1px solid rgb(255 255 255 / 0.16); }
.feature-list h4 { margin: 0 0 8px; font: 400 15px/1.35 var(--heading); }
.feature-list p { margin: 0; color: var(--text-soft); font-size: 18px; }

/* Pricing */
.section-title { margin: 0; text-align: center; font: 400 clamp(30px, 5.4vw, 92px)/1.05 var(--heading); letter-spacing: -0.02em; }
#pricing { min-height: 120vh; padding: 16vh var(--gutter); display: flex; flex-direction: column; justify-content: center; gap: 8vh; }
.prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); width: min(1040px, 100%); margin: 0 auto; }
.price { position: relative; padding: clamp(32px, 3.4vw, 56px); border-radius: 32px; background: #14163a; text-align: center; }
.price h3 { margin: 0; font: 400 clamp(16px, 1.3vw, 22px) var(--heading); }
.price-amount { margin: 16px 0 4px; font: 400 clamp(38px, 4.2vw, 72px)/1.1 var(--heading); letter-spacing: -0.02em; }
.price-note { margin: 0; color: var(--text-soft); font-size: 20px; }
.price-terms { margin: 26px 0 0; color: var(--text-soft); }

/* Download */
#download { min-height: 112vh; padding: 12vh var(--gutter) 46vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.download-lead { margin: 22px 0 44px; font-size: clamp(20px, 1.7vw, 28px); font-weight: 300; }
.download-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.download-button { position: relative; z-index: 50; padding: 15px 40px; border-radius: 999px; background: #26265e; color: #fff; text-decoration: none; font: 600 20px var(--body); }
.download-button[data-glassparency="buttonPrimary"] { background: var(--accent); }
.download-note { margin: 30px 0 0; color: var(--text-soft); font-size: 17px; }

@media (max-width: 720px) {
  .site-footer { flex-direction: column; text-align: center; padding-block: 24px; }
  .topbar { width: 100%; justify-content: space-between; padding: 8px 12px 8px 18px; }
  .topbar-links { display: none; }
  .menu-button { display: block; }
}

@media (max-width: 860px) {
  .prices { grid-template-columns: 1fr; }
  .feature, .feature[data-layout] { display: block; min-height: 0; padding: 11vh 16px; }
  .feature[data-layout="wide"] .feature-text, .feature[data-layout="stack"] .feature-text { margin-bottom: 28px; }
  .feature[data-layout="stack"] .feature-shot, .feature[data-layout="stack"][data-side="right"] .feature-shot { padding: 0; }
  .feature-back { display: none; }
  .feature-frame { border-radius: 12px; }
  .feature[data-layout="offset"] { display: flex; flex-direction: column-reverse; }
  .feature[data-layout="offset"] .feature-text { position: relative; margin: -28px 12px 0; padding: 26px 26px 28px; }
  .feature-more { padding: 8vh 16px 12vh; }
  .feature-list { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero h1, .hero p { animation: none; }
}
