:root {
  color-scheme: light dark;
  --bg: #f6f8f7;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --border: #e1e8e5;
  --text: #0f1a16;
  --text-2: #4f5e58;
  --text-3: #83918b;
  --accent: #059669;
  --accent-hover: #047857;
  --accent-soft: rgba(5, 150, 105, 0.1);
  --accent-text: #ffffff;
  --shadow: 0 1px 2px rgba(15, 26, 22, 0.05), 0 12px 32px rgba(15, 26, 22, 0.08);
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, "SF Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b100f;
    --surface: #131a18;
    --surface-2: #1a2320;
    --border: #23302b;
    --text: #e8efec;
    --text-2: #a2b2ab;
    --text-3: #6f7f79;
    --accent: #10b981;
    --accent-hover: #34d399;
    --accent-soft: rgba(16, 185, 129, 0.13);
    --accent-text: #04241a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font: 16px/1.6 var(--font);
  color: var(--text);
  background: radial-gradient(1100px 500px at 75% -160px, var(--accent-soft), transparent 70%), var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
code, kbd { font: 0.88em var(--mono); background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; }

.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 40px); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 7px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { color: var(--text-2); font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 26px;
  border-radius: 12px;
  background: var(--accent); color: var(--accent-text);
  font: 600 16px var(--font);
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.28);
  transition: background 0.15s, transform 0.1s;
}
.btn:hover { background: var(--accent-hover); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.small { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 9px; box-shadow: none; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding: 72px 0 40px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 600;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
h1 { font: 700 clamp(38px, 5.2vw, 60px)/1.05 var(--display); letter-spacing: -0.03em; margin: 20px 0 18px; }
.lead { font-size: 19px; color: var(--text-2); max-width: 34em; margin: 0 0 30px; }
.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.cta-meta { color: var(--text-3); font-size: 14px; }

.window {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow), 0 30px 80px rgba(5, 150, 105, 0.12);
  max-width: 460px;
  margin-left: auto;
  transform: rotate(-1deg);
}
.titlebar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 0 0 12px; font-size: 12px; color: var(--text-2); background: var(--surface); border-bottom: 1px solid var(--border); }
.controls { margin-left: auto; display: flex; height: 100%; }
.controls i { font-style: normal; width: 44px; display: grid; place-items: center; font-size: 11px; color: var(--text-3); }

/* sections */
.section { padding: 72px 0; }
h2 { font: 700 clamp(28px, 3.4vw, 38px)/1.15 var(--display); letter-spacing: -0.02em; margin: 0 0 10px; }
.section-lead { color: var(--text-2); font-size: 18px; margin: 0 0 36px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03); }
.feature h3 { margin: 16px 0 6px; font-size: 17px; }
.feature p { margin: 0; color: var(--text-2); font-size: 15px; }
.icon { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.step { position: relative; padding: 24px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.step h3 { margin: 14px 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--text-2); font-size: 15px; }
.num { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 700; }
.shot-row { margin-top: 36px; display: flex; justify-content: center; }
.shot-row img { width: 380px; border-radius: 16px; border: 1px solid var(--border); box-shadow: var(--shadow); }

/* faq */
#faq details { border-bottom: 1px solid var(--border); padding: 4px 0; }
#faq summary { cursor: pointer; list-style: none; padding: 16px 32px 16px 0; font-weight: 600; font-size: 17px; position: relative; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; font-weight: 400; color: var(--text-3); transition: transform 0.2s; }
#faq details[open] summary::after { transform: rotate(45deg); }
#faq details p { margin: 0 0 18px; color: var(--text-2); }

/* changelog */
.year { display: grid; grid-template-columns: 90px 1fr; gap: 0 24px; margin-bottom: 18px; }
.year-title { margin: 6px 0 0; font: 700 20px var(--display); color: var(--text-3); position: sticky; top: 80px; align-self: start; }
.release { grid-column: 2; padding: 0 0 18px 22px; border-left: 2px solid var(--border); position: relative; }
.release::before { content: ""; position: absolute; left: -6px; top: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.release header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.ver { font: 700 17px var(--mono); }
.release time { color: var(--text-3); font-size: 14px; }
.tag { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.release ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-2); font-size: 15px; }
.release li { margin: 2px 0; }
.older { margin-top: 8px; }
.older > summary {
  cursor: pointer; list-style: none;
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 24px 114px; padding: 8px 16px;
  border: 1px solid var(--border); border-radius: 999px;
  color: var(--text-2); font-weight: 600; font-size: 14px;
  background: var(--surface);
}
.older > summary::-webkit-details-marker { display: none; }
.older > summary::before { content: "Show "; }
.older[open] > summary::before { content: "Hide "; }

/* final cta */
.final { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding-bottom: 96px; }
.final img { border-radius: 16px; box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3); }
.final h2 { margin: 4px 0 8px; }

.footer { border-top: 1px solid var(--border); padding: 26px 0; color: var(--text-3); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--text-3); }

/* responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .window { margin: 0 auto; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .grid, .steps { grid-template-columns: 1fr; }
  .year { grid-template-columns: 1fr; }
  .year-title { position: static; margin-bottom: 10px; }
  .release { grid-column: 1; }
  .older > summary { margin-left: 0; }
  .window { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
