/* ══════════════════════════════════════════════════════════
   PixelBlocker+ site: the PixelBlocker family look (plan 3.6, 5.1)
   The colours, fonts, notches and spacing come from pb_tokens.css, which is
   GENERATED from pb_design/pb_tokens.json (python3 pb_design/generate.py).
   Every page links pb_tokens.css first, then this file. Never copy a colour
   value in here by hand: read a --pb-* variable.

   The short names below (--red, --bg-card, --font-mono and the rest) are the
   names the pages' own <style> blocks already read. Each one points at a
   PixelBlocker token, so a page reads the family look without a rewrite.
   ══════════════════════════════════════════════════════════ */

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

:root {
  --red: var(--pb-red);
  --red-dim: var(--pb-red-dim);
  --red-hot: var(--pb-red-hot);
  --red-subtle: var(--pb-red-subtle);
  --red-glow: var(--pb-red-glow);
  /* Cyan is an accent in the family look, never "selected" (red is). */
  --cyan: var(--pb-cyan);
  --cyan-dim: var(--pb-cyan);
  --cyan-subtle: var(--pb-atmos-cyan);
  --cyan-glow: var(--pb-atmos-cyan);
  --yellow: var(--pb-yellow);
  --green: var(--pb-green);
  --bg-void: var(--pb-void);
  --bg-deep: var(--pb-deep);
  --bg-surface: var(--pb-card);
  --bg-card: var(--pb-card);
  --bg-card-hover: var(--pb-deep);
  --bg-input: var(--pb-input);
  --bg-input-focus: var(--pb-deep);
  --text-primary: var(--pb-text);
  --text-secondary: var(--pb-text-2);
  --text-muted: var(--pb-text-3);
  --border-dim: var(--pb-border);
  --border-active: var(--pb-border-active);
  --font-display: var(--pb-font-display);
  --font-mono: var(--pb-font-mono);
  --font-sans: var(--pb-font-body);
  --container: 1180px;
  /* The PixelBlocker corner: top-right and bottom-left cut. */
  --notch: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  --notch-small: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
  --notch-card: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

html { color-scheme: dark; scroll-behavior: smooth; background: var(--pb-void); }

body {
  font-family: var(--font-sans);
  font-size: 16px;
  background: var(--pb-void);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}

/* The atmosphere and the grid, as on pixelblocker.app. They sit behind the
   page (z-index -1), so no page element needs a stacking rule of its own. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 50% at 20% 0%, var(--pb-atmos-red), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, var(--pb-atmos-cyan), transparent 60%),
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px) 0 0 / 56px 56px;
}

::selection { background: var(--red); color: var(--bg-void); }

a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { text-wrap: balance; font-family: var(--font-display); }

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

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

/* ══ NAV ══ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(6, 6, 11, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border-dim);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* The wordmark is set in type until the logo files arrive (U9). */
.nav-logo, .footer-brand {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.nav-logo::before, .footer-brand::before {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  background: var(--red);
  box-shadow: 0 0 14px var(--red-glow);
  clip-path: polygon(0 0, calc(100% - 3px) 0, 100% 3px, 100% 100%, 3px 100%, 0 calc(100% - 3px));
}

.nav-logo span, .footer-brand span { color: var(--red); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.15s;
  padding: 8px 0;
}

.nav-links a:hover { color: var(--red); }

.nav-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--border-dim);
  color: var(--text-secondary);
  clip-path: var(--notch-small);
  transition: color 0.15s, background 0.15s;
  padding: 0 !important;
}
.nav-social:hover { color: var(--red); background: var(--red-subtle); }
.nav-social svg { display: block; width: 16px; height: 16px; }

.nav-hamburger {
  display: none;
  background: var(--border-dim);
  border: 0;
  cursor: pointer;
  padding: 7px;
  color: var(--text-primary);
  clip-path: var(--notch-small);
}

.nav-hamburger svg { display: block; }

/* The pre-update notice (plan 8.3 step 4): home, sign-up and download only. */
.update-banner {
  margin: 64px 0 0;
  padding: 10px 24px;
  background: var(--pb-yellow-subtle);
  border-bottom: 1px solid var(--border-active);
  color: var(--text-primary);
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}
.update-banner strong { color: var(--pb-yellow); font-weight: 700; }
.update-banner + * { margin-top: 0; }

