:root {
  --bg: #0b0f19;
  --bg-card: #121826;
  --bg-card-hover: #182032;
  --border: rgba(148, 163, 184, 0.14);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --gold: #fbbf24;
  --success: #34d399;
  --max-w: 1160px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}
a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: #7dd3fc; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 1.25rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 25, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem; flex-wrap: wrap;
}
.brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 800; font-size: 1.35rem; color: #fff; letter-spacing: -0.02em;
}
.brand-badge {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06101f; font-weight: 900; font-size: 0.8rem;
  padding: 0.25rem 0.55rem; border-radius: 8px;
}
.nav-links { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.nav-links a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta {
  background: rgba(56, 189, 248, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--accent) !important;
  padding: 0.42rem 0.9rem; border-radius: 8px; font-weight: 600 !important;
}
.nav-cta:hover { background: rgba(56, 189, 248, 0.24); }

/* Hero */
.hero {
  padding: 4.5rem 0 3.5rem;
  background: radial-gradient(ellipse at top, rgba(56, 189, 248, 0.12), transparent 65%);
  border-bottom: 1px solid var(--border);
}
.hero-tag {
  display: inline-block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent);
  background: rgba(56, 189, 248, 0.1); border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.3rem 0.8rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.18; font-weight: 800; color: #fff;
  max-width: 820px; margin-bottom: 1.1rem; letter-spacing: -0.02em;
}
.hero p {
  font-size: 1.12rem; color: var(--text-muted);
  max-width: 680px; margin-bottom: 2rem;
}
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.72rem 1.35rem; border-radius: 10px; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: all 0.18s;
}
.btn-primary { background: linear-gradient(135deg, #0284c7, #38bdf8); color: #041322; }
.btn-primary:hover { filter: brightness(1.08); color: #041322; transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--border); color: #fff; }
.btn-outline:hover { border-color: var(--accent); background: rgba(56, 189, 248, 0.08); }

/* Sections & Grids */
.section { padding: 3.5rem 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap;
}
.section-head h2 { font-size: 1.7rem; color: #fff; font-weight: 700; }
.section-head p { color: var(--text-muted); font-size: 0.96rem; margin-top: 0.25rem; }

.grid-3 {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.4rem;
}
.grid-2 {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 1.4rem;
}
@media (max-width: 600px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 1.5rem;
  display: flex; flex-direction: column; justify-content: space-between;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
.card:hover {
  border-color: rgba(56, 189, 248, 0.4);
  background: var(--bg-card-hover); transform: translateY(-2px);
}
.card-cat {
  display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--accent); margin-bottom: 0.65rem;
}
.card h3 { font-size: 1.18rem; color: #fff; line-height: 1.35; margin-bottom: 0.65rem; }
.card p { color: var(--text-muted); font-size: 0.94rem; margin-bottom: 1.2rem; }
.card-meta {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.82rem; color: var(--text-muted);
  padding-top: 0.9rem; border-top: 1px solid var(--border);
}

/* Ecosystem Strip */
.eco-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.2rem;
}
.eco-card {
  background: linear-gradient(145deg, rgba(18, 24, 38, 0.9), rgba(15, 23, 42, 0.7));
  border: 1px solid var(--border); border-radius: 14px; padding: 1.35rem;
}
.eco-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 0.45rem; }
.eco-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 0.9rem; }

/* Article Layout */
.article-wrap {
  max-width: 820px; margin: 0 auto; padding: 3rem 1.25rem 4rem;
}
.breadcrumb {
  font-size: 0.86rem; color: var(--text-muted); margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.article-header { margin-bottom: 2.2rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--border); }
.article-header h1 {
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
  color: #fff; line-height: 1.24; margin-bottom: 0.9rem;
}
.article-meta {
  display: flex; gap: 1.2rem; flex-wrap: wrap;
  font-size: 0.88rem; color: var(--text-muted);
}
.article-body h2 {
  font-size: 1.48rem; color: #fff; margin: 2.2rem 0 0.85rem;
  padding-bottom: 0.4rem; border-bottom: 1px solid var(--border);
}
.article-body h3 { font-size: 1.18rem; color: #f8fafc; margin: 1.6rem 0 0.6rem; }
.article-body p { margin-bottom: 1.15rem; color: #cbd5e1; font-size: 1.03rem; }
.article-body ul, .article-body ol {
  margin: 0.8rem 0 1.4rem 1.4rem; color: #cbd5e1;
}
.article-body li { margin-bottom: 0.5rem; }
.callout {
  background: rgba(56, 189, 248, 0.08);
  border-left: 3px solid var(--accent);
  padding: 1.1rem 1.25rem; border-radius: 0 12px 12px 0;
  margin: 1.6rem 0; color: #e2e8f0;
}
.callout strong { color: #fff; }
.author-box {
  margin-top: 3rem; padding: 1.4rem; border-radius: 14px;
  background: var(--bg-card); border: 1px solid var(--border);
  display: flex; gap: 1rem; align-items: flex-start;
}
.author-avatar {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06101f; font-weight: 800; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
}
.related-box { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border); }

/* Filter pills */
.filter-pills { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.8rem; }
.pill {
  padding: 0.45rem 0.95rem; border-radius: 999px; font-size: 0.86rem; font-weight: 600;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted);
  cursor: pointer;
}
.pill.active, .pill:hover { border-color: var(--accent); color: #fff; background: rgba(56, 189, 248, 0.14); }

/* Forms */
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 0.4rem; color: #fff; }
.form-control {
  width: 100%; padding: 0.75rem 0.95rem; border-radius: 10px;
  background: #0f172a; border: 1px solid var(--border); color: #fff;
  font-family: inherit; font-size: 0.95rem;
}
.form-control:focus { outline: none; border-color: var(--accent); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem; margin-top: 3rem;
  background: rgba(8, 11, 18, 0.95);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 { color: #fff; font-size: 0.95rem; margin-bottom: 0.9rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-size: 0.85rem; color: var(--text-muted);
}
