/* ============================================================
   White Web Security — shared styles
   Dark technical-editorial. Mint = safe/resolved, amber = action.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;1,6..72,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --bg:        #0a0b0e;
  --bg-1:      #0e1117;
  --bg-2:      #12161e;
  --bg-3:      #181d27;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.14);

  --text:      #e7eaf0;
  --text-2:    #aab2c0;
  --muted:     #6b7587;

  --mint:      #5fe9b8;
  --mint-dim:  #2f7d63;
  --amber:     #f3b04b;
  --red:       #f0716f;
  --violet:    #9d8cff;

  --mint-glow: rgba(95,233,184,0.16);

  --font-disp: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Newsreader', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1120px;
  --readw: 720px;
  --r: 14px;
  --r-sm: 9px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-disp);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---- Ambient background: signal grid + glow ---- */
.bg-fx {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 78% -8%, var(--mint-glow), transparent 60%),
    radial-gradient(800px 700px at 0% 100%, rgba(157,140,255,0.07), transparent 55%);
}
.bg-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 25%, transparent 75%);
          mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, #000 25%, transparent 75%);
  opacity: 0.5;
}
.bg-fx::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.4'/%3E%3C/svg%3E");
  opacity: 0.025;
  mix-blend-mode: overlay;
}

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

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

::selection { background: var(--mint); color: #06231a; }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text);
}
.brand .glyph {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: linear-gradient(150deg, var(--bg-3), var(--bg-1));
  color: var(--mint);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(95,233,184,0.06), 0 0 22px var(--mint-glow);
}
.brand b { font-weight: 600; }
.brand .dim { color: var(--muted); }
.cursor { color: var(--mint); animation: blink 1.15s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  font-size: 13.5px;
  color: var(--text-2);
  letter-spacing: 0.01em;
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  font-size: 13px;
  padding: 8px 15px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--text) !important;
}
.nav-cta:hover { border-color: var(--mint-dim); background: rgba(95,233,184,0.06); }

/* official Buy Me a Coffee style button in the header */
.nav-coffee {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  padding: 8px 15px;
  border-radius: 11px;
  background: #ffdd00;
  color: #15130c !important;
  border: 1px solid rgba(0,0,0,0.14);
  box-shadow: 0 6px 18px -10px rgba(255,221,0,0.7);
  transition: background .18s ease, transform .16s ease, box-shadow .2s ease;
}
.nav-coffee svg { color: #15130c; }
.nav-coffee:hover { background: #ffe53d; box-shadow: 0 8px 22px -8px rgba(255,221,0,0.85); transform: translateY(-1px); }
.nav-coffee:active { transform: translateY(0); }

@media (max-width: 720px){
  .nav-links .hide-sm { display: none; }
  .nav-coffee {
    padding: 6px 11px;
    font-size: 12.5px;
    gap: 6px;
    line-height: 1.2;
  }
  .nav-coffee svg { width: 15px; height: 15px; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-disp);
  font-size: 14.5px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--mint);
  color: #052017;
  box-shadow: 0 0 0 1px rgba(95,233,184,0.4), 0 10px 30px -12px var(--mint);
}
.btn-primary:hover { box-shadow: 0 0 0 1px var(--mint), 0 14px 34px -10px var(--mint); }
.btn-ghost {
  background: var(--bg-2);
  border-color: var(--line-2);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--text-2); background: var(--bg-3); }
.btn-coffee {
  background: linear-gradient(135deg,#ffdd57,#ffb84d);
  color: #2a1c00;
  font-weight: 600;
  box-shadow: 0 10px 30px -12px rgba(255,184,77,0.7);
}
.btn-coffee:hover { box-shadow: 0 14px 34px -10px rgba(255,184,77,0.8); }

/* ---- Eyebrow / labels ---- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--mint-dim);
}

/* ---- Badges ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.sev-critical { color: var(--red); border-color: rgba(240,113,111,0.35); background: rgba(240,113,111,0.07); }
.sev-critical .dot { background: var(--red); box-shadow: 0 0 10px var(--red); }
.sev-high { color: var(--amber); border-color: rgba(243,176,75,0.35); background: rgba(243,176,75,0.07); }
.sev-high .dot { background: var(--amber); box-shadow: 0 0 10px var(--amber); }

/* ---- Section heads ---- */
.section { padding: 92px 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
h1,h2,h3,h4 { font-family: var(--font-disp); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 16px 0 14px; }
.section-head p { font-family: var(--font-body); font-size: 19px; color: var(--text-2); margin: 0; line-height: 1.5; }

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--line);
  padding: 54px 0 60px;
  background: var(--bg-1);
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between; align-items: flex-start; }
.footer .brand { margin-bottom: 14px; }
.footer p { font-family: var(--font-body); color: var(--muted); font-size: 15px; max-width: 360px; margin: 0; }
.footer-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); line-height: 2; }
.footer-meta a:hover { color: var(--mint); }

/* reveal */
@media (prefers-reduced-motion: no-preference){
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
}
