/* ============================================================
   GHOSTVECTOR — Stylesheet
   Theme: Pure black base · Electric green primary · Red critical
   Aesthetic: Terminal, offensive security, elite researcher
   ============================================================ */

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

:root {
  --bg:           #000000;
  --bg-2:         #050505;
  --bg-3:         #0a0a0a;
  --bg-card:      #080808;
  --border:       rgba(255,255,255,0.05);
  --border-md:    rgba(255,255,255,0.09);
  --text:         #c8d0e0;
  --text-2:       #6a7590;
  --text-3:       #3a4050;
  --green:        #39ff14;
  --green-dim:    #2acc10;
  --green-glow:   rgba(57,255,20,0.06);
  --red:          #ff2244;
  --red-dim:      #cc1a36;
  --red-glow:     rgba(255,34,68,0.06);
  --amber:        #ffaa00;
  --white:        #e8eef8;
  --font-display: 'Syne', sans-serif;
  --font-mono:    'DM Mono', monospace;
  --radius:       6px;
  --radius-lg:    10px;
  --max-w:        1100px;
  --nav-h:        64px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-mono); line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }
a { color: var(--green); text-decoration: none; transition: opacity 0.2s; }
a:hover { opacity: 0.75; }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(57,255,20,0.2); border-radius: 2px; }

/* NAV */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: var(--nav-h); background: rgba(0,0,0,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(57,255,20,0.08);
}
.nav-container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; height: 100%; display: flex; align-items: center; justify-content: space-between; }
.nav-logo { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 500; letter-spacing: 0.02em; }
.logo-zero { color: var(--red); }
.logo-name { color: var(--green); }
.nav-links { display: flex; align-items: center; gap: 0.1rem; list-style: none; }
.nav-links a { color: var(--text-2); font-family: var(--font-mono); font-size: 0.8rem; padding: 0.4rem 0.75rem; border-radius: var(--radius); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--green); background: var(--green-glow); opacity: 1; }
.nav-links .nav-disclosure { color: var(--amber); }
.nav-links .nav-cta { color: var(--red); border: 1px solid rgba(255,34,68,0.2); margin-left: 0.5rem; }
.nav-links .nav-cta:hover { background: var(--red-glow); color: var(--red); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 1px; background: var(--text-2); }

/* HERO */
.hero { min-height: 100vh; padding-top: var(--nav-h); display: flex; align-items: center; position: relative; overflow: hidden; }
.hero-scan {
  position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(57,255,20,0.008) 2px, rgba(57,255,20,0.008) 4px);
}
.hero-glow-green { position: absolute; top: 30%; left: -10%; width: 600px; height: 600px; background: radial-gradient(ellipse, rgba(57,255,20,0.04) 0%, transparent 70%); }
.hero-glow-red { position: absolute; bottom: 20%; right: -5%; width: 400px; height: 400px; background: radial-gradient(ellipse, rgba(255,34,68,0.04) 0%, transparent 70%); }

.hero .container { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; padding: 5rem 2rem; }

.hero-pre { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); margin-bottom: 1rem; animation: fadeUp 0.5s ease both; }
.hero-pre .cursor { color: var(--green); animation: blink 1s infinite; }

.hero-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.0; letter-spacing: -0.04em; margin-bottom: 1.5rem; animation: fadeUp 0.5s 0.1s ease both; }
.hero-title .gv-zero { color: var(--red); }
.hero-title .gv-name { color: var(--green); }

.hero-tagline { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-2); margin-bottom: 0.75rem; animation: fadeUp 0.5s 0.15s ease both; }
.hero-tagline .tag-dot { color: var(--red); margin: 0 0.4rem; }

.hero-desc { font-size: 0.9rem; color: var(--text-3); max-width: 480px; margin-bottom: 2.5rem; line-height: 1.8; animation: fadeUp 0.5s 0.2s ease both; }

.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; animation: fadeUp 0.5s 0.25s ease both; }

