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

/* ─── Design Tokens ───────────────────────────────────────────── */
:root {
  --max: 900px;

  /* Cyberpunk palette */
  --bg:          #0a0d14;
  --bg-card:     #0f1320;
  --bg-card-alt: #111827;
  --border:      rgba(0, 229, 255, 0.15);
  --border-strong: rgba(0, 229, 255, 0.35);
  --accent:      #00e5ff;
  --accent-dim:  rgba(0, 229, 255, 0.12);
  --accent-glow: rgba(0, 229, 255, 0.25);
  --text:        #e2e8f0;
  --text-muted:  #8892a4;
  --text-code:   #7dd3fc;
  --link:        #38bdf8;
  --link-hover:  #00e5ff;
  --heading:     #f0f4ff;
  --h2-accent:   #00e5ff;
  --badge-bg:    rgba(0, 229, 255, 0.1);
  --badge-border:rgba(0, 229, 255, 0.3);
  --radius:      12px;
  --radius-pill: 999px;

  color-scheme: dark;
}

/* ─── Reset & Base ────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  padding: 0;

  /* Subtle cyberpunk grid background */
  background-image:
    linear-gradient(rgba(0, 229, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.025) 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: fixed;
}

/* ─── Layout wrapper ──────────────────────────────────────────── */
.page-wrapper {
  max-width: var(--max);
  margin: 0 auto;
  padding: 32px 20px 64px;
}

/* ─── Header ──────────────────────────────────────────────────── */
header {
  padding: 28px 0 20px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

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

/* Animated radar/pulse logo mark */
.brand-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.brand-text h1 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: var(--heading);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.brand-text h1 span {
  color: var(--accent);
}

.meta {
  margin: 3px 0 0;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* ─── Language Nav ───────────────────────────────────────────── */
.lang {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding-bottom: 4px;
}

.lang a {
  text-decoration: none;
  background: var(--badge-bg);
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.lang a:hover {
  color: var(--accent);
  background: var(--accent-dim);
  border-color: var(--border-strong);
  box-shadow: 0 0 8px var(--accent-glow);
}

.lang a[aria-current="page"] {
  color: var(--bg);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  pointer-events: none;
}

/* ─── Main content ───────────────────────────────────────────── */
main {
  margin-top: 32px;
}

/* ─── Info card ──────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 32px;
  font-size: 14px;
  line-height: 1.8;
  position: relative;
  overflow: hidden;
}

/* Accent line on left */
.card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 3px 0 0 3px;
}

.card strong {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: inline-block;
  min-width: 110px;
}

/* ─── Headings ───────────────────────────────────────────────── */
h2 {
  color: var(--heading);
  font-size: 17px;
  font-weight: 700;
  margin: 36px 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.2px;
}

h2::before {
  content: '//';
  color: var(--accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  opacity: 0.85;
}

h3 {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  margin: 24px 0 8px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-family: 'JetBrains Mono', monospace;
  opacity: 0.9;
}

/* ─── Paragraphs & Lists ─────────────────────────────────────── */
p {
  margin: 0 0 12px;
  color: var(--text);
}

ul {
  margin: 8px 0 14px;
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
  color: var(--text);
}

li::marker {
  color: var(--accent);
  content: '▸ ';
}

/* ─── Code ───────────────────────────────────────────────────── */
code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82em;
  color: var(--text-code);
  background: rgba(125, 211, 252, 0.08);
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 5px;
  padding: 1px 6px;
}

/* ─── Links ──────────────────────────────────────────────────── */
a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.2s;
  word-break: break-word;
}

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

/* ─── Strong inside body ─────────────────────────────────────── */
main strong {
  color: var(--heading);
  font-weight: 600;
}

/* ─── Section divider ────────────────────────────────────────── */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 36px 0;
}

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}

/* ─── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .page-wrapper {
    padding: 20px 16px 48px;
  }

  .header-top {
    flex-direction: column;
    gap: 12px;
  }

  .brand-text h1 {
    font-size: 17px;
  }

  h2 {
    font-size: 15px;
  }

  .card strong {
    display: block;
    min-width: unset;
  }
}
