/* Project 404 — cyberpunk base styles
   Forked from Gridhack Design System 2026-05-12 snapshot. Same architecture,
   different palette: cyan primary, magenta secondary, cooler dark base. */
:root {
  /* Primary: electric cyan. Use for buttons, links, primary accent. */
  --accent: #00e5ff;
  --accent-soft: #00b8d4;
  --accent-glow: rgba(0, 229, 255, 0.35);
  --accent-halo: rgba(0, 229, 255, 0.12);

  /* Secondary: hot magenta. Use sparingly for contrast — alerts, highlights,
     hover states on cyan, or as the dual-neon counterpoint in hero/section art. */
  --accent-2: #ff2079;
  --accent-2-soft: #c8175c;
  --accent-2-glow: rgba(255, 32, 121, 0.35);
  --accent-2-halo: rgba(255, 32, 121, 0.12);

  /* Dark base: cooler than the Gridhack green-tinted base. */
  --bg: #05070d;
  --bg-2: #0a0e16;
  --panel: #0e131c;
  --panel-2: #101724;
  --hairline: rgba(0, 229, 255, 0.18);
  --hairline-soft: rgba(255, 255, 255, 0.06);
  --text: #e6ecf2;
  --text-dim: #8090a3;
  --text-faint: #4a5868;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

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

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(0,229,255,0.08), transparent 60%),
    radial-gradient(800px 400px at 10% 40%, rgba(0,229,255,0.04), transparent 60%),
    var(--bg);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

.mono { font-family: var(--font-mono); font-weight: 400; letter-spacing: 0.02em; font-size: 11px; text-transform: uppercase; color: var(--text-dim); }
.logo-mark-img { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; }
.logo-mark-img img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 8px rgba(0,229,255,0.45)); }
.logo-mark-power { width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; color: var(--accent); filter: drop-shadow(0 0 8px rgba(0,229,255,0.5)); }
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 0.95; }

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 32px;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(7, 11, 9, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--hairline);
}
.nav-inner {
  max-width: 1320px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px;
}
.logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 18px;
  letter-spacing: 0.04em;
}
.logo-mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--accent);
}
.logo-text { color: var(--accent); font-family: 'Orbitron', system-ui, sans-serif; font-weight: 900; letter-spacing: 0.18em; }
.nav-links {
  display: flex; align-items: center; gap: 34px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.nav-links a {
  color: var(--text);
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px;
  font-family: var(--font-display);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 4px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #051008;
  box-shadow: 0 0 0 0 var(--accent-glow), 0 8px 24px -8px rgba(0,229,255,0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 6px var(--accent-halo), 0 14px 34px -10px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--hairline);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ============ SECTIONS ============ */
section { position: relative; padding: 120px 0; }
.section-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 20px;
}
.section-label::before {
  content: ''; width: 24px; height: 1px; background: var(--accent);
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4.2vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.0;
  margin-bottom: 18px;
}
.section-title .em { color: var(--accent); }
.section-sub {
  color: var(--text-dim);
  font-size: 17px;
  max-width: 560px;
  line-height: 1.55;
}

/* Divider hairline */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline) 20%, var(--hairline) 80%, transparent);
}
