:root {
  color-scheme: dark;
  --page: #080d18;
  --surface: #101827;
  --surface-strong: #172238;
  --text: #f3f5f7;
  --muted: #a9b0bc;
  --line: #28364d;
  --cyan: #59c9ff;
  --red: #ff7a73;
  --green: #6fd09a;
  --orange: #ffad73;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
}

a {
  color: inherit;
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: 3px;
  background: transparent;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--cyan);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px max(24px, calc((100vw - var(--content)) / 2));
  background: rgb(8 13 24 / 92%);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand img,
footer img {
  display: block;
  border-radius: 50%;
  background: var(--surface-strong);
}

.brand span {
  display: grid;
  line-height: 1.15;
}

.brand strong {
  font-size: 16px;
}

.brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
  margin-right: 28px;
}

.header-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.header-nav a:hover,
.header-nav a:focus-visible,
.header-nav a[aria-current="page"] {
  color: var(--text);
}

.add-app {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--cyan);
  border-radius: 6px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.add-app:hover,
.add-app:focus-visible {
  background: var(--cyan);
  color: #071114;
}

main {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
}

.legal-banner {
  position: relative;
  width: 100%;
  height: 220px;
  border-bottom: 1px solid var(--line);
  background: #062b78;
}

.legal-banner > img:first-child {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.legal-banner .legal-avatar {
  position: absolute;
  left: max(24px, calc((100vw - var(--content)) / 2));
  bottom: -38px;
  display: block;
  border: 5px solid var(--page);
  border-radius: 50%;
  background: var(--surface-strong);
}

.document-heading {
  padding: 92px 0 64px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.03;
  letter-spacing: 0;
}

.lede {
  max-width: 700px;
  margin: 26px 0 30px;
  color: #c8ced7;
  font-size: 20px;
  line-height: 1.55;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  color: var(--muted);
  font-size: 14px;
}

.document-meta span:first-child::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--green);
}

.terms-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 72px;
  padding: 64px 0 96px;
}

.contents {
  align-self: start;
  position: sticky;
  top: 104px;
}

.contents > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.contents nav {
  display: grid;
  border-left: 1px solid var(--line);
}

.contents a {
  padding: 6px 0 6px 16px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.contents a:hover,
.contents a:focus-visible {
  color: var(--cyan);
}

.terms-document {
  min-width: 0;
}

.terms-document section {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 22px;
  padding: 0 0 46px;
  margin: 0 0 46px;
  border-bottom: 1px solid var(--line);
}

.terms-document section:last-child {
  margin-bottom: 0;
}

.section-number {
  padding-top: 7px;
  color: var(--red);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
}

h2 {
  margin: 0 0 16px;
  font-size: 27px;
  line-height: 1.25;
}

.terms-document p {
  margin: 0 0 16px;
  color: #c4cad3;
}

.terms-document p:last-child {
  margin-bottom: 0;
}

.terms-document ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 22px;
  padding-left: 22px;
  color: #c4cad3;
}

.terms-document li::marker {
  color: var(--cyan);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(24px, calc((100vw - var(--content)) / 2));
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}

footer div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}

footer p {
  margin: 0;
}

footer nav {
  display: flex;
  gap: 18px;
}

footer nav a {
  color: var(--muted);
  text-decoration: none;
}

footer nav a:hover,
footer nav a:focus-visible,
footer nav a[aria-current="page"] {
  color: var(--cyan);
}

/* Landing page */

.home-page {
  background: #080d18;
}

.home-main {
  width: 100%;
  margin: 0;
}

.hero {
  position: relative;
  min-height: min(64vh, 620px);
  height: 560px;
  overflow: hidden;
  border-bottom: 1px solid #203252;
  background: #06358e;
}

.hero-art,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-art {
  display: block;
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background: rgb(2 7 19 / 42%);
}

.hero-copy {
  position: absolute;
  z-index: 1;
  left: max(24px, calc((100vw - var(--content)) / 2));
  bottom: 38px;
  width: min(620px, calc(100% - 48px));
  color: #fff;
  text-shadow: 0 2px 18px rgb(0 0 0 / 70%);
}

.hero-label {
  margin: 0 0 8px;
  color: #bdeaff;
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero h1 {
  font-size: 64px;
  line-height: 1;
}

.hero-copy > p:not(.hero-label) {
  max-width: 560px;
  margin: 14px 0 24px;
  font-size: 20px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  text-shadow: none;
}

.primary-action {
  background: #fff;
  color: #081124;
}

.primary-action:hover,
.primary-action:focus-visible {
  background: var(--cyan);
}

.secondary-action {
  border-color: rgb(255 255 255 / 72%);
  background: rgb(5 15 38 / 70%);
  color: #fff;
}

.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: #fff;
  background: #0d1a35;
}

.intro-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 28px max(24px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--line);
  background: #0f1727;
}

.intro-band > p {
  max-width: 530px;
  margin: 0;
  color: #d7dfea;
  font-size: 18px;
  font-weight: 650;
}

