:root {
  --night: #030712;
  --night-2: #060d1d;
  --panel: rgba(9, 20, 38, 0.66);
  --panel-2: rgba(12, 27, 50, 0.78);
  --ink: #e8f2ff;
  --muted: #93a8c4;
  --faint: #617794;
  --line: rgba(140, 190, 255, 0.13);
  --line-strong: rgba(94, 234, 212, 0.32);
  --teal: #5eead4;
  --emerald: #34d399;
  --cyan: #22d3ee;
  --violet: #a78bfa;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--night); }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 800px at 8% -18%, rgba(16, 185, 129, 0.24), transparent 60%),
    radial-gradient(1000px 700px at 92% -12%, rgba(139, 92, 246, 0.2), transparent 62%),
    radial-gradient(900px 650px at 50% -5%, rgba(34, 211, 238, 0.14), transparent 60%),
    radial-gradient(900px 700px at 50% 35%, rgba(20, 184, 166, 0.08), transparent 70%),
    linear-gradient(180deg, #071a24 0%, #061521 18%, #04101c 38%, #040e1a 65%, #030b14 100%);
  background-attachment: fixed;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(120% 85% at 50% 0%, transparent 45%, rgba(3, 7, 18, 0.28) 78%, #030712 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 20% 25%, #fff, transparent),
    radial-gradient(1px 1px at 72% 12%, #fff, transparent),
    radial-gradient(1.4px 1.4px at 42% 68%, #fff, transparent),
    radial-gradient(1px 1px at 86% 52%, #fff, transparent),
    radial-gradient(1px 1px at 12% 84%, #fff, transparent),
    radial-gradient(1px 1px at 58% 36%, #fff, transparent);
  background-repeat: repeat;
  background-size: 360px 360px;
}

::selection { background: rgba(94, 234, 212, 0.3); color: #fff; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1080px, 92vw); margin: 0 auto; }

.sky {
  position: fixed;
  inset: -18% -10% auto;
  height: 82vh;
  z-index: -1;
  pointer-events: none;
  filter: blur(90px);
  opacity: 0.8;
  overflow: hidden;
}
.aurora {
  position: absolute;
  display: block;
  border-radius: 50%;
  mix-blend-mode: screen;
  filter: blur(80px);
  animation: drift 22s ease-in-out infinite alternate;
}
.a1 {
  width: 120vw; height: 65vh; left: -10%; top: -25%;
  background: linear-gradient(90deg, #10b981, #2dd4bf 55%, #22d3ee);
  opacity: 0.56;
}
.a2 {
  width: 100vw; height: 75vh; right: -15%; top: -10%;
  background: linear-gradient(90deg, #22d3ee, #2dd4bf 50%, #10b981);
  opacity: 0.48;
  animation-delay: -7s;
}
.a3 {
  width: 80vw; height: 55vh; left: 20%; top: 5%;
  background: linear-gradient(90deg, #8b5cf6, #6366f1 50%, #22d3ee);
  opacity: 0.32;
  animation-delay: -13s;
}

@keyframes drift {
  from { transform: translate3d(-3%, 0, 0) rotate(-5deg) scale(1.02); }
  to { transform: translate3d(4%, 4%, 0) rotate(5deg) scale(1.1); }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(3, 7, 18, 0.74);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.16em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--teal);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22), rgba(34, 211, 238, 0.18));
  border: 1px solid rgba(94, 234, 212, 0.35);
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.18);
}
.brand-mark svg { width: 18px; height: 18px; }
.domain-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  color: rgba(94, 234, 212, 0.9);
  font-family: var(--mono);
  font-size: 12px;
}
.domain-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.8);
  animation: beacon 2.8s ease-in-out infinite;
}

@keyframes beacon {
  0%, 100% { opacity: 0.45; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
  50% { opacity: 1; box-shadow: 0 0 10px 2px rgba(52, 211, 153, 0.6); }
}

.hero { padding: 96px 0 56px; }
.hero .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: 24px;
  align-items: start;
}
.hero .eyebrow,
.hero h1,
.hero .lede { grid-column: 1 / span 8; }
.hero .eyebrow { justify-self: start; }
.hero .meta-card { grid-column: 1 / -1; margin-top: 26px; max-width: none; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 6px 12px;
  border: 1px solid rgba(94, 234, 212, 0.26);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(94, 234, 212, 0.1), rgba(34, 211, 238, 0.08));
  color: var(--teal);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
h1 {
  margin: 0 0 20px;
  max-width: 17ch;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.045em;
  font-weight: 800;
}
.gradient {
  background: linear-gradient(92deg, #5eead4 0%, #67e8f9 45%, #6ee7b7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  max-width: 65ch;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 17px;
}
.lede strong { color: var(--ink); font-weight: 600; }

.meta-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: none;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 45px -24px rgba(0, 0, 0, 0.8);
}
.meta-cell { min-width: 0; }
.meta-label {
  display: block;
  margin-bottom: 4px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.meta-value {
  display: block;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.section { padding: 54px 0; scroll-margin-top: 90px; }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 6px;
}
.section h2 {
  margin: 0;
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.02em;
}
.count-badge {
  flex: 0 0 auto;
  padding: 4px 9px;
  border: 1px solid rgba(94, 234, 212, 0.24);
  border-radius: 7px;
  background: rgba(94, 234, 212, 0.08);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 11px;
}
.section-sub {
  max-width: 65ch;
  margin: 0 0 20px;
  color: var(--faint);
  font-size: 14px;
}

.table-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 55px -30px rgba(0, 0, 0, 0.85);
}
.table-scroll { overflow-x: auto; }
.files {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  text-align: left;
}
.files th {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 13, 29, 0.8);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.files th:nth-child(1) { width: 46%; }
.files th:nth-child(2) { width: 12%; }
.files th:nth-child(3) { width: 14%; }
.files th:nth-child(4) { width: 14%; }
.files th:nth-child(5) { width: 14%; }
.files th:last-child, .files td.action { text-align: right; }
.files td.action { white-space: nowrap; }
.files td {
  padding: 13px 18px;
  border-bottom: 1px solid rgba(140, 190, 255, 0.07);
  font-size: 13px;
  vertical-align: middle;
}
.files tbody tr:last-child td { border-bottom: 0; }
.files tbody tr:not(.group):hover { background: rgba(94, 234, 212, 0.035); }

.files tr.group td {
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.55);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.files tr.group:first-child td { border-top: 0; }
.group-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 18px;
}
.group-count { color: var(--faint); font-weight: 400; }

.file-link {
  display: inline-block;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12.5px;
  word-break: break-all;
}
.file-link:hover { color: var(--teal); }
.file-tag {
  display: block;
  margin-top: 2px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
}
.arch {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  white-space: nowrap;
}
.download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 7px;
  background: rgba(94, 234, 212, 0.09);
  color: var(--teal);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
  transition: background 160ms ease, border-color 160ms ease;
}
.download:hover {
  background: rgba(94, 234, 212, 0.18);
  border-color: rgba(94, 234, 212, 0.5);
  text-decoration: none;
}
.download span { font-size: 13px; line-height: 1; }
.copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.2;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease;
}
.copy:hover {
  border-color: rgba(94, 234, 212, 0.45);
  color: var(--teal);
  background: rgba(94, 234, 212, 0.08);
}
.copy.copied {
  border-color: rgba(52, 211, 153, 0.55);
  color: var(--emerald);
  background: rgba(52, 211, 153, 0.1);
}
.files .empty { padding: 28px 18px; color: var(--faint); text-align: center; }

.checksum-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  gap: 18px 26px;
  align-items: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  backdrop-filter: blur(12px);
}
.kicker {
  margin: 0 0 5px;
  color: var(--teal);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.checksum-panel h2 { margin: 0 0 6px; font-size: 22px; }
.checksum-panel .section-sub { margin: 0; }
.code {
  margin: 0;
  padding: 13px 15px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 11px;
  background: rgba(2, 6, 16, 0.85);
  color: #cfe3ff;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}
.text-link {
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}

.about { max-width: 820px; margin-left: 0; margin-right: auto; }
.about h2 { margin: 0 0 14px; }
.about p { margin: 0 0 12px; max-width: 70ch; color: var(--muted); font-size: 15px; }

footer {
  margin-top: 34px;
  border-top: 1px solid var(--line);
  background: rgba(3, 7, 18, 0.7);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 26px 0 34px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
}
.footer-inner strong { color: var(--teal); font-weight: 600; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (max-width: 780px) {
  .hero { padding: 64px 0 44px; }
  .hero .wrap { display: block; }
  .lede { font-size: 15.5px; }
  .meta-card { grid-template-columns: 1fr; gap: 12px; max-width: none; padding: 16px; }
  .meta-value { white-space: normal; }
  .section { padding: 42px 0; }
  .section-head { align-items: flex-start; flex-direction: column; gap: 8px; }
  .count-badge { align-self: flex-start; }

  .table-panel { border: 0; background: transparent; box-shadow: none; overflow: visible; }
  .table-scroll { overflow: visible; }
  .files { min-width: 0; }
  .files thead { display: none; }
  .files, .files tbody, .files tr, .files td { display: block; width: 100%; }
  .files tbody tr:not(.group) {
    margin: 0 0 10px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
  }
  .files tbody tr:not(.group):hover { background: var(--panel-2); }
  .files td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 4px 0;
    border: 0;
  }
  .files td::before {
    content: attr(data-label);
    flex: 0 0 auto;
    padding-top: 3px;
    color: var(--faint);
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
  }
  .files td.file { display: block; padding: 0 0 8px; }
  .files td.file::before { display: none; }
  .files td.action { display: flex; gap: 8px; padding: 8px 0 0; text-align: left; }
  .files td.action::before { display: none; }
  .files td.action .copy,
  .files td.action .download { flex: 1 1 0; justify-content: center; }
  .files td.action .download { width: auto; }
  .files tr.group { margin: 14px 0 8px; }
  .files tr.group td {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--teal);
  }
  .files tr.group .group-inner { padding: 4px 2px; }
  .files .empty { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }

  .checksum-panel { grid-template-columns: 1fr; padding: 18px; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .aurora, .domain-pill .dot { animation: none; }
  .download { transition: none; }
}
