:root {
  --black: #0a0a0b;
  --black-2: #101012;
  --white: #f5f5f2;
  --muted: rgba(245, 245, 242, 0.6);
  --faint: rgba(245, 245, 242, 0.38);
  --line: rgba(245, 245, 242, 0.13);
  --line-strong: rgba(245, 245, 242, 0.24);
  --red: #c1121f;
  --green: #78a98a;
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(115deg, transparent 0 64%, rgba(193, 18, 31, 0.05) 64.1% 64.4%, transparent 64.5%),
    var(--black);
  color: var(--white);
  font-family: Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

button,
a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
}

.masthead {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(20px, 5vw, 78px);
  border-bottom: 1px solid var(--line);
  background: rgba(10, 10, 11, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(245, 245, 242, 0.36);
}

.brand-mark::before,
.brand-mark::after,
.brand-mark i::before,
.brand-mark i::after {
  position: absolute;
  background: var(--red);
  content: "";
}

.brand-mark::before { top: -5px; left: 50%; width: 2px; height: 10px; transform: translateX(-50%); }
.brand-mark::after { bottom: -5px; left: 50%; width: 2px; height: 10px; transform: translateX(-50%); }
.brand-mark i::before { top: 50%; left: -5px; width: 10px; height: 2px; transform: translateY(-50%); }
.brand-mark i::after { top: 50%; right: -5px; width: 10px; height: 2px; transform: translateY(-50%); }
.brand-mark b { position: absolute; inset: 11px; background: var(--red); }

.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: 13px; font-weight: 900; letter-spacing: 0.15em; }
.brand-copy small { color: var(--faint); font-size: 8px; font-weight: 700; letter-spacing: 0.16em; }

.release-label {
  color: var(--red);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

main {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(64px, 8vw, 118px) 0 clamp(70px, 9vw, 128px);
}

.hero { max-width: 920px; }

.eyebrow,
.micro {
  margin: 0;
  color: var(--faint);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--red);
}

.eyebrow span { display: block; width: 48px; height: 2px; background: var(--red); }
.accent { color: var(--red); }

h1 {
  max-width: 900px;
  margin: 24px 0 0;
  font-size: clamp(3.3rem, 8vw, 7.5rem);
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 0.88;
}

.lede {
  max-width: 800px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  line-height: 1.85;
}

.runtime-panel {
  margin-top: clamp(48px, 7vw, 78px);
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--red);
  background:
    linear-gradient(105deg, rgba(193, 18, 31, 0.07), transparent 40%),
    var(--black-2);
}

.runtime-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
}

.runtime-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 13px;
}

.runtime-title-row h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.state-dot { width: 9px; height: 9px; flex: 0 0 auto; background: #8c8c8c; }
.state-dot.operational { background: var(--green); box-shadow: 0 0 0 5px rgba(120, 169, 138, 0.1); }
.state-dot.unavailable { background: var(--red); box-shadow: 0 0 0 5px rgba(193, 18, 31, 0.1); }
.state-dot.checking { background: #8c8c8c; }

.runtime-detail {
  max-width: 720px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

button:hover:not(:disabled) { border-color: var(--red); }
button:disabled { cursor: wait; opacity: 0.5; }

.probe-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 28px 0 0;
  padding: 1px;
  background: var(--line);
}

.probe-facts div { min-width: 0; padding: 17px; background: var(--black); }
.probe-facts dt { color: var(--faint); font-family: Consolas, "SFMono-Regular", monospace; font-size: 9px; letter-spacing: 0.14em; }
.probe-facts dd { margin: 9px 0 0; overflow-wrap: anywhere; font-size: 14px; font-weight: 700; }

.release-scope {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(38px, 6vw, 88px);
  margin-top: clamp(66px, 9vw, 110px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}

.scope-copy h2 { margin: 12px 0 0; font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.04em; }
.scope-copy p:last-child { margin: 16px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

.scope-ledger { border-top: 1px solid var(--line); }
.scope-row {
  display: grid;
  min-height: 64px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.scope-row span { color: rgba(245, 245, 242, 0.78); font-size: 14px; }
.scope-row strong { color: var(--faint); font-family: Consolas, "SFMono-Regular", monospace; font-size: 9px; font-weight: 700; letter-spacing: 0.08em; text-align: right; }
.scope-row strong.verified { color: var(--green); }

.interpretation {
  margin-top: 66px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--black-2);
}
.interpretation p:last-child { max-width: 900px; margin: 12px 0 0; color: var(--muted); font-size: 14px; line-height: 1.8; }

footer {
  display: flex;
  min-height: 108px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 78px);
  border-top: 1px solid var(--line);
  background: #070708;
  color: var(--faint);
  font-family: Consolas, "SFMono-Regular", monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 720px) {
  .masthead { min-height: 72px; padding-inline: 18px; }
  .brand-copy small { display: none; }
  .release-label { max-width: 118px; font-size: 7px; line-height: 1.45; text-align: right; }
  main { width: calc(100% - 36px); padding-top: 58px; }
  h1 { font-size: clamp(3rem, 15vw, 4.8rem); }
  .runtime-head { flex-direction: column; }
  .runtime-head button { width: 100%; }
  .probe-facts { grid-template-columns: 1fr; }
  .release-scope { grid-template-columns: 1fr; }
  .scope-row { grid-template-columns: 1fr; gap: 7px; }
  .scope-row strong { text-align: left; }
  footer { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
