:root {
  color-scheme: dark;
  --bronze: #a5823f;
  --bronze-bright: #c89a4a;
  --bronze-soft: rgba(165, 130, 63, 0.16);
  --teal: #408c96;
  --teal-bright: #54b3bf;
  --teal-soft: rgba(64, 140, 150, 0.16);
  --bg: #0a0d0e;
  --bg-soft: #111718;
  --panel: #151b1d;
  --panel-strong: #1b2224;
  --ink: #f2eadc;
  --ink-dim: #a8aaa2;
  --ink-muted: #747c79;
  --line: rgba(242, 234, 220, 0.12);
  --line-strong: rgba(242, 234, 220, 0.22);
  --danger: #ee8d83;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: ui-serif, Georgia, Cambria, "Times New Roman", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background:
    linear-gradient(135deg, rgba(200, 154, 74, 0.08) 0 1px, transparent 1px 38px),
    linear-gradient(45deg, rgba(84, 179, 191, 0.06) 0 1px, transparent 1px 44px),
    linear-gradient(180deg, #101415 0%, var(--bg) 48%, #070909 100%);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(115deg, rgba(64, 140, 150, 0.18), transparent 32%),
    linear-gradient(245deg, rgba(165, 130, 63, 0.15), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%);
  mask-image: linear-gradient(#000, transparent 78%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background:
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, 0.032) 39px 40px),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, 0.026) 39px 40px);
  mask-image: linear-gradient(#000 0%, rgba(0, 0, 0, 0.74) 38%, transparent 88%);
}

a { color: inherit; }

code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.08em 0.36em;
  border-radius: 6px;
}

::selection {
  background: rgba(84, 179, 191, 0.32);
  color: var(--ink);
}

/* logo: two interlocking rings, CSS mask-tinted */
.logo,
.foot-logo {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 38px;
  vertical-align: middle;
  flex: 0 0 auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.24));
}