/* ══ BUTTONS ══ */
.btn-cyber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--red);
  color: var(--pb-on-accent);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  clip-path: var(--notch);
  transition: background 0.12s, transform 0.1s;
}

.btn-cyber:hover { background: var(--red-hot); }
.btn-cyber:active { transform: scale(0.98); }
.btn-cyber:disabled { background: var(--border-active); color: var(--text-muted); cursor: default; }

.btn-cyber-outline, .btn-cyan, .btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  background: transparent;
  color: var(--red);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  border: 0;
  box-shadow: inset 0 0 0 1px var(--red);
  cursor: pointer;
  clip-path: var(--notch);
  transition: background 0.12s, color 0.12s;
}

.btn-cyber-outline:hover, .btn-cyan:hover, .btn-danger:hover { background: var(--red-subtle); color: var(--red-hot); }

.btn-cyan { color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--border-active); }

/* ══ CARDS ══ */
.cyber-card, .glass-card {
  background: var(--bg-card);
  padding: 24px;
  position: relative;
  clip-path: var(--notch-card);
  box-shadow: inset 0 0 0 1px var(--border-dim);
}

.cyber-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 60%; height: 2px;
  background: linear-gradient(90deg, var(--red), transparent);
  box-shadow: 0 0 8px var(--red-glow);
}

/* ══ INPUTS ══ */
.cyber-input-group { display: flex; flex-direction: column; gap: 6px; }

.cyber-input-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--red);
  padding: 4px 0;
}

.cyber-input {
  padding: 12px 16px;
  background: var(--bg-input);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--border-dim);
  clip-path: var(--notch);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  outline: none;
  transition: box-shadow 0.15s;
}

.cyber-input::placeholder { color: var(--text-muted); }
.cyber-input:focus { box-shadow: inset 0 0 0 1px var(--red); }

/* ══ TYPOGRAPHY ══ */
.display-large {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 42px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--red);
  line-height: 1.1;
}

.headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-primary);
}

.label-small {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--red);
}
.label-small::before { content: '// '; }

.label-large {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

/* ══ LAYOUT ══ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

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

.cyber-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-active), transparent);
  margin: 0;
  border: none;
}

.status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot.online { background: var(--red); box-shadow: 0 0 8px var(--red-glow); animation: pulse-dot 1.4s ease-in-out infinite; }
.status-dot.offline { background: var(--text-muted); }

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.cyber-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  clip-path: var(--notch-small);
}

.cyber-pill.red { background: var(--red-subtle); color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.cyber-pill.cyan { background: transparent; color: var(--text-secondary); box-shadow: inset 0 0 0 1px var(--border-active); }
.cyber-pill.soon { background: var(--pb-yellow-subtle); color: var(--pb-yellow); box-shadow: inset 0 0 0 1px var(--pb-yellow); }

/* ══ FOOTER ══ */
.footer {
  padding: 48px 24px 32px;
  max-width: var(--container);
  margin: 0 auto;
  border-top: 1px solid var(--border-dim);
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand { margin-bottom: 12px; font-size: 13px; }

.footer-tagline { font-size: 14px; color: var(--text-secondary); max-width: 260px; line-height: 1.6; }

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }

.footer-col a {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color 0.15s;
  padding: 4px 0;
  display: inline-block;
}

.footer-col a:hover { color: var(--red); }

.footer-bottom {
  border-top: 1px solid var(--border-dim);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-copy { font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); letter-spacing: 1px; }

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

.footer-links a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 1px;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--red); }

/* ══ RESPONSIVE ══ */
@media (max-width: 768px) {
  .nav-hamburger { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border-dim);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 0;
  }

  .nav-links.open { display: flex; }

  .nav-links li { padding: 10px 0; border-bottom: 1px solid var(--border-dim); }
  .nav-links li:last-child { border-bottom: none; }

  .nav-inner, .container, .page-container, .footer { padding-left: 16px; padding-right: 16px; }
  .update-banner { padding: 10px 16px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .display-large { font-size: 28px; letter-spacing: 2px; }
  .headline { font-size: 18px; letter-spacing: 2px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
