:root {
  color-scheme: dark;
  --ink: #fff8ef;
  --muted: #aeb5bf;
  --dim: #747c88;
  --line: rgba(255, 239, 224, 0.13);
  --surface: #0b0d11;
  --panel: #14171c;
  --panel-2: #1b1f26;
  --flame: #ff5a1f;
  --amber: #ffa12b;
  --green: #75e0a7;
  --radius: 22px;
  --display: "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font: 16px/1.55 var(--body); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
p, h1, h2, h3, blockquote { margin-top: 0; }
code { padding: .12em .34em; border: 1px solid var(--line); border-radius: 6px; background: #080504; color: var(--amber); }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 76px); transition: background .2s, border-color .2s; border-bottom: 1px solid transparent;
}
.site-header.scrolled { border-color: var(--line); background: rgba(16, 9, 8, .86); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 850; letter-spacing: -.02em; }
.brand img { border-radius: 10px; }
nav { display: flex; gap: clamp(16px, 3vw, 34px); color: var(--muted); font-size: .9rem; font-weight: 700; }
nav a:hover, footer a:hover { color: var(--amber); }

.hero {
  position: relative; min-height: 790px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(360px, .8fr);
  gap: clamp(40px, 7vw, 100px); align-items: center; overflow: hidden; padding: 150px clamp(20px, 6vw, 92px) 90px;
  border-bottom: 1px solid var(--line); background: radial-gradient(circle at 76% 40%, #31130d 0, #111217 34%, transparent 62%);
}
.hero::before { content: ""; position: absolute; inset: 0; opacity: .16; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, #000, transparent 82%); }
.hero-glow { position: absolute; width: 500px; height: 500px; right: 12%; top: 18%; border-radius: 50%; background: var(--flame); opacity: .09; filter: blur(100px); }
.hero-copy, .product-shot { position: relative; z-index: 2; }
.eyebrow { margin-bottom: 14px; color: var(--amber); font-size: .74rem; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
h1, h2 { font-family: var(--display); font-weight: 900; letter-spacing: -.065em; }
h1 { margin-bottom: 26px; font-size: clamp(4.5rem, 8vw, 8rem); line-height: .82; text-transform: uppercase; }
h1 em { color: var(--flame); font-style: normal; }
h2 { margin-bottom: 20px; font-size: clamp(2.7rem, 5vw, 5rem); line-height: .94; text-transform: uppercase; }
h3 { line-height: 1.2; }
.lede { margin-bottom: 10px; font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 780; letter-spacing: -.035em; }
.summary { max-width: 670px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 50px; padding: 12px 20px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); font-weight: 800; transition: transform .16s, border-color .16s, background .16s; }
.button span { color: var(--muted); font-size: .76rem; font-weight: 650; }
.button:hover { transform: translateY(-2px); border-color: rgba(255,172,50,.5); background: rgba(255,172,50,.07); }
.button.primary { border-color: var(--flame); background: var(--flame); color: #190704; }
.button.primary span { color: rgba(25,7,4,.65); }
.button:focus-visible, a:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }

.product-shot { justify-self: center; width: min(100%, 540px); padding: 18px; border: 1px solid var(--line); border-radius: 30px; background: rgba(255,255,255,.035); box-shadow: 0 35px 100px rgba(0,0,0,.5); transform: rotate(1.5deg); }
.product-shot > img { display: block; width: 100%; border-radius: 18px; }
.shot-label { display: flex; align-items: center; gap: 8px; padding: 0 4px 14px; color: var(--muted); font-size: .78rem; font-weight: 750; }
.float-card { position: absolute; display: grid; min-width: 190px; padding: 14px 18px; border: 1px solid rgba(255,172,50,.32); border-radius: 14px; background: rgba(25,12,9,.92); box-shadow: 0 18px 40px rgba(0,0,0,.4); transform: rotate(-1.5deg); }
.float-card strong { color: var(--amber); }
.float-card span { color: var(--muted); font-size: .76rem; }
.float-top { right: -42px; top: 22%; }
.float-bottom { left: -52px; bottom: 12%; }

.section { padding: clamp(72px, 8vw, 118px) clamp(20px, 6vw, 92px); border-bottom: 1px solid var(--line); scroll-margin-top: 78px; }
.section-heading { max-width: 1120px; margin-bottom: 55px; }
.split-heading { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .55fr); gap: 60px; align-items: end; max-width: none; }
.split-heading > p { color: var(--muted); }
.downloads { background: #0d0f13; }
.download-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.download-card { display: flex; flex-direction: column; min-height: 330px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.download-card.featured { background: linear-gradient(145deg, #29130e, #15171b 72%); border-color: rgba(255,90,31,.42); }
.download-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 50px; }
.platform-mark { color: var(--amber); font-size: .74rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.status { padding: 5px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.status-ready { color: var(--green); border-color: rgba(117,224,167,.3); }
.download-card h3 { margin-bottom: 14px; font-size: 1.55rem; }
.download-card p { color: var(--muted); }
.download-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; padding-top: 25px; }
.download-actions .button { flex: 1 1 150px; padding: 10px 14px; border-radius: 12px; font-size: .84rem; }

.features { background: linear-gradient(180deg, #111318, #0b0d11); }
.feature-stack { border-top: 1px solid var(--line); }
.feature-block { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 30px; padding: 48px 0; border-bottom: 1px solid var(--line); }
.feature-number { color: var(--dim); font-family: var(--display); font-size: 2rem; font-weight: 900; }
.feature-block > div:last-child { display: grid; grid-template-columns: minmax(280px, .7fr) minmax(300px, 1fr); column-gap: clamp(30px, 7vw, 100px); }
.feature-block .eyebrow { grid-column: 1 / -1; }
.feature-block h3 { margin: 0; font-family: var(--display); font-size: clamp(2rem, 4vw, 4rem); letter-spacing: -.045em; line-height: .95; text-transform: uppercase; }
.feature-block p, .feature-block ul { color: var(--muted); }
.feature-block ul { margin: 0; padding-left: 20px; }
.feature-block li { margin-bottom: 9px; }

.details { background: #f4eee7; color: #1b100d; }
.details .eyebrow { color: #b83312; }
.details-intro { display: grid; grid-template-columns: 1fr .7fr; gap: 40px 90px; margin-bottom: 52px; }
.details-intro .eyebrow { grid-column: 1 / -1; }
.details-intro p:last-child { color: #6c5b53; font-size: 1.08rem; }
.details code { border-color: rgba(27,16,13,.15); background: #fff; color: #b83312; }
.architecture { max-width: 1050px; margin: 0 auto 70px; padding: clamp(22px, 4vw, 46px); border: 1px solid rgba(27,16,13,.15); border-radius: 28px; background: #fffaf4; box-shadow: 0 28px 60px rgba(57,31,22,.11); }
.surface-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.surface-row div { display: grid; padding: 22px; border: 1px solid rgba(27,16,13,.12); border-radius: 16px; background: #fff; }
.surface-row span { color: #8b756b; font-size: .75rem; text-transform: uppercase; }
.connector { width: 1px; height: 34px; margin: 0 auto; background: #df6a36; }
.engine-row { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid #d45624; border-radius: 14px; background: #f26a2b; color: #2a0c03; }
.engine-row span { padding: 18px 8px; border-right: 1px solid rgba(42,12,3,.2); text-align: center; font-size: .82rem; font-weight: 850; }
.engine-row span:last-child { border: 0; }
.backblaze-row { margin-top: 12px; padding: 15px; border-radius: 12px; background: #21110d; color: #fff1e5; text-align: center; font-weight: 800; }
.detail-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.detail-grid article { padding: 24px; border-top: 2px solid #d45624; background: rgba(255,255,255,.48); }
.detail-grid article > span { color: #b83312; font-size: .72rem; font-weight: 850; }
.detail-grid p { color: #6c5b53; font-size: .9rem; }
.guardrail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.guardrail-grid article { min-height: 220px; padding: 28px; border: 1px solid rgba(27,16,13,.13); border-radius: 18px; background: rgba(255,255,255,.54); }
.guardrail-grid article > span { color: #b83312; font-size: .72rem; font-weight: 850; }
.guardrail-grid h3 { margin-top: 24px; font-size: 1.25rem; }
.guardrail-grid p { color: #6c5b53; }

.trust { text-align: center; background: radial-gradient(circle at 50% 40%, #28120d, #0b0d11 64%); }
.trust h2 { max-width: 1050px; margin: 0 auto 28px; }
.trust > p:not(.eyebrow) { max-width: 720px; margin: 0 auto; color: var(--muted); }
.trust-pills { display: flex; justify-content: center; flex-wrap: wrap; gap: 9px; margin-top: 35px; }
.trust-pills span { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .78rem; }

.releases { background: #0b0d11; }
.note-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.note-card { padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.note-card > span { display: inline-block; margin-bottom: 18px; padding: 4px 8px; border-radius: 999px; background: rgba(255,172,50,.12); color: var(--amber); font-size: .68rem; font-weight: 850; text-transform: uppercase; }
.note-card p { color: var(--muted); }
.archive-wrap { margin-top: 70px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 700px; }
th:nth-child(1) { width: 10%; }
th:nth-child(2) { width: 14%; }
th:nth-child(3) { width: 38%; }
th:nth-child(4) { width: 38%; }
th, td { padding: 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--dim); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
td { color: var(--muted); font-size: .87rem; }
.archive-version a { color: var(--amber); font-weight: 850; }
.archive-version a:hover { text-decoration: underline; }
.archive-date { white-space: nowrap; font-variant-numeric: tabular-nums; }

.final-cta { display: grid; place-items: center; min-height: 560px; text-align: center; background: linear-gradient(145deg, #22100b, #0b0d11); }
.final-cta img { margin-bottom: 24px; border-radius: 20px; box-shadow: 0 20px 60px rgba(255,90,31,.22); }
.final-cta .hero-actions { justify-content: center; }
footer { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 30px; align-items: center; padding: 30px clamp(20px, 6vw, 92px); color: var(--dim); font-size: .8rem; }
footer > .brand { justify-self: start; }
footer > span { text-align: center; }
footer > div { display: flex; flex-wrap: wrap; justify-self: end; justify-content: flex-end; gap: 16px; }

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 130px; }
  .product-shot { width: min(85%, 540px); }
  .download-grid, .note-grid { grid-template-columns: 1fr; }
  .download-card { min-height: 280px; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .feature-block > div:last-child, .details-intro, .split-heading { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 650px) {
  .site-header { position: absolute; padding: 14px 18px; }
  nav { gap: 13px; font-size: .75rem; }
  nav a:nth-child(3), nav a:nth-child(4) { display: none; }
  .hero { min-height: auto; padding: 115px 20px 75px; }
  h1 { font-size: clamp(4rem, 20vw, 6rem); }
  .product-shot { width: 100%; transform: none; }
  .float-card { display: none; }
  .feature-block { grid-template-columns: 1fr; gap: 12px; }
  .detail-grid { grid-template-columns: 1fr; }
  .guardrail-grid { grid-template-columns: 1fr; }
  .engine-row { grid-template-columns: 1fr 1fr; }
  .engine-row span:nth-child(2) { border-right: 0; }
  .engine-row span:nth-child(-n+2) { border-bottom: 1px solid rgba(42,12,3,.2); }
  footer { grid-template-columns: 1fr; text-align: center; }
  footer > span { order: 3; }
  footer > div, footer .brand { justify-self: center; justify-content: center; }
}

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