:root {
  --ink: #171a16;
  --ink-2: #22261f;
  --paper: #f0eee6;
  --muted: #a5aa9f;
  --line: rgba(240, 238, 230, 0.13);
  --acid: #cfff3f;
  --purple: #8888ff;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--paper); background: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--purple); outline-offset: 4px; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  height: 76px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid var(--line); background: rgba(23, 26, 22, 0.88);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 18px; font-weight: 760; letter-spacing: -0.03em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; color: #11150d; background: var(--acid); font-weight: 900; box-shadow: inset 0 -4px 0 rgba(74, 91, 12, 0.25); }
.brand-mark.small { width: 30px; height: 30px; border-radius: 9px; font-size: 14px; }
nav { display: flex; align-items: center; gap: 28px; color: #b9beb4; font-size: 14px; }
nav a:hover { color: white; }
.nav-download { padding: 11px 16px; color: #141712; border: 1px solid var(--acid); border-radius: 10px; background: var(--acid); font-weight: 760; }

.section-shell { width: min(1240px, calc(100% - 56px)); margin: 0 auto; }
.hero { min-height: 720px; display: grid; grid-template-columns: 0.88fr 1.12fr; align-items: center; gap: 72px; padding-top: 82px; padding-bottom: 96px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 28px; color: var(--muted); font: 700 12px/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow span { width: 28px; height: 2px; background: var(--acid); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 30px; font-size: clamp(48px, 5.3vw, 78px); line-height: 0.98; letter-spacing: -0.065em; font-weight: 760; }
h1 em { color: var(--acid); font-style: normal; }
.hero-lead { max-width: 600px; margin-bottom: 36px; color: #b7bcb1; font-size: 19px; line-height: 1.65; letter-spacing: -0.015em; }
.hero-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border-radius: 12px; font-size: 15px; font-weight: 800; transition: transform 160ms ease, box-shadow 160ms ease; }
.button:hover { transform: translateY(-2px); }
.button svg { width: 20px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.button-primary { color: #12170d; background: var(--acid); box-shadow: 0 12px 36px rgba(207, 255, 63, 0.13); }
.download-meta { color: #777e74; font: 12px var(--mono); }

.product-window { overflow: hidden; min-width: 0; border: 1px solid rgba(240, 238, 230, 0.18); border-radius: 18px; background: #141714; box-shadow: 0 32px 90px rgba(0,0,0,.35); transform: rotate(0.35deg); }
.window-chrome { height: 44px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #252924; }
.traffic { width: 11px; height: 11px; border-radius: 50%; }
.red { background: #ff645f; } .yellow { background: #f8bc42; } .green { background: #31c94d; }
.window-title { margin-left: auto; margin-right: auto; color: #90958d; font-size: 12px; transform: translateX(-22px); }
.tabs { display: flex; overflow: hidden; height: 48px; border-bottom: 1px solid var(--line); background: #1b1e1a; }
.tab, .new-tab { flex: 0 0 auto; border: 0; border-right: 1px solid var(--line); color: #8d9388; background: transparent; }
.tab { min-width: 150px; padding: 0 15px; text-align: left; }
.tab, .new-tab { display: flex; align-items: center; }
.tab > span { margin-left: auto; }
.tab small { margin-right: 8px; color: #697067; font-family: var(--mono); }
.tab span { float: right; }
.tab.active { color: #e8e9e4; background: #141714; box-shadow: inset 0 2px var(--purple); }
.new-tab { width: 48px; font-size: 22px; }
.editor { min-height: 368px; display: grid; grid-template-columns: 48px 1fr; padding-top: 24px; font: 14px/2 var(--mono); }
.gutter { padding-right: 14px; color: #51574f; text-align: right; border-right: 1px solid var(--line); user-select: none; }
.editor pre { overflow: hidden; margin: 0; padding: 0 22px; color: #d4d7cf; font: inherit; white-space: pre-wrap; }
.md { color: var(--purple); } .comment { color: #686f66; }
.statusbar { min-height: 38px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; border-top: 1px solid var(--line); color: #747a72; font: 11px var(--mono); }
.statusbar div { display: flex; gap: 18px; }
.statusbar div span:first-child { color: #d7d9d3; }

.promise { display: flex; align-items: center; justify-content: center; gap: 34px; min-height: 92px; padding: 20px 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: #7b8177; font: 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.promise p { margin: 0 auto 0 0; padding-left: max(0px, calc((100vw - 1240px) / 2)); color: #d2d5cd; font: 700 16px var(--sans); letter-spacing: -.02em; text-transform: none; }
.promise span:last-child { margin-right: max(0px, calc((100vw - 1240px) / 2)); }

.features { padding-top: 132px; padding-bottom: 132px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 64px; }
.section-heading .eyebrow { align-self: flex-start; }
h2 { margin-bottom: 0; font-size: clamp(38px, 4.2vw, 60px); line-height: 1.03; letter-spacing: -0.055em; }
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feature { min-height: 360px; position: relative; overflow: hidden; padding: 34px; border: 1px solid var(--line); border-radius: 18px; background: var(--ink-2); }
.feature-large { grid-column: 1 / -1; min-height: 330px; display: grid; grid-template-columns: 70px 1fr; }
.feature-number { color: #72786e; font: 12px var(--mono); }
.feature h3 { margin-bottom: 14px; font-size: 25px; letter-spacing: -.035em; }
.feature p { max-width: 650px; color: #989e94; line-height: 1.65; }
.format-strip { position: absolute; right: 34px; bottom: 34px; left: 104px; display: flex; gap: 8px; flex-wrap: wrap; }
.format-strip span { padding: 9px 12px; border: 1px solid #3a4037; border-radius: 7px; color: #aeb4aa; background: #181b17; font: 11px var(--mono); }
.history-mini { position: absolute; right: 34px; bottom: 34px; left: 34px; display: flex; align-items: center; color: #777e74; font: 11px var(--mono); }
.history-mini i { height: 1px; flex: 1; margin: 0 12px; background: #41463f; }
.history-mini i:before { content: ""; display: block; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--acid); }
.diff-mini { position: absolute; right: 34px; bottom: 34px; left: 34px; display: grid; gap: 8px; }
.diff-mini code { padding: 11px 14px; border-radius: 7px; color: #dd918a; background: #342522; }
.diff-mini code:last-child { color: #9bd2a1; background: #1d3021; }

.details { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; padding-top: 120px; padding-bottom: 120px; border-top: 1px solid var(--line); }
.detail-list { margin: 0; padding: 0; list-style: none; }
.detail-list li { display: grid; grid-template-columns: 180px 1fr; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.detail-list strong { font-size: 15px; }
.detail-list span { color: #91978d; font-size: 14px; line-height: 1.5; }

.discover { padding-top: 120px; padding-bottom: 120px; border-top: 1px solid var(--line); }
.discover .section-heading { align-items: end; gap: 60px; }
.discover .section-heading > p { max-width: 420px; margin: 0; color: #959c91; line-height: 1.7; }
.discover-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.discover-grid a { min-height: 260px; padding: 30px; border: 1px solid var(--line); border-radius: 17px; background: var(--ink-2); transition: transform 150ms ease, border-color 150ms ease; }
.discover-grid a:hover { border-color: rgba(207,255,63,.45); transform: translateY(-3px); }
.discover-grid a > span { color: #81897e; font: 700 9px var(--mono); letter-spacing: .12em; }
.discover-grid h3 { margin: 48px 0 14px; font-size: 25px; }
.discover-grid p { color: #969d92; line-height: 1.65; }
.discover-grid strong { color: var(--acid); font-size: 13px; }

.install { padding-top: 80px; padding-bottom: 120px; }
.install-card { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; padding: 64px; border-radius: 24px; color: #171a16; background: var(--acid); }
.eyebrow.dark { color: #4e5e20; }.eyebrow.dark span { background: #171a16; }
.install-card h2 { margin-bottom: 24px; }
.install-card > div > p:not(.eyebrow) { max-width: 520px; color: #45511f; line-height: 1.6; }
.button-dark { margin-top: 20px; color: white; background: var(--ink); }
.install-card ol { margin: 0; padding: 0; list-style: none; }
.install-card li { display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid rgba(23,26,22,.22); }
.install-card li > span { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid rgba(23,26,22,.3); border-radius: 50%; font: 700 12px var(--mono); }
.install-card li p { margin: 0; line-height: 1.5; }
.checksum { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px 24px; color: #737970; font: 10px var(--mono); }
.checksum code { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.checksum button { border: 0; color: #bdc2b8; background: transparent; cursor: pointer; }

footer { min-height: 150px; display: flex; align-items: center; gap: 40px; padding: 0 max(28px, calc((100vw - 1240px) / 2)); border-top: 1px solid var(--line); color: #747a72; font-size: 12px; }
footer p { margin: 0 auto; }

@media (max-width: 900px) {
  nav > a:not(.nav-download) { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 62px; padding-top: 70px; }
  .hero-copy { max-width: 720px; }
  .promise { overflow-x: auto; justify-content: flex-start; }
  .promise p { display: none; }
  .promise span { flex: 0 0 auto; }
  .section-heading, .details { display: block; }
  .section-heading .eyebrow { margin-bottom: 40px; }
  .details h2 { margin-bottom: 60px; }
  .discover .section-heading { display: block; }
  .discover .section-heading > p { margin-top: 32px; }
  .install-card { gap: 50px; padding: 42px; }
}

@media (max-width: 680px) {
  .topbar { height: 66px; padding: 0 18px; }
  .brand-mark { width: 34px; height: 34px; }
  .topbar nav { gap: 0; }
  .nav-download { padding: 10px 12px; }
  .section-shell { width: min(100% - 32px, 1240px); }
  .hero { padding-top: 54px; padding-bottom: 70px; }
  h1 { font-size: 47px; }
  .hero-lead { font-size: 17px; }
  .download-meta { width: 100%; }
  .product-window { margin-right: -12px; margin-left: -12px; }
  .tab { min-width: 132px; }
  .tab:nth-child(3) { display: none; }
  .editor { min-height: 310px; font-size: 12px; }
  .editor pre { padding: 0 14px; }
  .statusbar div span:last-child { display: none; }
  .features { padding-top: 92px; padding-bottom: 92px; }
  .section-heading { margin-bottom: 42px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-large { grid-column: auto; min-height: 390px; display: block; }
  .feature-number { display: block; margin-bottom: 50px; }
  .format-strip { left: 34px; }
  .details { padding-top: 92px; padding-bottom: 92px; }
  .discover { padding-top: 92px; padding-bottom: 92px; }
  .discover-grid { grid-template-columns: 1fr; }
  .detail-list li { grid-template-columns: 1fr; gap: 7px; }
  .install { padding-top: 36px; padding-bottom: 80px; }
  .install-card { grid-template-columns: 1fr; padding: 34px 26px; }
  .checksum { grid-template-columns: 1fr auto; padding: 18px 4px; }
  .checksum code { grid-row: 2; grid-column: 1 / -1; }
  footer { min-height: 190px; flex-wrap: wrap; gap: 20px; padding-top: 42px; padding-bottom: 42px; }
  footer p { width: 100%; order: 3; }
}

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