.logo-upper,
.logo-lower {
  position: absolute;
  inset: 0;
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.logo-upper {
  -webkit-mask-image: url(/logo-upper.png);
  mask-image: url(/logo-upper.png);
  background-color: var(--bronze);
}

.logo-lower {
  -webkit-mask-image: url(/logo-lower.png);
  mask-image: url(/logo-lower.png);
  background-color: var(--teal);
}

main,
.nav {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-lockup {
  display: grid;
  gap: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.34rem;
  font-weight: 700;
  line-height: 1;
}

.brand-sub {
  color: var(--ink-muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.beta-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  border: 1px solid rgba(200, 154, 74, 0.5);
  border-radius: 999px;
  background: rgba(165, 130, 63, 0.16);
  color: var(--bronze-bright);
  font-family: var(--font);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  vertical-align: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  flex-wrap: wrap;
}

.nav-source,
.nav-skip {
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-source {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(255, 255, 255, 0.025);
}

.nav-source:hover {
  color: var(--ink);
  border-color: rgba(84, 179, 191, 0.42);
  background: rgba(64, 140, 150, 0.08);
}

.nav-skip:hover { color: var(--teal-bright); }

.hero {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
  display: grid;
  align-content: center;
  /* horizontal padding keeps the copy off the hero-field border below */
  padding: 64px clamp(36px, 5vw, 72px) 88px;
  isolation: isolate;
}

.hero-field {
  position: absolute;
  inset: 28px 0 32px;
  z-index: -1;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(10, 13, 14, 0.9), rgba(10, 13, 14, 0.38) 56%, rgba(10, 13, 14, 0.78)),
    repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.042) 0 1px, transparent 1px 18px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), var(--shadow);
}

.hero-field::before,
.hero-field::after {
  content: "";
  position: absolute;
  inset: 9%;
  border: 1px solid rgba(242, 234, 220, 0.08);
  transform: skewX(-12deg);
}

.hero-field::after {
  inset: 18% 7%;
  border-color: rgba(84, 179, 191, 0.16);
  transform: skewX(12deg);
}

/* the app's boot splash: the two rings tumbling into the mark. Ambient, behind
   the headline; the static rings below are the reduced-motion fallback. */
.hero-splash {
  position: absolute;
  top: 6%;
  right: 7%;
  width: clamp(320px, 40vw, 560px);
  aspect-ratio: 1;
  opacity: 0.55;
  filter: drop-shadow(0 24px 70px rgba(0, 0, 0, 0.45)) saturate(0.92);
  animation: drift-a 16s ease-in-out infinite;
  pointer-events: none;
  user-select: none;
}

.hero-ring {
  position: absolute;
  display: none;
  width: clamp(330px, 43vw, 590px);
  aspect-ratio: 1;
  opacity: 0.82;
  filter: drop-shadow(0 24px 70px rgba(0, 0, 0, 0.45));
}

.hero-ring .logo-upper,
.hero-ring .logo-lower { inset: 0; }

.hero-ring-a {
  top: 5%;
  right: 10%;
  animation: drift-a 16s ease-in-out infinite;
}

.hero-ring-b {
  right: -2%;
  bottom: 0;
  animation: drift-b 18s ease-in-out infinite;
}

.node,
.route {
  position: absolute;
  display: block;
}

.node {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 0 0 6px rgba(242, 234, 220, 0.06), 0 0 26px rgba(84, 179, 191, 0.44);
}

.node-a { top: 24%; right: 28%; }
.node-b { top: 50%; right: 12%; background: var(--teal-bright); }
.node-c { right: 39%; bottom: 22%; background: var(--bronze-bright); }

.route {
  height: 1px;
  width: 220px;
  transform-origin: left;
  background: linear-gradient(90deg, transparent, rgba(84, 179, 191, 0.54), transparent);
}

.route-a {
  top: 27%;
  right: 15%;
  transform: rotate(24deg);
}

.route-b {
  right: 25%;
  bottom: 26%;
  transform: rotate(-17deg);
  background: linear-gradient(90deg, transparent, rgba(200, 154, 74, 0.52), transparent);
}

.eyebrow,
.section-label {
  margin: 0 0 16px;
  color: var(--teal-bright);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p { overflow-wrap: anywhere; }

h1 {
  max-width: 760px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(3.35rem, 8.6vw, 7.6rem);
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.lede {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--ink-dim);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.hero-note {
  flex-basis: 100%;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.btn-primary,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 140ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, filter 180ms ease;
}

.btn-primary {
  color: #081011;
  background: linear-gradient(95deg, var(--bronze-bright), var(--teal-bright));
  box-shadow: 0 16px 46px rgba(64, 140, 150, 0.18);
}

.btn-primary:hover,
.btn-pay:hover {
  filter: brightness(1.08) saturate(1.03);
  transform: translateY(-1px);
}

.btn-primary:active,
.btn-ghost:active,
.btn-pay:active,
.preset:active,
.dl-card:active { transform: translateY(1px); }

.btn-ghost {
  color: var(--ink-dim);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: rgba(200, 154, 74, 0.48);
  background: rgba(165, 130, 63, 0.08);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  box-shadow: var(--shadow);
}

.proof-item {
  display: grid;
  gap: 4px;
  min-height: 156px;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent),
    var(--panel);
}

.proof-kicker {
  color: var(--bronze-bright);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.proof-item strong {
  font-family: var(--font-display);
  font-size: 1.34rem;
  line-height: 1.1;
}

.proof-item span:last-child {
  color: var(--ink-dim);
  font-size: 0.92rem;
}

.source-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 5vw, 48px);
  padding: 74px 0 68px;
  border-bottom: 1px solid var(--line);
}

.source-strip p:not(.section-label) {
  max-width: 620px;
  margin: 18px 0 0;
  color: var(--ink-dim);
}

.source-strip .btn-ghost { white-space: nowrap; }

.pwyw {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 520px);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  padding: 86px 0 104px;
}

