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

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

:root {
  --bg: #080b10;
  --panel: #0e1219;
  --card: #131820;
  --b1: #1c2535;
  --b2: #263040;
  --ac: #00d4f0;
  --ac2: #006e99;
  --green: #00e87a;
  --t: #bccde0;
  --tm: #6e8ba8;
  --td: #3d5068;
  --r: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--t);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 15px;
  line-height: 1.65;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 240, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 240, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -1;
}

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

.site-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 40px;
  border-bottom: 1px solid var(--b1);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.brand:hover {
  text-decoration: none;
}
/* Logo art is black on white — invert so it reads on dark chrome. */
.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 5px;
  box-sizing: border-box;
  background: var(--panel);
  border: 1px solid var(--b2);
  border-radius: var(--r);
  display: block;
  object-fit: contain;
  filter: invert(1) brightness(1.08) contrast(1.05);
  box-shadow: 0 0 24px rgba(0, 212, 240, 0.1);
}
.brand-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: #fff;
}
.brand-sub {
  font-size: 0.65rem;
  color: var(--tm);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 0.85rem;
}
.nav a {
  color: var(--t);
  opacity: 0.88;
}
.nav a:hover {
  color: var(--ac);
  opacity: 1;
  text-decoration: none;
}
.nav a.active {
  color: var(--ac);
  font-weight: 600;
}

/* hero & sections */
.hero {
  padding: 56px 0 48px;
}
.hero h1 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.hero-lead {
  margin-top: 20px;
  max-width: 52ch;
  color: var(--tm);
  font-size: 0.95rem;
}
.hero-cta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--r);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(180deg, var(--ac) 0%, var(--ac2) 100%);
  color: #020508;
  border-color: rgba(0, 212, 240, 0.35);
  box-shadow: 0 8px 28px rgba(0, 212, 240, 0.18);
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-ghost {
  background: var(--card);
  color: var(--t);
  border-color: var(--b2);
}
.btn-ghost:hover {
  border-color: var(--ac);
  color: #fff;
}

section.block {
  padding: 40px 0;
  border-top: 1px solid var(--b1);
}
section.block h2 {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: #fff;
  margin-bottom: 16px;
}
section.block h3 {
  font-size: 0.95rem;
  color: #fff;
  margin: 24px 0 10px;
}
section.block p {
  max-width: 62ch;
  color: var(--t);
  margin-bottom: 12px;
}
section.block ul {
  margin: 12px 0 12px 1.2em;
  max-width: 62ch;
  color: var(--t);
}
section.block li {
  margin-bottom: 8px;
}

.home-mascot {
  margin: 28px auto 0;
  max-width: min(420px, 100%);
  padding: 16px;
  background: #fff;
  border: 1px solid var(--b2);
  border-radius: var(--r);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.home-mascot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--r) - 4px);
}

.portal-preview {
  margin: 24px auto 0;
  max-width: min(920px, 100%);
  padding: 12px;
  background: var(--card);
  border: 1px solid var(--b2);
  border-radius: var(--r);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.4);
}
.portal-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--r) - 6px);
}

.grid-2 {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--b2);
  border-radius: var(--r);
  padding: 22px;
}
.card h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}
.card p,
.card li {
  font-size: 0.88rem;
  color: var(--tm);
}

.comparison {
  margin-top: 20px;
  border-collapse: collapse;
  width: 100%;
  max-width: 100%;
  font-size: 0.82rem;
}
.comparison th,
.comparison td {
  border: 1px solid var(--b1);
  padding: 10px 12px;
  text-align: left;
}
.comparison th {
  background: var(--panel);
  color: #fff;
  font-weight: 600;
}
.comparison td:first-child {
  color: var(--t);
}
.tag-yes {
  color: var(--green);
  font-weight: 600;
}

/* download */
.dl-box {
  margin-top: 24px;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--b2);
  border-radius: var(--r);
}
.dl-box h3 {
  font-family: 'Syne', sans-serif;
  color: #fff;
  margin-bottom: 8px;
}
.dl-meta {
  font-size: 0.78rem;
  color: var(--td);
  margin-bottom: 20px;
}
.dl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.dl-filename {
  font-size: 0.85rem;
  color: var(--t);
}

/* footer */
.site-footer {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--b1);
  font-size: 0.78rem;
  color: var(--td);
}

.site-footer .footer-tagline,
.site-footer .footer-links,
.site-footer .footer-oss,
.site-footer .footer-copy {
  margin-bottom: 10px;
  max-width: 62ch;
}

.site-footer .footer-links a {
  color: var(--ac);
  font-weight: 500;
}

.site-footer .footer-oss {
  color: var(--tm);
}

.site-footer .footer-copy {
  margin-bottom: 0;
  padding-top: 4px;
}

section.legal h2 {
  font-size: 1.05rem;
  margin-top: 28px;
}
section.legal h2:first-of-type {
  margin-top: 0;
}

/* download page */
.download-note {
  max-width: 62ch;
  color: var(--tm);
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.download-checklist {
  margin: 0 0 0 1.15em;
  max-width: 65ch;
  color: var(--t);
  font-size: 0.9rem;
}
.download-checklist li {
  margin-bottom: 12px;
}
.ver-tag {
  font-size: 0.75rem;
  color: var(--td);
  font-weight: 500;
}
.download-h3 {
  font-size: 0.95rem;
  color: #fff;
  margin: 22px 0 10px;
}
.download-h3:first-of-type {
  margin-top: 4px;
}
.download-ol,
.download-ul {
  margin: 8px 0 0 1.15em;
  max-width: 62ch;
  color: var(--t);
  font-size: 0.9rem;
}
.download-ol li,
.download-ul li {
  margin-bottom: 8px;
}
.download-p {
  max-width: 62ch;
  color: var(--t);
  font-size: 0.9rem;
  margin: 10px 0 12px;
}
.download-pre {
  margin: 12px 0;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--b1);
  border-radius: var(--r);
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--t);
}
.download-pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}
.download-muted {
  color: var(--tm);
  font-size: 0.85rem;
}

code, .mono {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: var(--panel);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--b1);
}
