/* universe — landing page. Same palette as the app: graphite + lavender. */

@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("../fonts/onest-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #0d0d0f;
  --bg-raised: #111114;
  --card: rgb(22 22 26 / 0.86);
  --card-solid: #16161a;
  --field: #101013;
  --elevated: #232329;
  --border: rgb(255 255 255 / 0.07);
  --border-strong: rgb(255 255 255 / 0.12);
  --text: #f2f2f7;
  --text-dim: #c4c4ce;
  --muted: #868693;
  --faint: #52525e;
  --accent: #a5b4fc;
  --accent-hover: #bec8ff;
  --accent-deep: #818cf8;
  --on-accent: #111222;
  --green: #6ee7b7;
  --amber: #fcd34d;
  --radius: 20px;
  --container: 1120px;
  --gutter: 16px;
  --font: "Onest", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  /* Keeps fallback text the same visual size while Onest loads. */
  font-size-adjust: from-font;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.container--narrow {
  --container: 820px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ── buttons ──────────────────────────────────────────────────────────── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 16px/1 var(--font);
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.button:hover {
  transform: translateY(-1px);
}
.button:active {
  transform: translateY(0);
}
.button--light {
  background: #f4f4f8;
  color: #111116;
}
.button--light:hover {
  background: #fff;
  box-shadow: 0 10px 30px rgb(165 180 252 / 0.25);
}
.button--ghost {
  background: rgb(255 255 255 / 0.05);
  border-color: var(--border-strong);
  color: var(--text);
}
.button--ghost:hover {
  background: rgb(255 255 255 / 0.09);
}
.button--accent {
  background: var(--accent);
  color: var(--on-accent);
}
.button--accent:hover {
  background: var(--accent-hover);
  box-shadow: 0 14px 40px rgb(165 180 252 / 0.35);
}
.button--small {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
  gap: 8px;
}
.button--large {
  min-height: 58px;
  padding: 0 34px;
  font-size: 17px;
}

/* ── navigation ───────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  padding-inline: var(--gutter);
  container-type: scroll-state;
  container-name: site-header;
}

.nav {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: min(100%, 1000px);
  height: 60px;
  margin: 12px auto 0;
  padding: 0 10px 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  /* Readable everywhere; the stuck state below only adds depth. */
  background: rgb(17 17 20 / 0.72);
  backdrop-filter: blur(18px) saturate(1.3);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  transition: box-shadow 0.3s, background-color 0.3s;
}

@container site-header scroll-state(stuck: top) {
  .nav {
    background: rgb(17 17 20 / 0.86);
    box-shadow: 0 14px 40px rgb(0 0 0 / 0.45);
  }
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.nav__brand img {
  border-radius: 9px;
}

.nav__links {
  display: flex;
  gap: 4px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.nav__links a {
  display: block;
  padding: 8px 14px;
  border-radius: 10px;
  color: var(--text-dim);
  font-size: 15px;
  font-weight: 600;
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover,
.nav__links a[aria-current="true"] {
  color: var(--text);
  background: rgb(255 255 255 / 0.06);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav__links + .nav__actions {
  margin-left: 0;
}

.nav__toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: rgb(255 255 255 / 0.04);
  color: var(--text);
  cursor: pointer;
}
.nav__toggle .icon--close,
.nav__toggle[aria-expanded="true"] .icon--open {
  display: none;
}
.nav__toggle[aria-expanded="true"] .icon--close {
  display: block;
}

@media (max-width: 860px) {
  .nav__toggle {
    display: grid;
  }
  .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 8px;
    border: 1px solid var(--border-strong);
    border-radius: 18px;
    background: rgb(17 17 20 / 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 20px 50px rgb(0 0 0 / 0.5);
  }
  .nav__links.is-open {
    display: flex;
  }
  .nav__links a {
    padding: 12px 14px;
  }
  .nav__actions {
    margin-left: auto;
  }
}

/* ── hero ─────────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  /* Slides under the sticky header so the starfield starts at the very top. */
  margin-top: -84px;
  padding-top: calc(84px + clamp(56px, 10vw, 110px));
  overflow: clip;
}

.hero__sky {
  position: absolute;
  inset: 0 0 auto;
  height: 980px;
  pointer-events: none;
  /* a quiet starfield */
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgb(255 255 255 / 0.5), transparent 60%),
    radial-gradient(1px 1px at 28% 62%, rgb(255 255 255 / 0.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 43% 12%, rgb(255 255 255 / 0.45), transparent 60%),
    radial-gradient(1px 1px at 58% 44%, rgb(255 255 255 / 0.3), transparent 60%),
    radial-gradient(1px 1px at 71% 22%, rgb(255 255 255 / 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 86% 56%, rgb(255 255 255 / 0.35), transparent 60%),
    radial-gradient(1px 1px at 93% 14%, rgb(255 255 255 / 0.45), transparent 60%),
    radial-gradient(1px 1px at 6% 78%, rgb(255 255 255 / 0.3), transparent 60%),
    radial-gradient(1px 1px at 52% 84%, rgb(255 255 255 / 0.25), transparent 60%),
    radial-gradient(1px 1px at 78% 88%, rgb(255 255 255 / 0.3), transparent 60%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
}

.hero__glow {
  position: absolute;
  left: 50%;
  top: 120px;
  width: min(1100px, 120vw);
  aspect-ratio: 2 / 1;
  translate: -50% 0;
  background:
    radial-gradient(closest-side, rgb(129 140 248 / 0.30), transparent),
    radial-gradient(closest-side at 70% 60%, rgb(165 180 252 / 0.16), transparent);
  filter: blur(20px);
}

.hero__orbit {
  position: absolute;
  left: 50%;
  top: 150px;
  width: min(1200px, 140vw);
  height: 420px;
  translate: -50% 0;
  rotate: -8deg;
  fill: none;
  stroke: rgb(165 180 252 / 0.22);
  stroke-width: 1.2;
  stroke-dasharray: 2 7;
}

.hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px 7px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 0.04);
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 600;
}
.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgb(110 231 183 / 0.16);
}

.hero__title {
  margin-top: 26px;
  font-size: clamp(46px, 9.2vw, 118px);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.gradient-text {
  background: linear-gradient(180deg, #e8ebff 0%, var(--accent) 55%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 680px;
  margin-top: 26px;
  color: var(--text-dim);
  font-size: clamp(16px, 2vw, 19px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}
.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero__meta .icon {
  color: var(--accent);
}

.hero__shot {
  position: relative;
  margin-top: clamp(48px, 7vw, 80px);
  perspective: 1600px;
}

.window-shot {
  position: relative;
  margin: 0;
  border-radius: 18px;
  box-shadow:
    0 0 0 1px var(--border-strong),
    0 40px 120px rgb(0 0 0 / 0.6),
    0 0 90px rgb(129 140 248 / 0.12);
}
.window-shot img {
  width: 100%;
  border-radius: 18px;
}

/* The hero screenshot lies back and straightens up while scrolling into view. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tilt {
      transform-origin: 50% 0;
      animation: straighten linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 45%;
    }
  }
}
@keyframes straighten {
  from {
    transform: rotateX(16deg) scale(0.94);
  }
  to {
    transform: rotateX(0) scale(1);
  }
}

/* ── stats ────────────────────────────────────────────────────────────── */

.stats {
  padding: clamp(48px, 7vw, 80px) 0 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-raised);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 26px 24px;
}
.stat + .stat {
  border-left: 1px solid var(--border);
}
.stat strong {
  font-size: clamp(26px, 3.2vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.stat span {
  color: var(--muted);
  font-size: 15px;
}
@media (max-width: 760px) {
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(3) {
    border-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
}

/* ── sections ─────────────────────────────────────────────────────────── */

.section {
  padding: clamp(80px, 11vw, 140px) 0 0;
}

.section__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}
.section__head h2 {
  font-size: clamp(34px, 5.4vw, 60px);
}
.section__head p:not(.eyebrow) {
  color: var(--muted);
  font-size: 17px;
}

.eyebrow {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── feature bento ────────────────────────────────────────────────────── */

.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.025), transparent 60%), var(--card-solid);
  transition: border-color 0.3s, transform 0.3s;
}
.card:hover {
  border-color: rgb(165 180 252 / 0.28);
}
.card h3 {
  font-size: 21px;
  letter-spacing: -0.02em;
}
.card p {
  color: var(--muted);
  font-size: 15px;
}

.card--wide {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 1fr minmax(260px, 340px);
  align-items: center;
  gap: 28px;
}
.card__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 4px;
  border: 1px solid rgb(165 180 252 / 0.25);
  border-radius: 13px;
  background: rgb(165 180 252 / 0.1);
  color: var(--accent);
  font-size: 19px;
}

@media (max-width: 960px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .bento {
    grid-template-columns: 1fr;
  }
  .card--wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }
}

/* small HTML mock-ups of the app UI */
.mock {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--field);
  font-size: 13.5px;
}
.mock__head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.mock__head b {
  display: block;
  font-size: 15px;
}
.mock__head small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.mock__tile {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgb(165 180 252 / 0.25);
  border-radius: 11px;
  background: rgb(165 180 252 / 0.1);
  color: var(--accent);
}
.mock__toggle {
  position: relative;
  width: 36px;
  height: 20px;
  margin-left: auto;
  border-radius: 10px;
  background: var(--accent);
}
.mock__toggle::after {
  content: "";
  position: absolute;
  top: 3.5px;
  right: 3.5px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--on-accent);
}
.mock__row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 30px;
  color: var(--muted);
}
.mock__row i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.mock__row b {
  margin-left: auto;
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.mock .green {
  color: var(--green);
}
.mock__row i.green {
  background: var(--green);
}
.mock .mono {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12.5px;
}
.mock__bar {
  height: 6px;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--elevated);
  overflow: hidden;
}
.mock__bar span {
  display: block;
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}
.mock__spark {
  width: 100%;
  height: 48px;
  margin-top: 8px;
}
.mock__spark .area {
  fill: rgb(165 180 252 / 0.14);
}
.mock__spark .line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  vector-effect: non-scaling-stroke;
}

.chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}
.chain span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--field);
  color: var(--text);
}

/* ── showcase ─────────────────────────────────────────────────────────── */

.showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.showcase + .showcase {
  margin-top: clamp(64px, 9vw, 110px);
}
.showcase--reverse {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
}
.showcase--reverse .showcase__text {
  order: 2;
}
.showcase__text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.showcase__text h3 {
  font-size: clamp(28px, 3.6vw, 40px);
}
.showcase__text p {
  color: var(--muted);
  font-size: 16.5px;
}

.checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  display: flex;
  gap: 10px;
  color: var(--text-dim);
  font-size: 15.5px;
}
.checklist .icon {
  margin-top: 3px;
  color: var(--green);
}

@media (max-width: 960px) {
  .showcase,
  .showcase--reverse {
    grid-template-columns: 1fr;
  }
  .showcase--reverse .showcase__text {
    order: 0;
  }
}

/* ── steps ────────────────────────────────────────────────────────────── */

.start {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-solid);
}
.step h3 {
  font-size: 19px;
  letter-spacing: -0.02em;
}
.step p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 15px;
}
.step__number {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 800;
}
@media (max-width: 960px) {
  .start {
    grid-template-columns: 1fr;
  }
}

/* ── protocols ────────────────────────────────────────────────────────── */

