/* ==========================================================================
   Luka.business — Design System & Stylesheet
   Firefox-Inspired Clean Light Aesthetic: Crisp White, Rich Violet Accents,
   Soft Lavender Containers, Rounded Pills & Deep Contrast Footer.
   ========================================================================== */

:root {
  /* Color Palette — Clean Light Editorial Tech */
  --bg-primary: #ffffff;
  --bg-secondary: #f9f8fc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-card-tint: #f5effe;
  --bg-card-lavender: #f3edfc;
  --bg-dark-contrast: #140827;
  
  --border-subtle: #eae5f5;
  --border-card: #e7e0f4;
  --border-focus: #582be8;
  
  --text-main: #15141a;
  --text-body: #2b263e;
  --text-muted: #4b4860;
  --text-dim: #76718c;
  
  /* Firefox Signature Vibrant Accents (Violet + Flame Orange + Rose) */
  --accent-purple: #582be8;
  --accent-purple-hover: #461ec4;
  --accent-purple-light: #efe9ff;
  --accent-purple-tint: rgba(88, 43, 232, 0.08);

  --accent-flame: #ff5722;
  --accent-flame-hover: #e64a19;
  --accent-flame-light: #fff2eb;
  --accent-amber: #f59e0b;
  --accent-amber-light: #fef3c7;
  --accent-coral: #ff3366;
  --accent-coral-light: #fff0f3;
  --accent-emerald: #10b981;
  --accent-emerald-light: #ecfdf5;

  /* Signature Gradients */
  --gradient-firefox: linear-gradient(135deg, #ff7a00 0%, #ff3b30 45%, #7928ca 100%);
  --gradient-flame: linear-gradient(135deg, #ff7a00 0%, #ff3b30 100%);
  --gradient-sunset: linear-gradient(135deg, #fff7f2 0%, #fef2f8 50%, #f4edfc 100%);
  --accent-gradient: linear-gradient(135deg, #ff7a00 0%, #ff3b30 40%, #582be8 100%);
  --accent-glow: rgba(88, 43, 232, 0.15);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  
  --shadow-xs: 0 1px 3px rgba(28, 12, 58, 0.04);
  --shadow-sm: 0 3px 12px rgba(28, 12, 58, 0.05);
  --shadow-md: 0 8px 24px rgba(28, 12, 58, 0.07);
  --shadow-lg: 0 16px 40px rgba(28, 12, 58, 0.09);
  --shadow-purple: 0 6px 20px rgba(88, 43, 232, 0.25);
  
  --max-w: 1140px;
  --max-w-prose: 780px;
}

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

ul, ol, li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.prose-container {
  width: 100%;
  max-width: var(--max-w-prose);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, #582be8 0%, #7b3fe4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
  font-size: 1.22rem;
  box-shadow: 0 4px 14px rgba(88, 43, 232, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
}

.brand-logo:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(88, 43, 232, 0.45);
}

.brand-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.brand-text {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  white-space: nowrap;
}

.brand-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-purple);
  background: var(--accent-purple-light);
  border: 1px solid #dfd3fc;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none !important;
  margin: 0;
  padding: 0;
}

.nav-links li {
  list-style: none !important;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.96rem;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-purple);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-purple);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  background: var(--accent-purple);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(88, 43, 232, 0.25);
}

