:root {
  color-scheme: light dark;
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-soft: #f0f1ed;
  --surface-strong: #e5e7e0;
  --text: #151714;
  --text-soft: #5d625b;
  --text-faint: #7d827a;
  --border: rgba(21, 23, 20, 0.13);
  --border-strong: rgba(21, 23, 20, 0.22);
  --accent: #17613e;
  --accent-strong: #0d482d;
  --accent-soft: #dceee2;
  --code: #171a17;
  --code-text: #eff4ef;
  --code-soft: #aab5aa;
  --shadow:
    0 1px 2px rgba(20, 24, 20, 0.04), 0 14px 48px rgba(20, 24, 20, 0.07);
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 180ms;
  --medium: 520ms;
  --header-height: 68px;
  --shell: min(1160px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  color: inherit;
  font: inherit;
}

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

code {
  font-size: 0.9em;
}

pre {
  margin: 0;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.75;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 7.5vw, 6.75rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

h2 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.1rem, 4.8vw, 4.25rem);
  font-weight: 620;
  letter-spacing: -0.05em;
  line-height: 1;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  transform: translateY(-150%);
}

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

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 48%, transparent);
  outline-offset: 3px;
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  min-height: var(--header-height);
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  transition:
    border-color var(--fast) ease,
    background-color var(--fast) ease;
}

.site-header.is-scrolled {
  border-color: var(--border);
}

.header-inner {
  display: flex;
  width: var(--shell);
  min-height: var(--header-height);
  margin-inline: auto;
  align-items: center;
  gap: 28px;
}

.wordmark {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 10px;
  font-size: 0.94rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}

.wordmark-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.desktop-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 4px;
}

.desktop-nav a,
.header-link {
  display: inline-flex;
  min-height: 44px;
  padding-inline: 12px;
  align-items: center;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 520;
  transition: color var(--fast) ease;
}

.desktop-nav a:hover,
.desktop-nav a.is-active,
.header-link:hover {
  color: var(--text);
}

.header-link {
  margin-left: 4px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--surface);
}

.mobile-nav {
  display: none;
  margin-left: auto;
}

.intro {
  display: grid;
  min-height: min(850px, calc(100svh - var(--header-height)));
  padding-block: clamp(72px, 11vw, 150px) clamp(80px, 10vw, 130px);
  align-items: end;
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.72fr);
  gap: clamp(44px, 7vw, 100px);
}

.eyebrow {
  margin-bottom: 20px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.11em;
  line-height: 1.2;
  text-transform: uppercase;
}

.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 12%, transparent);
  vertical-align: 1px;
}

.lede {
  max-width: 720px;
  margin-bottom: 30px;
  color: var(--text-soft);
  font-size: clamp(1.08rem, 1.8vw, 1.36rem);
  line-height: 1.55;
  text-wrap: pretty;
}

.intro-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
}

.primary-action,
.text-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  font-weight: 650;
}

.primary-action {
  padding-inline: 20px;
  border: 1px solid var(--accent);
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 18%, transparent);
  transition:
    background-color var(--fast) ease,
    transform var(--fast) var(--spring);
}

.primary-action:hover {
  background: var(--accent-strong);
}

.primary-action:active,
.copy-button:active,
.header-link:active {
  transform: scale(0.97);
}

.text-action {
  gap: 6px;
  color: var(--accent);
}

.text-action span {
  transition: transform var(--fast) var(--spring);
}

.text-action:hover span {
  transform: translate(2px, -2px);
}

.platform-list {
  display: flex;
  margin: 34px 0 0;
  padding: 0;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.platform-list li {
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 620;
}

.terminal-card {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
  border-radius: 18px;
  background: var(--code);
  color: var(--code-text);
  box-shadow: var(--shadow);
}

.terminal-bar,
.terminal-footer,
.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.terminal-bar {
  min-height: 52px;
  padding-inline: 18px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--code-soft);
  font-size: 0.75rem;
}

.terminal-card pre {
  min-height: 250px;
  padding: 28px;
}

.terminal-footer {
  padding: 13px 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--code-soft);
  font-size: 0.7rem;
}

.prompt,
.success {
  color: #74d49e;
}

.copy-button {
  min-width: 60px;
  min-height: 36px;
  padding-inline: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--code-text);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 650;
  transition:
    background-color var(--fast) ease,
    transform var(--fast) var(--spring);
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.section {
  padding-block: clamp(90px, 12vw, 160px);
  border-top: 1px solid var(--border);
}

