:root {
  --bg: #0f0f11;
  --bg-2: #121214;
  --panel: #18181b;
  --border: rgb(255 255 255 / 0.08);
  --border-strong: rgb(255 255 255 / 0.14);
  --text: #f5f5f7;
  --muted: rgb(235 235 245 / 0.64);
  --faint: rgb(235 235 245 / 0.46);
  --orange: #ff7a1a;
  --radius: 14px;
  --wrap: 1120px;

  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 650;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

figure {
  margin: 0;
}

:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 6px;
}

kbd {
  display: inline-block;
  min-width: 1.5em;
  padding: 0 6px;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  background: rgb(255 255 255 / 0.06);
  font: 600 0.85em/1.5 -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  text-align: center;
  color: var(--text);
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 8px;
  background: #fff;
  color: #0b0b0c;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.wrap {
  width: min(var(--wrap), 100% - 40px);
  margin-inline: auto;
}

.wrap-wide {
  width: min(1200px, 100% - 32px);
}

/* Icons */
.i {
  width: 18px;
  height: 18px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.i-lg {
  width: 24px;
  height: 24px;
  stroke-width: 1.75;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(15 15 17 / 0.94);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--text);
}

/* Buttons */
.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: #fff;
  color: #0b0b0c;
}

.btn-primary:hover {
  background: #e6e6e9;
}

.btn-secondary {
  border: 1px solid var(--border-strong);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgb(255 255 255 / 0.06);
  border-color: rgb(255 255 255 / 0.24);
}

.fine {
  margin-top: 14px;
  color: var(--faint);
  font-size: 13px;
  letter-spacing: 0.01em;
}

/* Hero */
.hero {
  padding: 96px 0 40px;
  background:
    radial-gradient(60% 50% at 50% 70%, rgb(255 255 255 / 0.05), transparent 70%),
    var(--bg);
}

.hero-copy {
  text-align: center;
  margin-bottom: 56px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.eyebrow-plain {
  padding: 0;
  border: 0;
  margin-bottom: 14px;
  color: var(--orange);
  font-size: 14px;
  font-weight: 600;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

.hero h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.lede {
  max-width: 560px;
  margin: 22px auto 34px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.45;
}

/* Screenshots */
.shot {
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-2);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.7), 0 0 0 1px rgb(0 0 0 / 0.4);
}

.shot-hero {
  border-radius: 18px;
}

/* Showcase rows */
.showcase {
  padding: 96px 0 40px;
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 64px;
  padding: 48px 0;
}

.row-flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.row-flip .row-copy {
  order: 2;
}

.row h2,
.engine h2,
.accent h2,
.oss h2 {
  font-size: clamp(30px, 3.6vw, 44px);
}

.row-copy p,
.engine p,
.accent-copy p {
  margin-top: 18px;
  color: var(--muted);
  font-size: 18px;
}

/* Feature grid */
.features {
  padding: 96px 0;
}

.section-title {
  font-size: clamp(30px, 3.6vw, 44px);
  text-align: center;
}

.section-sub {
  max-width: 560px;
  margin: 16px auto 0;
  color: var(--muted);
  text-align: center;
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 26px 24px 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.card .i {
  color: var(--text);
}

.card h3 {
  margin-top: 18px;
  font-size: 17px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Engine */
.engine {
  padding: 96px 0;
  border-block: 1px solid var(--border);
  background: var(--bg-2);
}

.engine-inner {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: center;
  gap: 72px;
}

.engine p + p {
  margin-top: 14px;
}

.stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}

.stack div {
  padding: 22px 22px 24px;
  background: var(--bg);
}

.stack dt {
  color: var(--faint);
  font-size: 13px;
  font-weight: 500;
}

.stack dd {
  margin: 6px 0 0;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Accent */
.accent {
  padding: 120px 0;
}

.accent-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: 64px;
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.swatches li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
}

.swatch {
  width: 18px;
  height: 18px;
  border-radius: 50%;
}

.swatch-white {
  background: #fff;
}

.swatch-orange {
  background: var(--orange);
}

/* Roadmap */
.roadmap {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}

.lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 920px;
  margin: 48px auto 0;
}

.list {
  padding: 28px 28px 30px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-2);
}

.list h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}

.list ul {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.list li {
  display: flex;
  gap: 12px;
  padding: 9px 0;
  font-size: 16px;
  line-height: 1.4;
}

.list li + li {
  border-top: 1px solid var(--border);
}

.list .i {
  margin-top: 1px;
}

.ok {
  color: var(--text);
}

.todo {
  color: var(--faint);
  stroke-dasharray: 3 3;
}

.list-todo li {
  color: var(--muted);
}

.center {
  margin-top: 36px;
  text-align: center;
}

.link {
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgb(255 255 255 / 0.3);
  padding-bottom: 2px;
}

.link:hover {
  border-bottom-color: var(--orange);
}

/* Open source */
.oss {
  padding: 112px 0 120px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(50% 60% at 50% 100%, rgb(255 122 26 / 0.07), transparent 70%),
    var(--bg);
}

.oss-inner {
  text-align: center;
}

.oss-inner > p:first-of-type {
  max-width: 520px;
  margin: 18px auto 32px;
  color: var(--muted);
  font-size: 18px;
}

.note {
  max-width: 460px;
  margin: 28px auto 0;
  color: var(--faint);
  font-size: 14px;
}

.note strong {
  color: var(--muted);
  font-weight: 600;
}

/* Footer */
.footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--border);
  color: var(--faint);
  font-size: 13px;
  line-height: 1.6;
}

.footer-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  color: var(--text);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

.footer p + p {
  margin-top: 6px;
}

.footer p a {
  color: var(--muted);
}

/* Responsive */
@media (max-width: 1000px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .row,
  .row-flip,
  .engine-inner,
  .accent-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .row-flip .row-copy {
    order: 0;
  }

  .row {
    padding: 36px 0;
  }

  .lists {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .hide-sm {
    display: none;
  }

  .hero {
    padding: 64px 0 24px;
  }

  .hero-copy {
    margin-bottom: 40px;
  }

  .hero h1 br {
    display: none;
  }

  .shot,
  .shot-hero {
    border-radius: 10px;
  }

  .showcase {
    padding: 56px 0 16px;
  }

  .features,
  .engine,
  .roadmap {
    padding: 72px 0;
  }

  .accent {
    padding: 80px 0;
  }

  .oss {
    padding: 80px 0 88px;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 40px;
  }

  .card {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 16px;
    padding: 20px;
  }

  .card .i {
    grid-row: span 2;
  }

  .card h3 {
    margin-top: 1px;
  }

  .card p {
    margin-top: 4px;
  }

  .row-copy p,
  .engine p,
  .accent-copy p,
  .section-sub,
  .oss-inner > p:first-of-type {
    font-size: 17px;
  }

  .list {
    padding: 22px 20px 24px;
  }

  .cta .btn {
    flex: 1 1 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
