/* arbiter-security.dev — front page
   Restraint is the design. */

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

:root {
  --bg: #131416;
  --surface: #1a1c1e;
  --border: #303335;
  --text: #cfd0d0;
  --text-muted: #9ca0a5;
  --text-dim: #6c7075;
  --accent: #3d94ff;
  --mono: "SFMono-Regular", Menlo, Consolas, Monaco, "Liberation Mono", monospace;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial,
    sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* film grain — barely perceptible, adds analog depth */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
  z-index: 9999;
}

/* ── skip link ──────────────────────── */

.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
  font-size: 0.875rem;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ── nav ────────────────────────────── */

nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(19, 20, 22, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
}

.nav-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }

.nav-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s;
}
.nav-links a:hover { color: var(--text); }

.nav-links .sponsor {
  color: var(--accent);
  font-weight: 600;
}

/* ── hero ───────────────────────────── */

.hero {
  max-width: 800px;
  margin: 0 auto;
  padding: 104px 24px 64px;
  text-align: center;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 16px;
  text-shadow: 0 0 80px rgba(61, 148, 255, 0.06);
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.1s;
}

.hero .tagline {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.2s;
}

.hero .description {
  font-size: 0.92rem;
  color: var(--text-dim);
  max-width: 460px;
  margin: 0 auto 36px;
  line-height: 1.65;
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.3s;
}

.cta-group {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.4s;
}

.cta-primary {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.15s;
}
.cta-primary:hover { background: #5ca5ff; text-decoration: none; }

.cta-secondary {
  display: inline-block;
  padding: 10px 24px;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.cta-secondary:hover {
  border-color: var(--text-dim);
  color: var(--text);
  text-decoration: none;
}

/* ── divider — the firewall line ────── */

.divider {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
  animation: fadeUp 0.6s ease both;
  animation-delay: 0.5s;
}

.divider::before {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50%;
  height: 1px;
  background: var(--accent);
  opacity: 0.25;
  box-shadow: 0 0 12px rgba(61, 148, 255, 0.08);
}

.divider-label {
  position: relative;
  background: var(--bg);
  padding: 0 16px;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── features ───────────────────────── */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  max-width: 800px;
  margin: 52px auto 0;
  padding: 0 24px;
}

.feature {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

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

.feature p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* ── install ────────────────────────── */

.install {
  max-width: 800px;
  margin: 56px auto 0;
  padding: 0 24px;
}

.install h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.install pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px 20px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.83rem;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 8px;
}

.install code {
  font-family: var(--mono);
  font-size: 0.83rem;
  background: none;
  padding: 0;
}

.install .note {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: 0;
}

/* ── footer ─────────────────────────── */

footer {
  max-width: 800px;
  margin: 64px auto 0;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.15s;
}
footer a:hover { color: var(--text-muted); }

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

/* ── load animation ─────────────────── */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── responsive ─────────────────────── */

@media (max-width: 640px) {
  .hero { padding: 72px 24px 48px; }
  .hero h1 { font-size: 2.4rem; }
  .features { grid-template-columns: 1fr; gap: 20px; }
  footer { flex-direction: column; text-align: center; }
}

/* ── a11y ───────────────────────────── */

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
