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

:root {
  --bg: #020617;
  --bg-elevated: #020617;
  --bg-card: #020617;
  --accent: #22c55e;
  --accent-soft: rgba(34, 197, 94, 0.15);
  --accent-strong: #22c55e;
  --accent-strong-soft: rgba(34, 197, 94, 0.1);
  --accent-strong-border: rgba(34, 197, 94, 0.45);
  --accent-text: #bbf7d0;
  --accent-gradient: linear-gradient(135deg, #22c55e, #4ade80);
  --accent-gradient-soft: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(74, 222, 128, 0.2));
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border-subtle: rgba(75, 85, 99, 0.8);
  --border-strong: rgba(75, 85, 99, 0.9);
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.75);
  --radius-lg: 22px;
  --radius-xl: 26px;
  --radius-pill: 999px;
}

html, body {
  height: 100%;
  background: radial-gradient(circle at top left, #111827 0, #020617 45%, #000 100%);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  color: var(--text);
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.08) 0, transparent 55%),
    radial-gradient(circle at 100% 0%, rgba(52, 211, 153, 0.08) 0, transparent 55%);
  opacity: 1;
  pointer-events: none;
  z-index: -1;
}

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

.page-shell {
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* NAVBAR */

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  gap: 16px;
}

.brand-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 13px 7px 7px;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.08), rgba(15, 23, 42, 0.95));
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.85);
}

.brand-icon {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #bbf7d0, #22c55e 55%, #14532d 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #022c22;
  font-weight: 800;
  font-size: 17px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-text-main {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
}

.brand-text-sub {
  font-size: 11px;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.18s ease-out;
}

.nav-link:hover {
  color: var(--text);
  border-color: rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.95);
}

.nav-cta {
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.6);
  background: radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.2), rgba(15, 23, 42, 0.98));
  color: #bbf7d0;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 10px 30px rgba(22, 163, 74, 0.35);
}

.nav-cta span {
  font-size: 16px;
}

/* HERO */

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 26px;
  margin-bottom: 30px;
}

.hero-copy {
  padding: 22px 22px 22px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(55, 65, 81, 0.9);
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.16), rgba(15, 23, 42, 0.98)),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.96));
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.95);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
}

.hero-pill-badge {
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.16);
  color: #bbf7d0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-title {
  font-size: clamp(26px, 2.5vw, 30px);
  line-height: 1.1;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.hero-highlight {
  background-image: linear-gradient(120deg, rgba(34, 197, 94, 0.35), transparent);
  border-radius: 999px;
  padding: 0 6px;
}

.hero-lede {
  font-size: 14px;
  color: var(--muted);
  max-width: 520px;
  margin-bottom: 18px;
}

.hero-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.hero-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.8);
  background: rgba(15, 23, 42, 0.98);
  font-size: 11px;
  color: var(--muted);
}

.hero-meta-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, #bbf7d0, #22c55e 70%, #14532d 100%);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(34, 197, 94, 0.7);
  background-image: radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.25), rgba(22, 163, 74, 0.98));
  color: #ecfdf5;
  font-size: 13px;
  font-weight: 600;
  box-shadow:
    0 14px 35px rgba(21, 128, 61, 0.7),
    0 0 0 1px rgba(22, 163, 74, 0.35);
}

.hero-primary span {
  font-size: 16px;
}

.hero-secondary {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.9);
  font-size: 12px;
  color: var(--muted);
}

.hero-note {
  font-size: 11px;
  color: rgba(148, 163, 184, 0.9);
}

.hero-note strong {
  color: #e5e7eb;
}

/* HERO SIDEBAR */

.hero-sidebar {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 18px 18px 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.15), rgba(15, 23, 42, 0.98)),
    linear-gradient(to bottom right, rgba(15, 23, 42, 0.97), rgba(2, 6, 23, 0.96));
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero-sidebar-title {
  font-size: 13px;
  font-weight: 600;
  color: #e5e7eb;
}

.hero-sidebar-chip {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: var(--muted);
}

.hero-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-top: 4px;
}

.hero-list-item {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 14px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.96);
  cursor: pointer;
  transition: all 0.16s ease-out;
}

.hero-list-item:hover {
  border-color: rgba(34, 197, 94, 0.7);
  background: radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.14), rgba(15, 23, 42, 0.98));
  transform: translateY(-1px);
}

.hero-list-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-list-title {
  font-size: 12px;
}

