/* habnetreviews.tech - Dark Cyber-Tech Systems & Wired 2.0 Engineering Blog Theme */
:root {
  --bg: #070b14;
  --surface: #0f172a;
  --surface-2: #131f38;
  --border: rgba(148, 163, 184, 0.2);
  --text: #f1f5f9;
  --muted: #94a3b8;
  --neon: #4ade80;
  --cyan: #38bdf8;
  --amber: #fbbf24;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; font-family: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
.pixel { image-rendering: pixelated; image-rendering: crisp-edges; }
img.pixel { width: auto; height: auto; max-width: none; flex-shrink: 0; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* Native 188x53 Habnet Logo (Exact Original Size) */
.habnet-logo-native {
  width: 188px;
  height: 53px;
  max-width: none;
  flex-shrink: 0;
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(7, 11, 20, 0.92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 82px; padding: 10px 0; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none !important; flex-shrink: 0; }
.tech-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  padding: 4px 10px; border-radius: 8px; background: rgba(74, 222, 128, 0.14);
  color: var(--neon); border: 1px solid rgba(74, 222, 128, 0.35);
  white-space: nowrap;
}
.tech-tag.cyan { background: rgba(56, 189, 248, 0.14); color: #7dd3fc; border-color: rgba(56, 189, 248, 0.35); }
.tech-tag.amber { background: rgba(251, 191, 36, 0.14); color: #fde68a; border-color: rgba(251, 191, 36, 0.35); }
.nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.nav a { color: #cbd5e1; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 9px; }
.nav a:hover, .nav a.active { background: rgba(56, 189, 248, 0.14); color: #fff; text-decoration: none; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 10px;
  font-weight: 700; font-size: 14px; text-decoration: none !important; border: 1px solid transparent;
  transition: transform 0.14s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-has-pixel { padding: 4px 18px 4px 10px; min-height: 50px; }
.btn-ico { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }
.btn-neon { background: linear-gradient(135deg, #22c55e, #16a34a); color: #052e16; font-weight: 800; }
.btn-cyan { background: rgba(56, 189, 248, 0.16); color: #7dd3fc; border-color: rgba(56, 189, 248, 0.4); }

.hero {
  position: relative; overflow: hidden;
  padding: 58px 0 52px;
  background:
    radial-gradient(circle at 18% 20%, rgba(56, 189, 248, 0.2), transparent 46%),
    radial-gradient(circle at 82% 28%, rgba(74, 222, 128, 0.16), transparent 44%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url('/assets/content.webp') center / cover no-repeat;
  opacity: 0.24; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.65) 0%, rgba(7, 11, 20, 0.92) 100%);
  pointer-events: none;
}
.hero-grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.2fr 0.98fr; gap: 30px; align-items: center;
}
.hero h1 { margin: 14px 0; font-size: clamp(1.9rem, 4vw, 2.95rem); line-height: 1.12; }
.hero p.lead { color: #cbd5e1; max-width: 700px; font-size: 1.04rem; margin: 0 0 24px; }

/* Blueprint Showcase Card */
.blueprint-card {
  background: rgba(15, 23, 42, 0.84);
  border: 1px solid rgba(56, 189, 248, 0.34);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 52px -20px rgba(0, 0, 0, 0.8), 0 0 32px -16px rgba(56, 189, 248, 0.45);
  backdrop-filter: blur(12px);
}
.blueprint-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px; background: rgba(2, 6, 23, 0.9);
  border-bottom: 1px solid rgba(56, 189, 248, 0.22);
  font-family: var(--mono); font-size: 11.5px; color: #7dd3fc;
}
.blueprint-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.blueprint-media img.bp-img { width: 100%; height: 100%; object-fit: cover; }
.blueprint-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.12) 0%, rgba(7, 11, 20, 0.88) 100%);
}
.blueprint-chips {
  position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 7px;
}
.bp-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(2, 6, 23, 0.86); border: 1px solid rgba(74, 222, 128, 0.35);
  border-radius: 999px; padding: 4px 10px; font-size: 11.5px; font-weight: 700; color: #e2e8f0;
}
.blueprint-dock {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  padding: 12px 14px; background: rgba(2, 6, 23, 0.85);
  border-top: 1px solid rgba(56, 189, 248, 0.22);
}
.bp-tile {
  background: rgba(15, 23, 42, 0.85); border: 1px solid rgba(74, 222, 128, 0.28);
  border-radius: 12px; padding: 8px 6px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  font-size: 11px; font-weight: 700; color: #e2e8f0;
}
.blueprint-foot {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 12px 14px; background: rgba(2, 6, 23, 0.72);
  font-family: var(--mono); font-size: 11px; color: var(--muted);
}
.blueprint-foot strong { display: block; color: var(--neon); font-size: 13px; }

.section { padding: 52px 0; }
.section h2 { margin: 0 0 8px; font-size: clamp(1.45rem, 2.7vw, 2rem); }
.section-desc { margin: 0 0 26px; color: var(--muted); max-width: 700px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.card:hover { border-color: rgba(56, 189, 248, 0.5); transform: translateY(-2px); }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tech-ico {
  width: 62px; height: 62px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: inset 0 0 18px rgba(56, 189, 248, 0.12);
}
.tech-ico.green { background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.35); }
.tech-ico.amber { background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.35); }
.card h3 { margin: 0; font-size: 1.15rem; color: #ffffff; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
code { font-family: var(--mono); font-size: 12px; background: rgba(56,189,248,0.12); color: #bae6fd; padding: 2px 6px; border-radius: 5px; }

.codebox {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.55;
  background: #020617; border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 12px; padding: 16px 18px; color: #bae6fd; overflow-x: auto;
}
.code-green { color: var(--neon); }
.code-amber { color: var(--amber); }

.article {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: clamp(22px, 4vw, 38px);
}
.article-banner {
  position: relative; border-radius: 14px; overflow: hidden; margin-bottom: 24px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}
.article-banner img.bg { width: 100%; height: 170px; object-fit: cover; opacity: 0.45; }
.article-banner-inner {
  position: absolute; inset: 0; padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(90deg, rgba(2, 6, 23, 0.9) 0%, rgba(2, 6, 23, 0.45) 100%);
}
.article h2 { margin-top: 26px; }
.article h2:first-child { margin-top: 0; }
.sec-row { display: flex; align-items: center; gap: 12px; margin-top: 26px; margin-bottom: 10px; }
.sec-row h2 { margin: 0; }
.article ul { color: var(--muted); padding-left: 20px; }
.article li { margin-bottom: 8px; }

.footer {
  border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 13px;
}
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
