:root {
  color-scheme: light;
  --brand: #0096c7;
  --ink: #111827;
  --muted: #667085;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --page: #ffffff;
  --max: 760px;
}

@font-face {
  font-family: "Eudoxus Sans";
  src: url("/assets/EudoxusSansGX.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter Display";
  src: url("/assets/InterDisplay.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  font-family: "Inter Display", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--ink);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
}

html.fonts-loading body {
  opacity: 0;
}

a {
  color: var(--brand);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-shell {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0 56px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  text-decoration: none;
  transform-origin: center;
  transition:
    color 180ms ease,
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand-link:hover {
  text-decoration: none;
}

.brand-icon {
  display: block;
  width: 34px;
  height: 34px;
}

.brand-word {
  font-family: "Eudoxus Sans", "Inter Display", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.18rem;
  font-weight: 760;
  letter-spacing: 0;
}

.home-page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: clip;
}

.home-header {
  position: fixed;
  top: 16px;
  left: 0;
  z-index: 10;
  width: 100%;
  padding: 0 16px;
  pointer-events: none;
}

.home-nav {
  isolation: isolate;
  position: relative;
  width: fit-content;
  max-width: calc(100vw - 32px);
  min-height: 54px;
  margin: 0 auto;
  border-radius: 999px;
  padding: 8px 8px 8px 18px;
  box-shadow:
    0 28px 86px rgba(17, 24, 39, 0.06),
    0 10px 28px rgba(17, 24, 39, 0.035);
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(22px) saturate(1.14);
  backdrop-filter: blur(22px) saturate(1.14);
  overflow: hidden;
  pointer-events: auto;
}

.home-nav-blur,
.home-nav-glass {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
}

.home-nav-blur {
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.54);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.12) 52%, rgba(255, 255, 255, 0.3)),
    rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    inset 0 -1px 2px rgba(17, 24, 39, 0.05);
}

.home-nav-glass {
  z-index: 1;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 24%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.02) 38%, rgba(17, 24, 39, 0.02) 68%, rgba(255, 255, 255, 0.12));
  opacity: 0.5;
}

.home-nav-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 28px;
}

.home-nav::before,
.home-nav::after {
  z-index: 1;
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.home-nav::before {
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 8px 10px 18px rgba(255, 255, 255, 0.22),
    inset -10px -12px 18px rgba(17, 24, 39, 0.04);
}

.home-nav::after {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0) 45%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0.14) 86%, rgba(255, 255, 255, 0.4));
  opacity: 0.46;
}

.glass-filter-root {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.home-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  text-decoration: none;
  transform-origin: center;
  transition:
    color 180ms ease,
    transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-logo:hover,
.download-button:hover {
  text-decoration: none;
}

.home-logo .brand-icon {
  width: 28px;
  height: 28px;
}

.home-logo .brand-word {
  font-size: 1.08rem;
  font-weight: 780;
}

.home-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 0.96rem;
}

.home-links a {
  display: inline-flex;
  color: rgba(17, 24, 39, 0.72);
  transform-origin: center;
  transition:
    color 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.home-links a:hover {
  color: var(--brand);
  text-decoration: none;
  transform: translateY(-1px);
}

.download-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 12px 34px rgba(17, 24, 39, 0.16);
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0;
  touch-action: manipulation;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center;
  transition:
    background-color 180ms ease,
    box-shadow 220ms ease,
    color 180ms ease,
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.download-button-icon {
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.download-button::after,
.button-link::after {
  position: absolute;
  inset: auto;
  left: var(--press-x, 50%);
  top: var(--press-y, 50%);
  width: 120px;
  height: 120px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 64%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.32);
}

.download-button:hover,
.button-link:hover {
  animation: button-hover-bounce 320ms cubic-bezier(0.2, 0.85, 0.28, 1);
  transform: scale(1.012);
}

.download-button.is-pressing:hover,
.button-link.is-pressing:hover {
  animation: button-bounce 420ms cubic-bezier(0.2, 0.85, 0.28, 1);
}

.download-button:hover {
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.2);
}

.download-button:active,
.button-link:active {
  transform: scale(0.975);
}

.download-button.is-pressing,
.button-link.is-pressing {
  animation: button-bounce 420ms cubic-bezier(0.2, 0.85, 0.28, 1);
}

.download-button.is-pressing::after,
.button-link.is-pressing::after {
  animation: press-glow 460ms ease-out;
}

.home-logo:hover,
.brand-link:hover,
.site-nav a:hover {
  transform: translateY(-1px);
}

.home-logo:active,
.brand-link:active,
.home-links a:active,
.site-nav a:active {
  transform: scale(0.94);
}

.home-logo.is-pressing,
.brand-link.is-pressing,
.home-links a.is-pressing,
.site-nav a.is-pressing {
  animation: link-bounce 360ms cubic-bezier(0.2, 0.85, 0.22, 1.28);
}

