:root {
  color-scheme: light;
  --bg: #f7f5ee;
  --ink: #171717;
  --muted: #5f625d;
  --quiet: #8a8d86;
  --panel: #fffcf4;
  --panel-2: #efeadf;
  --line: #d8d1c4;
  --line-strong: #b8afa0;
  --accent: #e43d36;
  --accent-dark: #a32522;
  --blue: #285d8f;
  --green: #31705d;
  --shadow: 0 18px 45px rgba(37, 31, 21, 0.13);
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(23, 23, 23, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 23, 23, 0.03) 1px, transparent 1px),
    var(--bg);
  background-size: 48px 48px;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, white 8%);
}

.brand,
.topbar-nav,
.hero-actions,
.release-line,
.foot-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 720;
}

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

.topbar-nav {
  gap: clamp(14px, 3vw, 28px);
}

.topbar-nav a,
.foot-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
}

.topbar-nav a:hover,
.foot-links a:hover {
  color: var(--ink);
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: 76vh;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  padding: clamp(58px, 9vw, 108px) 0 clamp(42px, 7vw, 72px);
}

.hero-logo {
  width: clamp(82px, 11vw, 126px);
  height: clamp(82px, 11vw, 126px);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 760;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  margin: 18px 0 18px;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 670px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
}

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

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 740;
  text-decoration: none;
  border: 1px solid var(--line-strong);
}

.button.primary {
  flex-direction: column;
  align-items: flex-start;
  min-width: 210px;
  background: var(--ink);
  border-color: var(--ink);
  color: var(--panel);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button:hover,
.download-card:hover {
  transform: translateY(-2px);
}

.btn-label {
  font-size: 15px;
}

.btn-sub {
  color: color-mix(in srgb, var(--panel) 72%, transparent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 520;
}

.release-line {
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  color: var(--quiet);
  font-family: var(--mono);
  font-size: 12px;
}

.release-line span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 68%, transparent);
}

.workflow-panel {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px);
}

.pill-preview {
  min-height: 62px;
  display: flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  margin-bottom: 28px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #151515;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.record-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
}

.wave {
  width: 4px;
  height: var(--h);
  border-radius: 3px;
  background: var(--panel);
  animation: wave 1.2s ease-in-out infinite;
}

.wave:nth-of-type(2) { animation-delay: 0.08s; }
.wave:nth-of-type(3) { animation-delay: 0.16s; }
.wave:nth-of-type(4) { animation-delay: 0.24s; }
.wave:nth-of-type(5) { animation-delay: 0.32s; }
.wave:nth-of-type(6) { animation-delay: 0.40s; }

@keyframes wave {
  0%, 100% { transform: scaleY(0.72); }
  50% { transform: scaleY(1.12); }
}

.workflow-steps {
  display: grid;
  gap: 14px;
}

.workflow-steps div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.workflow-steps div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.workflow-steps span {
  grid-row: span 2;
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 760;
}

.workflow-steps strong {
  font-size: 17px;
}

.workflow-steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--ink);
  color: var(--panel);
  overflow: hidden;
}

.strip div {
  min-height: 118px;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.strip div:last-child {
  border-right: 0;
}

.strip strong,
.strip span {
  display: block;
}

.strip strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.strip span {
  color: rgba(255, 252, 244, 0.72);
  font-size: 14px;
}

.section {
  padding: clamp(68px, 10vw, 112px) 0 0;
}

.section-head {
  max-width: 690px;
  margin-bottom: 28px;
}

.section-head.left {
  margin-bottom: 0;
}

.section h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
  letter-spacing: 0;
}

.section-head p:not(.kicker),
.repo p,
.privacy-list {
  color: var(--muted);
  font-size: 16px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.download-card {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(37, 31, 21, 0.08);
  transition: transform 160ms ease, border-color 160ms ease;
}

.download-card:hover {
  border-color: var(--accent);
}

.download-card span,
.download-card small {
  color: var(--muted);
}

.download-card strong {
  font-size: 22px;
  line-height: 1.08;
}

.download-card small {
  font-family: var(--mono);
  font-size: 12px;
}

.source-card {
  background: var(--panel-2);
}

.native-layer {
  scroll-margin-top: 72px;
}

.native-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.native-grid div {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(37, 31, 21, 0.08);
}

.native-grid span {
  color: var(--accent-dark);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 760;
}

.native-grid strong {
  font-size: 21px;
  line-height: 1.08;
}

.native-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.text-link {
  display: inline-flex;
  margin-top: 18px;
  color: var(--accent-dark);
  font-weight: 740;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 6vw, 74px);
}

.privacy-list p {
  margin-top: 0;
}

.privacy-list ul {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding-left: 20px;
}

.repo {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: clamp(72px, 10vw, 120px);
}

.repo div {
  max-width: 690px;
}

.site-foot {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding: 24px clamp(18px, 4vw, 44px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.foot-links {
  gap: 18px;
}

@media (max-width: 860px) {
  .hero,
  .split,
  .repo {
    grid-template-columns: 1fr;
  }

  .workflow-panel {
    max-width: 520px;
  }

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

  .strip div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  }

  .strip div:last-child {
    border-bottom: 0;
  }

  .repo {
    align-items: start;
  }
}

@media (max-width: 560px) {
  main {
    width: min(100% - 28px, 1180px);
  }

  .topbar {
    align-items: flex-start;
  }

  .topbar-nav {
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

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

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .hero h1 {
    font-size: clamp(38px, 14vw, 58px);
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
