@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&display=swap");

:root {
  color-scheme: dark;
  --accent: #6e58ff;
  --accent-strong: #8674ff;
  --accent-weak: rgba(110, 88, 255, 0.18);
  --accent-idle-fill: rgba(110, 88, 255, 0.28);
  --accent-idle-stroke: rgba(110, 88, 255, 0.65);
  --text: rgba(255, 255, 255, 0.88);
  --text-dim: rgba(255, 255, 255, 0.62);
  --text-faint: rgba(255, 255, 255, 0.38);
  --bg: #121216;
  --bg-elev: #18181e;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.065);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --font-body: "JetBrains Mono", ui-monospace, "SF Mono", "Menlo", monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.6;
  letter-spacing: 0.002em;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

body::before {
  top: -25vh;
  left: -15vw;
  width: 80vw;
  height: 80vh;
  background: radial-gradient(closest-side, rgba(110, 88, 255, 0.22), transparent 70%);
}

body::after {
  bottom: -25vh;
  right: -15vw;
  width: 65vw;
  height: 65vh;
  background: radial-gradient(closest-side, rgba(110, 88, 255, 0.14), transparent 70%);
}

.site-shell {
  position: relative;
  z-index: 1;
  max-width: 64rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

.site-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.9rem;
  padding-bottom: 1.5rem;
  margin-bottom: 0.25rem;
}

.site-icon {
  width: 84px;
  height: 84px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow:
    0 8px 32px rgba(110, 88, 255, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 1px 0 rgba(255, 255, 255, 0.12) inset;
}

.site-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.site-title-line {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
}

.site-title-tag {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin: 1.35rem 0 2.75rem;
  padding: 0.5rem 0.85rem;
  list-style: none;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.site-nav a {
  display: inline-block;
  padding: 0.5rem 0.95rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  color: var(--text);
  background: var(--accent-idle-fill);
  border: 1px solid var(--accent-idle-stroke);
  border-radius: var(--radius-sm);
  transition:
    background 0.14s var(--ease),
    transform 0.14s var(--ease),
    color 0.14s var(--ease),
    border-color 0.14s var(--ease),
    box-shadow 0.14s var(--ease);
  will-change: transform;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--accent);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  transform: scale(1.04);
  box-shadow: 0 4px 18px rgba(110, 88, 255, 0.35);
  outline: none;
}

.site-nav a.active {
  background: var(--accent);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 2px 10px rgba(110, 88, 255, 0.28);
}

main, .page {
  position: relative;
  z-index: 1;
}

h1 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  background: linear-gradient(120deg, #ffffff 0%, #cfc5ff 80%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 2rem 0 0.65rem;
  color: var(--text);
}

h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.35rem 0 0.5rem;
  color: var(--text);
}

p, li { margin: 0.6rem 0; }
ul { padding-left: 1.25rem; }
strong { color: #ffffff; font-weight: 600; }
code {
  font-family: var(--font-body);
  background: rgba(110, 88, 255, 0.14);
  border: 1px solid rgba(110, 88, 255, 0.28);
  padding: 0.08em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
}

.meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin: 0 0 2rem;
  text-align: center;
}

.lead {
  font-size: 1.05rem;
  color: var(--text);
  opacity: 0.95;
  margin: 1rem 0 1.5rem;
}

a { color: var(--accent-strong); text-decoration: none; transition: color 0.14s var(--ease); }
a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 0.18em; }

.notneg { font-weight: 700; text-decoration: underline; text-underline-offset: 0.14em; color: #ffffff; }

.card {
  margin-top: 1.25rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-auto-rows: 1fr;
}

.nav-list li { display: flex; }

.nav-list a.tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 100%;
  padding: 1.1rem 1.2rem;
  min-height: 6.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  transition:
    background 0.14s var(--ease),
    border-color 0.14s var(--ease),
    transform 0.14s var(--ease),
    box-shadow 0.14s var(--ease);
  text-decoration: none;
}

.nav-list a.tile:hover {
  background: rgba(110, 88, 255, 0.12);
  border-color: rgba(110, 88, 255, 0.55);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(110, 88, 255, 0.18);
  text-decoration: none;
}