.heading-group {
  max-width: 820px;
  margin-bottom: clamp(44px, 7vw, 80px);
}

.heading-group > p:last-child {
  max-width: 660px;
  margin-bottom: 0;
  color: var(--text-soft);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  text-wrap: pretty;
}

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

.feature-card,
.compatibility-card,
.metric-card {
  min-width: 0;
  padding: clamp(24px, 3.5vw, 38px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  transition:
    border-color var(--fast) ease,
    box-shadow var(--fast) ease;
}

.feature-card:hover,
.compatibility-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 12px 34px rgba(20, 24, 20, 0.05);
}

.feature-card p:last-child,
.compatibility-card p,
.metric-card p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.feature-index,
.compatibility-card > span {
  margin-bottom: 50px;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.capability-panel {
  display: grid;
  margin-top: 16px;
  padding: clamp(30px, 5vw, 64px);
  border-radius: 18px;
  background: var(--surface-soft);
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(36px, 7vw, 90px);
}

.capability-panel h3 {
  max-width: 390px;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

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

.check-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-soft);
}

.check-list li::before {
  position: absolute;
  top: 0.5em;
  left: 0;
  width: 8px;
  height: 8px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  content: "";
}

.flow {
  display: grid;
  align-items: stretch;
  grid-template-columns: 1fr 72px 1fr 72px 1fr;
}

.flow-node {
  min-width: 0;
  padding: clamp(24px, 3.5vw, 38px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.flow-node-accent {
  border-color: color-mix(in srgb, var(--accent) 42%, var(--border));
  background: var(--accent-soft);
}

.flow-node p {
  margin-bottom: 0;
  color: var(--text-soft);
}

.flow-label {
  display: block;
  margin-bottom: 38px;
  color: var(--accent);
  font-size: 0.7rem;
  font-weight: 730;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.flow-connector {
  display: flex;
  align-items: center;
}

.flow-connector span {
  position: relative;
  width: 100%;
  height: 1px;
  background: var(--border-strong);
}

.flow-connector span::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--border-strong);
  border-right: 1px solid var(--border-strong);
  content: "";
  transform: rotate(45deg);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  display: grid;
  padding-block: clamp(28px, 5vw, 58px);
  border-top: 1px solid var(--border);
  grid-template-columns: minmax(280px, 0.82fr) minmax(420px, 1.18fr);
  gap: clamp(36px, 7vw, 100px);
}

.step:last-child {
  border-bottom: 1px solid var(--border);
}

.step-copy {
  display: flex;
  gap: 20px;
}

.step-copy p {
  max-width: 420px;
  margin-bottom: 0;
  color: var(--text-soft);
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 730;
}

.code-block {
  min-width: 0;
  overflow: hidden;
  border-radius: 14px;
  background: var(--code);
  color: var(--code-text);
}

.code-header {
  min-height: 50px;
  padding-left: 18px;
  padding-right: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--code-soft);
  font-size: 0.73rem;
}

.code-block pre {
  padding: 24px;
}

.muted {
  color: #81c9a0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  text-align: left;
}

caption {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 680;
  text-align: left;
}

th,
td {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

thead th {
  color: var(--text-faint);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

tbody th {
  font-weight: 630;
}

tbody td {
  color: var(--text-soft);
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.compatibility-grid {
  margin-top: 16px;
}

.security-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(440px, 1.22fr);
  gap: clamp(50px, 9vw, 130px);
}

.security-layout .heading-group {
  margin-bottom: 0;
}

.security-list {
  margin: 0;
}

.security-list > div {
  display: grid;
  padding-block: 24px;
  border-top: 1px solid var(--border);
  grid-template-columns: 150px 1fr;
  gap: 26px;
}

.security-list > div:last-child {
  border-bottom: 1px solid var(--border);
}

.security-list dt {
  font-weight: 650;
}

.security-list dd {
  margin: 0;
  color: var(--text-soft);
}

.metric-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 620;
  letter-spacing: -0.05em;
}

.metric-card span {
  display: block;
  min-height: 50px;
  margin-bottom: 32px;
  font-weight: 630;
}

.faq {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: clamp(50px, 9vw, 130px);
}

.faq .heading-group {
  margin-bottom: 0;
}

.faq-list details {
  border-top: 1px solid var(--border);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--border);
}

