:root {
  color-scheme: dark;
  --background: #1a1a1a;
  --surface: #242424;
  --toolbar: #1e1e1e;
  --text: #e0e0e0;
  --muted: #b5b5b5;
  --amber: #f5a623;
  --border: #444;
  --rule: #333;
  font: 100%/1.6 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: var(--background);
  color: var(--text);
}

*, *::before, *::after { box-sizing: border-box; }
body, figure, p, h1, h2, h3 { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
section[id] { scroll-margin-top: 1.5rem; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 5px; }

.wrap {
  width: min(100% - 5rem, 73rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset: .75rem auto auto .75rem;
  z-index: 1;
  padding: .5rem .8rem;
  background: var(--surface);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding-block: 1.25rem;
}

.site-header { border-bottom: 1px solid var(--rule); }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 650;
  letter-spacing: -.02em;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1.55rem;
  font-size: .94rem;
  color: var(--muted);
}

.site-header nav a { text-decoration: none; }
.site-header nav a:hover { color: var(--amber); }

.hero {
  text-align: center;
  padding-block: clamp(3.7rem, 6.5vw, 6.4rem) clamp(2.5rem, 4vw, 3.8rem);
}

.eyebrow {
  margin-bottom: .9rem;
  color: var(--amber);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .065em;
  text-transform: uppercase;
}

h1, h2 { text-wrap: balance; }

h1 {
  max-width: 15ch;
  margin-inline: auto;
  font-size: clamp(2.8rem, 6vw, 5.3rem);
  font-weight: 660;
  line-height: 1.02;
  letter-spacing: -.04em;
}

h2 {
  font-size: clamp(2rem, 4.15vw, 3.4rem);
  font-weight: 620;
  line-height: 1.08;
  letter-spacing: -.035em;
}

h3 { font-size: 1.25rem; line-height: 1.28; font-weight: 620; letter-spacing: -.02em; }

.intro {
  max-width: 37rem;
  margin: 1.25rem auto 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  text-wrap: pretty;
}

.hero-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.65rem;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .59rem 1.05rem;
  border: 1px solid transparent;
  border-radius: .45rem;
  background: var(--amber);
  color: var(--background);
  text-decoration: none;
  font-size: .95rem;
  font-weight: 650;
}

.button:hover { background: #ffb737; }

.button-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.button-secondary:hover { background: #303030; border-color: #666; }

.app-preview { padding-bottom: clamp(2.75rem, 5vw, 4.5rem); }

.vault-preview {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: .75rem;
  box-shadow: 0 1.25rem 4rem #0005;
}

.app-preview figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin-top: .75rem;
  color: var(--muted);
  font-size: .875rem;
}

.app-preview figcaption a { text-underline-offset: .23em; color: var(--amber); }

.how, .why {
  padding-block: clamp(2.75rem, 6vw, 5.5rem);
  border-top: 1px solid var(--rule);
}

.how h2 { text-wrap: initial; }

.workflow {
  margin-top: clamp(1.5rem, 3.5vw, 2.5rem);
  background: var(--toolbar);
  border: 1px solid var(--border);
  border-radius: .85rem;
}

.workflow [hidden] { display: none; }

.workflow-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--rule);
}

.workflow-tabs button {
  position: relative;
  min-height: 3.25rem;
  padding: .55rem .25rem;
  border: 0;
  border-radius: .7rem .7rem 0 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .92rem;
  font-weight: 650;
  cursor: pointer;
}

