/* ═══════════════════════════════════════════════════════════════
   OxStream Blog — Static styles (LIGHT THEME)
   Aesthetic: Editorial clarity / Studio whitepaper
   Fonts: Inter (Google Fonts)
   Accent: indigo / violet / cyan gradient (brand)
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Surfaces */
  --bg:           #ffffff;
  --bg-alt:       #f7f8fb;
  --bg-card:      #ffffff;
  --bg-tint:      #f4f5fa;
  --bg-glass:     rgba(255, 255, 255, 0.85);

  /* Borders */
  --border:       rgba(15, 23, 42, 0.07);
  --border-soft:  rgba(15, 23, 42, 0.12);
  --border-strong:rgba(15, 23, 42, 0.18);

  /* Text */
  --text:         #0f172a;   /* slate-900 */
  --text-muted:   #475569;   /* slate-600 */
  --text-dim:     #64748b;   /* slate-500 */
  --text-faint:   #94a3b8;   /* slate-400 */

  /* Brand accents */
  --indigo-300:   #6366f1;   /* primary accent on light */
  --indigo-400:   #4f46e5;   /* hover / stronger */
  --indigo-500:   #6366f1;
  --indigo-600:   #4338ca;
  --violet-500:   #8b5cf6;
  --cyan-500:     #06b6d4;
  --green-500:    #16a34a;

  /* Shadows */
  --shadow-sm:  0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:  0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg:  0 14px 40px rgba(15, 23, 42, 0.09);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img { max-width: 100%; display: block; }

.container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow {
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Navbar ────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s, box-shadow 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav-brand svg { width: 2.25rem; height: 2.25rem; }
.nav-links {
  display: none;
  gap: 1.75rem;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--indigo-400); }

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #ffffff !important;
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.005em;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.22);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28), 0 1px 3px rgba(124, 58, 237, 0.18);
  transition: box-shadow 0.25s, transform 0.2s, background 0.3s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca, #6d28d9);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.4), 0 4px 14px rgba(124, 58, 237, 0.25);
  transform: translateY(-1px);
}
.btn-primary i { color: #ffffff; }

.btn-primary-lg {
  padding: 0.95rem 2.15rem;
  border-radius: 0.75rem;
  font-size: 1.02rem;
  font-weight: 700;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.55rem 1.1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  background: #fff;
  transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-outline:hover {
  border-color: var(--indigo-500);
  color: var(--indigo-400);
  background: #fafbff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 8rem 0 4rem;
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 70%);
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  opacity: 0.55;
}
.hero-orb-1 {
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.32) 0%, transparent 70%);
  top: -240px; left: 50%; transform: translateX(-50%);
}
.hero-orb-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28) 0%, transparent 70%);
  top: 80px; left: 8%;
}
.hero-orb-3 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.22) 0%, transparent 70%);
  top: 60px; right: 6%;
}
.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.04;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 48rem;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--indigo-400);
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.hero-badge .dot {
  width: 0.5rem; height: 0.5rem;
  background: var(--indigo-500);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  line-height: 1.07;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 1.5rem;
  color: var(--text);
}
.hero p {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 38rem;
  margin: 0 auto 2rem;
}
.gradient-text {
  background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Section ───────────────────────────────────────────────── */
.section {
  padding: 4rem 0;
}
.section-alt {
  background: var(--bg-alt);
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  margin: 0 0 2.5rem;
}

/* ── Filter bar (blog index) ───────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  color: var(--text-muted);
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
  font-family: inherit;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.filter-chip:hover {
  border-color: rgba(99, 102, 241, 0.45);
  color: var(--indigo-400);
  transform: translateY(-1px);
}
.filter-chip.is-active {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.28);
}
.filter-chip.is-active:hover {
  color: #fff;
  transform: translateY(-1px);
}
.filter-chip .count {
  background: rgba(15, 23, 42, 0.08);
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 9999px;
  min-width: 1.4rem;
  text-align: center;
}
.filter-chip.is-active .count {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

/* No-results state */
.no-results {
  display: none;
  text-align: center;
  padding: 3.5rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-soft);
  border-radius: 1.25rem;
  margin-top: 1rem;
}
.no-results.is-visible { display: block; }
.no-results .icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo-500);
  font-size: 1.3rem;
}
.no-results h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.no-results p {
  color: var(--text-muted);
  margin: 0;
}