.protocols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.protocol {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card-solid);
}
.protocol b {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.protocol span {
  color: var(--muted);
  font-size: 13.5px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
.tags li {
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
}
@media (max-width: 960px) {
  .protocols {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 420px) {
  .protocols {
    grid-template-columns: 1fr;
  }
}

/* ── faq ──────────────────────────────────────────────────────────────── */

.faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--card-solid);
  transition: border-color 0.2s;
}
.faq details[open] {
  border-color: rgb(165 180 252 / 0.28);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  rotate: 45deg;
  translate: 0 -3px;
  transition: rotate 0.25s, translate 0.25s;
}
.faq details[open] summary::after {
  rotate: 225deg;
  translate: 0 3px;
}
.faq details p {
  padding: 0 22px 22px;
  color: var(--muted);
}

/* ── download ─────────────────────────────────────────────────────────── */

.download {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: clamp(44px, 7vw, 80px) clamp(20px, 5vw, 64px);
  border: 1px solid var(--border-strong);
  border-radius: 28px;
  background: var(--bg-raised);
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.download__glow {
  position: absolute;
  inset: auto 10% -55% 10%;
  height: 120%;
  z-index: -1;
  background: radial-gradient(closest-side, rgb(129 140 248 / 0.32), transparent);
  filter: blur(10px);
}
.download__logo {
  border-radius: 24px;
  box-shadow: 0 18px 50px rgb(129 140 248 / 0.3);
}
.download h2 {
  margin-top: 8px;
  font-size: clamp(36px, 5.6vw, 62px);
}
.download > p {
  max-width: 520px;
  color: var(--text-dim);
  font-size: 17px;
}
.download .button {
  margin-top: 10px;
}
.download__facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
}
.download__facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.download__facts .icon {
  color: var(--accent);
}
.download .download__note {
  color: var(--muted);
  font-size: 13.5px;
}

/* ── footer ───────────────────────────────────────────────────────────── */

.footer {
  margin-top: clamp(80px, 11vw, 140px);
  padding: 32px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
}
.footer__inner .nav__brand {
  color: var(--text);
  font-size: 17px;
}
.footer__inner p:last-child {
  margin-left: auto;
}
@media (max-width: 640px) {
  .footer__inner p:last-child {
    margin-left: 0;
  }
}

.flag {
  width: 18px;
  height: 12px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.12);
}

/* ── hero entrance (CSS only, so the first screen never waits for JS) ──── */

@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: var(--delay, 0ms);
  }
}
@keyframes rise {
  from {
    opacity: 0;
    translate: 0 18px;
  }
}

/* ── reveal on scroll (enabled by JS, off for reduced motion) ─────────── */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    translate: 0 24px;
    transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
    transition-delay: var(--delay, 0ms);
  }
  .js .reveal.is-visible {
    opacity: 1;
    translate: 0 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .button:hover {
    transform: none;
  }
}
