/* ══════════════════════════════════════════
   NexGo Website — Global Styles
   Dark Violet Theme · Light/Dark Mode
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Epilogue:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ── CSS Variables ─────────────────────── */
:root {
  --violet:        #7c3aed;
  --violet-mid:    #6d28d9;
  --violet-light:  #a78bfa;
  --violet-bright: #c4b5fd;
  --violet-dim:    rgba(124,58,237,0.12);
  --cyan:          #22d3ee;
  --pink:          #f472b6;

  --font-head: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-code: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius:    12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.12);
  --shadow:    0 8px 32px rgba(0,0,0,0.18);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.3);

  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Theme (default) */
[data-theme="dark"], :root {
  --bg:          #070710;
  --bg-2:        #0c0c18;
  --surface:     #10101e;
  --surface-2:   #181830;
  --surface-3:   #1e1e3a;
  --border:      rgba(124,58,237,0.18);
  --border-2:    rgba(255,255,255,0.06);
  --text:        #e2e8f0;
  --text-muted:  #8b90aa;
  --text-subtle: #4a4f6a;
  --glow:        0 0 40px rgba(124,58,237,0.25);
  --glow-strong: 0 0 80px rgba(124,58,237,0.4);
  --noise-opacity: 0.03;
}

/* Light Theme */
[data-theme="light"] {
  --bg:          #f5f3ff;
  --bg-2:        #ede9fe;
  --surface:     #ffffff;
  --surface-2:   #f0ebff;
  --surface-3:   #e8e0fe;
  --border:      rgba(109,40,217,0.14);
  --border-2:    rgba(109,40,217,0.08);
  --text:        #150d3a;
  --text-muted:  #5b5480;
  --text-subtle: #a098c0;
  --glow:        0 0 40px rgba(109,40,217,0.1);
  --glow-strong: 0 0 80px rgba(109,40,217,0.18);
  --noise-opacity: 0.02;
}

/* ── Reset & Base ──────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
  min-height: 100vh;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: var(--noise-opacity);
  pointer-events: none;
  z-index: 9999;
}

a { color: var(--violet-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--violet-bright); }

img { max-width: 100%; height: auto; }
code, pre { font-family: var(--font-code); }

/* ── Typography ────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}

.display {
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.heading-xl { font-size: clamp(2rem, 4vw, 3.5rem); }
.heading-lg { font-size: clamp(1.5rem, 3vw, 2.5rem); }
.heading-md { font-size: clamp(1.2rem, 2vw, 1.75rem); }

.gradient-text {
  background: linear-gradient(135deg, var(--violet-light) 0%, var(--cyan) 50%, var(--violet-bright) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-violet {
  background: linear-gradient(135deg, #a78bfa 0%, #7c3aed 50%, #c4b5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Layout ────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 8rem 0; }

/* ── Grid ──────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── Header / Nav ──────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-2);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  background: rgba(7,7,16,0.75);
  transition: background var(--transition);
}

[data-theme="light"] .site-header {
  background: rgba(245,243,255,0.85);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: -0.03em;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--violet) 0%, #a855f7 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  color: white;
  box-shadow: 0 0 20px rgba(124,58,237,0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--surface-2);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-github {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-github:hover {
  border-color: var(--violet);
  background: var(--violet-dim);
  color: var(--violet-light);
  box-shadow: var(--glow);
}

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  font-size: 1rem;
}

.theme-toggle:hover {
  border-color: var(--violet);
  color: var(--violet-light);
  background: var(--violet-dim);
}

/* Mobile nav */
.nav-mobile-toggle {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .btn-github span { display: none; }
}

