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

:root {
  --bg:        #0c0f14;
  --surface:   #12161d;
  --border:    #232b36;
  --text:      #c3ccd8;
  --muted:     #6b7889;
  --accent:    #8b7bff;
  --accent2:   #5aa9ff;
  --heading:   #e7ecf5;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── Layout ─────────────────────────────────────────── */

.container {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Header ─────────────────────────────────────────── */

header {
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-name {
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--heading);
}

.site-name a {
  color: inherit;
  text-decoration: none;
}

.site-name span {
  color: var(--accent);
}

nav.top-nav {
  display: flex;
  gap: 20px;
}

nav.top-nav a {
  font-size: 0.80rem;
  color: var(--muted);
  transition: color 0.15s;
}

nav.top-nav a:hover,
nav.top-nav a.active {
  color: var(--text);
  text-decoration: none;
}

/* ── Hero ────────────────────────────────────────────── */

.hero {
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--border);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(139, 123, 255, 0.25);
  background: rgba(139, 123, 255, 0.06);
  border-radius: 4px;
  padding: 4px 10px;
  margin-bottom: 28px;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 14px;
}

.description {
  font-size: 0.90rem;
  color: var(--muted);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.description:last-child { margin-bottom: 0; }

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.hero-links a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 16px;
  transition: border-color 0.15s, color 0.15s;
}

.hero-links a:hover {
  border-color: rgba(139, 123, 255, 0.40);
  color: var(--heading);
  text-decoration: none;
}

/* ── Info sections on homepage ─────────────────────────── */

.info {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 18px;
  transition: border-color 0.15s;
}

.info-card:hover {
  border-color: rgba(139, 123, 255, 0.30);
}

.info-card h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}

.info-card p {
  font-size: 0.80rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────── */

footer {
  padding: 40px 0;
}

footer .container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  font-size: 0.80rem;
  color: var(--muted);
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer-meta {
  font-size: 0.75rem;
  color: #3a4756;
  line-height: 1.6;
}

/* ── Doc pages (privacy / terms) ─────────────────────── */

.page-wrap {
  padding: 60px 0 80px;
}

.page-header {
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.page-badge {
  font-size: 0.70rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.page-header h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin-bottom: 6px;
}

.page-date {
  font-size: 0.78rem;
  color: var(--muted);
}

.doc-nav {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.doc-nav a {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 5px;
  transition: border-color 0.15s, color 0.15s;
}

.doc-nav a:hover,
.doc-nav a.active {
  color: var(--heading);
  border-color: rgba(139, 123, 255, 0.40);
  text-decoration: none;
}

.doc-nav a.active {
  background: rgba(139, 123, 255, 0.06);
}

.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px 22px;
  margin-bottom: 10px;
}

.section h2 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.section p {
  font-size: 0.87rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 10px;
}

.section p:last-child { margin-bottom: 0; }

.section ul {
  list-style: none;
  padding-left: 0;
  margin-top: 8px;
}

.section ul li {
  font-size: 0.86rem;
  color: var(--text);
  line-height: 1.75;
  padding-left: 16px;
  position: relative;
  margin-bottom: 4px;
}

.section ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--accent);
}

.section ul li:last-child { margin-bottom: 0; }

/* ── Responsive ──────────────────────────────────────── */

@media (max-width: 520px) {
  nav.top-nav { gap: 12px; }
  .hero { padding: 60px 0 50px; }
}
