/* Tokens, type, navigation and shared pieces for the public site. */
@font-face {
  font-family: 'Inter';
  src: url('/assets/Inter-Variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('/assets/fonts/GeistMono-Medium.woff2') format('woff2');
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --void: #04050a;
  --panel: #0e1018;
  --ink: #f4f6ff;
  --ink-2: #a9b0c9;
  --hair: rgba(255, 255, 255, 0.1);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --day: #ffffff;
  --day-ink: #0a0b14;
  --day-ink-2: #5a6078;
  --blue: #4c7dff;
  --cyan: #38d6ff;
  --violet: #9b7bff;
  --mint: #3ddcb4;
  --gutter: clamp(20px, 5vw, 96px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--void);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--void);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 12px;
  color: var(--day-ink);
  background: var(--day);
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: none;
}

/* Type */
.display {
  font-size: clamp(40px, 5.6vw, 84px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--hue, var(--mint));
}

/* Headlines rise line by line out of a mask. */
.rise > span {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.rise > span > i {
  display: block;
  font-style: normal;
}
.js .rise > span > i {
  transform: translateY(108%);
  transition: transform 1.1s var(--ease);
}
.js .rise > span:nth-child(2) > i {
  transition-delay: 0.09s;
}
.js .rise.is-in > span > i {
  transform: none;
}

.js [data-reveal] {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Navigation */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(16px, 2vw, 28px);
  color: var(--ink);
  transition: color 0.4s ease;
}
.nav::before {
  content: '';
  position: absolute;
  inset: 0 0 -28px;
  z-index: -1;
  background: linear-gradient(rgba(4, 5, 10, 0.72), rgba(4, 5, 10, 0));
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav.on-light {
  color: var(--day-ink);
}
.nav.on-light::before {
  background: linear-gradient(rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.03em;
}
.brand-mark {
  width: 30px;
  height: 30px;
}
.mark-spine {
  fill: currentColor;
}
.mark-wing {
  fill: var(--cyan);
}
.on-light .mark-wing {
  fill: #0077d4;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-seg {
  display: flex;
  padding: 4px;
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.nav-seg a,
.nav-link {
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 500;
  letter-spacing: -0.015em;
  white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease;
}
.nav-seg a:hover {
  background: var(--glass-strong);
}
.nav-seg a.is-current {
  color: var(--day-ink);
  background: var(--day);
}
.nav.on-light .nav-seg {
  background: rgba(10, 11, 20, 0.05);
}
.nav.on-light .nav-seg a:hover {
  background: rgba(10, 11, 20, 0.07);
}
.nav.on-light .nav-seg a.is-current {
  color: var(--day);
  background: var(--day-ink);
}
.nav-link:hover {
  opacity: 0.7;
}

.btn-cta {
  position: relative;
  padding: 13px 24px;
  border-radius: 16px;
  color: #fff;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
  background: linear-gradient(100deg, #9a8cff 0%, #5b8cff 55%, #3aa0ff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 30px -10px rgba(76, 125, 255, 0.8);
  transition: transform 0.35s var(--ease), box-shadow 0.35s ease;
}
.btn-cta:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 16px 36px -10px rgba(76, 125, 255, 0.95);
}
.btn-cta:active {
  transform: scale(0.98);
}

/* Glass pill buttons used in the hero and the finale */
.store-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 64px;
  padding: 10px 28px 10px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  transition: transform 0.4s var(--ease), background-color 0.3s ease;
}
.store-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.2);
}
.store-btn:active {
  transform: scale(0.98);
}
.store-btn.is-soon {
  padding-left: 26px;
  color: rgba(244, 246, 255, 0.82);
  background: rgba(255, 255, 255, 0.06);
  border-style: dashed;
  border-color: rgba(255, 255, 255, 0.22);
  cursor: default;
}
.store-btn.is-soon:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.06);
}
.store-btn svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.store-btn svg .solid {
  fill: currentColor;
  stroke-width: 1.5;
}
.store-btn span {
  display: grid;
  white-space: nowrap;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-align: left;
}
.store-btn small {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  opacity: 0.78;
}

/* Floating QR: desktop only, replaces the install pill there. */
.qr-dock {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 55;
  display: none;
  gap: 9px;
  padding: 12px 12px 11px;
  border-radius: 26px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: center;
  background: rgba(14, 16, 24, 0.72);
  border: 1px solid var(--hair);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  transition: opacity 0.5s ease, transform 0.6s var(--ease);
}
.qr-dock img {
  width: 116px;
  height: 116px;
  padding: 8px;
  border-radius: 16px;
  background: #fff;
}
.qr-dock.is-away {
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
}
@media (min-width: 1180px) and (min-height: 700px) {
  .qr-dock {
    display: grid;
  }
}

@media (max-width: 900px) {
  .nav-seg,
  .nav-link {
    display: none;
  }
  .nav {
    padding: 14px 16px;
  }
  .btn-cta {
    padding: 11px 18px;
    border-radius: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js .rise > span > i,
  .js [data-reveal] {
    transform: none;
    opacity: 1;
    transition: none;
  }
}