.hero-list-meta {
  font-size: 11px;
  color: var(--muted);
}

.hero-list-tag {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(55, 65, 81, 0.9);
  color: rgba(156, 163, 175, 0.95);
}

.hero-sidebar-footer {
  margin-top: 2px;
  font-size: 11px;
  color: rgba(148, 163, 184, 0.9);
}

/* FILTER BAR */

.filter-shell {
  margin: 18px 0 8px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.12), rgba(15, 23, 42, 0.98));
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.75);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.filter-title {
  font-size: 12px;
  color: rgba(209, 213, 219, 0.98);
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--muted);
}

.filter-select {
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
}

.filter-reset {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(148, 163, 184, 0.9);
  background: rgba(15, 23, 42, 0.98);
  color: rgba(209, 213, 219, 0.98);
  cursor: pointer;
}

/* CONTENT GRID */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}

.section-title {
  font-size: 15px;
  font-weight: 600;
}

.section-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.section-link {
  font-size: 12px;
  color: var(--muted);
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(55, 65, 81, 0.9);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* POST CARDS */

.post-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(55, 65, 81, 0.9);
  overflow: hidden;
  background: rgba(15, 23, 42, 0.98);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.85);
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.post-card.hidden-by-filter {
  display: none !important;
}

.post-card:hover {
  border-color: rgba(34, 197, 94, 0.7);
  transform: translateY(-3px);
  box-shadow:
    0 20px 45px rgba(15, 23, 42, 0.95),
    0 0 0 1px rgba(15, 23, 42, 1);
}

.post-thumb {
  position: relative;
  padding-top: 60%;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.post-thumb-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.93), transparent 50%);
}

.post-thumb-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.9);
  color: #e5e7eb;
}

.post-body {
  padding: 12px 12px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.post-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.post-title {
  font-size: 14px;
  font-weight: 600;
}

.post-excerpt {
  font-size: 12px;
  color: var(--muted);
}

.post-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2px;
}

.post-read {
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(190, 242, 100, 0.9);
}

/* ARTICLE PAGE */

.article-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.article-header {
  margin-bottom: 16px;
}

.article-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(156, 163, 175, 0.95);
  margin-bottom: 8px;
}

.article-title {
  font-size: clamp(24px, 2.5vw, 30px);
  line-height: 1.1;
  margin-bottom: 6px;
}

.article-meta {
  font-size: 12px;
  color: var(--muted);
}

.article-hero {
  margin-bottom: 18px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top, rgba(34, 197, 94, 0.12), rgba(15, 23, 42, 1));
}

.article-hero-image {
  position: relative;
  padding-top: 45%;
  overflow: hidden;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.article-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 6, 23, 0.95), transparent 40%);
}

.article-hero-caption {
  padding: 10px 14px 10px;
  font-size: 11px;
  color: rgba(156, 163, 175, 0.95);
}

.article-body {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(229, 231, 235, 0.95);
}

.article-body p {
  margin-bottom: 12px;
}

.article-body h2 {
  font-size: 17px;
  margin: 18px 0 8px;
}

.article-body h3 {
  font-size: 15px;
  margin: 16px 0 6px;
}

.article-body ul,
.article-body ol {
  margin: 8px 0 12px 20px;
}

.article-body li {
  margin-bottom: 5px;
}

.article-tip {
  margin: 14px 0;
  padding: 9px 11px;
  border-radius: 16px;
  border: 1px dashed rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.12), rgba(15, 23, 42, 0.98));
  font-size: 12px;
  color: rgba(209, 213, 219, 0.98);
}

.breadcrumb {
  margin-bottom: 12px;
  font-size: 11px;
  color: rgba(156, 163, 175, 0.95);
}

.breadcrumb a {
  color: rgba(190, 242, 100, 0.95);
}

.footer-shell {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid rgba(31, 41, 55, 0.95);
  font-size: 11px;
  color: rgba(107, 114, 128, 0.95);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

/* RESPONSIVE */

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

@media (max-width: 768px) {
  .nav-shell {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-shell {
    margin-bottom: 22px;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-shell {
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .page-shell,
  .article-shell {
    padding-inline: 14px;
  }

  .grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-copy {
    padding: 18px 16px 16px;
  }

  .hero-sidebar {
    padding: 14px 14px 14px;
  }

  .filter-controls {
    flex-direction: column;
    align-items: flex-start;
  }
}