:root {
  --black: #0c0d0b;
  --black-2: #151612;
  --black-3: #20211c;
  --paper: #f1efe8;
  --paper-2: #dedbd1;
  --ink: #151612;
  --muted: #8c8e84;
  --line-dark: #303229;
  --line-light: #c8c5bb;
  --green: #b8ef3d;
  --amber: #ffb44c;
  font-family: "Bahnschrift", "DIN Alternate", "Aptos", sans-serif;
  color: #f8f7f1;
  background: var(--black);
  letter-spacing: 0;
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--black); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; letter-spacing: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 72px;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) 86px;
  align-items: center;
  padding: 0 28px;
  border-bottom: 1px solid var(--line-dark);
  background: rgba(12, 13, 11, .96);
  backdrop-filter: blur(14px);
}
.site-brand { display: inline-flex; align-items: center; gap: 12px; width: max-content; }
.site-brand strong { display: block; font-size: 16px; line-height: 1; }
.site-brand small { display: block; margin-top: 5px; color: #777a70; font-size: 9px; }
.site-mark { width: 38px; height: 38px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 3px; padding: 6px; border: 1px solid #46483e; }
.site-mark i { display: block; height: 30%; background: var(--green); }
.site-mark i:nth-child(2) { height: 72%; }
.site-mark i:nth-child(3) { height: 100%; }
.site-mark i:nth-child(4) { height: 52%; }
.site-nav { justify-self: center; display: flex; align-items: center; gap: 32px; }
.site-nav a { position: relative; color: #9b9d93; font-size: 12px; padding: 27px 0 25px; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -1px; height: 2px; background: var(--green); transition: right .2s ease; }
.site-nav a:hover { color: #fff; }
.site-nav a:hover::after { right: 0; }
.admin-entry { justify-self: end; width: 72px; height: 36px; display: grid; place-items: center; border: 1px solid #4a4c42; border-radius: 4px; color: #d5d5ce; font-size: 12px; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.admin-entry:hover { color: var(--black); background: var(--green); border-color: var(--green); }

.hero { min-height: 710px; padding: 40px 28px 0; overflow: hidden; border-bottom: 1px solid var(--line-dark); }
.hero-copy { width: min(1180px, 100%); margin: 0 auto 24px; position: relative; z-index: 2; }
.kicker { display: flex; align-items: center; gap: 9px; color: #96998e; font-size: 10px; font-weight: 700; margin: 0 0 14px; }
.kicker span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 14px rgba(184, 239, 61, .48); }
.hero h1 { margin: 0; font-size: 74px; line-height: .95; font-weight: 650; }
.hero-lead { margin: 16px 0 0; color: var(--paper); font-size: 26px; font-weight: 520; }
.hero-detail { max-width: 620px; margin: 11px 0 0; color: #999b91; font-size: 14px; line-height: 1.75; }
.hero-actions { display: flex; align-items: stretch; gap: 20px; margin-top: 24px; }
.primary-action { width: 210px; min-height: 48px; padding: 0 15px; display: flex; justify-content: space-between; align-items: center; border-radius: 4px; background: var(--green); color: #12160a; font-size: 13px; font-weight: 750; }
.primary-action:hover { background: #c8ff50; }
.latency { min-width: 145px; border-left: 1px solid var(--line-dark); padding: 5px 0 4px 17px; }
.latency b, .latency small { display: block; }
.latency b { color: var(--amber); font-size: 17px; }
.latency small { color: #787b71; font-size: 9px; margin-top: 5px; }
.product-stage { position: relative; width: min(900px, calc(100% - 40px)); height: 380px; margin: 0 auto; border-top: 1px solid #3b3d33; }
.product-stage::before, .product-stage::after { content: ""; position: absolute; top: -6px; width: 11px; height: 11px; background: var(--green); z-index: 3; }
.product-stage::before { left: 0; }
.product-stage::after { right: 0; background: var(--amber); }
.product-stage img { display: block; width: 100%; height: auto; max-height: 350px; object-fit: contain; object-position: top center; filter: drop-shadow(0 28px 50px rgba(0,0,0,.45)); }
.product-stage figcaption { display: flex; justify-content: space-between; gap: 20px; padding: 10px 2px 0; color: #74776d; font-size: 9px; text-transform: uppercase; }
.stage-index { position: absolute; right: -58px; top: 25%; writing-mode: vertical-rl; color: #34362e; font-size: 11px; }

.section-band { scroll-margin-top: 72px; }
.demo { padding: 76px 28px 88px; background: var(--black-2); }
.demo-console { width: min(1100px, 100%); margin: 0 auto; border-top: 2px solid var(--green); background: #090b09; box-shadow: 0 32px 72px rgba(0,0,0,.38); overflow: hidden; }
.demo-plugin-frame { position: relative; width: 100%; aspect-ratio: 1100 / 720; overflow: hidden; background: #0b0f0c; }
.demo-plugin-frame > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.demo-plugin-frame canvas { position: absolute; left: 5.82%; top: 17.64%; width: 90.55%; height: 40.83%; display: block; pointer-events: none; }
.demo-live-badge { position: absolute; left: 2.1%; bottom: 3.2%; display: inline-flex; align-items: center; gap: 7px; padding: 4px 7px; border: 1px solid rgba(73,233,154,.36); background: rgba(7,12,9,.82); color: #49e99a; font: 8px "Cascadia Mono", monospace; }
.demo-live-badge i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.demo-controls { min-height: 98px; display: grid; grid-template-columns: 190px 142px minmax(180px,1fr) 280px; align-items: center; gap: 20px; padding: 18px; border-top: 1px solid var(--line-dark); }
.demo-source { display: flex; align-items: center; gap: 11px; min-width: 0; }
.demo-source-mark { flex: 0 0 auto; width: 9px; height: 9px; background: var(--green); box-shadow: 0 0 14px rgba(184, 239, 61, .45); }
.demo-source strong, .demo-source small { display: block; }
.demo-source strong { color: #e7e6df; font: 11px "Cascadia Mono", monospace; }
.demo-source small { margin-top: 5px; overflow: hidden; color: #73776d; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.demo-mode-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #34372f; border-radius: 3px; overflow: hidden; }
.demo-mode-switch button { min-width: 0; height: 54px; border: 0; border-right: 1px solid #34372f; background: #171a16; color: #8d9187; cursor: pointer; }
.demo-mode-switch button:last-child { border-right: 0; }
.demo-mode-switch button span, .demo-mode-switch button small { display: block; }
.demo-mode-switch button span { font-size: 11px; font-weight: 720; }
.demo-mode-switch button small { margin-top: 3px; color: #666b61; font-size: 8px; }
.demo-mode-switch button.active { background: #153424; color: #55efa2; box-shadow: inset 0 0 0 1px #49e99a; }
.demo-mode-switch button.active small { color: #8acbab; }
.demo-play { height: 46px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--green); border-radius: 3px; background: transparent; color: var(--green); cursor: pointer; }
.demo-play:hover, .demo-play[aria-pressed="true"] { background: var(--green); color: #11140b; }
.demo-play:disabled { cursor: wait; opacity: .55; }
.demo-play span { width: 14px; font-size: 12px; }
.demo-play b { font-size: 11px; }
.demo-timeline { min-width: 0; }
.demo-timeline input { width: 100%; height: 20px; margin: 0; cursor: pointer; accent-color: var(--green); }
.demo-timeline p { display: flex; justify-content: space-between; margin: 2px 0 0; color: #73776d; font: 8px "Cascadia Mono", monospace; }
.demo-note { margin: 0; padding: 11px 18px 13px; border-top: 1px solid #252820; color: #666a61; font-size: 9px; line-height: 1.55; }
.demo-note span { margin-right: 8px; color: var(--amber); font-weight: 700; }
.capabilities, .requirements { background: var(--paper); color: var(--ink); padding: 76px 28px 88px; }
.section-heading { width: min(1180px, 100%); margin: 0 auto 38px; display: grid; grid-template-columns: 170px 1fr; align-items: end; border-bottom: 1px solid var(--line-light); padding-bottom: 16px; }
.section-heading p { margin: 0; color: #77766f; font-size: 10px; font-weight: 700; }
.section-heading h2 { margin: 0; font-size: 32px; font-weight: 600; }
.section-heading.light { border-bottom-color: var(--line-dark); }
.section-heading.light p { color: #7b7e73; }
.capability-grid { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); }
.capability-grid article { min-height: 214px; padding: 24px 22px 28px; border-right: 1px solid var(--line-light); }
.capability-grid article:last-child { border-right: 0; }
.capability-grid b { color: #9d9a90; font: 10px "Cascadia Mono", monospace; }
.capability-grid h3 { min-height: 48px; margin: 42px 0 11px; font-size: 18px; font-weight: 620; }
.capability-grid p { margin: 0; color: #6e6c65; font-size: 12px; line-height: 1.65; }

.scenarios { padding: 76px 28px 88px; background: var(--black-2); }
.scenario-list { width: min(1180px, 100%); margin: 0 auto; border-top: 1px solid var(--line-dark); }
.scenario-list article { display: grid; grid-template-columns: 170px 270px minmax(0,1fr); align-items: center; min-height: 108px; border-bottom: 1px solid var(--line-dark); }
.scenario-list span { color: var(--green); font: 11px "Cascadia Mono", monospace; }
.scenario-list h3 { margin: 0; font-size: 24px; font-weight: 560; }
.scenario-list p { margin: 0; color: #92958a; font-size: 13px; line-height: 1.65; }

.requirements { padding-top: 76px; }
.spec-layout { width: min(1180px, 100%); margin: 0 auto; display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 72px; }
.spec-intro p { margin: 0 0 18px; font-size: 18px; line-height: 1.55; }
.spec-intro span { color: #7a7870; font-size: 11px; }
.spec-table { margin: 0; border-top: 2px solid var(--ink); }
.spec-table div { min-height: 54px; display: grid; grid-template-columns: 130px 1fr; align-items: center; border-bottom: 1px solid var(--line-light); }
.spec-table dt { color: #77756e; font-size: 10px; font-weight: 700; }
.spec-table dd { margin: 0; font-size: 13px; }

.download-section { scroll-margin-top: 72px; padding: 78px max(28px, calc((100% - 1180px) / 2)); display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 80px; align-items: center; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: var(--black); }
.download-copy h2 { margin: 0 0 14px; font-size: 42px; font-weight: 600; }
.download-copy > p:last-child { max-width: 560px; margin: 0; color: #92958a; font-size: 13px; line-height: 1.7; }
.download-release { border-top: 3px solid var(--green); padding-top: 16px; }
.release-meta { display: grid; grid-template-columns: 1fr auto; align-items: end; margin-bottom: 16px; }
.release-meta small { grid-column: 1 / -1; color: #7f8178; font-size: 9px; margin-bottom: 7px; }
.release-meta strong { font-size: 28px; font-weight: 560; }
.release-meta span { color: #9b9d93; font-size: 11px; }
.download-button { width: 100%; min-height: 52px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--green); border-radius: 4px; background: var(--green); color: #12160a; font-size: 13px; font-weight: 750; }
.download-button:not(.disabled):hover { background: #c8ff50; }
.download-button.disabled { pointer-events: none; border-color: #3a3c33; background: #25271f; color: #74776c; }
.package-hash { min-height: 15px; margin: 10px 0 0; overflow-wrap: anywhere; color: #65685e; font: 9px/1.5 "Cascadia Mono", monospace; }

.changelog { scroll-margin-top: 72px; padding: 76px 28px 88px; background: var(--black-2); }
.changelog-list { width: min(1180px, 100%); margin: 0 auto; border-top: 1px solid var(--line-dark); }
.changelog-entry { min-height: 112px; display: grid; grid-template-columns: 70px 150px 190px minmax(0, 1fr); align-items: center; gap: 24px; border-bottom: 1px solid var(--line-dark); }
.changelog-index { color: var(--green); font: 10px "Cascadia Mono", monospace; }
.changelog-entry h3 { margin: 0; font-size: 23px; font-weight: 580; }
.changelog-meta { color: #73776d; font: 9px/1.6 "Cascadia Mono", monospace; }
.changelog-entry p { margin: 0; color: #a5a89d; font-size: 12px; line-height: 1.7; white-space: pre-line; }
.changelog-status { margin: 0; padding: 28px 0; border-bottom: 1px solid var(--line-dark); color: #777b70; font-size: 12px; }

.site-footer { min-height: 120px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 46px; padding: 24px 28px; color: #696c62; font-size: 10px; }
.footer-brand { color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: reveal .55s both; }
  .hero-copy > *:nth-child(2) { animation-delay: .06s; }
  .hero-copy > *:nth-child(3) { animation-delay: .12s; }
  .hero-copy > *:nth-child(4) { animation-delay: .18s; }
  .hero-copy > *:nth-child(5) { animation-delay: .24s; }
  .product-stage { animation: stage-in .7s .2s both; }
  @keyframes reveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes stage-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
}

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr 72px; padding: 0 18px; }
  .site-nav { display: none; }
  .hero { min-height: 720px; padding: 46px 18px 0; }
  .hero h1 { font-size: 58px; }
  .product-stage { width: 100%; height: 420px; }
  .stage-index { display: none; }
  .demo-controls { grid-template-columns: 170px 132px minmax(150px,1fr); }
  .demo-mode-switch { grid-column: 1 / -1; }
  .capability-grid { grid-template-columns: 1fr 1fr; }
  .capability-grid article:nth-child(2) { border-right: 0; }
  .capability-grid article:nth-child(n+3) { border-top: 1px solid var(--line-light); }
  .scenario-list article { grid-template-columns: 70px 200px minmax(0,1fr); }
  .spec-layout { grid-template-columns: 1fr; gap: 36px; }
  .changelog-entry { grid-template-columns: 54px 120px 170px minmax(0, 1fr); gap: 16px; }
  .download-section { grid-template-columns: 1fr; gap: 42px; }
}

@media (max-width: 600px) {
  .site-header { height: 64px; padding: 0 14px; }
  .site-brand small { display: none; }
  .site-mark { width: 34px; height: 34px; }
  .admin-entry { width: 64px; height: 34px; }
  .hero { min-height: 610px; padding: 36px 14px 0; }
  .hero h1 { font-size: 46px; }
  .hero-lead { font-size: 21px; }
  .hero-detail { font-size: 12px; }
  .hero-actions { flex-direction: column; gap: 13px; }
  .primary-action { width: 100%; }
  .latency { border-left: 0; padding-left: 0; }
  .product-stage { height: 255px; width: 100%; margin-top: 26px; }
  .product-stage figcaption span:last-child { display: none; }
  .demo, .capabilities, .requirements, .scenarios, .changelog { padding: 58px 14px 64px; }
  .section-heading { grid-template-columns: 1fr; gap: 9px; }
  .section-heading h2 { font-size: 27px; }
  .demo-console { border-left: 1px solid var(--line-dark); border-right: 1px solid var(--line-dark); }
  .demo-live-badge { display: none; }
  .demo-controls { grid-template-columns: 1fr; gap: 14px; padding: 16px; }
  .demo-mode-switch { grid-column: auto; width: 100%; }
  .demo-play { width: 100%; }
  .demo-source { min-height: 34px; }
  .demo-note { padding-inline: 16px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 158px; border-right: 0; border-top: 1px solid var(--line-light); }
  .capability-grid article:first-child { border-top: 0; }
  .capability-grid h3 { min-height: 0; margin-top: 26px; }
  .scenario-list article { grid-template-columns: 48px 1fr; padding: 21px 0; }
  .scenario-list h3 { font-size: 20px; }
  .scenario-list p { grid-column: 2; margin-top: 8px; font-size: 12px; }
  .spec-table div { grid-template-columns: 92px 1fr; gap: 14px; padding: 10px 0; }
  .changelog-entry { grid-template-columns: 44px 1fr; gap: 8px 12px; padding: 20px 0; }
  .changelog-entry h3 { font-size: 20px; }
  .changelog-meta { grid-column: 2; }
  .changelog-entry p { grid-column: 2; margin-top: 4px; }
  .download-section { padding: 58px 14px 64px; }
  .download-copy h2 { font-size: 34px; }
  .release-meta { grid-template-columns: 1fr; }
  .release-meta span { margin-top: 5px; }
  .site-footer { grid-template-columns: 1fr; gap: 18px; padding: 34px 14px; }
}