.nav-cta:hover {
  background: var(--accent-purple-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(88, 43, 232, 0.35);
}

.mobile-menu-btn {
  display: none;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 8px 12px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hero Section (Firefox Ambient Sunset Glow) */
.hero {
  padding: 88px 0 60px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background: 
    radial-gradient(circle at 82% 16%, rgba(255, 122, 0, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 18% 30%, rgba(88, 43, 232, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(255, 51, 102, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, #ffffff 0%, #fdfbfc 100%);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--accent-purple-light);
  border: 1px solid #dfd3fc;
  color: var(--accent-purple);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.14;
  margin-bottom: 20px;
  color: var(--text-main);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-subtitle {
  font-size: clamp(1.08rem, 2.5vw, 1.25rem);
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.65;
  margin-bottom: 36px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* Pill Buttons (Firefox Style) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 30px;
  border-radius: var(--radius-full);
  background: var(--accent-purple);
  color: #ffffff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-purple);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-purple-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(88, 43, 232, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  background: #ffffff;
  border: 2px solid var(--accent-purple);
  color: var(--accent-purple);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--accent-purple-light);
  transform: translateY(-2px);
}

/* ==========================================================================
   Metrics Bar (Bybit Fintech High-Impact Metrics Ticker)
   ========================================================================== */
.metrics-bar {
  background: #ffffff;
  border-bottom: 1px solid var(--border-subtle);
  padding: 34px 0;
  position: relative;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  align-items: flex-start;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-left: 3px solid var(--accent-purple-light);
  padding-left: 18px;
  transition: border-color 0.2s ease;
}

.metric-item:hover {
  border-left-color: var(--accent-purple);
}

.metric-number {
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: -0.035em;
  color: var(--text-main);
  line-height: 1.05;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.metric-suffix {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--accent-purple);
  letter-spacing: -0.01em;
}

.metric-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.48;
}

/* Bento Step Badge & Card Features (Bybit Detail Polish) */
.card-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}

.card-step-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--accent-purple);
  background: var(--accent-purple-light);
  border: 1px solid #dfd3fc;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  letter-spacing: 0.05em;
}

.card-features {
  list-style: none !important;
  margin: 18px 0 0 0 !important;
  padding: 16px 0 0 0 !important;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.card-features li {
  list-style: none !important;
  font-size: 0.87rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 1.45;
}

.card-features li::before {
  content: '✓';
  color: var(--accent-purple);
  font-weight: 900;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Workflow Progression Section (Bybit Pay 3-Step Process) */
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 24px;
}

.workflow-card {
  background: #ffffff;
  border: 1.5px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 34px 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.workflow-card:hover {
  transform: translateY(-3px);
  border-color: #cbbeee;
  box-shadow: var(--shadow-md);
}

.workflow-card-highlight {
  border: 2px solid var(--accent-purple);
  box-shadow: 0 10px 32px rgba(88, 43, 232, 0.12);
}

.workflow-step-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--accent-purple);
  line-height: 1;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--accent-purple-light);
  border: 1px solid #dfd3fc;
}

.workflow-title {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--text-main);
  margin-bottom: 12px;
}

.workflow-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.62;
  margin-bottom: 22px;
  flex-grow: 1;
}

.workflow-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-purple);
  background: var(--accent-purple-light);
  border: 1px solid #dfd3fc;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: fit-content;
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 34px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.section-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.section-desc {
  color: var(--text-muted);
  font-size: 0.98rem;
  margin-top: 4px;
}

.section-link {
  color: var(--accent-purple);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}

.section-link:hover {
  gap: 10px;
  color: var(--accent-purple-hover);
}

/* Cards & Grid */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

@media (max-width: 820px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 26px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}

.card:hover {
  border-color: #cbbeee;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.card-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  padding-top: 18px;
  width: 100%;
}

/* Lavender tinted feature cards (Firefox style) */
.card-lavender {
  background: var(--bg-card-lavender);
  border: 1px solid #e5daf7;
}

.card-lavender:hover {
  border-color: var(--accent-purple);
  box-shadow: var(--shadow-lg);
}

