:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-alt: #eef3f7;
  --ink: #111827;
  --muted: #5f6b7a;
  --line: #d8e0ea;
  --cyan: #0891b2;
  --cyan-dark: #0e7490;
  --green: #169b62;
  --amber: #c47a17;
  --red: #d14343;
  --code: #10141b;
  --shadow: 0 18px 46px rgb(15 23 42 / 10%);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #ffffff 0, var(--bg) 520px, #edf2f7 100%),
    var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Noto Sans SC", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 14px 0;
  backdrop-filter: blur(18px);
}

.brand,
.site-header nav,
.hero-actions,
.trust-row,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 750;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgb(8 145 178 / 18%);
}

.site-header nav {
  gap: 4px;
  padding: 5px;
  border: 1px solid rgb(216 224 234 / 76%);
  border-radius: 999px;
  background: rgb(255 255 255 / 80%);
  box-shadow: 0 10px 30px rgb(15 23 42 / 6%);
}

.site-header nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  padding: 8px 13px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.site-header nav a:hover {
  color: var(--ink);
  background: var(--surface-alt);
}

.site-header nav a.github-link {
  width: 34px;
  padding: 0;
}

.site-header nav a.github-link svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.floating-community-card {
  position: fixed;
  top: 150px;
  right: max(28px, calc((100vw - 1120px) / 2 - 300px));
  z-index: 12;
  display: grid;
  width: 238px;
  gap: 10px;
  border: 1px solid rgb(216 224 234 / 86%);
  border-radius: 8px;
  padding: 12px;
  background: rgb(255 255 255 / 92%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.floating-community-card strong {
  color: var(--ink);
  font-size: 15px;
}

.floating-community-card img {
  width: 100%;
  border: 1px solid rgb(216 224 234 / 80%);
  border-radius: 8px;
}

.floating-community-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.hero {
  position: relative;
  min-height: min(760px, calc(100vh - 68px));
  overflow: hidden;
  border-bottom: 1px solid rgb(216 224 234 / 76%);
}

.hero-image {
  position: absolute;
  top: 82px;
  right: max(24px, calc((100vw - 1120px) / 2 - 18px));
  width: min(700px, 44vw);
  max-width: none;
  border: 1px solid rgb(216 224 234 / 82%);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #ffffff 0%, rgb(255 255 255 / 98%) 42%, rgb(255 255 255 / 72%) 58%, rgb(255 255 255 / 18%) 100%),
    linear-gradient(180deg, rgb(245 247 250 / 0%) 72%, var(--bg) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0 96px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 750;
}

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

h1 {
  max-width: 560px;
  margin-bottom: 20px;
  font-size: 50px;
  line-height: 1.08;
  letter-spacing: 0;
}

.magic-text {
  color: var(--red);
}

h2 {
  margin-bottom: 16px;
  font-size: 38px;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 18px;
  line-height: 1.3;
}

p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
}

.hero-lede {
  max-width: 540px;
  font-size: 18px;
  line-height: 1.76;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 18px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

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

.button.primary {
  border-color: var(--cyan);
  color: #ffffff;
  background: var(--cyan);
  box-shadow: 0 14px 30px rgb(8 145 178 / 22%);
}

.button.primary:hover {
  background: var(--cyan-dark);
}

.button.secondary {
  background: rgb(255 255 255 / 86%);
}

.button.secondary:hover {
  border-color: #b8c4d1;
  background: #ffffff;
}

.button.full {
  width: 100%;
}

.trust-row {
  flex-wrap: wrap;
  gap: 8px;
}

.trust-row span {
  border: 1px solid rgb(216 224 234 / 84%);
  border-radius: 999px;
  padding: 7px 10px;
  color: #344054;
  background: rgb(255 255 255 / 78%);
  font-size: 12px;
  font-weight: 650;
}

.download-panel {
  margin-top: 64px;
}

.download-button {
  gap: 8px;
}

.download-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.section {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0;
  scroll-margin-top: 92px;
}

.section-heading {
  max-width: 720px;
}

.section-heading.centered {
  margin: 0 auto 30px;
  text-align: center;
}

.problem-grid,
.feature-grid,
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

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

.problem-grid article,
.feature-grid article,
.security-grid article,
.faq details,
.manual-hero,
.manual-section,
.manual-toc {
  border: 1px solid rgb(216 224 234 / 82%);
  border-radius: 8px;
  background: rgb(255 255 255 / 82%);
  box-shadow: 0 14px 34px rgb(15 23 42 / 5%);
}

.problem-grid article,
.security-grid article {
  padding: 24px;
}

.problem-grid .highlight-card {
  grid-column: 1 / -1;
  display: grid;
  min-height: 128px;
  align-content: center;
  border-color: rgb(209 67 67 / 28%);
  background:
    linear-gradient(90deg, rgb(209 67 67 / 9%), rgb(255 255 255 / 88%) 44%, rgb(255 255 255 / 82%)),
    #ffffff;
}

.problem-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.problem-grid .highlight-card strong {
  color: var(--red);
  font-size: 26px;
}

.problem-grid .highlight-card p {
  max-width: 760px;
  font-size: 17px;
}

.problem-grid p,
.security-grid p,
.feature-grid p {
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.7;
}

.feature-grid article {
  min-height: 190px;
  padding: 22px;
}

.feature-grid span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 8px;
  color: var(--cyan);
  background: #e7f8fb;
  font-size: 12px;
  font-weight: 800;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  align-items: center;
  gap: 48px;
}

.screen-frame {
  overflow: hidden;
  border: 1px solid rgb(216 224 234 / 86%);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.split-copy p {
  max-width: 580px;
}

.step-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding-left: 20px;
  color: #344054;
  line-height: 1.75;
}

.security {
  border-block: 1px solid rgb(216 224 234 / 70%);
}

code,
pre {
  font-family: "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
}

code {
  overflow: auto;
  border-radius: 8px;
  padding: 13px;
  color: #e5e7eb;
  background: var(--code);
  font-size: 12px;
  line-height: 1.5;
}

.faq {
  max-width: 880px;
  padding-top: 48px;
}

.faq details {
  margin-bottom: 10px;
  padding: 18px 20px;
}

.faq summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 750;
}

.faq details p {
  margin: 12px 0 0;
  font-size: 14px;
}

.site-footer {
  justify-content: center;
  gap: 18px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  border-top: 1px solid rgb(216 224 234 / 82%);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer span {
  color: var(--ink);
  font-weight: 750;
}

.site-footer a:hover {
  color: var(--cyan);
}

.manual-page {
  background: #f6f8fb;
}

.manual-layout {
  display: grid;
  grid-template-columns: 216px minmax(0, 840px);
  gap: 36px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 76px;
}

.manual-toc {
  position: sticky;
  top: 86px;
  display: grid;
  align-self: start;
  gap: 4px;
  padding: 14px;
}

.manual-toc strong {
  margin-bottom: 6px;
  padding: 0 8px;
  font-size: 14px;
}

.manual-toc a {
  border-radius: 8px;
  padding: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.manual-toc a:hover {
  color: var(--ink);
  background: var(--surface-alt);
}

.manual-content {
  min-width: 0;
}

.manual-hero,
.manual-section {
  margin-bottom: 16px;
  padding: 30px;
}

.manual-hero h1 {
  max-width: 760px;
  font-size: 46px;
}

.manual-section h2 {
  font-size: 30px;
}

.manual-section ol,
.manual-note {
  color: #344054;
  line-height: 1.8;
}

.manual-section li {
  margin: 4px 0;
}

.manual-section figure,
.manual-hero figure {
  overflow: hidden;
  margin: 18px 0;
  border: 1px solid rgb(216 224 234 / 82%);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 40px rgb(15 23 42 / 8%);
}

.manual-section figcaption,
.manual-hero figcaption {
  border-top: 1px solid #edf2f7;
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.manual-note {
  border: 1px solid #b6e6ef;
  border-radius: 8px;
  margin-top: 18px;
  padding: 16px;
  background: #e9f9fc;
  font-size: 14px;
}

.manual-section pre {
  overflow: auto;
  margin: 16px 0;
}

.manual-section pre code {
  display: block;
}

@media (max-width: 1480px) {
  .floating-community-card {
    display: none;
  }
}

@media (max-width: 920px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
  }

  .hero {
    min-height: 0;
  }

  .hero-image {
    position: relative;
    inset: auto;
    width: calc(100% - 28px);
    margin: 20px 0 0 auto;
  }

  .hero-shade {
    background: linear-gradient(180deg, rgb(255 255 255 / 94%), rgb(245 247 250 / 66%));
  }

  .hero-content {
    padding: 52px 0 36px;
  }

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

  .floating-community-card {
    display: none;
  }

  .manual-layout {
    grid-template-columns: 1fr;
  }

  .manual-toc {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .site-header,
  .section,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 30px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .download-button {
    width: 100%;
  }

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

  .manual-hero,
  .manual-section {
    padding: 20px;
  }

  .manual-hero h1 {
    font-size: 34px;
  }

  .manual-toc {
    grid-template-columns: 1fr;
  }
}

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