.pwyw-copy {
  position: sticky;
  top: 28px;
}

.pwyw-copy p:not(.section-label) {
  max-width: 540px;
  margin: 22px 0 0;
  color: var(--ink-dim);
  font-size: 1.03rem;
}

.pwyw-copy strong { color: var(--ink); }

.pwyw-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: clamp(24px, 4vw, 36px);
  background:
    linear-gradient(140deg, rgba(200, 154, 74, 0.12), transparent 34%),
    linear-gradient(320deg, rgba(84, 179, 191, 0.14), transparent 38%),
    var(--panel-strong);
  box-shadow: var(--shadow);
  transform: perspective(900px) rotateX(var(--tilt-y, 0deg)) rotateY(var(--tilt-x, 0deg));
  transition: transform 220ms ease, border-color 180ms ease;
}

.pwyw-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  pointer-events: none;
}

.pwyw-card:hover { border-color: rgba(84, 179, 191, 0.4); }

.amount-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  color: var(--ink-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

#amount-mood {
  color: var(--bronze-bright);
  text-align: right;
}

.amount-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  margin: 4px 0 20px;
  cursor: text;
}

.currency {
  color: var(--ink-muted);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 3.4rem);
}

.amount-input {
  width: min(260px, 72%);
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(4.8rem, 13vw, 8rem);
  font-weight: 800;
  line-height: 0.85;
  text-align: center;
  letter-spacing: 0;
}

.amount-input:focus { outline: none; }

.amount-input:focus-visible {
  box-shadow: 0 2px 0 var(--teal-bright);
}

.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.amount-input { -moz-appearance: textfield; }

.slider-wrap { margin: 0 0 20px; }

.slider {
  --pay-progress: 0%;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  appearance: none;
}

.slider::-webkit-slider-runnable-track {
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background:
    linear-gradient(90deg, var(--bronze-bright), var(--teal-bright)) 0 / var(--pay-progress) 100% no-repeat,
    rgba(255, 255, 255, 0.08);
}

.slider::-moz-range-track {
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.08);
}

.slider::-moz-range-progress {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--bronze-bright), var(--teal-bright));
}

.slider::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border: 3px solid #101616;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 0 0 6px rgba(84, 179, 191, 0.13);
  appearance: none;
}

.slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 3px solid #101616;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 0 0 6px rgba(84, 179, 191, 0.13);
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.presets {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 0 0 18px;
}

.preset {
  min-width: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 140ms ease;
}

.preset:hover {
  border-color: rgba(84, 179, 191, 0.5);
  background: rgba(64, 140, 150, 0.1);
}

.preset.active {
  border-color: rgba(200, 154, 74, 0.68);
  background: rgba(165, 130, 63, 0.18);
}

.btn-pay {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px 0 22px;
  color: #081011;
  background: linear-gradient(95deg, var(--bronze-bright), var(--teal-bright));
  box-shadow: 0 18px 40px rgba(64, 140, 150, 0.2);
  font: inherit;
  font-size: 1.02rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 140ms ease, filter 180ms ease, opacity 180ms ease;
}

.pay-arrow {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(8, 16, 17, 0.12);
  font-size: 1.2rem;
}

.btn-pay:disabled {
  opacity: 0.62;
  cursor: wait;
}

.pay-error {
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 0.88rem;
  text-align: center;
}

.skip-link {
  display: block;
  width: max-content;
  max-width: 100%;
  margin: 16px auto 0;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 180ms ease;
}

.skip-link:hover { color: var(--teal-bright); }

.privacy-line {
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* download page */
.download-main {
  max-width: 1000px;
  padding: 28px 0 88px;
}

.download-hero {
  position: relative;
  padding: 60px 0 38px;
}

.download-hero::after {
  content: "";
  position: absolute;
  right: 2%;
  top: 16px;
  width: clamp(140px, 22vw, 250px);
  aspect-ratio: 1;
  opacity: 0.24;
  background: var(--teal);
  -webkit-mask-image: url(/logo-lower.png);
  mask-image: url(/logo-lower.png);
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  pointer-events: none;
}

.download-main h1 {
  max-width: 620px;
  font-size: clamp(3.1rem, 8vw, 6.2rem);
}

.dl-lede {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--ink-dim);
  font-size: 1.05rem;
}