.nav-list a.tile .tile-title {
  display: block;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.005em;
  margin-bottom: 0.15rem;
  color: #ffffff;
}

.nav-list a.tile .tile-desc {
  display: block;
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
}

.release {
  margin-top: 1.25rem;
  padding: 1.35rem 1.4rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.14s var(--ease), background 0.14s var(--ease);
}

.release:hover {
  border-color: rgba(110, 88, 255, 0.35);
  background: rgba(110, 88, 255, 0.04);
}

.release.current {
  border-color: var(--accent-idle-stroke);
  background: linear-gradient(
    180deg,
    rgba(110, 88, 255, 0.1) 0%,
    rgba(110, 88, 255, 0.025) 100%
  );
  box-shadow: 0 8px 32px rgba(110, 88, 255, 0.12);
}

.release-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  margin: 0 0 0.6rem;
}

.release-version {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
  color: #ffffff;
}

.release-date {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.release-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.18rem 0.6rem;
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 10px rgba(110, 88, 255, 0.4);
}

.release ul { margin: 0.3rem 0 0; }
.release li { margin: 0.4rem 0; }

.form-intro {
  margin: 0 0 1.2rem;
  font-size: 0.92rem;
  color: var(--text-dim);
}

.field { margin-bottom: 1rem; }
.field:last-of-type { margin-bottom: 0; }

label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.hint {
  font-weight: 400;
  color: var(--text-faint);
  font-size: 0.78rem;
  margin-left: 0.3rem;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 0.92rem;
  color: var(--text);
  background: rgba(0, 0, 0, 0.35);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  outline: none;
  transition: border-color 0.14s var(--ease), box-shadow 0.14s var(--ease), background 0.14s var(--ease);
}

select option { background: var(--bg-elev); color: var(--text); }

input:hover, textarea:hover, select:hover {
  border-color: rgba(110, 88, 255, 0.45);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(110, 88, 255, 0.28);
  background: rgba(0, 0, 0, 0.5);
}

textarea { min-height: 160px; resize: vertical; line-height: 1.5; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.actions {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

button[type="submit"],
.btn {
  display: inline-block;
  cursor: pointer;
  font: inherit;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--accent-idle-stroke);
  color: var(--text);
  background: var(--accent-idle-fill);
  text-decoration: none;
  transition:
    background 0.14s var(--ease),
    transform 0.14s var(--ease),
    color 0.14s var(--ease),
    border-color 0.14s var(--ease),
    box-shadow 0.14s var(--ease);
}

button[type="submit"]:hover,
.btn:hover {
  background: var(--accent);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
  transform: scale(1.02);
  box-shadow: 0 6px 22px rgba(110, 88, 255, 0.4);
}

button[type="submit"]:active,
.btn:active {
  transform: scale(0.99);
  filter: brightness(0.95);
}

.form-footnote,
.field-note {
  margin: 0.6rem 0 0;
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.5;
}

.tm-notice {
  font-size: 0.72rem;
  color: var(--text-faint);
  margin: 3rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  letter-spacing: 0.02em;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 3.5rem;
  padding: 1.75rem 1.5rem 2rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.site-footer .footer-brand {
  display: block;
  color: var(--text);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  margin-bottom: 0.45rem;
}

.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.65rem;
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}

.site-footer .footer-links li { display: inline-flex; align-items: center; }
.site-footer .footer-links li + li::before {
  content: "·";
  color: var(--text-faint);
  margin-right: 0.65rem;
}

.site-footer a {
  color: var(--text-dim);
  transition: color 0.14s var(--ease);
}
.site-footer a:hover { color: var(--accent-strong); text-decoration: none; }

.site-footer .footer-copy {
  margin: 0;
  color: var(--text-faint);
}

@media (max-width: 640px) {
  .site-shell { padding: 2rem 1rem 3rem; }
  h1 { font-size: 1.45rem; }
  .site-nav { width: auto; }
  .site-nav a { padding: 0.45rem 0.75rem; font-size: 0.78rem; }
}
