:root {
  color-scheme: dark;
  --bg: #050711;
  --surface: #0a0f1d;
  --line: rgba(113, 232, 255, 0.14);
  --line-hot: rgba(96, 242, 226, 0.38);
  --text: #eefaff;
  --muted: #778ba2;
  --accent: #2dd4bf;
  --cyan: #67e8f9;
  --violet: #8b5cf6;
  --danger: #fb7185;
  --good: #34d399;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.48);
}

* { box-sizing: border-box; }

html {
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: #03060f;
  color: var(--text);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", sans-serif;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 17%, rgba(45, 212, 191, 0.15), transparent 24%),
    radial-gradient(circle at 72% 75%, rgba(139, 92, 246, 0.13), transparent 30%),
    conic-gradient(from 215deg at 78% 52%, transparent 0 24%, rgba(103, 232, 249, 0.07) 25%, transparent 27% 49%, rgba(139, 92, 246, 0.06) 50%, transparent 53%),
    linear-gradient(90deg, #03060f 0%, #03060f 34%, rgba(3, 6, 15, 0.82) 62%, rgba(3, 6, 15, 0.3) 100%);
}

body::after {
  position: fixed;
  z-index: 0;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(103, 232, 249, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

::selection { background: rgba(45, 212, 191, 0.28); color: #fff; }

a, button, input, textarea, select, .panel, .list-row {
  transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

header {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 16px clamp(22px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(4, 7, 16, 0.9);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px) saturate(1.15);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line-hot);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.18), rgba(139, 92, 246, 0.1));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.14), 0 0 28px rgba(45, 212, 191, 0.12);
}

.brand-mark img {
  display: block;
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 7px rgba(96, 237, 241, 0.35));
}

.brand-copy { display: grid; line-height: 1.15; }
.brand-copy strong { font-size: 0.94rem; letter-spacing: 0.035em; }
.brand-copy b { color: var(--accent); font-weight: 800; }
.brand-copy small { color: var(--muted); font: 0.7rem/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: 0.14em; text-transform: uppercase; }

nav { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
nav a, .link {
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: 600 0.86rem/1 system-ui, sans-serif;
  text-decoration: none;
}
nav a { padding: 10px 12px; }
nav a:hover, .link:hover { color: var(--text); background: rgba(103, 232, 249, 0.06); }
nav a[aria-current="page"] {
  border-color: rgba(103, 232, 249, 0.12);
  background: linear-gradient(90deg, rgba(45, 212, 191, 0.14), rgba(45, 212, 191, 0.03));
  color: #dffffb;
  box-shadow: inset 2px 0 var(--accent);
}
nav .inline { gap: 0; }
.link { padding: 10px 12px; cursor: pointer; }

main, footer { position: relative; z-index: 1; }
main { width: min(1140px, calc(100% - 44px)); margin: 0 auto; padding: 48px 0 72px; }

.hero {
  position: relative;
  max-width: 820px;
  padding: clamp(62px, 10vw, 118px) 0 clamp(58px, 8vw, 96px);
}

.hero::before {
  position: absolute;
  top: clamp(62px, 10vw, 118px);
  bottom: clamp(58px, 8vw, 96px);
  left: -28px;
  width: 2px;
  content: "";
  background: linear-gradient(var(--cyan), var(--accent), transparent);
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.45);
}

.hero h1 {
  max-width: 760px;
  margin: 0.2em 0 0;
  font-size: clamp(2.65rem, 7vw, 5.6rem);
  font-weight: 590;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero p:not(.eyebrow) { max-width: 670px; margin: 1.4rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.24rem); }

.eyebrow {
  margin: 0 0 0.45rem;
  color: var(--cyan);
  font: 700 0.75rem/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1, h2, h3 { color: var(--text); text-wrap: balance; }
h1 { margin: 0.12em 0; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 590; letter-spacing: -0.04em; line-height: 1.08; }
h2 { margin: 0 0 0.7rem; font-size: 1.18rem; font-weight: 650; letter-spacing: -0.018em; }
h3 { margin: 1.4rem 0 0.5rem; font-size: 0.92rem; letter-spacing: 0.02em; }
p { max-width: 72ch; }
a { color: var(--cyan); }

.panel {
  position: relative;
  margin: 20px 0;
  padding: clamp(20px, 3vw, 28px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 42%), rgba(10, 15, 29, 0.9);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.065), var(--shadow);
  backdrop-filter: blur(18px) saturate(1.15);
}

.panel::after {
  position: absolute;
  top: 0;
  left: 24px;
  width: 96px;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.72;
}

.narrow { max-width: 650px; margin-inline: auto; }
.heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.heading h1, .heading h2 { margin-bottom: 0; }

