/* Backdur — backdur.com
   Black and white. Type does the work. */

@font-face {
  font-family: "Valley Sans";
  src: url("fonts/ValleySans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000;
  --raised: #0B0B0B;
  --text: #F5F5F3;
  --muted: #A6A6A2;
  --faint: #73736F;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --error: #F2A08A;

  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --fast: 160ms;

  color-scheme: dark;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-optical-sizing: auto;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, dl, dd { margin: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--text); color: var(--bg); }

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

.wrap {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Hero: centred waitlist stack ---------- */

.hero {
  display: grid;
  align-items: center;
  min-height: 100svh;
  padding-block: 72px;
}
.hero__stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand {
  font-family: "Valley Sans", "Inter", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.01em;
}

.hero__title {
  margin-top: clamp(40px, 7vh, 72px);
  font-size: clamp(3rem, 9vw, 7rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.hero__lede {
  margin-top: 28px;
  max-width: 58ch;
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
  text-wrap: balance;
}

/* ---------- Waitlist form ---------- */

.waitlist {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  margin-top: 44px;
  text-align: left;
}

.waitlist__email {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--raised);
  font-size: 16.5px;
  transition: border-color var(--fast) var(--ease);
}
.waitlist__email::placeholder { color: var(--faint); }
.waitlist__email:hover { border-color: rgba(255, 255, 255, 0.35); }
.waitlist__email:focus { outline: none; border-color: var(--text); }
.waitlist.is-invalid .waitlist__email { border-color: var(--error); }

/* Checkbox: native input kept for keyboard and screen readers, drawn by hand */
.check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 4px 2px;
  cursor: pointer;
  user-select: none;
}
.check input {
  position: absolute;
  opacity: 0;
  width: 20px; height: 20px;
  margin: 0;
}
.check__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease);
}
.check__box svg {
  width: 14px; height: 14px;
  fill: none;
  stroke: var(--bg);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  transition: opacity var(--fast) var(--ease);
}
.check:hover .check__box { border-color: var(--muted); }
.check input:checked + .check__box { background: var(--text); border-color: var(--text); }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { outline: 2px solid var(--text); outline-offset: 3px; }
.check__text { font-size: 15.5px; line-height: 1.45; }

.btn {
  height: 56px;
  padding: 0 24px;
  border: 1px solid var(--text);
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-weight: 650;
  font-size: 16.5px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease);
}
.btn:hover { background: transparent; color: var(--text); }
.btn:disabled { opacity: 0.6; cursor: default; }

.waitlist__note { font-size: 13.5px; line-height: 1.5; color: var(--faint); text-align: center; }
.waitlist__error { font-size: 14px; color: var(--error); }

.waitlist__done {
  padding: 22px 20px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 15.5px;
  animation: fade 180ms var(--ease);
}
.waitlist__done-title { color: var(--text); font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.waitlist.is-done > :not(.waitlist__done) { display: none; }

/* ---------- Sections ---------- */

.label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.plain {
  padding-block: clamp(80px, 12vw, 152px);
  border-top: 1px solid var(--line);
}
.plain__inner { max-width: 868px; text-align: center; }
.plain__text {
  margin-top: 24px;
  font-size: clamp(1.25rem, 2.3vw, 1.7rem);
  line-height: 1.5;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.features {
  padding-block: clamp(80px, 12vw, 152px);
  border-top: 1px solid var(--line);
}
.features .wrap { max-width: 1040px; }
.groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px);
  margin-top: 40px;
}
.group__title {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}
.group__sub { margin-top: 10px; color: var(--muted); }
.group dl { margin-top: 28px; }
.group dl > div { padding: 18px 0; border-top: 1px solid var(--line); }
.group dt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-weight: 650; letter-spacing: -0.01em; }
.group dt .soon { margin-left: 0; }
.group dd { margin-top: 6px; font-size: 15.5px; color: var(--muted); }

.soon {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  vertical-align: 0.1em;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .groups { grid-template-columns: 1fr; gap: 56px; }
}

.trust {
  padding-block: clamp(56px, 8vw, 96px);
  border-top: 1px solid var(--line);
}
.trust__inner { text-align: center; }
.trust__inner p { max-width: 62ch; margin-inline: auto; color: var(--muted); text-wrap: balance; }
.trust__inner strong { color: var(--text); font-weight: 650; }

/* ---------- Footer ---------- */

.foot { padding-block: 32px 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.foot__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--muted); text-decoration: none; transition: color var(--fast) var(--ease); }
.foot a:hover { color: var(--text); }

/* ---------- Motion ---------- */

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.js .reveal {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease), filter 600ms var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }

/* Paragraph rises line by line from behind a mask */
[data-lines] .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
[data-lines] .line > span { display: block; }
.js [data-lines].is-split .line > span {
  transform: translateY(105%);
  transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i) * 90ms);
}
.js [data-lines].is-in .line > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
  .js .reveal, .js [data-lines] .line > span { opacity: 1; transform: none; filter: none; }
}
