:root {
  color-scheme: light;
  --ink: #0a0a0a;
  --paper: #f7f7f5;
  --muted: #676767;
  --line: #d9d9d5;
  --accent: #16c5cf;
  --accent-ink: #0b6f75;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --page: 1184px;
  --gutter: max(28px, calc((100vw - var(--page)) / 2));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 10; padding: 10px 14px; background: var(--ink); color: white; border-radius: 6px; font: 600 .85rem/1 var(--mono); }
.skip-link:focus { top: 16px; }

/* Header */
.site-header { height: 88px; max-width: 1240px; margin: 0 auto; padding: 0 28px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font: 700 1.18rem/1 var(--mono); letter-spacing: -.04em; }
.brand-mark { width: 39px; height: 39px; overflow: visible; }
.brand-mark rect { fill: none; stroke: currentColor; stroke-width: 2.4; }
.brand-mark path:not(.nib-line) { fill: currentColor; }
.brand-mark .nib-line { fill: none; stroke: var(--paper); stroke-width: 1.8; }
nav { display: flex; align-items: center; gap: 26px; font: 600 .86rem/1 var(--mono); }
nav a { text-decoration: none; padding: 10px 0; }
nav a:hover { opacity: .58; }
.nav-download { border: 1px solid var(--ink); border-radius: 7px; padding: 11px 15px; }
.nav-download:hover { opacity: 1; background: var(--ink); color: white; }