/* ── Buttons ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet) 0%, #a855f7 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.5);
  color: white;
}

.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--violet);
  background: var(--violet-dim);
  color: var(--violet-light);
}

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

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

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: var(--radius);
}

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

/* ── Cards ─────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
}

.card:hover {
  border-color: var(--border);
  box-shadow: var(--glow), var(--shadow);
  transform: translateY(-3px);
}

.card-glass {
  background: rgba(255,255,255,0.03);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

[data-theme="light"] .card-glass {
  background: rgba(255,255,255,0.7);
  border-color: rgba(109,40,217,0.1);
}

/* ── Code Block ────────────────────────── */
.code-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface-3);
}

.code-dots {
  display: flex;
  gap: 6px;
}
.code-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.code-dots span:nth-child(1) { background: #ff5f56; }
.code-dots span:nth-child(2) { background: #ffbd2e; }
.code-dots span:nth-child(3) { background: #27c93f; }

.code-label {
  font-family: var(--font-code);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.code-body {
  padding: 1.25rem 1.5rem;
  font-family: var(--font-code);
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text);
  overflow-x: auto;
}

.code-body .c-comment { color: var(--text-subtle); }
.code-body .c-keyword { color: #f472b6; }
.code-body .c-string  { color: #86efac; }
.code-body .c-func    { color: #93c5fd; }
.code-body .c-var     { color: var(--violet-light); }
.code-body .c-type    { color: var(--cyan); }
.code-body .c-number  { color: #fca5a5; }

/* ── Install Box ───────────────────────── */
.install-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1.25rem;
  max-width: 520px;
}

.install-cmd {
  font-family: var(--font-code);
  font-size: 0.875rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.install-cmd .cmd-prefix {
  color: var(--violet-light);
  margin-right: 0.5rem;
}

.copy-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-3);
  color: var(--text-muted);
  font-family: var(--font-code);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition);
}

.copy-btn:hover {
  border-color: var(--violet);
  color: var(--violet-light);
  background: var(--violet-dim);
}

.copy-btn.copied {
  border-color: #22c55e;
  color: #22c55e;
  background: rgba(34,197,94,0.1);
}

/* ── Badge / Tag ───────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-family: var(--font-code);
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-violet {
  background: var(--violet-dim);
  border: 1px solid rgba(124,58,237,0.3);
  color: var(--violet-light);
}

.badge-cyan {
  background: rgba(34,211,238,0.1);
  border: 1px solid rgba(34,211,238,0.25);
  color: var(--cyan);
}

.badge-green {
  background: rgba(34,197,94,0.1);
  border: 1px solid rgba(34,197,94,0.25);
  color: #4ade80;
}

/* ── Divider ───────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  margin: 2rem 0;
}

/* ── Feature Icon ──────────────────────── */
.feat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.feat-icon-violet { background: var(--violet-dim); border: 1px solid rgba(124,58,237,0.2); }
.feat-icon-cyan   { background: rgba(34,211,238,0.1); border: 1px solid rgba(34,211,238,0.2); }
.feat-icon-green  { background: rgba(34,197,94,0.1); border: 1px solid rgba(34,197,94,0.2); }
.feat-icon-pink   { background: rgba(244,114,182,0.1); border: 1px solid rgba(244,114,182,0.2); }

/* ── Stats ─────────────────────────────── */
.stat-value {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(135deg, var(--violet-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

/* ── Section Labels ────────────────────── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--violet-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.section-eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--violet);
  border-radius: 1px;
}

/* ── Glow Elements ─────────────────────── */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.glow-orb-violet {
  background: radial-gradient(circle, rgba(124,58,237,0.35) 0%, transparent 70%);
}

.glow-orb-cyan {
  background: radial-gradient(circle, rgba(34,211,238,0.2) 0%, transparent 70%);
}

/* ── Table ─────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-2); }

table { width: 100%; border-collapse: collapse; }

thead { background: var(--surface-2); }

th, td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--border-2);
  font-size: 0.9rem;
}

th {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--surface-2); }

.check  { color: #4ade80; font-size: 1rem; }
.cross  { color: #f87171; font-size: 1rem; }
.partial { color: #fbbf24; font-size: 1rem; }

/* ── Footer ────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-2);
  padding: 4rem 0 2rem;
  background: var(--bg-2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-top: 0.75rem;
  max-width: 240px;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }

.footer-col ul a {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

.footer-col ul a:hover { color: var(--violet-light); }

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.social-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-2);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition);
}

.social-btn:hover {
  border-color: var(--violet);
  background: var(--violet-dim);
  color: var(--violet-light);
  transform: translateY(-2px);
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-2);
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-subtle);
}

/* ── Hero ──────────────────────────────── */
.hero {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
  text-align: center;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-2) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-2) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 30%, transparent 100%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(124,58,237,0.3);
  background: var(--violet-dim);
  font-family: var(--font-code);
  font-size: 0.78rem;
  color: var(--violet-light);
  margin-bottom: 1.75rem;
  animation: fadeInDown 0.6s ease both;
}

.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--violet);
  animation: pulse-dot 2s ease-in-out infinite;
}

.hero h1 {
  animation: fadeInUp 0.7s ease 0.1s both;
  margin-bottom: 1.5rem;
}

.hero-desc {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  animation: fadeInUp 0.7s ease 0.2s both;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
  animation: fadeInUp 0.7s ease 0.3s both;
}

.hero-install {
  display: flex;
  justify-content: center;
  animation: fadeInUp 0.7s ease 0.4s both;
}

/* ── Docs Layout ───────────────────────── */
.docs-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

@media (max-width: 900px) {
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { display: none; }
}

.docs-sidebar {
  position: sticky;
  top: 80px;
  height: fit-content;
}

.sidebar-nav { list-style: none; }

.sidebar-nav .nav-section {
  font-family: var(--font-head);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-subtle);
  padding: 1.25rem 0 0.5rem;
}

.sidebar-nav a {
  display: block;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: all var(--transition);
  border-left: 2px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
  color: var(--violet-light);
  background: var(--violet-dim);
  border-left-color: var(--violet);
}

.docs-content h2 {
  font-size: 1.75rem;
  margin: 2.5rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-2);
}

.docs-content h3 {
  font-size: 1.25rem;
  margin: 2rem 0 0.75rem;
}

.docs-content p { color: var(--text-muted); margin-bottom: 1rem; }

.docs-content pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 1.25rem 0;
}

