:root {
  color-scheme: light dark;
  --page: #f4f7f5;
  --surface: #ffffff;
  --surface-soft: #e9efec;
  --ink: #13201c;
  --muted: #60716a;
  --line: #d7e0dc;
  --accent: #53b977;
  --accent-strong: #226541;
  --accent-soft: #dff4e7;
  --dark: #10251f;
  --radius: 18px;
  --shadow: 0 22px 70px rgba(28, 61, 49, 0.12);
  font-family: "Segoe UI Variable Display", "Segoe UI", "Microsoft YaHei UI", system-ui, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #0e1513;
    --surface: #17201d;
    --surface-soft: #202b27;
    --ink: #eef5f1;
    --muted: #a7b7b0;
    --line: #32413b;
    --accent: #71ca91;
    --accent-strong: #8ee0a9;
    --accent-soft: #193a2a;
    --dark: #111c18;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 78% 6%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 30%),
    linear-gradient(90deg, transparent 0 49.9%, color-mix(in srgb, var(--line) 35%, transparent) 50%, transparent 50.1%);
  background-size: auto, 180px 100%;
  opacity: 0.55;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, white); outline-offset: 4px; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: 10px;
  color: white;
  background: var(--dark);
}
.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 72px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  backdrop-filter: blur(18px);
}
.brand, .footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; letter-spacing: -0.03em; }
.brand img, .footer-brand img { border-radius: 10px; }
.site-header nav { display: flex; gap: 28px; white-space: nowrap; }
.site-header nav a { color: var(--muted); font-size: 14px; transition: color 180ms ease; }
.site-header nav a:hover { color: var(--ink); }
.nav-action { justify-self: end; font-size: 14px; font-weight: 650; color: var(--accent-strong); }

main, footer { max-width: 1320px; margin: 0 auto; }
.section-pad { margin: 0 28px; padding: 128px 0; }

.hero {
  min-height: calc(100dvh - 72px);
  margin: 0 28px;
  display: grid;
  grid-template-columns: minmax(500px, 0.95fr) minmax(500px, 1.05fr);
  align-items: center;
  gap: 24px;
  overflow: hidden;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font: 700 11px/1.2 Consolas, "Cascadia Mono", monospace;
  letter-spacing: 0.16em;
}
.hero h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(48px, 4.25vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.065em;
}
.hero h1 span { display: block; white-space: nowrap; }
.hero-intro {
  max-width: 20em;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.65;
}
.hero-actions, .open-actions { display: flex; align-items: center; gap: 12px; margin-top: 32px; }
.button {
  min-height: 48px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(1px) scale(0.98); }
