:root {
  color-scheme: dark;
  --surface-app: #0d0e12;
  --surface-raised: rgba(25, 27, 35, 0.72);
  --surface-muted: rgba(255, 255, 255, 0.07);
  --surface-muted-hover: rgba(255, 255, 255, 0.12);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-top: rgba(255, 255, 255, 0.18);
  --text-primary: rgba(255, 255, 255, 0.92);
  --text-secondary: rgba(255, 255, 255, 0.56);
  --text-tertiary: rgba(255, 255, 255, 0.34);
  --sky: #38bdf8;
  --sky-hover: #7dd3fc;
  --emerald: #34d399;
  --warning-bg: rgba(244, 63, 94, 0.1);
  --warning-border: rgba(244, 63, 94, 0.35);
  --warning-text: #fda4af;
  --shadow-glass: 0 8px 40px rgba(0, 0, 0, 0.3), 0 2px 6px rgba(0, 0, 0, 0.16);
  --shadow-sky: 0 0 18px rgba(56, 189, 248, 0.34);
  --shadow-emerald: 0 0 18px rgba(52, 211, 153, 0.26);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 4%, rgba(56, 189, 248, 0.09), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(52, 211, 153, 0.06), transparent 30%),
    linear-gradient(180deg, #12141b 0%, var(--surface-app) 52%, #090a0d 100%);
  color: var(--text-primary);
}

a {
  color: inherit;
}

.top-nav {
  position: relative;
  width: min(1080px, calc(100vw - 40px));
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nav-brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-brand {
  flex: 0 0 auto;
}

.nav-brand,
.nav-links a {
  text-decoration: none;
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 0 10px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
}

.nav-links a[aria-current="page"] {
  background: var(--surface-muted);
  color: var(--text-primary);
}

.page-shell {
  position: relative;
  width: min(1080px, calc(100vw - 40px));
  min-height: calc(100vh - 132px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(380px, 1fr);
  align-items: center;
  gap: 56px;
  padding: 32px 0 64px;
}

.home-shell {
  width: min(420px, calc(100vw - 40px));
  min-height: calc(100vh - 60px);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 38px 0 72px;
}

.intro {
  display: flex;
  flex-direction: column;
  gap: 34px;
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}

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

.eyebrow,
.label {
  margin: 0;
  color: var(--text-tertiary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 4px 0 0;
  font-size: clamp(3.1rem, 7vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.version-block {
  display: grid;
  gap: 8px;
}

.version-block strong {
  display: block;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: 0;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.13), 0 0 18px rgba(52, 211, 153, 0.46);
}

.home-mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.home-links {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.home-links a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  padding: 0 11px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 720;
  transition: background 160ms ease, color 160ms ease;
}

.home-links a:hover {
  background: var(--surface-muted);
  color: var(--text-primary);
}

.release-panel {
  position: relative;
  overflow: hidden;
  background: var(--surface-raised);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--shadow-glass), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(18px);
  padding: 26px;
}

.release-panel::before {
  position: absolute;
  inset: 0 12% auto;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--glass-border-top), transparent);
}

.release-panel > * {
  position: relative;
}

.alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid var(--warning-border);
  border-radius: 8px;
  background: var(--warning-bg);
  color: var(--warning-text);
  font-size: 0.9rem;
}

.primary-actions {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  border: 1px solid rgba(125, 211, 252, 0.48);
  background: var(--sky);
  color: #061016;
  box-shadow: var(--shadow-sky);
}

.button-primary:hover {
  background: var(--sky-hover);
  box-shadow: 0 0 26px rgba(56, 189, 248, 0.46);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--surface-muted);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

.button-secondary:hover {
  background: var(--surface-muted-hover);
  border-color: rgba(255, 255, 255, 0.18);
}

.file-list {
  margin-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.file-row {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.file-row h2 {
  margin: 0 0 6px;
  color: var(--text-primary);
  font-size: 0.98rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.file-row p {
  margin: 0;
  color: var(--text-secondary);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.copy-button {
  min-width: 126px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.copy-button:hover {
  background: var(--surface-muted-hover);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
}

.sr-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.site-footer {
  width: min(1080px, calc(100vw - 40px));
  min-height: 60px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-tertiary);
  font-size: 0.82rem;
}

.site-footer a {
  color: var(--text-secondary);
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text-primary);
}

.footer-separator {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
}

@media (max-width: 780px) {
  .top-nav {
    width: min(100vw - 28px, 560px);
    height: 64px;
  }

  .nav-links {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .page-shell {
    width: min(100vw - 28px, 560px);
    grid-template-columns: 1fr;
    align-items: start;
    gap: 30px;
    padding: 34px 0;
  }

  .home-shell {
    width: min(100vw - 28px, 420px);
    min-height: calc(100vh - 56px);
    gap: 24px;
    padding: 34px 0 58px;
  }

  .intro {
    gap: 24px;
  }

  .brand-icon {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  h1 {
    font-size: 3.45rem;
  }

  .release-panel {
    padding: 18px;
  }

  .primary-actions {
    grid-template-columns: 1fr;
  }

  .home-mark {
    width: 48px;
    height: 48px;
    border-radius: 13px;
  }

  .file-row {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 0;
  }

  .copy-button {
    width: 100%;
  }

  .site-footer {
    width: min(100vw - 28px, 560px);
  }
}
