:root {
  color-scheme: light;
  --navy-950: #03152c;
  --navy-900: #061d3a;
  --navy-800: #0a2c56;
  --blue-600: #0b6df5;
  --blue-500: #1c7bff;
  --blue-100: #eaf3ff;
  --ink: #09182f;
  --muted: #55657d;
  --line: #d9e5f3;
  --surface: #ffffff;
  --surface-soft: #f5f8fc;
  --green: #0d9f6e;
  --gold: #e8a326;
  --purple: #7c3aed;
  --max-width: 1180px;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--surface);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.12;
}

h2 {
  margin-bottom: 20px;
  font-size: 42px;
}

h3 {
  margin-bottom: 12px;
  font-size: 21px;
}

p {
  color: var(--muted);
}

code,
pre {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #fff;
  background: var(--blue-600);
  border-radius: 4px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  color: #fff;
  background: var(--navy-950);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(calc(100% - 48px), 1320px);
  height: 100%;
  margin-inline: auto;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
  font-size: 15px;
  font-weight: 800;
}

.brand img {
  width: 156px;
  height: auto;
}

.brand span {
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

.main-nav a {
  color: #d9e6f7;
  font-size: 14px;
  font-weight: 650;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff;
}

.nav-webmail {
  display: none;
}

.header-action,
.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.header-action {
  color: #fff;
  background: var(--blue-600);
  font-size: 14px;
  white-space: nowrap;
}

.header-action:hover,
.button-primary:hover {
  background: #075ccc;
}

.button:active,
.header-action:active,
.copy-button:active {
  transform: translateY(1px);
}

.menu-toggle {
  display: none;
  align-items: center;
  min-height: 44px;
  padding: 8px 10px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 6px;
  gap: 9px;
  cursor: pointer;
}

.menu-lines {
  display: grid;
  width: 18px;
  gap: 4px;
}

.menu-lines i {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.hero {
  display: flex;
  min-height: calc(100svh - var(--header-height) - 72px);
  color: #fff;
  background: var(--navy-900);
  flex-direction: column;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 42px;
  padding-bottom: 28px;
}

.eyebrow,
.section-kicker {
  margin-bottom: 12px;
  color: var(--blue-500);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #7bb6ff;
}

.hero h1 {
  margin-bottom: 18px;
  font-size: 64px;
}

.hero-lead {
  max-width: 720px;
  margin-bottom: 28px;
  color: #dce8f7;
  font-size: 22px;
  line-height: 1.5;
}

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

.button-primary {
  color: #fff;
  background: var(--blue-600);
}

.button-secondary {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  gap: 26px;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  color: #bcd0e8;
  font-size: 14px;
  font-weight: 700;
  gap: 9px;
}

.hero-facts li::before {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  content: "";
}

.product-stage {
  display: flex;
  flex-direction: column;
  width: min(calc(100% - 48px), 1420px);
  margin: auto auto -2px;
  padding: 0;
  background: #0d315d;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 26px 72px rgba(0, 0, 0, 0.26);
}

.product-stage-bar {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  color: #b6cbe4;
  background: #0d315d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 12px;
  font-weight: 750;
  gap: 12px;
}

.stage-dots {
  display: inline-flex;
  gap: 5px;
}

.stage-dots i {
  display: block;
  width: 7px;
  height: 7px;
  background: #4b719b;
  border-radius: 50%;
}

.stage-dots i:first-child {
  background: #47c79b;
}

.stage-status {
  margin-left: auto;
  color: #8fc3ff;
  font-weight: 650;
}

.product-stage img {
  width: 100%;
  height: 38svh;
  min-height: 300px;
  object-fit: cover;
  object-position: center top;
  border-radius: 0 0 4px 4px;
}

.product-stage picture {
  display: block;
  min-height: 0;
}

.proof-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-item {
  position: relative;
  min-height: 104px;
  padding: 24px 26px 20px;
  border-right: 1px solid var(--line);
}

.proof-item:first-child {
  border-left: 1px solid var(--line);
}

.proof-item::before {
  position: absolute;
  top: 0;
  right: 26px;
  left: 26px;
  height: 3px;
  background: var(--blue-600);
  content: "";
}

.proof-item:nth-child(2)::before {
  background: var(--green);
}

.proof-item:nth-child(3)::before {
  background: var(--gold);
}

.proof-item:nth-child(4)::before {
  background: var(--purple);
}

.proof-item strong,
.proof-item span {
  display: block;
}

.proof-item strong {
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 14px;
}

.proof-item span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.band {
  background: var(--surface-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.foundation {
  padding: 80px 0;
}

.foundation-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.8fr);
  align-items: end;
  gap: 80px;
}

.foundation h2 {
  max-width: 680px;
  margin-bottom: 0;
}

.foundation-layout > p {
  margin-bottom: 4px;
  font-size: 18px;
}

.section {
  padding: 104px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 48px;
}

.section-heading > p:last-child {
  max-width: 660px;
  margin-bottom: 0;
  font-size: 18px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 232px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.feature-card:nth-child(3n + 2) {
  border-top-color: #9ee4cb;
}

.feature-card:nth-child(3n + 3) {
  border-top-color: #d9c4ff;
}

.feature-index {
  display: block;
  margin-bottom: 32px;
  color: var(--blue-600);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 15px;
}

.mobile-showcase {
  padding: 96px 0;
}

.mobile-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  align-items: center;
  gap: 96px;
}

.mobile-device {
  max-height: 620px;
  padding: 10px;
  background: var(--navy-900);
  border: 1px solid #24476f;
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(3, 21, 44, 0.16);
  overflow: hidden;
}

.mobile-device img {
  width: 100%;
  max-height: 600px;
  object-fit: cover;
  object-position: top;
  border-radius: 4px;
}

.mobile-copy {
  max-width: 650px;
}

.mobile-copy > p:not(.section-kicker) {
  font-size: 18px;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  gap: 14px 26px;
}

.check-list li {
  position: relative;
  padding-left: 22px;
  color: #283a52;
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  top: 0.58em;
  left: 0;
  width: 9px;
  height: 9px;
  background: var(--green);
  border-radius: 50%;
  content: "";
}

.compact-heading {
  max-width: 820px;
}

.architecture-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.architecture-flow li {
  position: relative;
  min-height: 132px;
  padding: 28px 24px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.architecture-flow li:last-child {
  border-right: 0;
}

.architecture-flow li:not(:last-child)::after {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -13px;
  display: grid;
  width: 26px;
  height: 26px;
  color: var(--blue-600);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "\2192";
  place-items: center;
  transform: translateY(-50%);
}

.architecture-flow strong,
.architecture-flow span {
  display: block;
}

.architecture-flow strong {
  margin-bottom: 10px;
  font-size: 17px;
}

.architecture-flow span {
  color: var(--muted);
  font-size: 14px;
}

.install {
  padding: 96px 0;
}

.install-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(500px, 1.2fr);
  align-items: center;
  gap: 76px;
}

.install-layout > div:first-child > p:not(.section-kicker) {
  font-size: 17px;
}

.text-link {
  color: var(--blue-600);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.code-panel {
  color: #dce8f7;
  background: var(--navy-950);
  border: 1px solid #25476c;
  border-radius: 6px;
  overflow: hidden;
}

.code-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 8px 12px 8px 20px;
  color: #9fb5d0;
  border-bottom: 1px solid #25476c;
  font-size: 13px;
}

.copy-button {
  min-height: 34px;
  padding: 6px 12px;
  color: #fff;
  background: var(--navy-800);
  border-color: #31577f;
  font-size: 12px;
}

.copy-button:hover,
.copy-button:focus-visible {
  background: var(--blue-600);
}

.code-panel pre {
  margin: 0;
  padding: 26px 24px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.code-panel code {
  color: #f3f7fc;
  font-size: 14px;
  line-height: 1.8;
}

.copy-status {
  min-height: 0;
  margin: 0;
  padding: 0 24px 14px;
  color: #8ed9bd;
  font-size: 12px;
}

.copy-status:empty {
  display: none;
}

.open-source-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: end;
  gap: 80px;
}

.open-source-layout p:not(.section-kicker) {
  max-width: 690px;
  margin-bottom: 0;
  font-size: 18px;
}

.contribution-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contribution-actions .button-primary {
  grid-column: 1 / -1;
}

.button-outline {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.button-outline:hover,
.button-outline:focus-visible {
  color: var(--blue-600);
  border-color: var(--blue-500);
}

.final-cta {
  padding: 92px 0;
  color: #fff;
  background: var(--navy-800);
  text-align: center;
}

.final-cta .section-kicker {
  color: #8fc3ff;
}

.final-cta h2 {
  max-width: 840px;
  margin: 0 auto 30px;
}

.button-light {
  color: var(--navy-900);
  background: #fff;
}

.button-light:hover,
.button-light:focus-visible {
  background: var(--blue-100);
}

.site-footer {
  padding: 64px 0 28px;
  color: #d8e5f5;
  background: var(--navy-950);
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 60px;
}

.footer-brand img {
  width: 190px;
  height: auto;
  margin-bottom: 18px;
}

.footer-brand p {
  max-width: 490px;
  margin-bottom: 0;
  color: #9fb5d0;
  font-size: 14px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  gap: 10px 28px;
}

.footer-links a {
  color: #d8e5f5;
  font-size: 14px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: #fff;
}

.footer-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  padding-top: 22px;
  color: #7790ad;
  border-top: 1px solid #234264;
  font-size: 12px;
}

:focus-visible {
  outline: 3px solid #65a7ff;
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .header-inner {
    gap: 18px;
  }

  .main-nav {
    gap: 18px;
  }

  .main-nav a {
    font-size: 13px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-layout {
    gap: 56px;
  }

  .install-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }
}

@media (max-width: 930px) {
  :root {
    --header-height: 66px;
  }

  .header-inner {
    grid-template-columns: 1fr auto auto;
    width: min(calc(100% - 32px), 1320px);
  }

  .brand img {
    width: 138px;
  }

  .brand span {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 2;
  }

  .main-nav {
    position: fixed;
    z-index: 99;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 16px;
    background: var(--navy-950);
    border-bottom: 1px solid #294667;
    flex-direction: column;
    gap: 0;
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    min-height: 48px;
    padding: 12px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 15px;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .main-nav .nav-webmail {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 12px;
    color: #fff;
    background: var(--blue-600);
    border: 0;
    border-radius: 6px;
    font-weight: 800;
  }

  .header-action {
    grid-column: 3;
    min-height: 40px;
    padding: 8px 12px;
  }

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

  .foundation-layout,
  .open-source-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .foundation-layout > p {
    max-width: 700px;
  }

  .mobile-layout {
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 40px;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .architecture-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .architecture-flow li:nth-child(2) {
    border-right: 0;
  }

  .architecture-flow li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .architecture-flow li:nth-child(2)::after {
    display: none;
  }

  .open-source-layout {
    align-items: start;
  }

  .contribution-actions {
    max-width: 540px;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 32px), var(--max-width));
  }

  .site-header,
  .header-inner {
    height: 62px;
  }

  :root {
    --header-height: 62px;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    width: calc(100% - 24px);
    gap: 10px;
  }

  .brand img {
    width: 124px;
  }

  .menu-toggle {
    grid-column: 2;
    min-width: 44px;
    padding: 8px;
  }

  .menu-toggle > span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .header-action {
    display: none;
  }

  .hero {
    min-height: calc(100svh - var(--header-height) - 72px);
  }

  .hero-copy {
    padding-top: 40px;
    padding-bottom: 28px;
  }

  .hero h1 {
    margin-bottom: 12px;
    font-size: 42px;
  }

  .hero-lead {
    margin-bottom: 22px;
    font-size: 18px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-facts {
    margin-top: 22px;
    gap: 9px 18px;
  }

  .hero-facts li {
    font-size: 12px;
  }

  .product-stage {
    width: calc(100% - 32px);
    max-width: 330px;
    height: 34svh;
    padding: 0;
  }

  .product-stage picture {
    width: 100%;
    flex: 1;
    min-height: 0;
  }

  .product-stage img {
    width: 100%;
    height: 100%;
  }

  .product-stage img {
    min-height: 0;
    max-height: none;
    object-fit: cover;
    object-position: top;
  }

  .product-stage-bar {
    min-height: 38px;
    padding: 0 12px;
    font-size: 10px;
  }

  .stage-status {
    display: none;
  }

  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .proof-item {
    min-height: 92px;
    padding: 22px 16px 16px;
  }

  .proof-item:nth-child(2) {
    border-right: 0;
  }

  .proof-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .proof-item::before {
    right: 16px;
    left: 16px;
  }

  .proof-item strong {
    font-size: 12px;
  }

  .proof-item span {
    font-size: 11px;
  }

  h2 {
    font-size: 32px;
  }

  .foundation,
  .mobile-showcase,
  .install {
    padding: 68px 0;
  }

  .section {
    padding: 76px 0;
  }

  .foundation-layout,
  .install-layout,
  .open-source-layout {
    gap: 26px;
  }

  .foundation-layout > p,
  .section-heading > p:last-child,
  .mobile-copy > p:not(.section-kicker),
  .open-source-layout p:not(.section-kicker) {
    font-size: 16px;
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: auto;
    padding: 24px;
  }

  .feature-index {
    margin-bottom: 24px;
  }

  .mobile-layout {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .mobile-device {
    width: min(80%, 290px);
    max-height: 440px;
    margin-inline: auto;
  }

  .mobile-device img {
    max-height: 420px;
  }

  .architecture-flow {
    grid-template-columns: 1fr;
  }

  .architecture-flow li,
  .architecture-flow li:nth-child(2) {
    min-height: 110px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .architecture-flow li:last-child {
    border-bottom: 0;
  }

  .architecture-flow li:not(:last-child)::after {
    top: auto;
    right: 24px;
    bottom: -13px;
    display: grid;
    content: "\2193";
    transform: none;
  }

  .code-panel pre {
    padding: 22px 18px;
  }

  .contribution-actions {
    grid-template-columns: 1fr;
  }

  .contribution-actions .button-primary {
    grid-column: auto;
  }

  .final-cta {
    padding: 72px 0;
    text-align: left;
  }

  .final-cta h2 {
    margin-inline: 0;
  }

  .footer-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