.docs-content code {
  font-size: 0.875rem;
  color: var(--text);
  line-height: 1.7;
}

.docs-content :not(pre) > code {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.15em 0.4em;
  font-size: 0.85em;
  color: var(--violet-light);
}

/* ── Blog Cards ────────────────────────── */
.blog-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--glow), var(--shadow);
}

.blog-tag {
  display: inline-flex;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-family: var(--font-code);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.blog-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}

.blog-card:hover h3 { color: var(--violet-light); }

.blog-meta {
  font-size: 0.8rem;
  color: var(--text-subtle);
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1rem;
}

/* ── Animations ────────────────────────── */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.4); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.animate-float  { animation: float 4s ease-in-out infinite; }
.animate-fadein { animation: fadeIn 0.5s ease both; }

/* Staggered cards */
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scrollbar ─────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--violet-mid); }

/* ── Utility ───────────────────────────── */
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm       { gap: 0.5rem; }
.gap          { gap: 1rem; }
.gap-lg       { gap: 2rem; }
.mt-sm        { margin-top: 0.5rem; }
.mt           { margin-top: 1rem; }
.mt-lg        { margin-top: 2rem; }
.mb-sm        { margin-bottom: 0.5rem; }
.mb           { margin-bottom: 1rem; }
.mb-lg        { margin-bottom: 2rem; }
.text-center  { text-align: center; }
.text-muted   { color: var(--text-muted); }
.text-sm      { font-size: 0.875rem; }
.text-xs      { font-size: 0.75rem; }
.w-full       { width: 100%; }
.relative     { position: relative; }
.overflow-h   { overflow: hidden; }
