:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #6e6e73;
  --line: #e6e6eb;
  --soft: #f5f5f7;
  --accent: #ffbf00;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #f5f5f7;
    --muted: #a1a1a6;
    --line: #2c2c2e;
    --soft: #1c1c1e;
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid var(--fg);
  outline-offset: 4px;
  border-radius: 6px;
}

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.brand-dot {
  width: 7px;
  height: 7px;
  margin-left: 2px;
  border-radius: 50%;
  background: var(--accent);
}

.site-nav a {
  margin-left: 24px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  padding: 104px 0 88px;
}

.hero h1,
.not-found h1 {
  margin: 0 0 24px;
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  font-weight: 650;
  line-height: 1.07;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.lede {
  max-width: 32em;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  text-wrap: pretty;
}

/* Sections */
.section {
  padding: 0 0 96px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* App list */
.apps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.app {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.app-icon {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}

.app-icon--soon {
  display: grid;
  place-items: center;
  background: var(--soft);
  box-shadow: none;
  color: var(--muted);
  font-size: 22px;
  letter-spacing: 0.1em;
}

.app h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.app p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.app-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.status--soon {
  color: var(--muted);
}

.status--soon::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}

.pill:hover {
  border-color: var(--fg);
}

.pill--solid {
  border-color: var(--fg);
  background: var(--fg);
  color: var(--bg);
}

.pill--solid:hover {
  background: transparent;
  color: var(--fg);
}

/* Company facts */
.facts {
  margin: 0;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}

.facts dt {
  color: var(--muted);
}

.facts dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* Contact */
.mail {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3em;
  font-size: clamp(1.75rem, 7vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.mail-arrow {
  color: var(--muted);
  transition: transform 0.25s, color 0.25s;
}

.mail:hover .mail-arrow {
  color: var(--fg);
  transform: translateX(6px);
}

.note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 15px;
}

.note a {
  text-underline-offset: 3px;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

/* 404 */
.not-found {
  padding: 120px 0 140px;
}

.not-found .code {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* Motion */
.reveal {
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.reveal-2 { animation-delay: 0.08s; }
.reveal-3 { animation-delay: 0.16s; }
.reveal-4 { animation-delay: 0.24s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Small screens */
@media (max-width: 560px) {
  .wrap {
    padding: 0 20px;
  }

  .site-nav a {
    margin-left: 18px;
  }

  .hero {
    padding: 64px 0 64px;
  }

  .section {
    padding-bottom: 72px;
  }

  .app {
    grid-template-columns: 48px 1fr;
    gap: 14px 16px;
    align-items: start;
  }

  .app-icon {
    width: 48px;
    height: 48px;
    border-radius: 11px;
  }

  .facts > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .app-meta {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
  }
}