.banner {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 0 22px;
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.18);
}

.banner-ok {
  border-color: rgba(84, 179, 191, 0.45);
  background: rgba(64, 140, 150, 0.14);
}

.banner-demo {
  border-color: rgba(200, 154, 74, 0.48);
  background: rgba(165, 130, 63, 0.15);
}

.banner-soft {
  color: var(--ink-dim);
  background: rgba(255, 255, 255, 0.035);
}

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 10px 0 56px;
}

.dl-card {
  position: relative;
  display: grid;
  min-height: 220px;
  align-content: end;
  gap: 7px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  color: var(--ink);
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 38%),
    var(--panel);
  transition: transform 150ms ease, border-color 180ms ease, background 180ms ease;
}

.dl-card::before {
  content: attr(data-os);
  position: absolute;
  top: 14px;
  right: 16px;
  color: rgba(242, 234, 220, 0.06);
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.8rem);
  font-weight: 900;
  line-height: 0.8;
}

.dl-card:hover {
  transform: translateY(-3px);
  border-color: rgba(84, 179, 191, 0.52);
  background:
    linear-gradient(180deg, rgba(84, 179, 191, 0.12), transparent 46%),
    var(--panel-strong);
}

.dl-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--bronze-bright);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 900;
  z-index: 1;
}

.dl-os {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
  z-index: 1;
}

.dl-meta,
.dl-action {
  color: var(--ink-dim);
  font-size: 0.9rem;
  z-index: 1;
}

.dl-action {
  color: var(--teal-bright);
  font-weight: 800;
}

.mobile-block {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  padding: clamp(24px, 5vw, 38px);
  margin-bottom: 24px;
  background:
    linear-gradient(135deg, rgba(64, 140, 150, 0.13), transparent 42%),
    var(--bg-soft);
}

.mobile-block h2 { margin: 0; }

.mobile-block p {
  max-width: 720px;
  margin: 0;
  color: var(--ink-dim);
}

.mobile-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  text-decoration: none;
  font-weight: 850;
  cursor: default;
  transition: border-color 180ms ease, background 180ms ease, transform 140ms ease;
}

.store-btn:hover {
  border-color: rgba(200, 154, 74, 0.54);
  background: rgba(165, 130, 63, 0.1);
  transform: translateY(-1px);
}

.store-soon {
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid rgba(200, 154, 74, 0.5);
  border-radius: 999px;
  background: rgba(165, 130, 63, 0.16);
  color: var(--bronze-bright);
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mobile-pass {
  padding-top: 4px;
  font-size: 0.94rem;
}

.mobile-pass a { color: var(--teal-bright); }

.download-source {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 0 38px;
  color: var(--ink-dim);
}

.download-source p {
  margin: 0;
  flex: 1 1 320px;
}

.back-link {
  color: var(--ink-dim);
  font-size: 0.9rem;
  text-decoration: none;
}

.back-link:hover { color: var(--teal-bright); }

.foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 96px;
  padding: 28px 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.86rem;
  flex-wrap: wrap;
}

.foot a {
  color: var(--ink-muted);
  text-decoration: none;
}

.foot a:hover { color: var(--teal-bright); }

.foot-license {
  max-width: 620px;
  padding-left: 13px;
  border-left: 1px solid var(--line);
  font-size: 0.8rem;
  line-height: 1.5;
}

.foot-license a {
  color: var(--bronze-bright);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.94em;
}

.foot-logo {
  width: 24px;
  height: 24px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 620ms ease, transform 620ms ease;
}

@keyframes drift-a {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-5deg); }
  50% { transform: translate3d(12px, -10px, 0) rotate(-2deg); }
}

