:root {
  color: #172320;
  background: #f4f7f5;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --ink: #172320;
  --muted: #60706b;
  --line: #cbd9d4;
  --paper: #ffffff;
  --wash: #e8f3ef;
  --mint: #d8f3ec;
  --teal: #0f766e;
  --teal-dark: #0d514c;
  --amber: #f2ad37;
  --rose: #f3dcd9;
  --code: #10201c;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(120deg, rgba(15, 118, 110, 0.12), transparent 42%),
    linear-gradient(300deg, rgba(242, 173, 55, 0.16), transparent 38%),
    #f4f7f5;
}

a {
  color: inherit;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 24px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  margin: 12px auto 0;
  padding: 10px 12px;
  border: 1px solid rgba(203, 217, 212, 0.86);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
}

.brand,
.site-footer div {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 900;
  text-decoration: none;
}

.brand img,
.site-footer img {
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.nav-links a,
.header-action,
.primary-button,
.secondary-button,
.copy-button,
.install-tab,
.screen-tab {
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.nav-links a {
  padding: 9px 11px;
  color: var(--muted);
}

.nav-links a:hover {
  color: var(--teal-dark);
  background: var(--wash);
}

.header-action {
  padding: 10px 14px;
  color: #fff;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  align-items: center;
  overflow: hidden;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 128px);
  margin: 0 auto;
  padding: 70px 0 76px;
  border-bottom: 1px solid rgba(15, 118, 110, 0.22);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 22px;
  max-width: 720px;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(244, 247, 245, 0.98) 0%, rgba(244, 247, 245, 0.86) 38%, rgba(244, 247, 245, 0.22) 78%),
    linear-gradient(0deg, rgba(244, 247, 245, 0.92) 0%, rgba(244, 247, 245, 0.08) 34%);
}

.hero-background {
  position: absolute;
  right: -7%;
  bottom: 8%;
  width: min(900px, 74vw);
  max-width: none;
  border: 1px solid #b8c9c4;
  border-radius: 8px;
  object-fit: cover;
  object-position: top left;
  box-shadow: 0 32px 88px rgba(23, 35, 32, 0.18);
}

.eyebrow {
  margin: 0;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 10ch;
  font-size: 7.6rem;
  line-height: 0.86;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  font-size: 4rem;
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.1;
}

.hero-lede {
  max-width: 620px;
  color: #40504b;
  font-size: 1.22rem;
  line-height: 1.55;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
}

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

.secondary-button {
  border: 1px solid var(--line);
  color: var(--teal-dark);
  background: var(--paper);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  width: min(100%, 620px);
  margin: 6px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.hero-stats div {
  min-width: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
}

.hero-stats dt {
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.strip,
.section,
.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.strip {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 0 40px;
  color: var(--muted);
  font-weight: 850;
}

.strip-line {
  height: 1px;
  background: linear-gradient(90deg, var(--line), transparent);
}

.section {
  padding: 74px 0;
}

.section-heading {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.platform-grid,
.workflow,
.files-grid,
.install-section {
  display: grid;
  gap: 14px;
}

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

.platform-card,
.workflow article,
.file-card,
.terminal-panel,
.screen-switcher,
.install-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.platform-card {
  display: grid;
  gap: 18px;
  min-height: 260px;
  padding: 22px;
}

.platform-card p,
.workflow p,
.install-copy p {
  color: #50615c;
  line-height: 1.55;
}

.platform-card code {
  align-self: end;
  overflow-wrap: anywhere;
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 800;
}

.platform-top {
  display: flex;
  gap: 12px;
  align-items: center;
}

.platform-mark,
.workflow span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  color: var(--teal-dark);
  background: var(--mint);
  font-weight: 950;
}

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

.workflow article {
  display: grid;
  gap: 12px;
  padding: 22px;
}

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

.file-card {
  display: grid;
  gap: 14px;
  padding: 20px;
}

.file-card p {
  color: #50615c;
  line-height: 1.55;
}

.file-kicker {
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.terminal-panel {
  overflow: hidden;
  min-width: 0;
  background: var(--code);
}

.terminal-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(232, 255, 248, 0.12);
  color: #a9bbb5;
  font-size: 0.78rem;
  font-weight: 850;
}

.copy-button {
  border: 1px solid rgba(232, 255, 248, 0.18);
  padding: 7px 10px;
  color: #e8fff8;
  background: rgba(232, 255, 248, 0.08);
}

pre {
  margin: 0;
  padding: 18px;
  overflow: auto;
  color: #e8fff8;
  font-size: 1rem;
  line-height: 1.7;
}

.file-card pre {
  min-height: 128px;
  border-radius: 8px;
  background: var(--code);
}

.screen-switcher {
  overflow: hidden;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 12px;
}

.screen-controls,
.install-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.screen-tab,
.install-tab {
  border: 1px solid var(--line);
  padding: 10px 12px;
  color: var(--muted);
  background: var(--paper);
}

.screen-tab.active,
.install-tab.active {
  border-color: var(--teal);
  color: #fff;
  background: var(--teal);
}

.screen-switcher img {
  width: 100%;
  max-height: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: contain;
  background: #eef4f1;
}

.install-section {
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
}

.install-copy {
  display: grid;
  gap: 16px;
}

.install-panel {
  padding: 12px;
}

.install-terminal pre {
  min-height: 178px;
}

.site-footer {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  padding: 30px 0 46px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  justify-content: flex-end;
}

.site-footer a,
.footer-links a {
  color: var(--teal-dark);
  font-weight: 850;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.legal-header {
  margin-bottom: 0;
}

.legal-page {
  display: grid;
  gap: 14px;
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
  padding: 70px 0 54px;
}

.legal-hero {
  display: grid;
  gap: 16px;
  margin-bottom: 10px;
}

.legal-hero h1 {
  max-width: none;
  font-size: 4.6rem;
  line-height: 0.92;
}

.legal-hero p:last-child {
  max-width: 720px;
  color: #50615c;
  font-size: 1.08rem;
  line-height: 1.55;
}

.legal-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.84);
}

.legal-card h2 {
  font-size: 1.4rem;
  line-height: 1.15;
}

.legal-card p,
.legal-card li {
  color: #50615c;
  line-height: 1.6;
}

.legal-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}

.legal-card a {
  color: var(--teal-dark);
  font-weight: 850;
}

.legal-note {
  border-color: #d2b777;
  background: #fff7df;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .install-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 44px 0 52px;
  }

  h1 {
    font-size: 5.8rem;
  }

  h2 {
    font-size: 3.1rem;
  }

  .legal-hero h1 {
    font-size: 3.6rem;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(244, 247, 245, 0.98) 0%, rgba(244, 247, 245, 0.92) 58%, rgba(244, 247, 245, 0.2) 100%);
  }

  .hero-background {
    position: relative;
    order: 2;
    right: auto;
    bottom: auto;
    z-index: 0;
    width: 100%;
    margin-top: 26px;
  }

  .hero-copy {
    order: 1;
  }

  .platform-grid,
  .workflow,
  .files-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .hero,
  .strip,
  .section,
  .site-footer {
    width: min(100% - 20px, 560px);
  }

  .header-action {
    padding-inline: 11px;
  }

  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 2.25rem;
  }

  .legal-page {
    width: min(100% - 20px, 560px);
    padding-top: 46px;
  }

  .legal-hero h1 {
    font-size: 2.8rem;
  }

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

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

  .section {
    padding: 52px 0;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }
}
