/* ==========================================================================
   Killspark — Tactical Gunmetal / Electric Ice-Blue theme (mockup C2)
   Single stylesheet for all pages. No build step.
   ========================================================================== */

:root {
  --bg-0: #0a0a0f;          /* deepest base (overscroll fallback) */
  --bg-1: #1a1d22;          /* gradient top */
  --bg-2: #111418;          /* gradient mid */
  --bg-3: #0c0e11;          /* gradient bottom / solid fallback */
  --surface: rgba(255,255,255,.03);
  --surface-border: #2c3138;   /* chips, dividers */
  --ghost-border: #3a4048;     /* secondary buttons */
  --text: #e7ebef;          /* primary text */
  --muted: #9aa3ad;         /* secondary text */
  --chip-text: #c3cad2;     /* chip body text */
  --ice-1: #3db8ff;         /* accent gradient start */
  --ice-2: #4f7cff;         /* accent gradient end */
  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  /* Solid fallback first so overscroll / iOS Safari can never flash white
     behind the fixed gradient. */
  background-color: var(--bg-3);
  background-image: linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 60%, var(--bg-3) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---- Navigation ---- */
.nav { position: sticky; top: 0; z-index: 50;
  background: rgba(12,14,17,.82); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--surface-border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-logo { font-family: 'Rajdhani', sans-serif; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; font-size: 1.15rem; }
.nav-logo .spk { color: var(--ice-1); }
.nav-links { list-style: none; display: flex; align-items: center; gap: 24px; }
.nav-links a { font-family: 'Rajdhani', sans-serif; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; font-size: .9rem;
  color: var(--muted); transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text);
  font-size: 1.5rem; cursor: pointer; }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 4px;
  font-family: 'Rajdhani', sans-serif; font-weight: 600; font-size: .95rem;
  text-transform: uppercase; letter-spacing: .04em;
  transition: transform .12s, box-shadow .12s; cursor: pointer; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(90deg, var(--ice-1), var(--ice-2));
  color: var(--bg-3); box-shadow: 0 0 22px rgba(61,184,255,.4); }
.btn-ghost { border: 1.5px solid var(--ghost-border); color: var(--text); }

/* ---- Hero ---- */
.hero { padding: 88px 0 72px; position: relative; overflow: hidden; }
/* Faint crosshair motif behind the hero (CSS-only, as in the C2 mockup). */
.hero::before { content: ""; position: absolute; left: 50%; top: 46%;
  width: 320px; height: 320px; z-index: 0; transform: translate(-50%, -50%);
  opacity: .12; color: var(--ice-1);
  background:
    linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat,
    linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
  border: 2px solid currentColor; border-radius: 50%; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.eyebrow { font-family: 'JetBrains Mono', monospace; font-size: .78rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--ice-1);
  font-weight: 500; margin-bottom: 18px; }
.hero-title { font-family: 'Rajdhani', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1.02; margin-bottom: 20px; }
.hero-title span { color: var(--ice-1); }
.hero-subtitle { font-size: 1.08rem; color: var(--muted); max-width: 48ch; margin-bottom: 28px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.chip { font-family: 'JetBrains Mono', monospace; font-size: .72rem;
  letter-spacing: .04em; padding: 6px 12px; border: 1px solid var(--surface-border);
  border-radius: 5px; color: var(--chip-text); }
.chip b { font-weight: 700; }
.chip .hl { color: var(--ice-1); }
.hero-actions { display: flex; gap: 13px; flex-wrap: wrap; }

/* ---- Sections ---- */
.section { padding: 72px 0; }
.section-title { font-family: 'Rajdhani', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .01em;
  font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 12px; }
.section-subtitle { color: var(--muted); max-width: 52ch; margin-bottom: 40px; }

/* ---- Pillars ---- */
.pillar-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.pillar { background: var(--surface); border: 1px solid var(--surface-border);
  border-radius: 10px; padding: 28px 26px; transition: border-color .15s, transform .15s; }
.pillar:hover { border-color: var(--ghost-border); transform: translateY(-3px); }
.pillar-icon { color: var(--ice-1); margin-bottom: 14px; }
.pillar-name { font-family: 'Rajdhani', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em; font-size: 1.35rem; margin-bottom: 8px; }
.pillar-blurb { color: var(--muted); font-size: .98rem; }

/* ---- Status band ---- */
.status-band { padding: 56px 0; text-align: center;
  border-top: 1px solid var(--surface-border); border-bottom: 1px solid var(--surface-border); }
.status-band .tag { font-family: 'JetBrains Mono', monospace; font-size: .78rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ice-1); }
.status-band h2 { font-family: 'Rajdhani', sans-serif; font-weight: 700;
  text-transform: uppercase; letter-spacing: .02em;
  font-size: clamp(1.5rem, 4vw, 2.1rem); margin-top: 10px; }

/* ---- Footer ---- */
.footer { border-top: 1px solid var(--surface-border); padding: 48px 0 36px; margin-top: 24px; }
.footer p { color: var(--muted); font-size: .92rem; margin-bottom: 10px; }
.footer a { color: var(--text); }
.footer a:hover { color: var(--ice-1); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 16px 0 18px;
  font-family: 'Rajdhani', sans-serif; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; font-size: .85rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { color: var(--muted); font-size: .85rem; margin-top: 4px; }

/* ---- Fade-in on scroll ---- */
.fade-in { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.fade-in.visible { opacity: 1; transform: none; }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }

/* ---- 404 ---- */
.notfound { min-height: 66vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; }
.notfound h1 { font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 6rem;
  color: var(--ice-1); line-height: 1; margin-bottom: 8px; }
.notfound p { color: var(--muted); max-width: 42ch; margin-bottom: 26px; }

/* ---- Responsive ---- */
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; gap: 0; background: var(--bg-3);
    border-bottom: 1px solid var(--surface-border); padding: 0 24px;
    max-height: 0; overflow: hidden; transition: max-height .25s; }
  .nav-links.open { max-height: 320px; }
  .nav-links li { width: 100%; padding: 12px 0; }
  .pillar-grid { grid-template-columns: 1fr; }
  .chips { flex-direction: column; align-items: flex-start; }
}