.workflow-tabs button:hover { color: var(--text); background: #ffffff08; }
.workflow-tabs button:focus-visible { z-index: 1; outline-offset: -4px; }
.workflow-tabs button[aria-selected="true"] {
  color: var(--amber);
  background: #f5a6230a;
  box-shadow: inset 0 -2px var(--amber);
}

.workflow-step {
  display: grid;
  grid-template-columns: minmax(12rem, .72fr) minmax(0, 1.6fr);
  align-items: center;
  gap: clamp(1.25rem, 3.5vw, 3.25rem);
  padding: clamp(1rem, 3vw, 2.5rem);
}

.workflow-step + .workflow-step { border-top: 1px solid var(--rule); }
.workflow.is-interactive .workflow-step { border-top: 0; }
.workflow-step:focus-visible { outline-offset: -4px; }
.workflow-copy h3 { font-size: clamp(1.45rem, 2.6vw, 2.1rem); }
.workflow-copy p { color: var(--muted); margin-top: .75rem; max-width: 31ch; }

.workflow-display {
  min-width: 0;
  min-height: 17.5rem;
  padding: clamp(.7rem, 2vw, 1.35rem);
  border: 1px solid var(--rule);
  border-radius: .65rem;
  background: radial-gradient(ellipse at 82% 17%, #332a1d 0%, var(--surface) 57%);
}

.storage-scene {
  --connector: #9a7744;
  display: grid;
  align-content: center;
}

.storage-index {
  position: relative;
  display: flex;
  align-items: center;
  justify-self: center;
  gap: .65rem;
  padding: .55rem .85rem;
  border: 1px solid var(--connector);
  border-radius: .5rem;
  background: var(--toolbar);
  font-size: .9rem;
  line-height: 1.35;
}

.storage-index small { display: block; color: var(--muted); font-size: .78rem; }

.storage-branches {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.storage-branches li {
  position: relative;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--toolbar);
  text-align: center;
  font-size: .82rem;
  line-height: 1.3;
}

.storage-index::after, .storage-branches::before, .storage-branches li::before {
  content: '';
  position: absolute;
  background: var(--connector);
}

.storage-index::after, .storage-branches li::before {
  left: calc(50% - .5px);
  width: 1px;
  height: calc(1rem + 1px);
  transform-origin: top;
}

.storage-index::after { top: 100%; }
.storage-branches li::before { bottom: 100%; }
.storage-branches::before {
  inset: -1rem calc((100% - 1.1rem) / 6) auto;
  height: 1px;
}

.storage-branches img {
  width: 100%;
  aspect-ratio: 2.35;
  object-fit: cover;
  border-radius: .45rem .45rem 0 0;
}

.storage-branches li:first-child img { object-position: center 33%; }
.storage-branches li:last-child img { object-fit: contain; background: #e6dbc3; }
.storage-branches span { display: block; padding: .45rem .25rem; }

.roadmap-label {
  display: inline-block;
  margin-bottom: .65rem;
  padding: .12rem .45rem;
  border: 1px solid var(--border);
  border-radius: .3rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 650;
}

.replica-scene { display: grid; align-content: center; }
.replica-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.replica-location {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--toolbar);
}

.replica-location img {
  width: 100%;
  aspect-ratio: 2.15;
  object-fit: cover;
  border-radius: .45rem .45rem 0 0;
}

.replica-description {
  display: grid;
  gap: .12rem;
  padding: .55rem .65rem;
  font-size: .875rem;
  line-height: 1.3;
}

.replica-description span { color: var(--muted); font-size: .78rem; }
.replica-location:first-child img { opacity: .26; filter: grayscale(1); }
.replica-location:last-child { border-color: var(--amber); box-shadow: 0 0 1.35rem #f5a62325; }
.replica-location:last-child span { color: var(--amber); }
.replica-caption { margin-top: .75rem; color: var(--muted); font-size: .83rem; }
.demo-status { min-height: 1.3em; color: var(--muted); font-size: .83rem; }

.demo-search input {
  width: 100%;
  min-height: 2.6rem;
  padding: .45rem .65rem;
  border: 1px solid var(--border);
  border-radius: .4rem;
  background: var(--toolbar);
  color: var(--text);
  font: inherit;
  font-size: .9rem;
}

.demo-search input::placeholder { color: var(--muted); }
.demo-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .55rem;
  min-height: 8rem;
  margin: .7rem 0 .45rem;
  padding: 0;
  list-style: none;
}

.demo-artifact {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: .5rem;
  background: var(--toolbar);
}
.demo-artifact img { width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.demo-artifact:first-child img { object-position: center 33%; }
.demo-artifact:last-child img { object-fit: contain; background: #e6dbc3; }
.demo-artifact span { padding: .45rem .5rem .2rem; font-size: .83rem; line-height: 1.3; }
.demo-artifact small { margin-top: auto; padding: .15rem .5rem .5rem; color: var(--amber); font-size: .75rem; line-height: 1.25; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .workflow.is-in-view { animation: demo-enter .55s cubic-bezier(.2, .78, .24, 1) both; }
  .workflow-step.is-entering .workflow-display { animation: demo-enter .34s ease-out both; }
  .workflow.is-in-view .demo-artifact:not([hidden]) { animation: demo-enter .38s ease-out both; }
  .workflow.is-in-view .demo-artifact:nth-child(2) { animation-delay: .065s; }
  .workflow.is-in-view .demo-artifact:nth-child(3) { animation-delay: .13s; }
  .workflow-step.is-entering .storage-index::after { animation: connector-down .16s ease-out both; }
  .workflow-step.is-entering .storage-branches::before { animation: connector-across .22s .16s ease-out both; }
  .workflow-step.is-entering .storage-branches li::before { animation: connector-down .18s .38s ease-out both; }
  .workflow-step.is-entering .replica-location:first-child img { animation: drive-offline 1.2s ease-out both; }
  .workflow-step.is-entering .replica-location:last-child img {
    animation: replica-arrive .55s cubic-bezier(.22, .8, .28, 1) both;
  }
}

@keyframes demo-enter {
  from { opacity: .62; transform: translateY(.65rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes connector-down { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes connector-across { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@keyframes drive-offline {
  0%, 55% { opacity: 1; filter: grayscale(0); }
  100% { opacity: .26; filter: grayscale(1); }
}

@keyframes replica-arrive {
  from { opacity: 0; transform: translateX(calc(-100% - .85rem)); }
  to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
  .workflow * { transition: none; }
}

.why {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 1rem clamp(1rem, 4vw, 4rem);
}

.why p { max-width: 56ch; color: var(--muted); }
.why p + p { margin-top: .85rem; }

.waitlist {
  background: var(--toolbar);
  border-block: 1px solid var(--rule);
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.waitlist-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 2rem clamp(2rem, 7vw, 6.5rem);
  align-items: center;
}

.waitlist h2 + p { margin-top: .85rem; color: var(--muted); max-width: 31rem; }

.waitlist-form {
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: .65rem;
}

.waitlist-form label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 650; }

.waitlist-form input {
  width: 100%;
  min-height: 2.75rem;
  padding: .6rem .7rem;
  border: 1px solid var(--border);
  border-radius: .45rem;
  background: var(--toolbar);
  color: var(--text);
  font: inherit;
}

.waitlist-form .button { margin-top: .75rem; font-family: inherit; cursor: pointer; }
.waitlist-form .button:disabled { background: #483822; color: #e6bc7d; cursor: default; }
.waitlist-form p:not(:empty) { margin-top: .65rem; color: var(--muted); font-size: .875rem; }
.site-footer { font-size: .9rem; color: var(--muted); }

@media (max-width: 52rem) {
  .wrap { width: min(100% - 3rem, 73rem); }
}

@media (max-width: 42rem) {
  .site-header, .site-footer { align-items: flex-start; gap: .75rem; }
  .site-header nav { flex-direction: column; gap: .25rem; text-align: right; }
  .hero { text-align: left; }
  .hero h1, .hero .intro { margin-inline: 0; }
  .hero h1 { text-wrap: initial; }
  .hero-links { justify-content: flex-start; }
  .waitlist-layout, .workflow-step, .why { grid-template-columns: 1fr; }
  .workflow-step { align-content: start; gap: 1rem; padding: .85rem; }
  .workflow-copy p { max-width: none; margin-top: .5rem; }
  .workflow-display { min-height: 0; }
}
