/* ============================================================
   Overseer landing page: BALANCED
   Clean modern layout + tasteful Pip-Boy accents.
   ============================================================ */

:root {
  /* Neutral dark scale: pure greys, zero tint (R=G=B) */
  --bg:         #0b0b0b;
  --surface:    #141414;
  --surface-2:  #1c1c1c;
  --border:     #2a2a2a;
  --fg:         #e6e6e6;
  --fg-muted:   #8a8a8a;

  /* Pip-Boy green accent ramp */
  --accent:      #00ee00;
  --accent-600:  #008e00;
  --accent-700:  #005f00;
  --accent-900:  #002f00;
  --on-accent:   #000000;

  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Cascadia Code", "JetBrains Mono", ui-monospace, "SF Mono", Consolas, "Liberation Mono", monospace;

  --maxw: 1080px;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

/* --- Decorative layers ---------------------------------------------------- */
.fx-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.35;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0) 0 2px,
    rgba(0, 0, 0, 0.5) 2px 3px
  );
}
.fx-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0, 0, 0, 0.55) 100%);
}

/* Keep real content above the decorative layers. */
.site-header, main, .site-footer { position: relative; z-index: 2; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--fg);
}
.brand img { display: block; border-radius: 7px; }
.brand-name {
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.15rem;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  font-size: 0.95rem;
}
.site-nav a { color: var(--fg-muted); text-decoration: none; }
.site-nav a:hover { color: var(--fg); }
.site-nav .nav-cta {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
}
.site-nav .nav-cta:hover { color: var(--accent); text-shadow: 0 0 12px var(--accent-700); }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3.5rem;
  text-align: center;
}
.hero-emblem {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 200px;
  height: 200px;
  margin-bottom: 1.25rem;
}
.hero-emblem img {
  position: relative;
  z-index: 2;
  border-radius: 22px;
  filter: drop-shadow(0 0 22px rgba(0, 238, 0, 0.25));
}
.hero-emblem .crosshair {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed var(--accent-700);
  opacity: 0.7;
  animation: spin 60s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 7vw, 4.25rem);
  line-height: 1.05;
  margin: 0.25rem 0 0.5rem;
  letter-spacing: 0.01em;
  color: #f4fff4;
  text-shadow: 0 0 26px rgba(0, 238, 0, 0.35), 0 0 4px rgba(0, 238, 0, 0.5);
}
.hero-tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: var(--fg-muted);
  margin: 0 auto 1.5rem;
  max-width: 40ch;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid var(--accent-700);
  border-radius: 999px;
  background: var(--accent-900);
  color: #b6ffb6;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
}
.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-actions {
  display: flex;
  gap: 0.9rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 0 0 rgba(0, 238, 0, 0);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(0, 238, 0, 0.45);
}
.btn-ghost {
  border-color: var(--accent-600);
  color: var(--accent);
  background: transparent;
}
.btn-ghost:hover {
  background: var(--accent-900);
  box-shadow: 0 0 18px rgba(0, 238, 0, 0.2);
}

/* --- Shared section chrome ------------------------------------------------ */
main section { max-width: var(--maxw); margin: 0 auto; padding: 2.5rem 1.5rem; }
.section-title {
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin: 0 0 1.25rem;
  color: var(--fg);
}
.section-title::before {
  content: "";
  display: inline-block;
  width: 0.9rem;
  height: 0.9rem;
  margin-right: 0.6rem;
  border: 2px solid var(--accent);
  border-radius: 2px;
  transform: translateY(1px) rotate(45deg);
}

.pitch p { max-width: 68ch; color: var(--fg); font-size: 1.08rem; }
.pitch strong { color: #d9ffd9; }

/* --- Feature grid --------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-600);
  box-shadow: 0 0 26px rgba(0, 238, 0, 0.12);
}
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.9rem;
  border-radius: 9px;
  color: var(--accent);
  background: var(--accent-900);
  border: 1px solid var(--accent-700);
}
.card-icon svg { width: 22px; height: 22px; }
.card h3 { margin: 0 0 0.4rem; font-size: 1.1rem; color: var(--fg); }
.card p { margin: 0; color: var(--fg-muted); font-size: 0.96rem; }
.card code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: #b6ffb6;
  background: var(--accent-900);
  padding: 0.05em 0.35em;
  border-radius: 4px;
}

/* --- Code blocks ---------------------------------------------------------- */
.quickstart-lead { color: var(--fg-muted); margin: 1.5rem 0 0.6rem; }
.quickstart-lead:first-of-type { margin-top: 0; }
.code {
  margin: 0;
  padding: 1.1rem 1.25rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  color: #dfe7df;
}
.code .cm { color: var(--fg-muted); font-style: italic; }
.code .s  { color: #b6ffb6; }
.code .c  { color: var(--accent); }

/* --- Footer --------------------------------------------------------------- */
.site-footer {
  max-width: var(--maxw);
  margin: 2rem auto 0;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--accent); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .fine { margin-top: 0.5rem; font-size: 0.8rem; opacity: 0.75; }

/* --- Focus + motion ------------------------------------------------------- */
a:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

@media (max-width: 560px) {
  .site-header { flex-direction: column; gap: 0.75rem; }
  .site-nav { gap: 1rem; }
}