/* Hero */
.hero { min-height: calc(100vh - 88px); max-width: 1240px; margin: 0 auto; padding: 64px 28px 96px; display: grid; grid-template-columns: .88fr 1.12fr; gap: 64px; align-items: center; }
.eyebrow { margin: 0 0 25px; font: 700 .76rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.badge { display: inline-block; margin-right: 10px; padding: 5px 8px; border-radius: 999px; background: var(--accent); color: var(--ink); letter-spacing: .04em; }
h1 { font: 700 clamp(3.6rem, 6.6vw, 6.6rem)/.86 var(--mono); letter-spacing: -.09em; margin: 0; }
.lede { max-width: 590px; margin: 35px 0 0; color: var(--muted); font-size: 1.14rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; margin-top: 35px; }
.button { min-height: 50px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; font: 700 .88rem/1 var(--mono); text-decoration: none; transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease; }
.hero-actions .button { min-height: 62px; justify-content: flex-start; padding: 0 22px 0 18px; }
.button span { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.button small { font: 500 .7rem/1 var(--mono); opacity: .66; }
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: var(--ink); }
.button.primary:hover { background: #252525; }
.button.secondary { background: transparent; }
.button.secondary:hover { background: white; }
.button.suggested { box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent); }
.button svg { width: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.release-note { margin-top: 18px; color: #7d7d7d; font: 500 .75rem/1.6 var(--mono); }
.release-note a, .requirements a, .steps a { color: inherit; text-underline-offset: 3px; }

/* Product illustration */
.product-frame { background: #121212; border: 1px solid #292929; border-radius: 14px; box-shadow: 0 35px 80px rgba(0, 0, 0, .18); overflow: hidden; transform: rotate(1.2deg); }
.window-bar { height: 50px; display: flex; align-items: center; padding: 0 14px; gap: 8px; border-bottom: 1px solid #262626; background: #090909; color: #8a8a8a; white-space: nowrap; }
.traffic { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.red { background: #ff5f57; } .yellow { background: #febc2e; } .green { background: #28c840; }
.window-brand { display: inline-flex; align-items: center; gap: 7px; margin-left: 12px; color: #fff; font: 700 .74rem/1 var(--mono); }
.window-brand img { width: 18px; height: 18px; }
.window-file { display: inline-flex; align-items: center; gap: 6px; padding-left: 12px; margin-left: 4px; border-left: 1px solid #2c2c2c; font: 500 .66rem/1 var(--sans); }
.window-file i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.window-actions { margin-left: auto; display: flex; gap: 6px; }
.window-actions b { padding: 6px 8px; border: 1px solid #2c2c2c; border-radius: 6px; font: 600 .6rem/1 var(--sans); color: #ddd; }
.window-actions .export { background: #f4f4f4; color: #0a0a0a; border-color: #f4f4f4; }
.app-body { display: grid; grid-template-columns: 136px 1fr; min-height: 430px; }
.tool-rail { padding: 12px 10px; background: #161616; border-right: 1px solid #262626; display: flex; flex-direction: column; gap: 5px; }
.rail-label { margin: 6px 2px 2px; color: #7b7b7b; font: 700 .52rem/1 var(--mono); letter-spacing: .1em; }
.tool { height: 30px; padding: 0 8px; color: #d2d2d2; border: 1px solid #2a2a2a; border-radius: 7px; background: #1c1c1c; display: flex; align-items: center; gap: 7px; font: 600 .62rem/1 var(--sans); }
.tool img { width: 13px; height: 13px; object-fit: contain; flex: none; }
.tool kbd { margin-left: auto; min-width: 0; padding: 2px 4px; border: 0; border-radius: 3px; background: #2c2c2c; color: #8f8f8f; font: 500 .5rem/1 var(--mono); }
.tool.active { color: #fff; border-color: var(--accent); background: #173a3d; }
.swatches { display: flex; gap: 6px; padding: 2px 2px 0; }
.swatches i { width: 15px; height: 15px; border-radius: 50%; background: var(--c); border: 1px solid #555; }
.swatches i.on { box-shadow: 0 0 0 2px #161616, 0 0 0 3.5px var(--accent); }
.brush-preview { height: 34px; border-radius: 6px; background: #fff; display: grid; place-items: center; }
.brush-preview svg { width: 88%; fill: none; stroke: #0a0a0a; stroke-width: 3.2; stroke-linecap: round; }
.canvas { position: relative; min-width: 0; background-color: #fbfbf9; background-image: radial-gradient(#cfcfca 1px, transparent 1px); background-size: 22px 22px; color: #151515; overflow: hidden; }
.problem { position: absolute; top: 64px; left: 52px; font: 500 clamp(1.5rem, 3vw, 2.25rem)/1.2 Georgia, serif; }
.problem span { font-style: italic; }
.ink { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: #151515; stroke-width: 4; stroke-linecap: round; }
.ink .answer { stroke-width: 5; }
.ink .highlight { stroke: #ffd91c; stroke-width: 20; opacity: .48; stroke-linecap: butt; }
.ink .straight { stroke: #ff404a; stroke-width: 4.5; stroke-dasharray: 380; stroke-dashoffset: 0; }
.annotation { position: absolute; right: 44px; bottom: 50px; padding: 5px 8px; border-radius: 6px; background: var(--ink); color: white; font: 600 .7rem/1 var(--mono); transform: rotate(-3deg); }
.status-bar { display: flex; align-items: center; gap: 14px; height: 30px; padding: 0 14px; border-top: 1px solid #262626; background: #111; color: #c8c8c8; font: 500 .6rem/1 var(--sans); white-space: nowrap; overflow: hidden; }
.status-bar i { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #28cd53; }
.status-bar .hint { color: #7c7c7c; overflow: hidden; text-overflow: ellipsis; }
.status-bar .zoom { margin-left: auto; font-family: var(--mono); color: #ddd; }
@media (prefers-reduced-motion: no-preference) {
  .ink .straight { animation: draw-line 1.2s .6s ease-out both; }
  @keyframes draw-line { from { stroke-dashoffset: 380; } to { stroke-dashoffset: 0; } }
}

/* Section titles */
.section-intro { display: flex; align-items: end; justify-content: space-between; gap: 24px; border-bottom: 1px solid #363636; padding-bottom: 38px; }
.section-intro .eyebrow { color: #a4a4a4; margin: 0; }
.section-intro.light { border-color: var(--line); }
.section-intro.light .eyebrow { color: var(--muted); }
h2 { font: 700 clamp(2.6rem, 5.5vw, 5rem)/.95 var(--mono); letter-spacing: -.075em; margin: 0; }

/* What's new */
.whats-new { padding: 120px var(--gutter) 110px; background: white; border-top: 1px solid var(--line); }
.new-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); }
.new-grid li { padding: 34px 30px 36px 0; border-bottom: 1px solid var(--line); }
.new-grid li:not(:nth-child(3n + 1)) { padding-left: 30px; border-left: 1px solid var(--line); }
.new-grid h3 { margin: 26px 0 10px; font: 700 1.02rem/1.25 var(--mono); }
.new-grid p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }
kbd { display: inline-block; min-width: 26px; padding: 5px 7px; border: 1px solid #c9c9c4; border-bottom-width: 2px; border-radius: 6px; background: var(--paper); font: 600 .78rem/1 var(--mono); text-align: center; color: var(--ink); }
.new-grid kbd { background: var(--accent); border-color: #0f9aa2; }

/* Features */
.feature-strip { padding: 120px var(--gutter); background: var(--ink); color: white; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature-grid article { min-height: 270px; padding: 30px 28px 30px 0; border-bottom: 1px solid #363636; }
.feature-grid article + article { border-left: 1px solid #363636; padding-left: 28px; }
.feature-grid span { color: #757575; font: 500 .75rem/1 var(--mono); }
.feature-grid h3 { margin: 70px 0 15px; font: 700 1.05rem/1.2 var(--mono); }
.feature-grid p { margin: 0; color: #aaa; font-size: .93rem; line-height: 1.6; }

/* Shortcuts */
.shortcuts { max-width: var(--page); margin: 0 auto; padding: 130px 0 40px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.shortcut-note { margin: 22px 0 0; color: var(--muted); font: 500 .8rem/1.5 var(--mono); }
.guide-link { margin-top: 26px; display: inline-flex; align-items: center; gap: 12px; padding: 13px 18px 13px 14px; border: 1px solid var(--ink); border-radius: 9px; background: white; text-decoration: none; transition: transform .18s ease, background .18s ease, color .18s ease; }
.guide-link:hover { transform: translateY(-2px); background: var(--ink); color: white; }
.guide-link svg { width: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.guide-link span { display: flex; flex-direction: column; gap: 6px; font: 700 .86rem/1 var(--mono); }
.guide-link small { font: 500 .7rem/1 var(--mono); opacity: .66; }
.shortcut-grid { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.shortcut-grid div { display: flex; flex-direction: column; gap: 10px; padding: 18px 16px 18px 0; border-bottom: 1px solid var(--line); }
.shortcut-grid div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
.shortcut-grid dt { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font: 600 .78rem/1 var(--mono); color: var(--muted); }
.shortcut-grid dd { margin: 0; font-size: .95rem; }

/* Install */
.install { max-width: var(--page); margin: 0 auto; padding: 120px 0 40px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.install + .install { padding-bottom: 140px; }
.steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.steps li { display: grid; grid-template-columns: 42px 1fr; gap: 18px; padding: 27px 0; border-bottom: 1px solid var(--line); }
.steps li > span { font: 500 .78rem/1.5 var(--mono); color: #888; }
.steps h3 { margin: 0 0 8px; font: 700 1rem/1.4 var(--mono); }
.steps p { margin: 0; color: var(--muted); line-height: 1.6; }
code { padding: .16em .4em; border: 1px solid var(--line); border-radius: 4px; background: #ededeb; font: 500 .84em/1.2 var(--mono); }
.requirements { grid-column: 2; padding: 23px 25px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.requirements strong { font: 700 .82rem/1 var(--mono); }
.requirements p { margin: 10px 0 0; color: var(--muted); font-size: .91rem; line-height: 1.6; }

/* Download band and footer */
.download-band { padding: 58px var(--gutter); background: var(--accent); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px; }
.download-band img { border-radius: 24px; }
.download-band h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
.download-band p { margin: 10px 0 0; font: 600 .9rem/1.3 var(--mono); }
.button.light { background: white; }
.button.light:hover { background: var(--ink); color: white; }
footer { min-height: 150px; padding: 40px var(--gutter); background: var(--ink); color: white; display: flex; align-items: center; gap: 30px; }
.footer-brand .nib-line { stroke: var(--ink); }
footer p { margin: 0 auto; color: #888; font: 500 .78rem/1.4 var(--mono); }
footer nav { gap: 18px; font-size: .78rem; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .button { transition: none; } }

@media (max-width: 1000px) {
  nav a:not(.nav-download) { display: none; }
  .site-header { height: 76px; }
  .hero { min-height: auto; padding-top: 56px; grid-template-columns: 1fr; gap: 56px; }
  .product-frame { max-width: 720px; transform: none; }
  .new-grid { grid-template-columns: repeat(2, 1fr); }
  .new-grid li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .new-grid li:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--line); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid article:nth-child(3) { border-left: 0; padding-left: 0; }
  .shortcuts, .install { padding: 96px 28px 30px; grid-template-columns: 1fr; gap: 44px; }
  .install + .install { padding-bottom: 100px; }
  .requirements { grid-column: 1; }
  .download-band { grid-template-columns: auto 1fr; }
  .download-band .button { grid-column: 1 / -1; }
  .download-band h2 { letter-spacing: -.06em; }
}
@media (max-width: 600px) {
  .site-header { padding: 0 16px; }
  .brand { font-size: 1rem; }
  .brand-mark { width: 34px; height: 34px; }
  .nav-download { padding: 10px 12px; }
  .hero { padding: 44px 16px 64px; }
  .badge { display: table; margin-bottom: 12px; }
  h1 { font-size: clamp(3rem, 15.5vw, 4.6rem); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .window-file, .window-actions { display: none; }
  .app-body { grid-template-columns: 64px 1fr; min-height: 320px; }
  .tool-rail { padding: 10px 6px; }
  .tool { justify-content: center; padding: 0; font-size: 0; }
  .tool kbd, .rail-label, .swatches, .brush-preview { display: none; }
  .problem { top: 46px; left: 24px; }
  .status-bar .hint { display: none; }
  .whats-new, .feature-strip { padding: 80px 16px; }
  .section-intro { display: block; }
  .section-intro .eyebrow { margin-bottom: 24px; }
  .new-grid, .feature-grid, .shortcut-grid { grid-template-columns: 1fr; }
  .new-grid li, .new-grid li:nth-child(even) { padding: 26px 0; border-left: 0; }
  .feature-grid article, .feature-grid article + article { min-height: auto; padding: 26px 0; border-left: 0; }
  .feature-grid h3 { margin: 36px 0 12px; }
  .shortcut-grid div:nth-child(even) { padding-left: 0; border-left: 0; }
  .shortcuts, .install { padding: 72px 16px 24px; }
  .install + .install { padding-bottom: 80px; }
  .download-band { padding: 45px 16px; grid-template-columns: 72px 1fr; gap: 18px; }
  .download-band img { width: 72px; height: 72px; border-radius: 16px; }
  .download-band h2 { font-size: 1.8rem; }
  footer { padding: 42px 16px; align-items: flex-start; flex-direction: column; }
  footer p { margin: 0; }
}
