:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --text: #e0e0e0;
  --text-dim: #777777;
  --text-muted: #444444;
  --accent: #00ff88;
  --accent-dim: #00cc6a;
  --accent-glow: rgba(0, 255, 136, 0.08);
  --border: #1e1e1e;
  --mono: 'JetBrains Mono', monospace;
  --serif: 'Source Serif 4', Georgia, serif;
  --max-w: 720px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover { opacity: 0.7; }

/* ---- NAV ---- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 1px;
}
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--text-dim);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); opacity: 1; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text-dim); margin: 4px 0; transition: 0.2s; }

/* ---- HERO ---- */
.hero {
  padding: 140px 24px 80px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.hero-label {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: var(--serif);
  font-size: 42px;
  font-weight: 300;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 20px;
}
.hero h1 span { color: var(--accent); }
.hero-sub {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.8;
  max-width: 560px;
}
.hero-links {
  margin-top: 32px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-links a {
  font-size: 12px;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.2s;
  letter-spacing: 0.5px;
}
.hero-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  opacity: 1;
}

/* ---- SECTIONS ---- */
section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px 24px;
}
.section-label {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ---- SERVICES ---- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  transition: border-color 0.3s;
}
.service-card:hover { border-color: var(--accent-dim); }
.service-icon {
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.service-card h3 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--text);
}
.service-card p {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.7;
}

/* ---- BLOG LIST ---- */
.post-list { display: flex; flex-direction: column; }
.post-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  transition: padding-left 0.2s;
}
.post-item:first-child { border-top: 1px solid var(--border); }
.post-item:hover { padding-left: 8px; }
.post-title {
  font-size: 14px;
  font-weight: 400;
  color: var(--text);
  transition: color 0.2s;
}
.post-item:hover .post-title { color: var(--accent); }
.post-date {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.post-tag {
  font-size: 10px;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 3px;
  margin-left: 8px;
}

/* ---- REPORTS ---- */
.reports-info {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 24px;
}
.report-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px 24px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.3s;
}
.report-item:hover { border-color: var(--accent-dim); }
.report-meta { display: flex; flex-direction: column; gap: 4px; }
.report-name { font-size: 13px; font-weight: 500; color: var(--text); }
.report-desc { font-size: 11px; color: var(--text-dim); }
.report-severity {
  font-size: 10px;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 3px;
  font-weight: 600;
}
.severity-critical { background: rgba(255, 50, 50, 0.12); color: #ff5555; }
.severity-high { background: rgba(255, 150, 50, 0.12); color: #ff9632; }
.severity-medium { background: rgba(255, 220, 50, 0.12); color: #ffdc32; }

/* ---- ABOUT ---- */
.about-text {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--text-dim);
  line-height: 1.9;
}
.about-text strong { color: var(--text); font-weight: 600; }
.stats {
  display: flex;
  gap: 48px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stat-num {
  font-size: 28px;
  font-weight: 300;
  color: var(--accent);
  font-family: var(--mono);
}
.stat-label {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ---- CONTACT ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-item {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  transition: border-color 0.3s;
  display: block;
}
.contact-item:hover { border-color: var(--accent); opacity: 1; }
.contact-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.contact-value { font-size: 13px; color: var(--text); }

/* ---- FOOTER ---- */
footer {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-left, .footer-right {
  font-size: 11px;
  color: var(--text-muted);
}

/* ---- BLOG SINGLE POST ---- */
.post-header {
  padding: 140px 24px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.post-header h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 16px;
}
.post-header-meta {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.post-content {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px 80px;
}
.post-content h2 {
  font-size: 20px;
  font-weight: 500;
  margin: 48px 0 16px;
  color: var(--text);
}
.post-content h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 32px 0 12px;
  color: var(--text);
}
.post-content p {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.9;
  margin-bottom: 20px;
}
.post-content ul, .post-content ol {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.9;
  margin-bottom: 20px;
  padding-left: 24px;
}
.post-content li { margin-bottom: 8px; }
.post-content code {
  font-family: var(--mono);
  font-size: 13px;
  background: var(--bg-card);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent);
}
.post-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  overflow-x: auto;
  margin-bottom: 24px;
}
.post-content pre code {
  background: none;
  padding: 0;
  font-size: 13px;
  color: var(--text);
}
.post-content img {
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin: 24px 0;
}
.post-content blockquote {
  border-left: 2px solid var(--accent);
  padding-left: 20px;
  margin: 24px 0;
  color: var(--text-dim);
  font-style: italic;
}

/* ---- PAGE HEADER (for /blog listing) ---- */
.page-header {
  padding: 140px 24px 40px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-header h1 {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
}

/* ---- CURSOR BLINK ---- */
.cursor::after {
  content: '_';
  animation: blink 1s infinite;
  color: var(--accent);
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ---- FADE IN ---- */
.fade-in {
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.6s ease forwards;
}
.fade-in:nth-child(2) { animation-delay: 0.1s; }
.fade-in:nth-child(3) { animation-delay: 0.2s; }
.fade-in:nth-child(4) { animation-delay: 0.3s; }
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats { gap: 24px; flex-wrap: wrap; }
  .post-item { flex-direction: column; gap: 4px; }
  .report-item { flex-direction: column; align-items: flex-start; gap: 12px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}