@keyframes drift-b {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(7deg); }
  50% { transform: translate3d(-14px, 8px, 0) rotate(4deg); }
}

/* live peer-mesh hero canvas */
.mesh-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 0;
  opacity: 0.92;
  pointer-events: none;
  mask-image: radial-gradient(120% 100% at 70% 40%, #000 55%, transparent 100%);
}

/* in plain words — the one-line diagram for people who don't speak protocol */
.plain {
  padding: 84px 0 10px;
}

.plain h2 { max-width: 640px; }

.plain-diagram {
  display: block;
  width: min(760px, 100%);
  margin: 44px auto 8px;
  overflow: visible;
}

.pd-device rect,
.pd-lock circle {
  fill: var(--panel);
  stroke-width: 1.6;
}

.pd-device line { stroke-width: 1.6; stroke-linecap: round; }

.pd-you rect, .pd-you line { stroke: var(--teal-bright); }
.pd-them rect, .pd-them line { stroke: var(--bronze-bright); }
.pd-you line, .pd-them line { opacity: 0.55; }

.pd-wire {
  stroke: url(#plain-line);
  stroke-width: 1.6;
  stroke-dasharray: 5 7;
  opacity: 0.7;
}

.pd-lock circle { stroke: var(--line-strong); }
.pd-lock rect { fill: rgba(242, 234, 220, 0.14); stroke: var(--ink); stroke-width: 1.5; }
.pd-lock path { stroke: var(--ink); stroke-width: 1.5; }

.pd-label {
  fill: var(--ink-dim);
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.pd-pulse {
  fill: var(--ink);
  animation: pd-travel 5.5s linear infinite;
}

@keyframes pd-travel {
  0% { transform: translateX(126px); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translateX(634px); opacity: 0; }
}

.plain-captions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
}

.plain-caption {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--panel);
}

.plain-caption strong { font-size: 0.98rem; }
.plain-caption span { color: var(--ink-dim); font-size: 0.88rem; }

/* the mesh map — the living document of a peer environment */
.meshmap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 60px);
  align-items: start;
  padding: 86px 0 76px;
}

.meshmap-copy p:not(.section-label) {
  margin: 16px 0 0;
  max-width: 620px;
  color: var(--ink-dim);
}

.meshmap-points {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
}

.meshmap-points li {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 2px solid rgba(84, 179, 191, 0.55);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent), var(--panel);
}

.meshmap-points strong { font-size: 0.98rem; }
.meshmap-points span { color: var(--ink-dim); font-size: 0.88rem; }

/* mesh feature section */
.mesh-features { padding: 24px 0 16px; }

.mesh-intro {
  max-width: 640px;
  margin: 0 0 38px;
}
.mesh-intro p:last-child {
  margin: 14px 0 0;
  color: var(--ink-dim);
}

.mesh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.mesh-card {
  position: relative;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 24px 24px;
  overflow: hidden;
  transition: border-color 200ms ease, transform 200ms ease;
}
.mesh-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--bronze-bright), var(--teal-bright));
  opacity: 0.5;
  transform: scaleX(0.18);
  transform-origin: left;
  transition: transform 280ms ease, opacity 280ms ease;
}
.mesh-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}
.mesh-card:hover::before { transform: scaleX(1); opacity: 0.85; }