.nav-download {
  min-height: 38px;
  padding: 0 18px 0 16px;
  font-size: 0.95rem;
}

.home-hero {
  --hero-title-size: 72px;
  --hero-title-line-height: 0.92;
  --hero-word-gap: -0.02em;
  --hero-word-bottom-trim: -0.08em;
  --hero-word-slot-height: 1.2em;
  --hero-copy-size: 18px;
  --hero-copy-line-height: 1.42;
  --hero-copy-gap: 24px;

  display: grid;
  place-items: start center;
  padding: 150px 20px 12px;
  text-align: center;
}

.hero-content {
  display: grid;
  width: min(calc(100vw - 40px), 980px);
  justify-items: center;
}

.home-hero h1 {
  width: 100%;
  max-width: 980px;
  margin: 0;
  font-size: var(--hero-title-size);
  line-height: var(--hero-title-line-height);
}

.home-hero h1 > span {
  display: block;
}

.hero-title-primary {
  color: #1a1a1a;
}

.hero-title-muted {
  color: #e6e7e7;
}

.hero-word-loop {
  position: relative;
  display: block;
  width: min(100%, var(--hero-word-width, 7.8em));
  max-width: 100%;
  height: var(--hero-word-slot-height);
  margin: var(--hero-word-gap) auto var(--hero-word-bottom-trim);
  overflow: hidden;
  contain: layout paint;
}

.hero-word-stage {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.hero-word {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transform: translate3d(0, 0, 0);
}

.hero-word-next {
  display: none;
  opacity: 0;
}

.hero-word-loop .hero-word-next {
  display: inline-flex;
}

.hero-word-char {
  display: inline-block;
  transform: translate3d(0, 0, 0);
  transform-origin: 50% 62%;
  will-change: opacity, transform, filter;
}

.hero-word-loop.is-changing .hero-word-current .hero-word-char {
  animation: hero-word-roll-out 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: var(--char-delay);
}

.hero-word-loop.is-changing .hero-word-next {
  opacity: 1;
}

.hero-word-loop.is-changing .hero-word-next .hero-word-char {
  animation: hero-word-roll-in 620ms cubic-bezier(0.2, 0.85, 0.22, 1) both;
  animation-delay: calc(var(--char-delay) + 80ms);
}

.hero-word-measure {
  position: absolute;
  left: 0;
  top: 0;
  visibility: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.home-hero .hero-copy {
  max-width: 590px;
  margin-top: var(--hero-copy-gap);
  color: rgba(17, 24, 39, 0.66);
  font-size: var(--hero-copy-size);
  line-height: var(--hero-copy-line-height);
}

.hero-download {
  min-height: 48px;
  margin-top: 30px;
  padding: 0 24px 0 22px;
  font-size: 1rem;
}

.rating-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: #9aa1aa;
}

.rating-row span {
  font-size: 14px;
}

.phone-section {
  position: relative;
  flex: 1 0 clamp(437px, 55.2vw, 644px);
  width: 100%;
  height: clamp(437px, 55.2vw, 644px);
  overflow: hidden;
  isolation: isolate;
}

.phone-scene {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: auto;
  will-change: opacity;
}

.phone-canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.qr-card {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 270px;
  border-radius: 16px;
  padding: 8px 14px 8px 8px;
  background: rgba(17, 24, 39, 0.94);
  box-shadow: 0 18px 56px rgba(17, 24, 39, 0.22);
  color: #ffffff;
  opacity: 0;
  transform: translateY(calc(100% + 28px)) scale(0.98);
  transform-origin: right bottom;
  will-change: opacity, transform;
  animation: qr-card-enter 740ms cubic-bezier(0.22, 1, 0.36, 1) 2.6s both;
}

.qr-card img {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  background: #ffffff;
}

.qr-card div {
  display: grid;
  gap: 3px;
}

.qr-card strong {
  font-size: 1rem;
  line-height: 1.1;
}

.qr-card span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  line-height: 1.25;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 16px;
  font-size: 0.95rem;
}