.intro-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.intro-tags span {
  padding: 5px 10px;
  border: 1px solid #34445f;
  border-radius: 999px;
  color: #b9c6d8;
  font-size: 12px;
  font-weight: 750;
}

.home-section,
.command-section,
.final-cta {
  width: min(calc(100% - 48px), var(--content));
  margin: 0 auto;
}

.features-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 80px;
  padding: 104px 0;
}

.section-intro {
  align-self: start;
  position: sticky;
  top: 112px;
}

.section-intro h2,
.command-copy h2,
.final-cta h2 {
  max-width: 600px;
  margin: 0;
  font-size: 42px;
  line-height: 1.08;
}

.section-intro > p:last-child,
.command-copy > p {
  max-width: 510px;
  margin: 20px 0 0;
  color: #b8c2d0;
}

.feature-list {
  border-top: 1px solid var(--line);
}

.feature-list article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}

.feature-index {
  color: var(--orange);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

.feature-list h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.feature-list p {
  margin: 0;
  color: #aeb9c9;
  line-height: 1.55;
}

.feature-list code,
.command-copy code,
.command-table code {
  border: 1px solid #34445f;
  border-radius: 4px;
  background: #121e32;
  color: #9edfff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.feature-list code {
  padding: 3px 8px;
  font-size: 12px;
}

.command-copy code {
  padding: 2px 6px;
}

.command-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 80px;
  padding: 96px 0;
  border-top: 1px solid var(--line);
}

.text-link {
  display: inline-block;
  margin-top: 28px;
  color: var(--cyan);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover,
.text-link:focus-visible {
  color: #fff;
}

.command-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0e1625;
}

.command-table > div {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 62px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
}

.command-table > div:last-child {
  border-bottom: 0;
}

.command-table code {
  width: max-content;
  max-width: 100%;
  padding: 3px 8px;
  font-size: 13px;
}

.command-table span {
  color: #b9c3d2;
  font-size: 14px;
}

.final-cta {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 96px;
  padding: 36px;
  border: 1px solid #345277;
  border-radius: 8px;
  background: #10223e;
}

.final-cta img {
  display: block;
  width: 112px;
  height: 112px;
  border-radius: 50%;
}

.final-cta .eyebrow {
  margin-bottom: 8px;
}

@media (max-width: 780px) {
  .site-header {
    padding-inline: 18px;
  }

  main {
    width: min(calc(100% - 36px), var(--content));
  }

  .header-nav {
    display: none;
  }

  .legal-banner {
    height: 160px;
  }

  .legal-banner .legal-avatar {
    left: 18px;
    bottom: -30px;
    width: 88px;
    height: 88px;
    border-width: 4px;
  }

  .document-heading {
    padding: 58px 0 46px;
  }

  .lede {
    font-size: 17px;
  }

  .terms-layout {
    display: block;
    padding: 38px 0 68px;
  }

  .contents {
    position: static;
    margin-bottom: 48px;
  }

  .contents nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 14px;
  }

  .terms-document section {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 36px;
    margin-bottom: 36px;
  }

  h2 {
    font-size: 23px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 18px;
  }

  .home-main {
    width: 100%;
  }

  .hero {
    height: 500px;
    min-height: 0;
  }

  .hero-art {
    object-position: 60% center;
  }

  .hero-copy {
    left: 18px;
    bottom: 28px;
    width: calc(100% - 36px);
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-copy > p:not(.hero-label) {
    font-size: 17px;
  }

  .intro-band {
    align-items: flex-start;
    flex-direction: column;
    padding-inline: 18px;
  }

  .intro-tags {
    justify-content: flex-start;
  }

  .home-section,
  .command-section,
  .final-cta {
    width: min(calc(100% - 36px), var(--content));
  }

  .features-section,
  .command-section {
    grid-template-columns: 1fr;
    gap: 44px;
    padding: 72px 0;
  }

  .section-intro {
    position: static;
  }

  .section-intro h2,
  .command-copy h2,
  .final-cta h2 {
    font-size: 34px;
  }

  .final-cta {
    grid-template-columns: 72px minmax(0, 1fr);
    margin-bottom: 72px;
    padding: 24px;
  }

  .final-cta img {
    width: 72px;
    height: 72px;
  }

  .final-cta .primary-action {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  .brand small {
    display: none;
  }

  .add-app {
    min-height: 38px;
    padding-inline: 14px;
  }

  .contents nav {
    grid-template-columns: 1fr;
  }

  .terms-document section {
    grid-template-columns: 1fr;
  }

  .section-number {
    padding-top: 0;
  }

  .hero {
    height: 460px;
  }

  .hero-art {
    object-position: 64% center;
  }

  .feature-list article {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .feature-list article code {
    grid-column: 2;
  }

  .command-table > div {
    grid-template-columns: 1fr;
    gap: 6px;
    padding-block: 14px;
  }

  .final-cta {
    grid-template-columns: 1fr;
  }
}

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

  .add-app {
    transition: none;
  }
}