.mesh-card h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mesh-card p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* the Pillar / "skip the line" thesis */
.pillar {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 64px 0;
  margin: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 82% 50%, rgba(84, 179, 191, 0.08), transparent 60%);
  pointer-events: none;
}
.pillar-copy p {
  margin: 14px 0 0;
  color: var(--ink-dim);
  max-width: 580px;
}
.pillar-thesis {
  margin-top: 22px !important;
  font-family: var(--font-display);
  font-size: 1.18rem;
  color: var(--ink) !important;
  line-height: 1.4;
}
.pillar-thesis span {
  display: block;
  margin-top: 4px;
  background: linear-gradient(100deg, var(--bronze-bright), var(--teal-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}
.pillar-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}
.pillar-points li {
  display: grid;
  gap: 3px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}
.pillar-points li + li { margin-top: 8px; }
.pillar-points strong { font-size: 0.96rem; }
.pillar-points span { color: var(--ink-dim); font-size: 0.86rem; }

/* two builds: the p2p app, and the server you host */
.duo { padding: 78px 0 8px; }

.duo-head { max-width: 700px; }

.duo-head p:not(.section-label) {
  margin: 16px 0 0;
  color: var(--ink-dim);
}

.duo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.duo-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 28px 26px 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
}

.duo-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  border-radius: 10px 10px 0 0;
  background: var(--bronze);
  opacity: 0.7;
}

.duo-card:last-child::before { background: var(--teal); }

.duo-plain {
  margin: 14px 0 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.duo-glyph {
  width: 44px;
  height: 44px;
  margin-bottom: 2px;
  fill: none;
  stroke: var(--bronze-bright);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.85;
}

.duo-glyph rect { fill: rgba(255, 255, 255, 0.03); }

.duo-card:last-child .duo-glyph { stroke: var(--teal-bright); }

.duo-kicker {
  color: var(--bronze-bright);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.duo-card:last-child .duo-kicker { color: var(--teal-bright); }

.duo-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.duo-card p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}

.duo-for {
  margin-top: 4px !important;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted) !important;
  font-size: 0.84rem !important;
  letter-spacing: 0.04em;
}

/* Concord Docker — the server edition, for friends and for businesses */
.docker {
  position: relative;
  padding: 74px 0;
  margin: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.docker::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(120% 90% at 82% 34%, rgba(84, 179, 191, 0.08), transparent 60%);
  pointer-events: none;
}

.docker-top {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 40px;
  align-items: center;
}

.orgs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 44px;
}

.org-card {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, var(--panel-strong), var(--panel));
  transition: border-color 200ms ease, transform 200ms ease;
}

.org-card:hover {
  border-color: rgba(200, 154, 74, 0.42);
  transform: translateY(-3px);
}

.org-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 700;
}

.org-card p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.93rem;
  line-height: 1.55;
}

.orgs-thesis {
  max-width: 760px;
  margin: 34px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.24rem, 2.4vw, 1.62rem);
  line-height: 1.35;
  background: linear-gradient(100deg, var(--bronze-bright), var(--teal-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* roadmap — beta, rebuild, 1.0 */
.roadmap {
  padding: 74px 0;
  border-top: 1px solid var(--line);
}

.roadmap-head { max-width: 720px; }

.roadmap-head p:not(.section-label) {
  margin: 16px 0 0;
  color: var(--ink-dim);
  max-width: 620px;
}

.roadmap-track {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0 0;
  padding: 0;
  counter-reset: stage;
}

.stage {
  position: relative;
  padding: 26px 24px 24px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
}

.stage::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  border-radius: 10px 10px 0 0;
  background: rgba(242, 234, 220, 0.14);
}

.stage-now { border-color: rgba(200, 154, 74, 0.45); }

.stage-now::before {
  background: linear-gradient(90deg, var(--bronze-bright), var(--teal-bright));
}

.stage-when {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--teal-bright);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.stage-now .stage-when { color: var(--bronze-bright); }

.stage h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1;
}

.stage p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.93rem;
  line-height: 1.55;
}

/* roadmap expert call-to-arms */
.roadmap-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  margin-top: 40px;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background:
    linear-gradient(120deg, rgba(200, 154, 74, 0.1), transparent 40%),
    linear-gradient(300deg, rgba(84, 179, 191, 0.12), transparent 44%),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.roadmap-cta-kicker {
  color: var(--teal-bright);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.roadmap-cta h3 {
  margin: 8px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1;
}

.roadmap-cta p {
  margin: 0;
  max-width: 640px;
  color: var(--ink-dim);
}

.roadmap-cta-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
  min-width: 220px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  /* the splash is an animated webp CSS can't pause — swap it for the static rings */
  .hero-splash { display: none; }
  .hero-ring { display: block; }
  .pd-pulse { display: none; }
}