/* ── Article cards (index) ─────────────────────────────────── */
.posts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 720px) {
  .posts { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .posts { grid-template-columns: repeat(3, 1fr); }
}
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  color: var(--text);
}
.post-card:hover {
  border-color: rgba(99, 102, 241, 0.45);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.post-card-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--border);
}
.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.post-card:hover .post-card-image img { transform: scale(1.04); }
.post-card-body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.post-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--indigo-400);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  margin-bottom: 1rem;
  width: max-content;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.post-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.post-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 1.5rem;
  flex: 1;
}
.post-card .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-dim);
}
.post-card .read-more {
  color: var(--indigo-400);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  transition: gap 0.2s, color 0.2s;
}
.post-card:hover .read-more {
  gap: 0.625rem;
  color: var(--indigo-600);
}

/* ── Video tutorial cards (tutoriels listing) ──────────────── */
.tutos {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 768px) {
  .tutos { grid-template-columns: repeat(2, 1fr); }
}
.tuto-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.tuto-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.tuto-video {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}
.tuto-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.tuto-body { padding: 1.5rem; }
.tuto-body .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #dc2626;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.tuto-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.35;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.tuto-body p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 0 1rem;
}
.tuto-body .meta {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ── Empty state ───────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-soft);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.empty-state .icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--indigo-500);
  font-size: 1.5rem;
}
.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.empty-state p {
  color: var(--text-muted);
  max-width: 30rem;
  margin: 0 auto 1.75rem;
}

/* ── Article page ──────────────────────────────────────────── */
.article-cover {
  padding: 6rem 0 0;
  background: var(--bg);
}
.article-cover-frame {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.article-cover img {
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
  display: block;
  border: 1px solid var(--border);
}

/* When a cover is present, .article-header sits below it with reduced top padding */
.article-cover + .article-header {
  padding-top: 2.5rem;
}
.article-header {
  padding: 7rem 0 2.5rem;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
}
.article-cover + .article-header {
  background: var(--bg);
}
.article-header .container-narrow { position: relative; z-index: 1; }
.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 2rem;
  transition: color 0.2s;
}
.article-back:hover { color: var(--indigo-400); }

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 1.25rem;
}
.article-meta .dot {
  width: 3px; height: 3px;
  background: var(--text-faint);
  border-radius: 50%;
}
.article-meta .tag {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--indigo-400);
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.article-title {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin: 0 0 1.25rem;
  color: var(--text);
}
.article-lead {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

.article-body {
  padding: 1rem 0 4rem;
  background: var(--bg);
}
.article-body .container-narrow { font-size: 1.0625rem; line-height: 1.78; color: var(--text); }

.article-body h2 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 3rem 0 1rem;
  color: var(--text);
  scroll-margin-top: 5rem;
}
.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2rem 0 0.75rem;
  color: var(--text);
  scroll-margin-top: 5rem;
}
.article-body p { margin: 0 0 1.25rem; color: var(--text); }
.article-body ul, .article-body ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
  color: var(--text);
}
.article-body li { margin-bottom: 0.5rem; }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a {
  color: var(--indigo-400);
  border-bottom: 1px solid rgba(99, 102, 241, 0.35);
  transition: color 0.2s, border-color 0.2s;
}
.article-body a:hover {
  color: var(--indigo-600);
  border-bottom-color: var(--indigo-600);
}
.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}
.article-body blockquote {
  border-left: 3px solid var(--indigo-500);
  background: rgba(99, 102, 241, 0.06);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  color: var(--text);
  font-style: italic;
  border-radius: 0 0.5rem 0.5rem 0;
}
.article-body blockquote p:last-child { margin-bottom: 0; }
.article-body code {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.18);
  padding: 0.1rem 0.4rem;
  border-radius: 0.25rem;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--indigo-600);
}