.button-primary { color: #f6fff9; background: #174b32; box-shadow: 0 14px 30px rgba(23, 75, 50, 0.18); }
.button-primary:hover { background: #226541; }
.button-secondary { color: var(--ink); background: var(--surface); border-color: var(--line); }
.button-secondary:hover { border-color: var(--accent); }
.hero-visual { margin: 0 -14% 0 -10%; }
.hero-visual img {
  width: 115%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  mix-blend-mode: multiply;
  filter: saturate(0.9) contrast(1.02);
}

.problem-section {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 9vw;
  border-top: 1px solid var(--line);
}
.problem-statement span { color: var(--accent-strong); font-weight: 700; }
.problem-statement h2, .section-heading h2, .product-copy h2, .workflow-section > h2, .open-copy h2 {
  margin: 16px 0 0;
  max-width: 17em;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.pain-list { align-self: center; }
.pain-item { padding: 25px 0; border-bottom: 1px solid var(--line); }
.pain-item:first-child { padding-top: 0; }
.pain-item strong { font-size: 18px; }
.pain-item p { max-width: 32em; margin: 7px 0 0; color: var(--muted); font-size: 14px; }

.section-heading { max-width: 770px; }
.section-heading p, .product-copy p, .open-copy p {
  max-width: 54ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
}
.feature-grid {
  margin-top: 54px;
  display: grid;
  grid-template-columns: 1.35fr 0.65fr 0.9fr;
  grid-template-rows: repeat(2, minmax(260px, auto));
  gap: 16px;
}
.feature {
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.feature h3 { max-width: 14em; margin: 12px 0 10px; font-size: 26px; line-height: 1.2; letter-spacing: -0.035em; }
.feature p { max-width: 38em; margin: 0; color: var(--muted); font-size: 14px; }
.feature-kicker { color: var(--accent-strong); font-size: 12px; font-weight: 750; }
.feature-large { grid-row: 1 / 3; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(150deg, var(--surface), var(--surface-soft)); }
.feature-large h3 { max-width: 11em; font-size: clamp(32px, 3vw, 46px); }
.flow-visual { display: grid; grid-template-columns: 50px 1fr auto 1fr 50px; align-items: center; margin-top: 70px; color: var(--accent-strong); }
.flow-visual span { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid var(--accent); border-radius: 14px; background: var(--surface); font-weight: 800; }
.flow-visual i { height: 2px; background: var(--accent); }
.flow-visual b { padding: 8px 12px; border-radius: 10px; color: #164329; background: var(--accent-soft); font-size: 12px; white-space: nowrap; }
.feature-green { color: #153222; border-color: #94d8ab; background: #bcecc9; }
.feature-green .feature-kicker, .feature-green p { color: #275d3a; }
.feature-dark { color: #eef8f2; border-color: #233b33; background: var(--dark); }
.feature-dark .feature-kicker { color: #8bdba7; }
.feature-dark p { color: #adc2b9; }
.feature-system { grid-column: 2 / 3; background: var(--surface-soft); }
.feature-system ul { margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; }
.feature-system li { padding: 10px; border-radius: 10px; background: var(--surface); color: var(--muted); font-size: 13px; }
.feature-compat { grid-column: 3 / 4; }

.product-section {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  align-items: center;
  gap: 7vw;
}
.product-copy h2 { max-width: 9em; }
.product-copy a, .text-link { display: inline-block; margin-top: 24px; color: var(--accent-strong); font-weight: 750; border-bottom: 1px solid currentColor; }
.app-shot { position: relative; margin: 0; padding: 18px; border-radius: calc(var(--radius) + 6px); background: color-mix(in srgb, var(--surface-soft) 75%, var(--accent)); box-shadow: var(--shadow); }
.app-shot::before { content: ""; position: absolute; inset: 7px; border: 1px solid color-mix(in srgb, var(--surface) 60%, transparent); border-radius: var(--radius); pointer-events: none; }
.app-shot img {
  width: 100%;
  height: auto;
  aspect-ratio: 28 / 19;
  object-fit: contain;
  border-radius: 12px;
  background: var(--surface);
}

.workflow-section { border-top: 1px solid var(--line); }
.workflow-section > h2 { max-width: 12em; }
.workflow { margin-top: 62px; display: grid; grid-template-columns: 1fr 1.2fr 0.8fr; gap: 0; }
.workflow article { min-height: 240px; padding: 26px; border-left: 1px solid var(--line); }
.workflow article:first-child { border-left: 0; padding-left: 0; }
.workflow span { color: var(--accent-strong); font: 700 13px/1.2 Consolas, "Cascadia Mono", monospace; }
.workflow h3 { margin: 42px 0 9px; font-size: 22px; letter-spacing: -0.025em; }
.workflow p { max-width: 25em; margin: 0; color: var(--muted); font-size: 14px; }

.download-section {
  border-top: 1px solid var(--line);
}
.download-heading {
  max-width: 740px;
}
.download-heading span,
.install-label {
  color: var(--accent-strong);
  font: 700 12px/1.2 Consolas, "Cascadia Mono", monospace;
  letter-spacing: 0.12em;
}
.download-heading h2 {
  margin: 16px 0 0;
  max-width: 14em;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.045em;
}
.download-heading p {
  max-width: 56ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
}
.download-grid {
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.download-card {
  min-height: 260px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.download-card-mac {
  background:
    radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 30%),
    var(--surface-soft);
}
.download-card-top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
}
.platform-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 55%, var(--line));
  border-radius: 16px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.download-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}
.download-card p {
  max-width: 44em;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.download-card .button {
  align-self: flex-start;
}
.mac-install {
  margin-top: 16px;
  padding: 30px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: 32px;
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 82%, var(--accent-soft));
}
.mac-install h3 {
  max-width: 18em;
  margin: 12px 0 0;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.16;
  letter-spacing: -0.04em;
}
.mac-install p {
  max-width: 58ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.command-stack {
  display: grid;
  gap: 10px;
}
.command-stack code {
  display: block;
  overflow-x: auto;
  padding: 13px 14px;
  border: 1px solid color-mix(in srgb, #ffffff 10%, transparent);
  border-radius: 12px;
  color: #ddf7e8;
  background: #10251f;
  font: 650 13px/1.5 Consolas, "Cascadia Mono", monospace;
  white-space: nowrap;
}
.download-note {
  max-width: 70ch;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.download-note a {
  color: var(--accent-strong);
  font-weight: 750;
  border-bottom: 1px solid currentColor;
}

.open-section {
  display: grid;
  grid-template-columns: 0.42fr 1.58fr;
  align-items: center;
  gap: 6vw;
  margin-bottom: 28px;
  padding-inline: clamp(32px, 7vw, 96px);
  border-radius: var(--radius);
  color: #eff8f3;
  background: var(--dark);
}
.open-mark { font: 700 clamp(60px, 9vw, 130px)/1 Consolas, "Cascadia Mono", monospace; color: #7cd49b; letter-spacing: -0.12em; }
.open-copy h2 { max-width: 15em; margin-top: 0; }
.open-copy p { color: #abc0b7; }
.open-actions .text-link { margin-top: 0; color: #9be0b2; }

footer {
  min-height: 130px;
  margin: 0 28px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}
.footer-links { justify-self: end; display: flex; gap: 20px; }
.footer-links a:hover { color: var(--ink); }

.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity 650ms cubic-bezier(.16, 1, .3, 1), transform 650ms cubic-bezier(.16, 1, .3, 1); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 64px 0 48px; }
  .hero-visual { margin: -20px -10% 0 12%; }
  .problem-section, .product-section { grid-template-columns: 1fr; gap: 58px; }
  .feature-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .feature-large { grid-row: auto; grid-column: 1 / 3; min-height: 430px; }
  .feature-system, .feature-compat { grid-column: auto; }
  .mac-install { grid-template-columns: 1fr; }
  .workflow { grid-template-columns: 1fr; }
  .workflow article { min-height: auto; padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .workflow h3 { margin-top: 18px; }
}

@media (max-width: 700px) {
  .site-header { height: 64px; padding: 0 18px; }
  .nav-action { font-size: 13px; }
  .section-pad, .hero, footer { margin-inline: 18px; }
  .section-pad { padding: 88px 0; }
  .hero { min-height: auto; grid-template-columns: 1fr; align-content: start; gap: 28px; padding: 52px 0 50px; }
  .hero h1 { font-size: clamp(34px, 9.2vw, 40px); letter-spacing: -0.055em; }
  .hero-intro { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-visual { margin: 0; }
  .hero-visual img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; object-position: center; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-large { grid-column: auto; min-height: 440px; }
  .flow-visual { grid-template-columns: 44px 1fr 44px; row-gap: 12px; }
  .flow-visual span { width: 44px; height: 44px; }
  .flow-visual b { grid-column: 1 / 4; grid-row: 1; justify-self: center; }
  .feature-system ul { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .download-card { min-height: auto; padding: 24px; }
  .download-card-top { grid-template-columns: 1fr; }
  .download-card .button { width: 100%; }
  .mac-install { padding: 24px; }
  .command-stack code { font-size: 12px; }
  .open-section { grid-template-columns: 1fr; gap: 36px; padding-inline: 28px; }
  .open-mark { font-size: 70px; }
  .open-actions { align-items: stretch; flex-direction: column; }
  .text-link { align-self: flex-start; }
  footer { min-height: 190px; grid-template-columns: 1fr; align-content: center; }
  footer p { margin: 0; }
  .footer-links { justify-self: start; }
}

@media (prefers-color-scheme: dark) {
  .hero-visual img { mix-blend-mode: screen; opacity: 0.86; }
  .feature-green { color: #11271a; }
  .feature-green .feature-kicker, .feature-green p { color: #235837; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button { transition: none; }
}