form { display: grid; gap: 16px; }
form.inline { display: flex; align-items: center; gap: 10px; }
.inline.wide input { flex: 1 1 180px; min-width: 0; }
label { display: grid; gap: 7px; color: #9bb0c4; font-size: 0.88rem; font-weight: 650; }

input, textarea, select, button, .button {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(5, 10, 20, 0.72);
  color: var(--text);
  font: inherit;
  padding: 11px 13px;
}
input::placeholder, textarea::placeholder { color: #52667d; opacity: 1; }
textarea { min-height: 118px; resize: vertical; }
select { color-scheme: dark; }
input:hover, textarea:hover, select:hover { border-color: rgba(96, 242, 226, 0.28); }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--line-hot);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.08);
}

button, .button {
  display: inline-block;
  border-color: var(--line-hot);
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.22), rgba(139, 92, 246, 0.12));
  color: #dffffb;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
button:hover, .button:hover { transform: translateY(-1px); box-shadow: 0 0 24px rgba(45, 212, 191, 0.14); }
.button.secondary, button.secondary { border-color: var(--line); background: rgba(8, 15, 28, 0.76); color: #bcd3e8; }
.button.secondary:hover, button.secondary:hover { border-color: var(--line-hot); background: rgba(45, 212, 191, 0.1); color: #dffffb; }
.danger { border-color: rgba(251, 113, 133, 0.3); background: rgba(251, 113, 133, 0.11); color: #ffb6c2; }
.danger:hover { border-color: rgba(251, 113, 133, 0.52); box-shadow: 0 0 22px rgba(251, 113, 133, 0.12); }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tag {
  display: inline-block;
  padding: 4px 9px;
  border: 1px solid rgba(103, 232, 249, 0.12);
  border-radius: 999px;
  background: rgba(103, 232, 249, 0.08);
  color: #bdeef3;
  font: 800 0.68rem/1.3 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.release { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); gap: 28px; }
.artifacts { display: grid; gap: 12px; }
.artifacts article {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: 10px;
  background: rgba(5, 10, 20, 0.55);
}
.artifacts small, .artifacts code, .list-row small { display: block; color: var(--muted); overflow-wrap: anywhere; }
.artifacts code { margin: 6px 0 10px; color: #9bb0c4; font-size: 0.72rem; }

.list { display: grid; gap: 3px; }
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 14px 12px;
  border: 1px solid transparent;
  border-bottom-color: var(--line);
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
}
.list-row:hover { border-color: var(--line); background: rgba(103, 232, 249, 0.045); transform: translateX(2px); }
.list-row:last-child { border-bottom-color: transparent; }
.list-row > span { min-width: 0; }

.report-detail pre, .comments pre { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
.comments article { margin: 18px 0; padding: 2px 0 2px 15px; border-left: 3px solid var(--line-hot); }
.comments small { display: block; color: var(--muted); font: 0.73rem/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace; }

.notice, .error {
  margin: 0 0 20px;
  padding: 14px 18px;
  border: 1px solid rgba(52, 211, 153, 0.27);
  border-radius: 11px;
  background: rgba(52, 211, 153, 0.08);
  color: #b9f4dd;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
}
.error { border-color: rgba(251, 113, 133, 0.34); background: rgba(251, 113, 133, 0.1); color: #ffc1cb; }
.trap { position: absolute; left: -10000px; }

footer {
  width: min(1140px, calc(100% - 44px));
  margin: 0 auto;
  padding: 24px 0 34px;
  border-top: 1px solid var(--line);
  color: #52667d;
  font: 0.75rem/1.5 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.03em;
}

@media (max-width: 760px) {
  header { position: relative; align-items: flex-start; gap: 18px; min-height: auto; padding: 16px 18px; }
  .brand-copy small { font-size: 0.62rem; }
  nav { flex-wrap: wrap; gap: 3px; }
  nav a, .link { padding: 9px; }
  main { width: min(100% - 28px, 1140px); padding: 34px 0 50px; }
  .hero { padding: 54px 0 62px 14px; }
  .hero::before { top: 54px; bottom: 62px; left: 0; }
  .release, .grid { grid-template-columns: 1fr; }
  .heading { align-items: flex-start; flex-direction: column; }
  .list-row { align-items: flex-start; flex-direction: column; }
  form.inline.wide { align-items: stretch; flex-direction: column; }
  footer { width: min(100% - 28px, 1140px); }
}

@media (max-width: 500px) {
  header { flex-direction: column; }
  nav { width: 100%; justify-content: flex-start; }
  nav form.inline { margin-left: auto; }
  .panel { border-radius: 14px; padding: 20px 17px; }
  .actions > * { flex: 1 1 auto; }
  form.inline:not(nav form) { align-items: stretch; flex-direction: column; }
}

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