@media (max-width: 900px) {
  main,
  .nav { width: min(100% - 28px, 680px); }

  .nav {
    align-items: flex-start;
    padding-top: 18px;
  }

  .nav-links {
    gap: 10px;
    font-size: 0.84rem;
  }

  .hero {
    min-height: 660px;
    padding: 48px 0 72px;
  }

  .hero-field { inset: 10px -60px 22px; }

  .hero-ring {
    width: 390px;
    opacity: 0.58;
  }

  .hero-ring-a {
    top: 12%;
    right: -28%;
  }

  .hero-ring-b {
    right: -40%;
    bottom: 4%;
  }

  .hero-splash {
    top: 10%;
    right: -16%;
    width: 400px;
    opacity: 0.4;
  }

  .plain { padding: 62px 0 6px; }

  .plain-captions { grid-template-columns: 1fr; }

  .proof-strip,
  .dl-grid {
    grid-template-columns: 1fr;
  }

  .mesh-grid { grid-template-columns: 1fr 1fr; }

  .proof-item { min-height: 0; }

  .source-strip,
  .pwyw,
  .pillar,
  .docker-top,
  .meshmap {
    grid-template-columns: 1fr;
  }

  .orgs-grid,
  .duo-grid,
  .roadmap-track {
    grid-template-columns: 1fr;
  }

  .duo { padding: 58px 0 4px; }

  .foot-license {
    padding-left: 0;
    border-left: 0;
  }

  .pillar { gap: 26px; padding: 52px 0; }

  .docker-top { gap: 26px; }

  .meshmap { gap: 28px; padding: 62px 0 56px; }

  .docker { padding: 56px 0; }

  .roadmap { padding: 58px 0; }

  .roadmap-cta {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .roadmap-cta-actions {
    display: flex;
    flex-wrap: wrap;
  }

  .roadmap-cta-actions .btn-primary,
  .roadmap-cta-actions .btn-ghost {
    flex: 1 1 200px;
  }

  .source-strip {
    padding: 70px 0 62px;
    align-items: start;
  }

  .pwyw {
    padding: 68px 0 82px;
  }

  .pwyw-copy { position: static; }

  .download-hero { padding-top: 42px; }
}

@media (max-width: 560px) {
  .nav {
    align-items: center;
  }

  .brand-sub { display: none; }

  .mesh-grid { grid-template-columns: 1fr; }

  .nav-source {
    padding: 8px 11px;
  }

  .nav-skip {
    font-size: 0.8rem;
  }

  h1 {
    font-size: clamp(3.2rem, 17vw, 4.9rem);
  }

  .hero {
    min-height: 620px;
    padding-top: 36px;
  }

  .hero-field {
    inset: 0 -90px 18px;
  }

  .hero-splash {
    top: 16%;
    right: -22%;
    width: 330px;
    opacity: 0.34;
  }

  .pd-label { font-size: 20px; }

  .hero-cta {
    align-items: stretch;
  }

  .btn-primary,
  .hero-cta .btn-ghost {
    width: 100%;
  }

  .pwyw {
    grid-template-columns: minmax(0, 1fr);
  }

  .pwyw-card {
    padding: 22px;
  }

  .amount-head {
    display: grid;
  }

  #amount-mood {
    text-align: left;
  }

  .amount-input {
    width: 76%;
    font-size: clamp(4.2rem, 24vw, 6.2rem);
  }

  .presets {
    grid-template-columns: repeat(2, 1fr);
  }

  .btn-pay {
    min-height: 56px;
  }

  .dl-card {
    min-height: 190px;
  }

  .mobile-actions,
  .store-btn {
    width: 100%;
  }

  .foot {
    justify-content: flex-start;
  }
}
