:root {
  --bg: #f6f7f5;
  --surface: #ffffff;
  --surface-alt: #e9eeec;
  --ink: #161a1d;
  --muted: #606b75;
  --line: #d5dcd9;
  --accent: #1e4aa8;
  --accent-strong: #173f9b;
  --blue: #286ee8;
  --teal: #2ec4a6;
  --amber: #a46200;
  --danger: #a93a32;
  --code: #111820;
  --shadow: 0 18px 48px rgba(26, 34, 40, 0.16);
  --max: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(213, 220, 217, 0.86);
  background: rgba(246, 247, 245, 0.94);
  backdrop-filter: blur(16px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--max));
  min-height: 68px;
  margin: 0 auto;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #0d625c;
  border-radius: 8px;
  background: #0b3f3b;
  color: #ffffff;
  font-size: 15px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a {
  border-radius: 8px;
  padding: 9px 12px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  background: var(--surface-alt);
  color: var(--ink);
}

.language-menu {
  position: relative;
}

.language-toggle {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  padding: 9px 12px;
  background: transparent;
  color: var(--accent-strong);
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  cursor: pointer;
}

.language-toggle:hover,
.language-toggle[aria-expanded="true"] {
  background: var(--surface-alt);
  color: var(--ink);
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: none;
  width: 260px;
  max-height: min(70vh, 440px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px;
  box-shadow: var(--shadow);
}

.language-menu[data-open] .language-options {
  display: grid;
}

.language-options a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted);
  font-weight: 720;
}

.language-options a:hover,
.language-options a[aria-current="true"] {
  background: var(--surface-alt);
  color: var(--ink);
}

.language-native {
  color: var(--ink);
}

.language-code {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  content: "";
}

.hero {
  position: relative;
  display: grid;
  min-height: 82vh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #edf1ef;
}

.hero::before {
  position: absolute;
  inset: 0;
  background-image: url("/assets/app-overview-v2.png");
  background-position: center right;
  background-repeat: no-repeat;
  background-size: min(1080px, 92vw) auto;
  content: "";
  opacity: 0.23;
}

.hero::after {
  position: absolute;
  inset: 0;
  background: rgba(237, 241, 239, 0.58);
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  width: min(100% - 32px, var(--max));
  min-height: 620px;
  margin: 0 auto;
  padding: 86px 0 72px;
}

.eyebrow {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--amber);
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.94;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 690px;
  margin-bottom: 30px;
  color: #30383d;
  font-size: clamp(18px, 2.2vw, 24px);
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
  font-weight: 720;
  cursor: pointer;
}

.button.primary {
  border-color: var(--accent-strong);
  background: var(--accent-strong);
  color: #ffffff;
}

.button:hover {
  transform: translateY(-1px);
}

.section {
  padding: 76px 0;
}

.section.alt {
  background: var(--surface);
}

.section.tight {
  padding: 54px 0;
}

.container {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.7fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2,
.page-title h1 {
  margin-bottom: 0;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p,
.page-title p,
.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 16px;
}

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

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

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.card.dark {
  border-color: #24323b;
  background: var(--code);
  color: #edf6f5;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
}

.card.dark p {
  color: #b9c9c6;
}

.icon-tile {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: #dce9e6;
  color: var(--accent-strong);
  font-weight: 820;
}

.product-preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #121b23;
  box-shadow: var(--shadow);
}

.product-preview img {
  width: 100%;
}

.matrix {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.matrix-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.8fr;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.matrix-row:last-child {
  border-bottom: 0;
}

.matrix-head {
  background: #edf2f0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

.badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  background: #dce9e6;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 780;
}

.badge.warn {
  background: #f7ead4;
  color: var(--amber);
}

.badge.danger {
  background: #f7dedb;
  color: var(--danger);
}

.workflow {
  counter-reset: step;
}

.step {
  position: relative;
}

.step::before {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 8px;
  background: var(--ink);
  color: #ffffff;
  content: counter(step);
  counter-increment: step;
  font-size: 13px;
  font-weight: 800;
}

.terminal {
  overflow: hidden;
  border-radius: 8px;
  background: var(--code);
  color: #e6f0ef;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
}

.terminal,
.terminal pre,
.checksum-list,
.artifact strong {
  direction: ltr;
  text-align: left;
}

.terminal-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #2b3b46;
  padding: 10px 14px;
  color: #9cb3ae;
}

.terminal pre {
  margin: 0;
  overflow-x: auto;
  padding: 18px;
}

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

.download-card {
  display: grid;
  gap: 18px;
  align-content: space-between;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.download-card h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.download-card p {
  margin: 0;
  color: var(--muted);
}

.artifact-list {
  display: grid;
  gap: 10px;
}

.artifact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8faf9;
}

.artifact strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}

.artifact span {
  color: var(--muted);
  font-size: 13px;
}

.checksum-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
}

.checksum-list li {
  overflow-wrap: anywhere;
}

.table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.table-row:last-child {
  border-bottom: 0;
}

.table-head {
  background: #edf2f0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
  text-transform: uppercase;
}

.notice {
  border-left: 4px solid var(--amber);
  background: #fff8ea;
  padding: 18px 20px;
}

.notice p {
  margin-bottom: 0;
}

.page-title {
  padding: 70px 0 44px;
}

.page-title h1 {
  max-width: 820px;
}

.page-title p {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: 18px;
}

.link-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  color: var(--accent-strong);
  font-weight: 700;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  background: #10171d;
  color: #dfe8e6;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #b8c4c1;
  font-size: 14px;
}

@media (max-width: 860px) {
  .nav {
    min-height: 62px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    right: 16px;
    top: 70px;
    display: none;
    width: min(260px, calc(100vw - 32px));
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    padding: 8px;
    box-shadow: var(--shadow);
  }

  .nav-links[data-open] {
    display: grid;
  }

  .nav-links a {
    padding: 11px 12px;
  }

  .language-menu {
    width: 100%;
  }

  .language-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .language-options {
    position: static;
    width: 100%;
    max-height: 300px;
    margin-top: 6px;
    box-shadow: none;
  }

  .hero-inner {
    align-content: start;
    min-height: auto;
    padding: 78px 0 56px;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background-position: center bottom;
    background-size: 950px auto;
    opacity: 0.11;
  }

  .hero::after {
    background: rgba(237, 241, 239, 0.78);
  }

  .section,
  .section.tight {
    padding: 54px 0;
  }

  .section-heading,
  .grid.four,
  .grid.three,
  .grid.two,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .matrix-row,
  .table-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

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

  .matrix-head,
  .table-head {
    display: none;
  }
}