/* TERMINAL CARD */
.hero-visual { animation: fadeIn 0.7s 0.3s ease both; }
.terminal {
  background: var(--bg-card); border: 1px solid rgba(57,255,20,0.1);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 0 40px rgba(57,255,20,0.04), 0 0 80px rgba(255,34,68,0.02);
}
.terminal-bar { background: #0d0d0d; padding: 0.65rem 1rem; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid var(--border); }
.t-dot { width: 10px; height: 10px; border-radius: 50%; }
.t-dot.r { background: #ff5f57; }
.t-dot.a { background: #ffbd2e; }
.t-dot.g { background: #28c840; }
.t-title { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-3); margin-left: 0.5rem; }
.terminal-body { padding: 1.25rem; font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.9; }
.t-line { display: flex; gap: 0.75rem; }
.t-prompt { color: var(--red); flex-shrink: 0; }
.t-cmd { color: var(--green); }
.t-out { color: var(--text-2); padding-left: 1.25rem; }
.t-out.highlight { color: var(--green); }
.t-out.warn { color: var(--amber); }
.t-out.critical { color: var(--red); }
.t-cursor { color: var(--green); animation: blink 1s infinite; }
.t-spacer { height: 0.5rem; }

/* STATS ROW */
.stats-row { display: flex; gap: 0; border-top: 1px solid rgba(57,255,20,0.08); }
.stat-box { flex: 1; padding: 1rem; text-align: center; border-right: 1px solid rgba(57,255,20,0.08); }
.stat-box:last-child { border-right: none; }
.stat-num { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--green); line-height: 1; }
.stat-num.red { color: var(--red); }
.stat-label { font-family: var(--font-mono); font-size: 0.62rem; color: var(--text-3); margin-top: 0.3rem; display: block; }

/* BUTTONS */
.btn-primary { display: inline-flex; align-items: center; background: var(--green); color: #000; font-family: var(--font-mono); font-weight: 500; font-size: 0.85rem; padding: 0.65rem 1.5rem; border-radius: var(--radius); transition: transform 0.2s, box-shadow 0.2s; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(57,255,20,0.2); opacity: 1; color: #000; }
.btn-secondary { display: inline-flex; align-items: center; background: transparent; color: var(--red); border: 1px solid rgba(255,34,68,0.3); font-family: var(--font-mono); font-size: 0.85rem; padding: 0.65rem 1.5rem; border-radius: var(--radius); transition: background 0.2s; }
.btn-secondary:hover { background: var(--red-glow); opacity: 1; color: var(--red); }
.btn-secondary-sm { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-3); border: 1px solid var(--border); padding: 0.4rem 0.9rem; border-radius: var(--radius); }
.btn-secondary-sm:hover { color: var(--green); border-color: rgba(57,255,20,0.2); opacity: 1; }
.btn-back { font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-3); }
.btn-back:hover { color: var(--green); opacity: 1; }

/* SECTIONS */
section { padding: 4rem 0; }
.section-header { margin-bottom: 2.5rem; }
.section-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--green); text-transform: uppercase; letter-spacing: 0.15em; display: block; margin-bottom: 0.75rem; }
.section-label.red { color: var(--red); }
.section-header h2 { font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -0.02em; color: var(--white); }
.section-header p { color: var(--text-2); font-size: 0.875rem; margin-top: 0.5rem; max-width: 560px; }

/* CVE TABLE */
.cve-section { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.cve-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.cve-table th { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em; padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); text-align: left; }
.cve-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.cve-table tr:last-child td { border-bottom: none; }
.cve-table tr:hover td { background: rgba(57,255,20,0.02); }
.cve-table a { color: var(--green); font-weight: 500; }
.severity-badge { font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; padding: 0.2rem 0.6rem; border-radius: 3px; letter-spacing: 0.05em; }
.sev-critical { background: rgba(255,34,68,0.1); color: var(--red); border: 1px solid rgba(255,34,68,0.2); }
.sev-high { background: rgba(255,170,0,0.1); color: var(--amber); border: 1px solid rgba(255,170,0,0.2); }
.sev-medium { background: rgba(57,255,20,0.08); color: var(--green); border: 1px solid rgba(57,255,20,0.15); }
.sev-low { background: rgba(255,255,255,0.04); color: var(--text-3); border: 1px solid var(--border); }
.cve-status-patched { color: var(--green); font-size: 0.72rem; }
.cve-status-pending { color: var(--amber); font-size: 0.72rem; }
.cve-empty { text-align: center; padding: 3rem; color: var(--text-3); font-size: 0.82rem; }

