/* ===========
Global theme
=========== */

:root {
  --bg: #020617;
  --card: rgba(15, 23, 42, 0.9);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --primary: #38bdf8;
  --primary-soft: rgba(56, 189, 248, 0.2);
  --border: rgba(148, 163, 184, 0.45);
  --glow: rgba(56, 189, 248, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #0b1120 0, #020617 60%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Background grid + orbs */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.6;
  z-index: -3;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(55px);
  opacity: 0.7;
  pointer-events: none;
  z-index: -2;
}

.orb-1 {
  width: 320px;
  height: 320px;
  top: -60px;
  right: -40px;
  background: radial-gradient(circle, #38bdf8, transparent 65%);
}

.orb-2 {
  width: 280px;
  height: 280px;
  bottom: -50px;
  left: -40px;
  background: radial-gradient(circle, #a855f7, transparent 65%);
}

a {
  color: var(--primary);
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & nav */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: conic-gradient(from 0deg, #38bdf8, #a855f7, #22c55e, #38bdf8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-circle span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92%;
  height: 92%;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 20%, #0f172a, #020617);
  color: #e5e7eb;
  font-weight: 700;
}

.site-title {
  margin: 0;
  font-size: 1.1rem;
}

.site-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 1rem;
  font-size: 0.9rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav a:hover {
  color: var(--text);
  border-bottom-color: var(--primary);
}

/* Hero */

.hero {
  padding: 3.5rem 0 2.75rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.3fr);
  align-items: start;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

.glow-label {
  position: relative;
  padding-left: 1.4rem;
}

.glow-label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 999px;
  background: radial-gradient(circle, var(--primary), transparent 70%);
  transform: translateY(-50%);
  box-shadow: 0 0 18px var(--glow);
}

.hero-main h2 {
  margin: 0 0 0.8rem;
  font-size: 2.35rem;
}

.hero-text {
  margin: 0;
  color: var(--muted);
}

.highlight {
  color: #e5e7eb;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: rgba(56, 189, 248, 0.7);
}

/* Chips */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.2rem 0 1.8rem;
}

.chip {
  font-size: 0.75rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* Buttons */

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--primary);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #0b1120;
  box-shadow: 0 0 18px var(--glow);
}

.btn-primary:hover {
  filter: brightness(1.05);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
  text-decoration: none;
}

/* Social links */

.social-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.85);
  text-decoration: none;
  color: var(--text);
}

.social-link:hover {
  border-color: var(--primary);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.5);
  text-decoration: none;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 0.3rem;
  background: #0f172a;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Profile card */

.hero-panel {
  display: flex;
  align-items: stretch;
}

.profile-card {
  width: 100%;
}

.profile-photo-ring {
  display: flex;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.profile-photo-wrap {
  padding: 4px;
  border-radius: 999px;
  background: conic-gradient(from 0deg, #38bdf8, #a855f7, #22c55e, #38bdf8);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.6);
}

.profile-photo {
  display: block;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 999px;
  border: 3px solid #020617;
}

.profile-meta {
  text-align: center;
  margin-bottom: 0.9rem;
}

.profile-name {
  margin: 0;
  font-weight: 600;
}

.profile-role {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Glass stats panel */

.panel-glass {
  position: relative;
  margin-top: 0.4rem;
  padding: 1.25rem;
  border-radius: 1.1rem;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88));
  border: 1px solid var(--border);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.8),
    0 18px 40px rgba(15, 23, 42, 0.95);
}

.panel-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

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

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--muted);
  margin: 0 0 0.15rem;
}

.stat-value {
  margin: 0;
  font-size: 0.95rem;
}

.divider {
  height: 1px;
  margin: 1rem 0;
  background: linear-gradient(to right, transparent, rgba(148, 163, 184, 0.8), transparent);
}

.panel-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Sections */

.section {
  padding: 3rem 0;
}

.section-alt {
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.94));
}

.section-inner {
  position: relative;
}

.section-header {
  max-width: 560px;
  margin-bottom: 1.75rem;
}

.section-header h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

.section-header .muted {
  margin-top: 0.3rem;
}

.section-body.two-col {
  display: grid;
  gap: 1rem;
}

.section-body.two-col p {
  color: var(--muted);
}

/* Cards & grids */

.grid {
  display: grid;
  gap: 1.25rem;
}

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

.card {
  background: var(--card);
  border-radius: 1rem;
  border: 1px solid var(--border);
  padding: 1.25rem;
}

.card-outline {
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.8);
}

.card-soft {
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.9));
}

.card h3 {
  margin-top: 0;
  font-size: 1.05rem;
}

.muted {
  color: var(--muted);
}

/* Blog post */

.post h1 {
  margin-top: 0.4rem;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Automatic date styling */
.post-date {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 1.8rem;
  display: block;
  font-weight: 500;
}

/* Blog video embeds */

.post-video {
  margin: 1.5rem 0;
  border-radius: 1rem;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

/* 16:9 responsive wrapper */
.video-embed {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
}

.video-embed iframe,
.video-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  border-radius: 0.9rem;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Articles page layout */

.articles-grid {
  display: grid;
  gap: 1.5rem;
}

.article-card {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: stretch;
}

.article-thumb {
  flex: 0 0 120px;
  border-radius: 0.9rem;
  overflow: hidden;
  background: radial-gradient(circle at top, rgba(56,189,248,0.25), rgba(15,23,42,0.95));
}

.article-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-body {
  flex: 1;
}

/* Meta row: categories + year */

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
}

.badge {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.6);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.7rem;
}

.badge-pill {
  background: rgba(56,189,248,0.12);
  border-color: rgba(56,189,248,0.6);
  color: #e5f4ff;
}

.badge-soft {
  background: rgba(148,163,184,0.12);
  border-color: rgba(148,163,184,0.7);
  color: var(--muted);
}

.article-year {
  margin-left: auto;
  font-size: 0.76rem;
  color: var(--muted);
}

/* Make article cards stack nicely on small screens */

@media (max-width: 700px) {
  .article-card {
    flex-direction: column;
  }

  .article-thumb {
    flex: 0 0 auto;
    max-width: 100%;
    height: 160px;
  }
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .grid-2 {
    grid-template-columns: 1fr;
  }

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

/* Blog category filter */

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.category-btn {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  color: var(--muted);
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
}

.category-btn i {
  font-size: 0.85rem;
}

.category-btn.active {
  background: var(--primary-soft);
  color: var(--text);
  border-color: var(--primary);
  box-shadow: 0 0 14px var(--glow);
}

.category-btn:hover {
  border-color: var(--primary);
  color: var(--text);
}

