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

:root {
  --bg:        #0c0c0e;
  --bg-card:   #111115;
  --bg-raised: #18181d;
  --border:    #222228;
  --border-hi: #2e2e38;
  --text:      #e4e4ed;
  --text-muted:#8888a0;
  --accent:    #5b8df5;
  --accent-dim:#2a3d6e;
  --mono:      'JetBrains Mono', 'Fira Code', monospace;
  --sans:      'Inter', system-ui, sans-serif;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ── Nav ───────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(8px);
}

.nav {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

.nav-brand:hover {
  text-decoration: none;
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.15s;
}

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

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

.main-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

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

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

.hero-label {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 3px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(38px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 16px;
  font-family: var(--sans);
}

.logo-fark {
  color: var(--text);
}

.logo-sep {
  color: var(--accent);
  font-weight: 300;
  margin: 0 4px;
  opacity: 0.6;
}

.logo-sec {
  color: var(--accent);
}

.accent {
  color: var(--accent);
}

.hero-sub {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.hero-divider {
  width: 40px;
  height: 2px;
  background: var(--border-hi);
  margin-bottom: 20px;
}

.hero-desc {
  max-width: 520px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-contact {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Buttons ───────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 20px;
  border-radius: 5px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #0c0c0e;
  transition: opacity 0.15s;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.85;
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-hi);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
  opacity: 1;
}

/* ── Stat Strip ─────────────────────────────────────── */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 56px;
  background: var(--bg-card);
}

.stat {
  padding: 20px 24px;
  border-right: 1px solid var(--border);
}

.stat:last-child {
  border-right: none;
}

.stat-num {
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Focus Grid ─────────────────────────────────────── */

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 16px;
}

.focus-item {
  background: var(--bg-card);
  padding: 28px;
  transition: background 0.15s;
}

.focus-item:hover {
  background: var(--bg-raised);
}

.focus-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: 0.8;
}

.focus-item h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.focus-item p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── PGP Page ──────────────────────────────────────── */

.pgp-page {
  max-width: 760px;
}

.pgp-header {
  margin-bottom: 36px;
}

.pgp-header h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.pgp-sub {
  font-size: 14px;
  color: var(--text-muted);
}

.pgp-meta {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
}

.pgp-meta-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.pgp-meta-row:last-child {
  border-bottom: none;
}

.meta-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  min-width: 90px;
  flex-shrink: 0;
}

.meta-value {
  font-size: 13px;
  color: var(--text);
}

.mono {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

.pgp-block-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 32px;
}

.pgp-block-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border-hi);
  color: var(--text-muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

.copy-btn:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.pgp-block {
  padding: 20px;
  overflow-x: auto;
  margin: 0;
}

.pgp-block code {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-muted);
  white-space: pre;
  display: block;
}

.pgp-instructions h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  overflow-x: auto;
}

.code-block code {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-muted);
  white-space: pre;
  display: block;
}

/* ── Snake Game ─────────────────────────────────────── */

.game-section {
  margin-top: 56px;
  padding-top: 40px;
}

.game-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 12px;
}

.game-title {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.game-score {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

.game-score span {
  color: var(--accent);
}

#snake-canvas {
  display: block;
  border: 1px solid var(--border);
  border-radius: 4px;
  width: 100%;
  max-width: 500px;
  height: auto;
  cursor: pointer;
}

.game-hint {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--border-hi);
  letter-spacing: 0.04em;
}

/* ── Disclosure Policy ─────────────────────────────── */

.disclosure-page {
  max-width: 720px;
}

.disclosure-header {
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.disclosure-section {
  margin-bottom: 40px;
}

.disclosure-section h2 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.disclosure-section p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}

.disclosure-section ul {
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}

.disclosure-section ul li {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  padding-left: 16px;
  position: relative;
}

.disclosure-section ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
}

.disclosure-section strong {
  color: var(--text);
  font-weight: 600;
}

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

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px;
  text-align: center;
}

.site-footer p {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--mono);
}

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

@media (max-width: 700px) {
  .main-content {
    padding: 40px 16px 72px;
  }

  .nav {
    padding: 0 16px;
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat:nth-child(2) {
    border-right: none;
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--border);
  }

  .focus-grid {
    grid-template-columns: 1fr;
  }

  .pgp-meta-row {
    flex-direction: column;
    gap: 4px;
  }
}