/* WRITEUPS GRID */
.writeups-section { background: var(--bg); }
.writeups-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.writeup-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem; transition: border-color 0.2s; }
.writeup-card:hover { border-color: rgba(57,255,20,0.15); }
.platform-badge { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-3); background: var(--bg-3); border: 1px solid var(--border); padding: 0.15rem 0.5rem; border-radius: 3px; display: inline-block; }
.writeup-card h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; color: var(--white); line-height: 1.3; }
.writeup-card h3 a { color: var(--white); }
.writeup-card h3 a:hover { color: var(--green); opacity: 1; }
.writeup-card p { font-size: 0.82rem; color: var(--text-2); line-height: 1.6; }
.writeup-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.bounty-amount { font-family: var(--font-mono); font-size: 0.75rem; color: var(--green); }
.writeup-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); }

/* TOOLS GRID */
.tools-section { background: var(--bg-2); border-top: 1px solid var(--border); }
.tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tool-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; transition: border-color 0.2s, transform 0.2s; }
.tool-card:hover { border-color: rgba(57,255,20,0.15); transform: translateY(-2px); }
.tool-lang { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-3); margin-bottom: 0.75rem; }
.tool-card h3 { font-family: var(--font-mono); font-size: 0.9rem; color: var(--green); margin-bottom: 0.5rem; }
.tool-card p { font-size: 0.82rem; color: var(--text-2); line-height: 1.6; }
.tool-links { display: flex; gap: 0.75rem; margin-top: 1rem; }
.tool-links a { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); border: 1px solid var(--border); padding: 0.25rem 0.65rem; border-radius: 3px; }
.tool-links a:hover { color: var(--green); border-color: rgba(57,255,20,0.2); opacity: 1; }

/* CVE SINGLE PAGE */
.cve-single { padding-top: var(--nav-h); }
.cve-header { padding: 3.5rem 0 2.5rem; background: var(--bg-2); border-bottom: 1px solid var(--border); }
.cve-breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-3); margin-bottom: 1.5rem; }
.cve-breadcrumb a { color: var(--text-3); }
.cve-breadcrumb a:hover { color: var(--green); }
.cve-id-badge { display: inline-block; font-family: var(--font-mono); font-size: 0.75rem; background: rgba(255,34,68,0.08); color: var(--red); border: 1px solid rgba(255,34,68,0.2); padding: 0.3rem 0.85rem; border-radius: 3px; margin-bottom: 1rem; letter-spacing: 0.05em; }
.cve-title { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; color: var(--white); line-height: 1.2; margin-bottom: 1.25rem; }
.cve-meta-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.cvss-badge { font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700; padding: 0.3rem 0.75rem; border-radius: 3px; }
.cvss-critical { background: rgba(255,34,68,0.1); color: var(--red); border: 1px solid rgba(255,34,68,0.2); }
.cvss-high { background: rgba(255,170,0,0.1); color: var(--amber); border: 1px solid rgba(255,170,0,0.2); }
.cvss-medium { background: rgba(57,255,20,0.07); color: var(--green); border: 1px solid rgba(57,255,20,0.15); }
.cve-meta-item { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); }
.cve-meta-item strong { color: var(--text-2); }
.cve-status { font-family: var(--font-mono); font-size: 0.68rem; padding: 0.2rem 0.6rem; border-radius: 3px; }
.cve-status-patched { background: rgba(57,255,20,0.07); color: var(--green); border: 1px solid rgba(57,255,20,0.15); }
.cve-status-pending { background: rgba(255,170,0,0.07); color: var(--amber); border: 1px solid rgba(255,170,0,0.15); }
.cve-tags { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-top: 1rem; }
.tag { font-family: var(--font-mono); font-size: 0.65rem; background: var(--bg-3); color: var(--text-3); border: 1px solid var(--border); padding: 0.2rem 0.5rem; border-radius: 3px; }