.faq-list summary {
  position: relative;
  min-height: 72px;
  padding: 23px 46px 20px 0;
  cursor: pointer;
  font-weight: 630;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before,
.faq-list summary::after {
  position: absolute;
  top: 34px;
  right: 8px;
  width: 13px;
  height: 1px;
  background: var(--text-soft);
  content: "";
  transition: transform var(--fast) var(--spring);
}

.faq-list summary::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary::after {
  transform: rotate(0);
}

.faq-list details p {
  max-width: 660px;
  padding: 0 46px 24px 0;
  color: var(--text-soft);
}

.closing {
  display: flex;
  padding-block: clamp(70px, 10vw, 120px);
  align-items: end;
  justify-content: space-between;
  gap: 34px;
}

.closing h2 {
  max-width: 660px;
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-soft);
}

.footer-inner {
  display: grid;
  min-height: 300px;
  padding-block: 52px 30px;
  align-items: start;
  grid-template-columns: 1.2fr 0.8fr auto;
  gap: 36px;
}

.footer-inner > div p {
  max-width: 340px;
  margin: 16px 0 0;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.footer-inner nav {
  display: grid;
  gap: 10px;
}

.footer-inner nav a {
  min-height: 36px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.footer-inner nav a:hover {
  color: var(--text);
}

.copyright {
  margin: 8px 0 0;
  color: var(--text-faint);
  font-size: 0.78rem;
}

.motion-ready .reveal.is-visible {
  animation: reveal-in var(--medium) var(--spring) both;
}

@keyframes reveal-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  :root {
    --shell: min(calc(100% - 32px), 720px);
  }

  .desktop-nav,
  .header-link {
    display: none;
  }

  .mobile-nav {
    display: block;
  }

  .mobile-nav summary {
    display: flex;
    min-height: 44px;
    padding-inline: 14px;
    align-items: center;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 630;
    list-style: none;
  }

  .mobile-nav summary::-webkit-details-marker {
    display: none;
  }

  .mobile-nav nav {
    position: absolute;
    top: calc(var(--header-height) - 4px);
    right: 16px;
    left: 16px;
    display: grid;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .mobile-nav nav a {
    display: flex;
    min-height: 48px;
    padding-inline: 12px;
    align-items: center;
    border-radius: 8px;
    color: var(--text-soft);
    font-weight: 570;
  }

  .mobile-nav nav a:hover {
    background: var(--surface-soft);
    color: var(--text);
  }

  .intro {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .terminal-card {
    max-width: 600px;
  }

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

  .capability-panel,
  .security-layout,
  .faq {
    grid-template-columns: 1fr;
  }

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

  .flow-connector {
    width: 1px;
    height: 46px;
    margin-inline: auto;
    background: var(--border-strong);
  }

  .flow-connector span {
    display: none;
  }

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

  .security-layout {
    gap: 30px;
  }

  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  :root {
    --shell: calc(100% - 24px);
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .intro {
    padding-top: 62px;
  }

  .intro-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-action,
  .text-action {
    justify-content: flex-start;
  }

  .primary-action {
    justify-content: center;
  }

  .terminal-card pre {
    min-height: 220px;
    padding: 22px 18px;
    font-size: 0.75rem;
  }

  .terminal-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

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

  .capability-panel {
    padding: 26px 20px;
  }

  .step-copy {
    flex-direction: column;
  }

  .code-block pre {
    padding: 20px 16px;
    font-size: 0.72rem;
  }

  .security-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .closing {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .copyright {
    grid-column: auto;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111311;
    --surface: #171a17;
    --surface-soft: #1d211d;
    --surface-strong: #272c27;
    --text: #f1f3ee;
    --text-soft: #aeb5ac;
    --text-faint: #858c83;
    --border: rgba(241, 243, 238, 0.12);
    --border-strong: rgba(241, 243, 238, 0.22);
    --accent: #7bd49f;
    --accent-strong: #a0e7bb;
    --accent-soft: #173625;
    --code: #090b09;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.25), 0 18px 60px rgba(0, 0, 0, 0.22);
  }

  .primary-action {
    background: #dceee2;
    border-color: #dceee2;
    color: #123521;
    box-shadow: none;
  }

  .primary-action:hover {
    background: #ffffff;
  }

  .wordmark-mark {
    color: var(--accent);
  }

  .feature-card:hover,
  .compatibility-card:hover {
    box-shadow: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }

  .motion-ready .reveal.is-visible {
    animation: none;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .site-header {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --border: currentColor;
    --border-strong: currentColor;
  }

  .site-header {
    background: var(--bg);
  }
}
