:root {
  color-scheme: dark;
  --bg: #09110e;
  --surface: #101c16;
  --text: #eff5ef;
  --muted: #a0b1a7;
  --accent: #91efb3;
  --border: #28392f;
  --amber: #f2c78c;
  --content: 1240px;
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.65; }
body.viewer-open { overflow: hidden; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; flex: none; }
figure, p, h1, h2, h3 { margin: 0; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
::selection { background: var(--accent); color: var(--bg); }
.container { width: min(calc(100% - 80px), var(--content)); margin-inline: auto; }
.text-accent { color: var(--accent); }
.icon { width: 20px; height: 20px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 12px 20px; transform: translateY(-160%); background: var(--accent); color: var(--bg); border-radius: 6px; }
.skip-link:focus { transform: translateY(0); }

/* The security boundary is visible before any product or download copy. */
.security-notice { background: #251e14; border-bottom: 1px solid #59452c; color: #e1c6a1; }
.security-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px; padding-block: 17px; }
.security-icon { color: var(--amber); width: 23px; height: 23px; }
.security-inner strong { display: block; color: #ffe0b3; font-size: 13px; font-weight: 650; line-height: 1.5; }
.security-inner p { max-width: 920px; margin-top: 3px; font-size: 12px; line-height: 1.6; }
.security-inner > a { font-size: 12px; white-space: nowrap; text-underline-offset: 5px; }
.security-inner > a:hover { color: #fff0da; }
.security-inner :focus-visible { outline-color: var(--amber); }

.site-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; min-height: 100px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; font-size: 19px; font-weight: 700; letter-spacing: -.6px; text-decoration: none; }
.brand img { border-radius: 10px; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a, .github-link { font-size: 13px; text-decoration: none; font-weight: 500; }
.site-nav a { padding-block: 12px; color: var(--muted); }
.site-nav a:hover, .site-footer a:hover { color: var(--accent); }
.github-link { display: inline-flex; justify-self: end; align-items: center; gap: 9px; padding: 9px 15px; border: 1px solid var(--border); border-radius: 7px; }
.github-link:hover { background: var(--surface); border-color: #5c8069; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 56px; padding-block: 55px 90px; }
.hero-copy { width: 100%; max-width: 760px; text-align: center; }
.release-label { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; text-decoration: none; }
.status-dot { display: inline-block; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.version { margin-left: 4px; padding: 2px 8px; border: 1px solid var(--border); border-radius: 5px; color: var(--accent); font-size: 11px; }
h1 { margin-block: 27px 26px; font-size: clamp(48px, 5.15vw, 72px); line-height: 1.04; font-weight: 600; letter-spacing: -.065em; }
.hero-description { color: var(--muted); font-size: clamp(16px, 1.4vw, 18px); line-height: 1.8; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 25px; margin-top: 34px; flex-wrap: wrap; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 26px; min-height: 51px; padding: 12px 22px; border: 1px solid transparent; border-radius: 6px; font-size: 14px; font-weight: 650; text-decoration: none; transition: background .18s, transform .18s; }
.button-primary { background: var(--accent); color: #0a2114; }
.button-primary:hover { background: #b4f8cc; transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; gap: 12px; width: fit-content; padding-block: 9px; font-size: 13px; font-weight: 550; text-decoration: none; }
.text-link:hover { color: var(--accent); }
.hero-footnote { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; color: var(--muted); font-size: 12px; }
.hero-footnote > span { color: #526c5b; }
.hero-product { width: min(100%, 1080px); min-width: 0; position: relative; isolation: isolate; }
.hero-product::before { position: absolute; z-index: -1; inset: -65px -14px; background: radial-gradient(ellipse at center, #193c27 0%, transparent 68%); content: ""; opacity: .75; }
.product-topline { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 13px; color: var(--muted); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 10px; letter-spacing: .08em; }
.product-topline > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.screenshot-link { display: block; position: relative; overflow: hidden; border: 1px solid #304c3b; border-radius: 10px; background: #08140d; transition: border-color .2s, box-shadow .2s; }
.screenshot-link:hover { border-color: #719c80; box-shadow: 0 20px 55px #0003; }
.screenshot-link img { width: 100%; height: auto; max-height: none; object-fit: contain; }
.hero-screenshot { box-shadow: 0 25px 70px #0005; }
.image-enlarge { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 33px; height: 33px; background: #11281f; color: var(--accent); border: 1px solid #557f64; border-radius: 6px; font-size: 19px; }
.hero-product figcaption { display: flex; justify-content: space-between; gap: 15px; margin-top: 13px; color: var(--muted); font-size: 11px; }
.hero-product figcaption > span:last-child { color: var(--accent); }

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 1px solid var(--border); padding-block: 28px; }
.principles > div { display: flex; align-items: flex-start; gap: 18px; padding-inline: 28px; border-right: 1px solid var(--border); }
.principles > div:first-child { padding-left: 0; }
.principles > div:last-child { padding-right: 0; border: 0; }
.principle-mark { margin-top: 4px; color: var(--accent); font: 11px/1.8 ui-monospace, Consolas, monospace; }
.principles strong { display: block; font-size: 14px; font-weight: 600; }
.principles p > span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; }

.section { padding-block: 112px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 52px; }
.eyebrow { margin-bottom: 16px; color: var(--accent); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 10px; line-height: 1.6; letter-spacing: .12em; text-transform: uppercase; }
h2 { font-size: clamp(34px, 3.8vw, 50px); line-height: 1.13; font-weight: 550; letter-spacing: -.05em; }
.section-heading > p { max-width: 325px; color: var(--muted); font-size: 14px; line-height: 1.8; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--border); }
.steps li { position: relative; display: flex; flex-direction: column; padding: 25px 34px 0; border-right: 1px solid var(--border); }
.steps li:first-child { padding-left: 0; }
.steps li:last-child { padding-right: 0; border: 0; }
.step-number { display: flex; justify-content: space-between; align-items: center; margin-bottom: 35px; color: var(--accent); font: 13px/1 ui-monospace, Consolas, monospace; }
.step-number > span { font-size: 21px; color: #749783; }
.steps h3 { font-size: 20px; letter-spacing: -.035em; font-weight: 600; }
.steps p { margin: 12px 0 25px; color: var(--muted); font-size: 14px; }
.steps strong { color: #d6e4da; font-weight: 500; }
.step-tag { margin-top: auto; color: var(--accent); font-size: 11px; }

.preview-section { padding-block: 94px 34px; background: #0d1812; border-block: 1px solid var(--border); }
.preview-section .section-heading { margin-bottom: 10px; }
.product-story { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; width: min(100%, 1080px); margin-inline: auto; padding-block: 70px; }
.product-story + .product-story { border-top: 1px solid var(--border); }
.story-copy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: start; }
.story-copy > .eyebrow { grid-column: 1 / -1; }
.story-copy > h3 { grid-column: 1; grid-row: 2 / 4; }
.story-copy > p:not(.eyebrow), .story-copy > .feature-list { grid-column: 2; }
.story-number { display: inline-block; margin-right: 10px; color: #a5b6aa; }
.story-copy h3 { font-size: clamp(30px, 3.1vw, 42px); line-height: 1.17; font-weight: 550; letter-spacing: -.045em; }
.story-copy > p:not(.eyebrow) { color: var(--muted); font-size: 15px; line-height: 1.8; }
.feature-list { display: grid; gap: 12px; margin: 27px 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: baseline; gap: 12px; font-size: 13px; color: #c5d4ca; }
.feature-list li::before { content: "↳"; color: var(--accent); }
.product-figure { width: 100%; min-width: 0; }
.product-figure figcaption { margin-top: 15px; color: var(--muted); font: 10px/1.5 ui-monospace, Consolas, monospace; letter-spacing: .12em; }
.story-mobile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 64px; }
.story-mobile .story-copy { display: block; max-width: 420px; }
.story-mobile .story-copy > p:not(.eyebrow) { margin-top: 21px; }
.story-mobile .text-link { margin-top: 17px; color: var(--accent); }
.mobile-figure { width: min(100%, 390px); justify-self: center; }
.mobile-figure .screenshot-link { width: fit-content; margin-inline: auto; border-radius: 22px; border: 6px solid #23392c; box-shadow: 0 24px 50px #0003; }
.mobile-figure .screenshot-link img { display: block; width: auto; max-width: 100%; max-height: 600px; margin-inline: auto; }
.mobile-figure figcaption { text-align: center; }
.connection-route { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 44px; padding-top: 25px; border-top: 1px solid var(--border); font-size: 12px; }
.route-line { flex: 1; color: var(--accent); text-align: center; border-bottom: 1px dashed #496d56; line-height: .05; }
.connection-route small { flex-basis: 100%; color: var(--muted); font-size: 11px; }
.preview-note { max-width: 690px; margin-inline: auto; color: var(--muted); text-align: center; font-size: 12px; }

.faq-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.faq-heading .text-link { margin-top: 26px; color: var(--muted); }
.faq-list { border-top: 1px solid var(--border); }
.faq-list details { border-bottom: 1px solid var(--border); }
.faq-list summary { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; padding-block: 22px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 500; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq-list details[open] > summary::after { content: "−"; }
.faq-list summary:hover { color: var(--accent); }
.faq-answer { padding: 0 25px 24px 0; color: var(--muted); font-size: 14px; }
.faq-answer p + p { margin-top: 12px; }
.faq-answer strong { color: #e6d2b3; font-weight: 550; }
.faq-answer a { color: var(--accent); }
code { font-size: .9em; color: #d7e6dc; }
.security-detail summary { color: var(--amber); }

.download-section { padding-bottom: 90px; }
.download-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 60px; padding: 62px; border: 1px solid #35583f; border-radius: 12px; background: radial-gradient(ellipse at 100% 100%, #204c2b80, transparent 65%), #102019; }
.download-copy h2 { font-size: clamp(38px, 4.5vw, 60px); }
.download-copy > p:not(.eyebrow) { margin-top: 24px; color: #b3c8bb; font-size: 15px; }
.download-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 33px; color: #b3c8bb; font: 10px/1.6 ui-monospace, Consolas, monospace; letter-spacing: .04em; }
.download-meta span + span { padding-left: 20px; border-left: 1px solid #425f4d; }
.download-actions { display: flex; flex-direction: column; align-items: center; }
.download-actions img { margin-bottom: 25px; border-radius: 18px; }
.download-actions .text-link { margin-top: 12px; }
.download-actions > p { margin-top: 19px; color: var(--muted); font-size: 12px; line-height: 1.6; text-align: center; }

.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 35px; padding-block: 35px 45px; border-top: 1px solid var(--border); }
.site-footer .brand { font-size: 16px; }
.site-footer p { margin-top: 9px; color: var(--muted); font-size: 12px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 25px; }
.site-footer nav a { padding-block: 9px; color: var(--muted); font-size: 12px; text-decoration: none; }
.site-footer .footer-credit { margin: 0; text-align: right; font-size: 11px; }
.footer-credit a { text-decoration: none; }

.image-dialog { width: min(1440px, calc(100% - 40px)); max-width: none; height: calc(100dvh - 40px); max-height: calc(100dvh - 40px); padding: 0; overflow: hidden; background: #0c1811; color: var(--text); border: 1px solid #4e6b57; border-radius: 12px; box-shadow: 0 30px 100px #0008; }
.image-dialog[open] { display: flex; flex-direction: column; }
.image-dialog::backdrop { background: #020805e8; }
.dialog-toolbar { display: flex; flex-shrink: 0; align-items: center; gap: 25px; padding: 14px 20px; border-bottom: 1px solid var(--border); font-size: 12px; }
.dialog-counter { color: var(--muted); }
.dialog-original { margin-left: auto; color: var(--accent); }
.image-dialog button { min-width: 44px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 5px; background: #1d3024; color: var(--text); font-size: 13px; }
.image-dialog button:hover { border-color: var(--accent); }
.dialog-close span { margin-left: 12px; font-size: 20px; }
.dialog-image-wrap { flex: 1; min-height: 0; padding: 15px; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }
.dialog-image-wrap:focus-visible { outline-offset: -3px; }
.dialog-image { width: auto; max-width: 100%; height: auto; max-height: none; margin-inline: auto; object-fit: contain; }
.dialog-bottom { display: grid; flex-shrink: 0; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 15px 20px; border-top: 1px solid var(--border); }
.dialog-bottom p { color: #c5d4ca; font-size: 12px; text-align: center; }

@media (min-width: 1550px) {
  .hero { padding-block: 95px 115px; }
}

@media (max-width: 1100px) {
  .container { width: calc(100% - 56px); }
  .site-header { gap: 20px; }
  .site-nav { gap: 22px; }
  .hero { gap: 44px; }
  .hero-actions { gap: 15px; }
  .product-story { gap: 45px; }
  .faq-section { gap: 45px; }
  .download-panel { padding: 42px; gap: 35px; }
  .site-footer { flex-wrap: wrap; }
}

@media (max-width: 800px) {
  .security-inner { grid-template-columns: auto 1fr; gap: 12px; }
  .security-inner > a { grid-column: 2; width: fit-content; }
  .security-icon { align-self: start; margin-top: 2px; }
  .site-header { grid-template-columns: 1fr auto; padding-block: 22px 15px; row-gap: 17px; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; gap: 38px; border-block: 1px solid var(--border); }
  .hero { grid-template-columns: 1fr; gap: 48px; padding-block: 45px 50px; }
  .hero-copy { max-width: 560px; }
  h1 { font-size: clamp(52px, 10vw, 76px); }
  .hero-description { font-size: 18px; }
  .principles > div { gap: 10px; padding-inline: 16px; }
  .principles strong { font-size: 13px; }
  .principles p > span { font-size: 11px; }
  .section { padding-block: 75px; }
  .section-heading { gap: 30px; }
  .section-heading > p { max-width: 250px; font-size: 13px; }
  .steps li { padding-inline: 20px; }
  .steps h3 { font-size: 18px; }
  .steps p { font-size: 13px; }
  .preview-section { padding-top: 65px; }
  .product-story { gap: 30px; padding-block: 48px; }
  .story-copy { column-gap: 32px; }
  .story-mobile { grid-template-columns: minmax(0, 1fr); gap: 35px; }
  .story-mobile .story-copy h3 { font-size: 32px; }
  .story-mobile .story-copy > p:not(.eyebrow) { font-size: 14px; }
  .faq-section { grid-template-columns: 1fr; gap: 35px; }
  .download-panel { grid-template-columns: 1fr; gap: 35px; }
  .download-actions { align-items: flex-start; }
  .download-actions > img { display: none; }
  .download-actions > p { text-align: left; }
  .download-section { padding-bottom: 65px; }
  .site-footer nav { gap: 20px; }
  .site-footer .footer-credit { flex-basis: 100%; text-align: left; }
}

@media (max-width: 540px) {
  .container { width: calc(100% - 36px); }
  .security-inner { padding-block: 14px; }
  .security-inner strong { font-size: 12px; }
  .security-inner p { font-size: 11px; }
  .security-inner > a { font-size: 11px; }
  .brand { gap: 8px; font-size: 17px; }
  .brand img { width: 31px; height: 31px; }
  .github-link { gap: 7px; padding: 8px 10px; font-size: 12px; }
  .github-link .icon { width: 16px; height: 16px; }
  .site-nav { gap: 26px; }
  .site-nav a { font-size: 12px; }
  .hero { padding-top: 35px; }
  .hero-copy { text-align: left; }
  .hero-actions, .hero-footnote { justify-content: flex-start; }
  h1 { font-size: clamp(44px, 11.8vw, 64px); margin-top: 25px; }
  .hero-description { font-size: 16px; }
  .hero-actions { gap: 13px 22px; margin-top: 26px; }
  .hero-actions .button { padding-inline: 17px; gap: 16px; }
  .hero-actions .text-link { font-size: 12px; }
  .hero-product figcaption { font-size: 10px; }
  .hero-product figcaption > span:last-child { display: none; }
  .product-topline { font-size: 9px; }
  .principles { grid-template-columns: 1fr; padding-block: 6px; }
  .principles > div, .principles > div:first-child, .principles > div:last-child { border-right: 0; padding: 16px 0; gap: 20px; }
  .principles > div + div { border-top: 1px solid var(--border); }
  .principles strong { font-size: 14px; }
  .principles p > span { font-size: 12px; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading > p { max-width: 100%; margin-top: 20px; font-size: 14px; }
  h2 { font-size: 35px; }
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li:first-child, .steps li:last-child { padding: 26px 0; border-right: 0; }
  .steps li + li { border-top: 1px solid var(--border); }
  .step-number { margin-bottom: 17px; }
  .steps h3 { font-size: 21px; }
  .steps p { margin-bottom: 18px; font-size: 14px; }
  .section { padding-block: 65px; }
  .story-copy h3 { font-size: 33px; }
  .story-copy { display: block; }
  .story-copy > p:not(.eyebrow) { margin-top: 21px; }
  .story-mobile { grid-template-columns: 1fr; }
  .story-mobile .story-copy { max-width: none; }
  .connection-route { margin-top: 28px; }
  .mobile-figure { margin-top: 8px; }
  .preview-note { text-align: left; font-size: 11px; }
  .faq-list summary { font-size: 14px; }
  .faq-answer { padding-right: 0; font-size: 13px; }
  .download-panel { padding: 32px 22px; }
  .download-copy h2 { font-size: clamp(32px, 8.2vw, 44px); }
  .download-copy > p:not(.eyebrow) { font-size: 14px; }
  .desktop-break { display: none; }
  .download-meta { gap: 10px; font-size: 9px; }
  .download-meta span + span { padding-left: 10px; }
  .download-actions, .download-actions .button { width: 100%; }
  .download-actions .button { gap: 12px; padding-inline: 12px; }
  .site-footer { gap: 25px; }
  .site-footer nav { flex-basis: 100%; gap: 23px; }
  .image-dialog { width: calc(100% - 16px); height: calc(100dvh - 16px); max-height: calc(100dvh - 16px); border-radius: 8px; }
  .dialog-toolbar { padding: 8px; gap: 10px; font-size: 10px; }
  .dialog-close { padding-inline: 9px !important; }
  .dialog-close span { margin-left: 5px; }
  .dialog-image-wrap { padding: 8px; }
  .dialog-bottom { gap: 10px; padding: 8px; }
  .dialog-bottom p { font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