.cve-body { padding: 3rem 0 5rem; }
.cve-content { max-width: 720px; font-size: 0.95rem; line-height: 1.85; color: var(--text-2); font-family: var(--font-mono); }
.cve-content h2 { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin: 2.5rem 0 1rem; border-left: 2px solid var(--green); padding-left: 0.85rem; }
.cve-content h3 { font-family: var(--font-mono); font-size: 1rem; color: var(--green); margin: 1.75rem 0 0.75rem; }
.cve-content p { margin-bottom: 1.25rem; }
.cve-content a { color: var(--green); }
.cve-content strong { color: var(--white); }
.cve-content code { background: var(--bg-3); padding: 0.15em 0.4em; border-radius: 3px; color: var(--green); font-size: 0.9em; border: 1px solid var(--border); }
.cve-content pre { background: #050505; border: 1px solid rgba(57,255,20,0.1); border-radius: var(--radius-lg); padding: 1.25rem; overflow-x: auto; margin: 1.75rem 0; }
.cve-content pre code { background: none; padding: 0; border: none; color: var(--green); }
.cve-content blockquote { border-left: 2px solid var(--red); padding: 0.85rem 1rem 0.85rem 1.25rem; margin: 1.75rem 0; background: var(--red-glow); border-radius: 0 var(--radius) var(--radius) 0; }
.cve-content ul, .cve-content ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.cve-content li { margin-bottom: 0.4rem; }
.cve-content table { width: 100%; border-collapse: collapse; margin: 1.75rem 0; font-size: 0.85rem; }
.cve-content th, .cve-content td { padding: 0.65rem 0.85rem; border: 1px solid var(--border); text-align: left; }
.cve-content th { background: var(--bg-3); color: var(--green); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.cve-disclaimer { background: rgba(255,170,0,0.04); border: 1px solid rgba(255,170,0,0.15); border-radius: var(--radius-lg); padding: 1rem 1.25rem; font-size: 0.8rem; color: var(--text-2); margin: 2rem 0; max-width: 720px; }
.cve-disclaimer strong { color: var(--amber); }
.cve-footer-nav { display: flex; align-items: center; gap: 1rem; margin-top: 2.5rem; max-width: 720px; }

/* PGP SECTION */
.pgp-section { background: var(--bg-2); border-top: 1px solid var(--border); }
.pgp-block { background: var(--bg-card); border: 1px solid rgba(57,255,20,0.1); border-radius: var(--radius-lg); padding: 1.5rem; max-width: 680px; }
.pgp-block pre { font-family: var(--font-mono); font-size: 0.72rem; color: var(--green); line-height: 1.6; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }

/* FOOTER */
.site-footer { background: var(--bg); border-top: 1px solid var(--border); padding: 3.5rem 0 1.75rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-logo { font-family: var(--font-mono); font-size: 1rem; font-weight: 500; display: block; margin-bottom: 0.85rem; }
.footer-brand p { font-size: 0.8rem; color: var(--text-3); line-height: 1.65; }
.footer-pgp { display: flex; align-items: center; gap: 0.5rem; margin-top: 1rem; }
.pgp-label { font-family: var(--font-mono); font-size: 0.62rem; color: var(--green); background: rgba(57,255,20,0.07); border: 1px solid rgba(57,255,20,0.15); padding: 0.2rem 0.5rem; border-radius: 3px; }
.pgp-key { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-3); }
.footer-nav h4 { font-family: var(--font-mono); font-size: 0.65rem; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 0.85rem; }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-nav a { font-size: 0.8rem; color: var(--text-3); font-family: var(--font-mono); }
.footer-nav a:hover { color: var(--green); opacity: 1; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.25rem; display: flex; flex-direction: column; gap: 0.35rem; }
.footer-bottom p { font-size: 0.75rem; color: var(--text-3); font-family: var(--font-mono); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

@media (max-width: 1024px) { .hero .container { grid-template-columns: 1fr; gap: 3rem; } .tools-grid { grid-template-columns: repeat(2, 1fr); } .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 768px) { .nav-links { display: none; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; background: #050505; border-bottom: 1px solid var(--border); padding: 1rem; } .nav-links.open { display: flex; } .nav-toggle { display: flex; } .writeups-grid { grid-template-columns: 1fr; } .tools-grid { grid-template-columns: 1fr; } .footer-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .container { padding: 0 1.25rem; } }