/* ── Tables ────────────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.article-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 640px;
}
.article-body thead th {
  background: var(--bg-tint);
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
  white-space: nowrap;
}
.article-body tbody td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}
.article-body tbody tr:last-child td { border-bottom: none; }
.article-body tbody tr:hover td { background: #fafbff; color: var(--text); }

/* ── FAQ accordion ─────────────────────────────────────────── */
.faq-list {
  margin: 1.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 0.875rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.faq-item[open] {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: var(--shadow-md);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
  user-select: none;
  outline: none;
}
.faq-item summary:focus-visible {
  box-shadow: inset 0 0 0 2px rgba(99, 102, 241, 0.55);
  border-radius: 0.875rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 11px;
  height: 11px;
  border-right: 2px solid var(--indigo-500);
  border-bottom: 2px solid var(--indigo-500);
  transform: rotate(45deg);
  transition: transform 0.28s ease;
  flex-shrink: 0;
  margin-top: -4px;
}
.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.faq-item summary:hover { color: var(--indigo-400); }
.faq-item .faq-answer {
  padding: 0 1.4rem 1.25rem;
  color: var(--text-muted);
  line-height: 1.72;
  font-size: 0.98rem;
  animation: faq-fade-in 0.22s ease;
}
.faq-item .faq-answer p { margin: 0 0 0.75rem; color: var(--text-muted); }
.faq-item .faq-answer p:last-child { margin-bottom: 0; }
@keyframes faq-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Share bar (vertical, fixed left on desktop) ───────────── */
.share-bar {
  position: fixed;
  top: 50%;
  left: 1.25rem;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 40;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-soft);
  border-radius: 9999px;
  padding: 0.55rem;
  box-shadow: var(--shadow-lg);
}
.share-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.18s, box-shadow 0.2s;
  position: relative;
  text-decoration: none;
}
.share-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}
.share-btn:focus-visible {
  outline: 2px solid rgba(99, 102, 241, 0.55);
  outline-offset: 2px;
}

/* Brand colors per platform */
.share-btn--email     { color: #6366f1; }
.share-btn--email:hover    { background: rgba(99, 102, 241, 0.14); color: #4338ca; }

.share-btn--x         { color: #0f172a; }
.share-btn--x:hover        { background: rgba(15, 23, 42, 0.08); color: #000; }

.share-btn--linkedin  { color: #0a66c2; }
.share-btn--linkedin:hover { background: rgba(10, 102, 194, 0.14); color: #084d94; }

.share-btn--facebook  { color: #1877f2; }
.share-btn--facebook:hover { background: rgba(24, 119, 242, 0.14); color: #0c5fc0; }

.share-btn--whatsapp  { color: #25d366; }
.share-btn--whatsapp:hover { background: rgba(37, 211, 102, 0.16); color: #1ea556; }

.share-btn--copy      { color: #6366f1; }
.share-btn--copy:hover     { background: rgba(99, 102, 241, 0.14); color: #4338ca; }

.share-btn.is-copied  { background: rgba(22, 163, 74, 0.14); color: #15803d; }

.share-btn .share-tooltip {
  position: absolute;
  left: calc(100% + 0.5rem);
  top: 50%;
  transform: translateY(-50%);
  background: var(--text);
  color: #fff;
  border-radius: 0.375rem;
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s;
  box-shadow: var(--shadow-md);
}
.share-btn.is-copied .share-tooltip { opacity: 1; }

@media (max-width: 1279px) {
  .share-bar {
    position: static;
    flex-direction: row;
    transform: none;
    margin: 0 auto 2rem;
    padding: 0.4rem 0.5rem;
    width: max-content;
    box-shadow: var(--shadow-sm);
  }
  .share-btn .share-tooltip {
    top: auto;
    bottom: calc(100% + 0.5rem);
    left: 50%;
    transform: translateX(-50%);
  }
}

/* ── End-of-article CTA ────────────────────────────────────── */
.article-cta {
  margin-top: 3rem;
  padding: 2.25rem 2rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 1rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.article-cta h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}
.article-cta p {
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

/* ── Newsletter (index) ───────────────────────────────────── */
.newsletter {
  margin: 4rem 0;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.07), rgba(139, 92, 246, 0.05));
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.newsletter h3 {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--text);
}
.newsletter p {
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
}
.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 28rem;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.newsletter-form input::placeholder { color: var(--text-faint); }
.newsletter-form input:focus {
  border-color: var(--indigo-500);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-brand .nav-brand { color: var(--text); }
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin: 1rem 0 1.25rem;
  max-width: 18rem;
}
.footer-socials {
  display: flex;
  gap: 0.5rem;
}
.social-icon {
  width: 2rem; height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border-soft);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  background: #fff;
}
.social-icon:hover {
  border-color: rgba(99, 102, 241, 0.45);
  color: var(--indigo-400);
  background: rgba(99, 102, 241, 0.06);
}
.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-link {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}
.footer-link:hover { color: var(--indigo-400); }
.footer-link.active { color: var(--indigo-400); font-weight: 600; }
.footer-bottom {
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-dim);
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; }
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}
.status-pill .dot {
  width: 6px; height: 6px;
  background: var(--green-500);
  border-radius: 50%;
}

/* ── Scroll-to-top ─────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 60;
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover { transform: translateY(-2px); }

/* ── Utility ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: 0.75rem; }
.mb-0 { margin-bottom: 0; }