.card-banner-lavender {
  background: linear-gradient(135deg, #f7f2fe 0%, #ede5fc 100%);
  border: 1px solid #dcd0f7;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
}

.card-banner-sunset {
  background: #ffffff;
  border: 2px solid var(--accent-purple);
  border-radius: var(--radius-lg);
  padding: 38px 42px;
  box-shadow: 0 10px 32px rgba(88, 43, 232, 0.12);
  position: relative;
  overflow: hidden;
}

.card-banner-sunset::after {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 0, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

/* Icon Bubbles (Vibrant Firefox Character & Badge Style) */
.icon-bubble {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover .icon-bubble {
  transform: scale(1.1) translateY(-2px);
}

.icon-bubble-purple {
  background: linear-gradient(135deg, #ede7fc 0%, #dfd3fc 100%);
  border: 1px solid #d3c2fa;
  box-shadow: 0 4px 14px rgba(88, 43, 232, 0.15);
}

.icon-bubble-flame {
  background: linear-gradient(135deg, #fff0eb 0%, #ffdacf 100%);
  border: 1px solid #fec7b4;
  box-shadow: 0 4px 14px rgba(255, 87, 34, 0.18);
}

.icon-bubble-coral {
  background: linear-gradient(135deg, #fff1f2 0%, #fecdd3 100%);
  border: 1px solid #fca5a5;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.16);
}

/* Post Cards */
.post-card {
  text-decoration: none;
  color: inherit;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.post-tag {
  background: var(--accent-purple-light);
  color: var(--accent-purple);
  border: 1px solid #dfd3fc;
  padding: 4px 13px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Rich Color Tag Variants */
.tag-purple {
  background: linear-gradient(135deg, #f5effe 0%, #ece2fc 100%);
  color: #582be8;
  border: 1px solid #ded0f9;
}

.tag-flame {
  background: linear-gradient(135deg, #fff4ee 0%, #ffebd9 100%);
  color: #c2410c;
  border: 1px solid #fecba1;
}

.tag-emerald {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  color: #047857;
  border: 1px solid #a7f3d0;
}

.tag-cyan {
  background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
  color: #0e7490;
  border: 1px solid #a5f3fc;
}

.tag-coral {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  color: #be123c;
  border: 1px solid #fecdd3;
}

.post-title {
  font-size: 1.38rem;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.post-card:hover .post-title {
  color: var(--accent-purple);
}

.post-excerpt {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.62;
  margin-bottom: 22px;
  flex-grow: 1;
}

.post-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-purple);
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 34px;
}

.filter-btn {
  background: #ffffff;
  border: 1.5px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 20px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  color: var(--text-main);
  border-color: #cbbeee;
  background: #fbf9ff;
}

.filter-btn.active {
  background: var(--accent-purple);
  border-color: var(--accent-purple);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(88, 43, 232, 0.25);
}

/* Telegram Community Banner (High-Contrast Vibrant Firefox Violet) */
.tg-banner {
  margin: 56px 0;
  background: linear-gradient(135deg, #582be8 0%, #3e16b5 100%);
  border: 1px solid #6b3ef5;
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  box-shadow: 0 14px 40px rgba(88, 43, 232, 0.3);
  color: #ffffff;
}

.tg-info h3 {
  font-size: 1.75rem;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.tg-info p {
  color: #ded7fc;
  font-size: 1.05rem;
  max-width: 600px;
  line-height: 1.6;
}

.tg-banner .btn-primary {
  background: #ffffff;
  color: #582be8;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.tg-banner .btn-primary:hover {
  background: #fbf9ff;
  color: #461ec4;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.28);
}

/* Author Section / Bio */
.author-box {
  display: flex;
  align-items: center;
  gap: 22px;
  background: #fbf9ff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  margin: 40px 0;
  box-shadow: var(--shadow-xs);
}

.author-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent-purple);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(88, 43, 232, 0.2);
}

.author-details h4 {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 4px;
}

.author-details p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Prose / Article Reader */
.article-header {
  padding: 44px 0 28px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 34px;
}

.article-title {
  font-size: clamp(2.1rem, 4.5vw, 2.9rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text-main);
  margin-bottom: 18px;
}

.article-body {
  font-size: 1.12rem;
  line-height: 1.82;
  color: var(--text-body);
}

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

.article-body h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 44px 0 18px;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.article-body h3 {
  font-size: 1.42rem;
  font-weight: 800;
  margin: 34px 0 14px;
  color: var(--text-main);
}

.article-body ul, .article-body ol {
  margin: 0 0 26px 24px;
}

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

.article-body strong {
  color: var(--text-main);
}

.article-body blockquote {
  border-left: 4px solid var(--accent-purple);
  background: var(--bg-card-tint);
  padding: 18px 24px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 30px 0;
  color: var(--text-body);
  font-style: normal;
}

.article-body code {
  font-family: var(--font-mono);
  background: var(--accent-purple-light);
  color: var(--accent-purple);
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.92em;
  font-weight: 600;
}

.article-body pre {
  background: var(--bg-dark-contrast);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 22px;
  overflow-x: auto;
  margin: 30px 0;
}

.article-body pre code {
  background: none;
  padding: 0;
  color: #f3f0fc;
}

/* Footer (Deep Dark Contrast — Grounded Firefox Style) */
.site-footer {
  margin-top: auto;
  background: var(--bg-dark-contrast);
  color: #b8b0cc;
  padding: 56px 0 36px;
  font-size: 0.92rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h4 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.footer-brand p {
  color: #9f96b7;
  max-width: 400px;
  font-size: 0.94rem;
  line-height: 1.65;
}

.footer-col h5 {
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-links a {
  color: #b8b0cc;
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 26px;
  font-size: 0.88rem;
  color: #887e9f;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
  .nav-links, .nav-cta {
    display: none;
  }
  
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 74px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 12px 32px rgba(28, 12, 58, 0.12);
    padding: 24px;
    gap: 14px;
    z-index: 99;
  }

  .nav-links.open li {
    display: block;
    width: 100%;
    list-style: none !important;
  }

  .nav-links.open .nav-link {
    display: block;
    padding: 10px 0;
    font-size: 1.05rem;
    color: var(--text-main);
    border-bottom: 1px solid #f3effc;
  }

  .nav-links.open .nav-link.active::after {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  
  .tg-banner {
    padding: 26px;
    flex-direction: column;
    align-items: flex-start;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .workflow-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  .post-card[style*="grid-column: 1 / -1"] {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
}

@media (max-width: 520px) {
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