.site-nav a {
  display: inline-flex;
  color: var(--muted);
  transform-origin: center;
  transition:
    color 180ms ease,
    transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.site-nav a:hover {
  color: var(--brand);
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 650;
}

.site-nav a[aria-current="page"]:hover {
  color: var(--brand);
}

.hero {
  padding: 8px 0 52px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Eudoxus Sans", "Inter Display", ui-sans-serif, system-ui, sans-serif;
}

h1 {
  margin: 0;
  max-width: 680px;
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.document {
  display: grid;
  gap: 30px;
}

.document-header {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.last-updated {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  font-weight: 650;
}

.intro {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.document-section {
  display: grid;
  gap: 14px;
}

.document-section h2,
.document-section h3,
.contact-card h2 {
  margin: 0;
  letter-spacing: 0;
}

.document-section h2 {
  font-size: 1.35rem;
  line-height: 1.28;
}

.document-section h3 {
  margin-top: 4px;
  font-size: 1rem;
  line-height: 1.35;
}

p,
li {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.72;
}

p {
  margin: 0;
}

ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 22px;
}

li::marker {
  color: var(--brand);
}

.contact-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
}

.button-link {
  position: relative;
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--brand);
  color: #ffffff;
  font-weight: 600;
  touch-action: manipulation;
  transform: translate3d(0, 0, 0) scale(1);
  transform-origin: center;
  transition:
    background-color 180ms ease,
    box-shadow 220ms ease,
    color 180ms ease,
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.button-link:hover {
  text-decoration: none;
  background: #007fad;
  box-shadow: 0 14px 30px rgba(0, 150, 199, 0.18);
}

.site-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

@keyframes button-bounce {
  0% {
    transform: scale(1);
  }

  32% {
    transform: scale(0.972);
  }

  58% {
    transform: scale(1.014);
  }

  78% {
    transform: scale(0.996);
  }

  100% {
    transform: scale(1);
  }
}

@keyframes button-hover-bounce {
  0% {
    transform: scale(1);
  }

  52% {
    transform: scale(1.022);
  }

  78% {
    transform: scale(1.007);
  }

  100% {
    transform: scale(1.012);
  }
}

@keyframes link-bounce {
  0% {
    transform: translateY(0) scale(1);
  }

  38% {
    transform: translateY(1px) scale(0.9);
  }

  70% {
    transform: translateY(-1px) scale(1.06);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes press-glow {
  0% {
    opacity: 0.58;
    transform: translate(-50%, -50%) scale(0.24);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.18);
  }
}

@keyframes hero-word-roll-out {
  0% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }

  100% {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(0, -0.72em, 0) scale(0.985);
  }
}

@keyframes hero-word-roll-in {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translate3d(0, 0.72em, 0) scale(0.985);
  }

  72% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, -0.035em, 0) scale(1);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes qr-card-enter {
  0% {
    opacity: 0;
    transform: translateY(calc(100% + 28px)) scale(0.98);
  }

  68% {
    opacity: 1;
    transform: translateY(-2px) scale(1.002);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-button,
  .button-link,
  .home-logo,
  .brand-link,
  .home-links a,
  .site-nav a {
    transition-duration: 1ms;
  }

  .qr-card {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .hero-word-loop,
  .hero-word-loop.is-ready {
    width: min(100%, 7.2em);
    height: 1.2em;
    margin: -0.02em auto -0.08em;
    overflow: visible;
    contain: none;
  }

  .hero-word-loop .hero-word-next {
    display: none;
  }

  .hero-word-loop.is-changing .hero-word-current .hero-word-char,
  .hero-word-loop.is-changing .hero-word-next .hero-word-char {
    animation: none;
  }

  .download-button:hover,
  .button-link:hover {
    animation: none;
  }

  .download-button.is-pressing,
  .button-link.is-pressing,
  .home-logo.is-pressing,
  .brand-link.is-pressing,
  .home-links a.is-pressing,
  .site-nav a.is-pressing,
  .download-button.is-pressing::after,
  .button-link.is-pressing::after {
    animation: none;
  }
}

@media (max-width: 720px) {
  .home-header {
    top: 12px;
    padding: 0 10px;
  }

  .home-nav {
    width: 100%;
    gap: 10px;
    padding-left: 12px;
  }

  .home-nav-content {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }

  .home-links {
    display: none;
  }

  .nav-download {
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.88rem;
  }

  .home-hero {
    --hero-title-size: clamp(2.1rem, 10.65vw, 3.2rem);
    --hero-title-line-height: 0.96;
    --hero-word-gap: -0.06em;
    --hero-word-bottom-trim: -0.04em;
    --hero-word-slot-height: 1.18em;
    --hero-copy-size: clamp(0.94rem, 3.75vw, 1rem);
    --hero-copy-line-height: 1.45;
    --hero-copy-gap: 16px;

    padding: 96px 18px 28px;
  }

  .site-shell {
    width: min(100% - 28px, var(--max));
    padding-top: 20px;
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
    padding-bottom: 42px;
  }

  .site-nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: 2.8rem;
  }

  .home-hero .hero-copy {
    max-width: min(100%, 350px);
  }

  .rating-row {
    align-items: center;
    flex-direction: column;
    gap: 6px;
  }

  .qr-card {
    display: none;
  }
}

@media (max-width: 380px) {
  .home-hero {
    --hero-title-size: clamp(2.08rem, 10.65vw, 3.2rem);
  }
}
