@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&family=Newsreader:opsz,wght@6..72,500;6..72,600&family=Vazirmatn:wght@400;500;600;700&display=swap");

:root {
  --recorder: #060806;
  --carbon: #0d110e;
  --carbon-high: #151b16;
  --bone: #f2f0e8;
  --ash: #929a92;
  --line: #343b35;
  --lime: #c8ff5a;
  --orange: #ff7448;
  --cold: #a7c7c2;
  --fault: #ff5568;
  --mono: "IBM Plex Mono", "Cascadia Mono", monospace;
  --display: "Newsreader", Georgia, serif;
  --fa: "Vazirmatn", sans-serif;
  --page: min(1560px, calc(100vw - 48px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--recorder); }
body {
  margin: 0;
  color: var(--bone);
  background:
    linear-gradient(90deg, transparent 0 8.2%, #c8ff5a0b 8.2% calc(8.2% + 1px), transparent calc(8.2% + 1px)),
    repeating-linear-gradient(0deg, transparent 0 47px, #f2f0e807 47px 48px),
    var(--recorder);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
  z-index: 20;
}
body[data-lang="fa"] { font-family: var(--fa); }
a { color: inherit; }
button, input { font: inherit; }
button { color: inherit; }
.copy.fa { display: none; }
body[data-lang="fa"] .copy.en { display: none; }
body[data-lang="fa"] .copy.fa { display: initial; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  transform: translateY(-180%);
  padding: 10px 14px;
  color: var(--recorder);
  background: var(--lime);
  z-index: 100;
}
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 4px; }

.release-header {
  width: 100%;
  min-height: 78px;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 30px;
  padding: 14px max(24px, calc((100vw - var(--page)) / 2));
  border-bottom: 1px solid var(--line);
  background: #060806ed;
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; letter-spacing: .12em; font-weight: 600; }
.brand img { width: 38px; height: 38px; filter: grayscale(1) brightness(2.2); }
.header-state { display: flex; align-items: center; gap: 9px; color: var(--cold); font-size: 10px; letter-spacing: .11em; }
.pulse { width: 8px; height: 8px; background: var(--lime); box-shadow: 0 0 0 5px #c8ff5a16; }
.release-header nav { justify-self: end; display: flex; }
.release-header nav a { padding: 7px 12px; border-inline-start: 1px solid var(--line); color: var(--ash); text-decoration: none; font-size: 10px; text-transform: uppercase; }
.release-header nav a:hover { color: var(--lime); }
.language-toggle { border: 0; border-bottom: 1px solid var(--bone); padding: 8px 2px; background: transparent; cursor: pointer; }
.language-toggle b { color: var(--orange); padding: 0 4px; }

main > section, footer { width: var(--page); margin-inline: auto; }
.release-hero {
  min-height: calc(100svh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(390px, .88fr);
  gap: clamp(48px, 8vw, 140px);
  align-items: center;
  padding: clamp(70px, 10vw, 150px) 0;
  position: relative;
}
.release-hero::before {
  content: "FIELD / RC-001";
  position: absolute;
  top: 24px;
  left: 0;
  color: var(--orange);
  font-size: 9px;
  letter-spacing: .18em;
}
.eyebrow { display: flex; gap: 14px; color: var(--ash); font-size: 10px; letter-spacing: .13em; }
.eyebrow span:first-child { color: var(--lime); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 10ch;
  margin: 24px 0 34px;
  font: 500 clamp(70px, 8.4vw, 142px)/.78 var(--display);
  letter-spacing: -.055em;
}
h1 em { color: var(--lime); font-style: italic; }
body[data-lang="fa"] h1 { font-family: var(--fa); line-height: .98; letter-spacing: -.045em; max-width: 12ch; }
.hero-deck { max-width: 66ch; color: var(--ash); font-size: clamp(15px, 1.4vw, 19px); line-height: 1.72; }
.release-actions { display: flex; align-items: stretch; margin-top: 36px; }
.download-action {
  flex: 0 1 470px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 18px;
  color: var(--recorder);
  background: var(--lime);
  text-decoration: none;
  clip-path: polygon(0 0, 94% 0, 100% 35%, 100% 100%, 0 100%);
}
.download-action small, .download-action b { display: block; }
.download-action small { font-size: 9px; letter-spacing: .1em; }
.download-action b { margin-top: 4px; font-size: 13px; }
.download-action i { font: normal 31px/1 var(--display); }
.download-action:hover { background: var(--bone); }
.download-action.is-loading { opacity: .45; pointer-events: none; }
.manifest-action { display: grid; place-items: center; padding: 0 18px; color: var(--bone); border: 1px solid var(--line); border-inline-start: 0; text-decoration: none; font-size: 10px; }
.manifest-action:hover { color: var(--orange); border-color: var(--orange); }
.release-warning { margin-top: 18px; color: var(--ash); font-size: 10px; }
.release-warning strong { color: var(--orange); margin-inline-end: 8px; }

.hash-recorder {
  position: relative;
  min-height: 610px;
  padding: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #151b16, #0a0d0b);
  clip-path: polygon(0 0, 91% 0, 100% 7%, 100% 100%, 8% 100%, 0 94%);
  box-shadow: 26px 28px 0 #c8ff5a0b;
}
.hash-recorder::before {
  content: "";
  position: absolute;
  inset: 0 72% 0 0;
  background: repeating-linear-gradient(0deg, transparent 0 24px, #c8ff5a30 24px 25px);
  border-inline-end: 1px solid #c8ff5a2c;
  pointer-events: none;
}
.hash-recorder > * { position: relative; z-index: 1; }
.hash-recorder header, .hash-recorder footer { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 9px; letter-spacing: .13em; }
.hash-recorder header b { color: var(--orange); }
.receipt-coordinate { margin: 44px 0 26px 31%; color: var(--lime); font-size: 10px; letter-spacing: .08em; }
.hash-recorder dl { margin: 0 0 30px 31%; }
.hash-recorder dl div { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid #343b3588; }
.hash-recorder dt { color: var(--ash); font-size: 9px; }
.hash-recorder dd { margin: 0; text-align: end; font-size: 10px; overflow: hidden; }
.hash-recorder code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--cold); }
.criteria-tally { margin: 0 0 34px 31%; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); }
.criteria-tally div { min-height: 96px; display: grid; place-content: center; text-align: center; border-inline-end: 1px solid var(--line); }
.criteria-tally div:last-child { border: 0; }
.criteria-tally b { font: 500 38px/1 var(--display); }
.criteria-tally div:first-child b { color: var(--lime); }
.criteria-tally div:nth-child(2) b { color: var(--orange); }
.criteria-tally div:last-child b { color: var(--fault); }
.criteria-tally span { margin-top: 8px; color: var(--ash); font-size: 8px; letter-spacing: .13em; }
.hash-recorder footer { margin-left: 31%; padding: 14px 0 0; border-top: 1px solid var(--line); border-bottom: 0; color: var(--ash); }
.hash-recorder footer b { color: var(--fault); }

.operation-rail { padding: 100px 0; border-top: 1px solid var(--line); }
.operation-rail > header, .command-deck > header, .criteria-ledger > header { display: grid; grid-template-columns: .8fr 1.2fr; align-items: end; gap: 30px; margin-bottom: 42px; }
.operation-rail header > span, .command-deck header > span, .criteria-ledger header span, .bay-copy > span, .boundary-strip > div > span { color: var(--orange); font-size: 9px; letter-spacing: .16em; }
h2 { margin-bottom: 0; font: 500 clamp(43px, 5vw, 78px)/.92 var(--display); letter-spacing: -.035em; }
body[data-lang="fa"] h2 { font-family: var(--fa); line-height: 1.15; }
.operation-rail ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.operation-rail li { display: grid; grid-template-columns: 90px .9fr; gap: 30px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.operation-rail li > span { color: var(--lime); font: 500 38px/1 var(--display); }
.operation-rail li div { display: grid; grid-template-columns: .75fr 1fr; gap: 32px; }
.operation-rail h3 { margin: 0; font-size: 15px; letter-spacing: .02em; }
.operation-rail p { margin: 0; color: var(--ash); max-width: 65ch; }

.verification-bay {
  display: grid;
  grid-template-columns: .74fr 1.26fr;
  gap: 70px;
  padding: clamp(55px, 8vw, 110px);
  background: var(--lime);
  color: var(--recorder);
  clip-path: polygon(0 0, 97% 0, 100% 13%, 100% 100%, 4% 100%, 0 91%);
}
.bay-copy > span { color: #455d20; }
.bay-copy h2 { margin: 20px 0 24px; }
.bay-copy p { max-width: 48ch; color: #334416; }
.verifier { padding: 22px; border: 1px solid #06080666; background: #f2f0e8; }
.file-drop { min-height: 116px; display: grid; place-content: center; text-align: center; border: 1px dashed #06080688; cursor: pointer; }
.file-drop:hover { background: white; }
.file-drop input { position: absolute; inline-size: 1px; block-size: 1px; opacity: 0; }
.file-drop span { font-size: 10px; letter-spacing: .12em; }
.file-drop b { display: block; margin-top: 12px; max-width: 48ch; overflow-wrap: anywhere; color: #4c554e; font-size: 10px; }
.verifier dl { margin: 22px 0 0; }
.verifier dl div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-top: 1px solid #06080628; }
.verifier dt { font-size: 9px; color: #4c554e; }
.verifier dd { margin: 0; overflow: hidden; }
.verifier code { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 9px; }
.verification-result { display: block; margin-top: 18px; padding: 12px; color: var(--bone); background: var(--recorder); font-size: 10px; letter-spacing: .08em; }
.verification-result.pass { background: #274300; }
.verification-result.fail { background: #711128; }

.command-deck { padding: 120px 0; }
.command-layout { display: grid; grid-template-columns: .72fr 1.28fr; border: 1px solid var(--line); }
.command-tabs { display: grid; }
.command-tabs button { display: grid; grid-template-columns: 40px 1fr; gap: 4px 16px; padding: 24px; text-align: start; border: 0; border-bottom: 1px solid var(--line); background: var(--carbon); cursor: pointer; }
.command-tabs button:last-child { border: 0; }
.command-tabs button[aria-selected="true"] { color: var(--recorder); background: var(--orange); }
.command-tabs button > span { grid-row: 1 / 3; color: currentColor; font: 500 30px/1 var(--display); }
.command-tabs button b { font-size: 11px; letter-spacing: .08em; }
.command-tabs button small { color: var(--ash); }
.command-tabs button[aria-selected="true"] small { color: #391108; }
.command-output { min-width: 0; display: flex; flex-direction: column; padding: 28px; background: #0a0d0b; border-inline-start: 1px solid var(--line); }
.command-meta { display: flex; justify-content: space-between; color: var(--lime); font-size: 9px; letter-spacing: .14em; }
.command-meta button { border: 0; border-bottom: 1px solid var(--ash); color: var(--ash); background: transparent; cursor: pointer; }
.command-output pre { flex: 1; display: grid; align-items: center; margin: 20px 0; padding: 35px 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--bone); font: 500 clamp(15px, 1.6vw, 22px)/1.65 var(--mono); }
.command-output p { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); color: var(--ash); font-size: 10px; }

.criteria-ledger { padding: 110px 0; border-top: 1px solid var(--line); }
.criteria-ledger > header { grid-template-columns: 1.25fr .75fr; }
.criteria-ledger header h2 { margin-top: 18px; }
.criteria-ledger header p { color: var(--ash); max-width: 50ch; }
.criteria-list { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.criterion { min-height: 180px; display: flex; flex-direction: column; padding: 16px; border-inline-end: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.criterion header { display: flex; justify-content: space-between; gap: 12px; color: var(--ash); font-size: 9px; }
.criterion header b { letter-spacing: .1em; }
.criterion[data-status="pass"] header b { color: var(--lime); }
.criterion[data-status="partial"] header b { color: var(--orange); }
.criterion[data-status="fail"] header b { color: var(--fault); }
.criterion p { margin: auto 0 0; font-size: 11px; }
.criterion small { display: block; margin-top: 10px; color: var(--ash); font-size: 9px; }

.boundary-strip { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; padding: 95px 0; border-top: 1px solid var(--line); }
.boundary-strip h2 { margin-top: 18px; }
.boundary-strip ul { list-style: none; margin: 0; padding: 0; }
.boundary-strip li { display: grid; grid-template-columns: 48px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--ash); }
.boundary-strip li b { color: var(--fault); }

footer { min-height: 150px; display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; border-top: 1px solid var(--line); color: var(--ash); font-size: 9px; letter-spacing: .11em; }
footer p { margin: 0; text-align: center; }
footer div { display: flex; gap: 14px; }
footer div a { text-decoration: none; }
footer div a:hover { color: var(--lime); }

@media (max-width: 1100px) {
  .release-header { grid-template-columns: auto 1fr auto; }
  .header-state { display: none; }
  .release-header nav { justify-self: stretch; overflow-x: auto; }
  .release-hero { grid-template-columns: 1fr; }
  .hash-recorder { min-height: 560px; }
  .criteria-list { grid-template-columns: repeat(3, 1fr); }
  .verification-bay { padding: 60px; }
}

@media (max-width: 760px) {
  :root { --page: calc(100vw - 28px); }
  .release-header { min-height: 70px; grid-template-columns: auto 1fr auto; gap: 10px; padding: 12px 14px; }
  .release-header nav { display: none; }
  .brand img { width: 34px; height: 34px; }
  .release-hero { min-height: 0; padding: 78px 0 56px; gap: 52px; }
  h1 { font-size: clamp(64px, 20vw, 94px); }
  .eyebrow { flex-direction: column; }
  .release-actions { flex-direction: column; }
  .manifest-action { min-height: 48px; border-inline-start: 1px solid var(--line); border-top: 0; }
  .hash-recorder { min-height: 0; padding: 16px; clip-path: polygon(0 0, 90% 0, 100% 5%, 100% 100%, 6% 100%, 0 95%); }
  .hash-recorder::before { inset-inline-end: 86%; }
  .receipt-coordinate, .hash-recorder dl, .criteria-tally, .hash-recorder footer { margin-left: 18%; }
  body[data-lang="fa"] .receipt-coordinate,
  body[data-lang="fa"] .hash-recorder dl,
  body[data-lang="fa"] .criteria-tally,
  body[data-lang="fa"] .hash-recorder footer { margin-left: 0; margin-right: 18%; }
  .hash-recorder dl div { grid-template-columns: 96px minmax(0, 1fr); }
  .operation-rail, .command-deck, .criteria-ledger { padding: 70px 0; }
  .operation-rail > header, .command-deck > header, .criteria-ledger > header { grid-template-columns: 1fr; }
  .operation-rail li { grid-template-columns: 52px 1fr; }
  .operation-rail li div { grid-template-columns: 1fr; gap: 8px; }
  .verification-bay { grid-template-columns: 1fr; gap: 36px; padding: 42px 22px; clip-path: polygon(0 0, 94% 0, 100% 5%, 100% 100%, 6% 100%, 0 95%); }
  .command-layout { grid-template-columns: 1fr; }
  .command-tabs { grid-template-columns: repeat(3, 1fr); }
  .command-tabs button { min-width: 0; grid-template-columns: 1fr; padding: 14px; border-bottom: 1px solid var(--line); border-inline-end: 1px solid var(--line); }
  .command-tabs button > span { grid-row: auto; font-size: 24px; }
  .command-tabs button small { display: none; }
  .command-output { border-inline-start: 0; }
  .criteria-list { grid-template-columns: repeat(2, 1fr); }
  .boundary-strip { grid-template-columns: 1fr; gap: 34px; padding: 70px 0; }
  footer { grid-template-columns: 1fr; padding: 36px 0; text-align: center; }
  footer .brand, footer div { justify-content: center; }
}

@media (max-width: 430px) {
  .criteria-list { grid-template-columns: 1fr; }
  .criteria-tally b { font-size: 31px; }
  .command-tabs button b { font-size: 8px; overflow-wrap: anywhere; }
}

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