/* styles.css — shared by home page and all blog pages */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    /* JS sets exact padding-top to avoid fixed-bar overlap */
    padding-top: 74px;
}

/* ---------- FIXED TOP BUTTON BAR ---------- */
#top-links-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999999;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid #e5e7eb;
}
#top-links-bar a.pill {
    display: inline-block;
    text-decoration: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    padding: 10px 18px;
    border-radius: 999px;
    white-space: nowrap;
    transition: transform 0.15s ease, filter 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
#top-links-bar a.pill.pink { background: #ec4899; }
#top-links-bar a.pill.blue { background: #3b82f6; }
#top-links-bar a.pill:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
}

/* ---------- UTILITIES ---------- */
.container { max-width: 1280px; margin: 0 auto; padding-left: 1rem; padding-right: 1rem; }
.card-hover { transition: all 0.3s cubic-bezier(0.2, 0.95, 0.4, 1); }
.card-hover:hover { transform: translateY(-6px); box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.2); }
.gradient-hero { background: linear-gradient(135deg, #0b1120 0%, #13294b 100%); }
.glow-btn { transition: all 0.2s ease; box-shadow: 0 4px 14px 0 rgba(37, 99, 235, 0.35); }
.glow-btn:hover { transform: scale(1.02); box-shadow: 0 8px 20px rgba(37, 99, 235, 0.5); }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.animate-marquee { animation: marquee 28s linear infinite; display: inline-flex; white-space: nowrap; }
.footer-link { transition: color 0.2s, transform 0.2s; display: inline-block; }
.footer-link:hover { color: #3b82f6; transform: translateX(4px); }

/* Layout */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; } .gap-2 { gap: 0.5rem; } .gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; } .gap-5 { gap: 1.25rem; } .gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; } .gap-8 { gap: 2rem; } .gap-12 { gap: 3rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: 1fr; }
.text-center { text-align: center; } .text-left { text-align: left; } .text-right { text-align: right; }
.font-bold { font-weight: 700; } .font-extrabold { font-weight: 800; } .font-black { font-weight: 900; }
.font-semibold { font-weight: 600; } .font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.text-xs { font-size: 0.75rem; } .text-sm { font-size: 0.875rem; } .text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; } .text-xl { font-size: 1.25rem; } .text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; } .text-4xl { font-size: 2.25rem; }
.max-w-2xl { max-width: 42rem; } .max-w-3xl { max-width: 48rem; }

@media (min-width: 640px) { .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .md\:text-6xl { font-size: 3.75rem; }
    .md\:text-2xl { font-size: 1.5rem; }
    .md\:py-28 { padding-top: 7rem; padding-bottom: 7rem; }
    .md\:flex { display: flex; } .md\:block { display: block; } .md\:hidden { display: none; }
    .md\:mt-0 { margin-top: 0; }
}
@media (min-width: 1024px) { .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.bg-white { background-color: #ffffff; } .bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-900 { background-color: #111827; } .bg-slate-50 { background-color: #f8fafc; }
.bg-slate-100 { background-color: #f1f5f9; } .bg-slate-900 { background-color: #0f172a; }
.bg-black { background-color: #000000; } .bg-blue-600 { background-color: #2563eb; }
.bg-blue-700 { background-color: #1d4ed8; } .bg-emerald-500 { background-color: #10b981; }
.bg-amber-100 { background-color: #fef3c7; } .bg-amber-50 { background-color: #fffbeb; }
.bg-green-100 { background-color: #dcfce7; } .bg-purple-100 { background-color: #f3e8ff; }
.bg-rose-100 { background-color: #ffe4e6; } .bg-sky-100 { background-color: #e0f2fe; }
.bg-white\/10 { background-color: rgba(255, 255, 255, 0.1); }
.bg-black\/40 { background-color: rgba(0, 0, 0, 0.4); }

.text-white { color: #ffffff; } .text-gray-900 { color: #111827; } .text-gray-800 { color: #1f2937; }
.text-gray-700 { color: #374151; } .text-gray-600 { color: #4b5563; } .text-gray-500 { color: #6b7280; }
.text-gray-400 { color: #9ca3af; } .text-gray-300 { color: #d1d5db; } .text-gray-200 { color: #e5e7eb; }
.text-blue-600 { color: #2563eb; } .text-blue-700 { color: #1d4ed8; } .text-emerald-500 { color: #10b981; }
.text-green-400 { color: #4ade80; } .text-green-700 { color: #15803d; } .text-amber-600 { color: #d97706; }
.text-amber-800 { color: #92400e; } .text-purple-800 { color: #6b21a5; } .text-rose-700 { color: #be123c; }
.text-sky-800 { color: #075985; } .text-yellow-300 { color: #fcd34d; }

.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-stops)); }
.from-blue-700 { --tw-gradient-from: #1d4ed8; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(29,78,216,0)); }
.to-emerald-600 { --tw-gradient-to: #059669; }
.from-yellow-300 { --tw-gradient-from: #fcd34d; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(252,211,77,0)); }
.to-amber-400 { --tw-gradient-to: #fbbf24; }
.from-indigo-500 { --tw-gradient-from: #6366f1; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(99,102,241,0)); }
.to-purple-600 { --tw-gradient-to: #7c3aed; }
.from-emerald-600 { --tw-gradient-from: #059669; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(5,150,105,0)); }
.to-teal-500 { --tw-gradient-to: #14b8a6; }
.from-rose-500 { --tw-gradient-from: #f43f5e; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(244,63,94,0)); }
.to-orange-500 { --tw-gradient-to: #f97316; }
.from-sky-500 { --tw-gradient-from: #0ea5e9; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(14,165,233,0)); }
.to-blue-700 { --tw-gradient-to: #1d4ed8; }
.from-blue-400 { --tw-gradient-from: #60a5fa; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(96,165,250,0)); }
.to-emerald-300 { --tw-gradient-to: #6ee7b7; }
.from-slate-700 { --tw-gradient-from: #334155; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(51,65,85,0)); }
.to-slate-900 { --tw-gradient-to: #0f172a; }
.from-emerald-800 { --tw-gradient-from: #065f46; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(6,95,70,0)); }
.to-teal-700 { --tw-gradient-to: #0f766e; }
.from-purple-800 { --tw-gradient-from: #6b21a8; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(107,33,168,0)); }
.to-indigo-800 { --tw-gradient-to: #3730a3; }
.from-amber-700 { --tw-gradient-from: #b45309; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(180,83,9,0)); }
.to-orange-700 { --tw-gradient-to: #c2410c; }
.from-slate-800 { --tw-gradient-from: #1e293b; --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to, rgba(30,41,59,0)); }
.to-blue-900 { --tw-gradient-to: #1e3a8a; }

.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent; }
.rounded-full { border-radius: 9999px; } .rounded-2xl { border-radius: 1rem; }
.rounded-xl { border-radius: 0.75rem; } .rounded-lg { border-radius: 0.5rem; }

.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }

.p-2 { padding: 0.5rem; } .p-3 { padding: 0.75rem; } .p-4 { padding: 1rem; } .p-5 { padding: 1.25rem; } .p-6 { padding: 1.5rem; }
.px-2 { padding-left: 0.5rem; padding-right: 0.5rem; } .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; } .px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; } .px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; } .px-9 { padding-left: 2.25rem; padding-right: 2.25rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; } .py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; } .py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; } .py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; } .py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; } .py-20 { padding-top: 5rem; padding-bottom: 5rem; }

.mt-2 { margin-top: 0.5rem; } .mt-3 { margin-top: 0.75rem; } .mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; } .mt-0\.5 { margin-top: 0.125rem; }
.mb-2 { margin-bottom: 0.5rem; } .mb-3 { margin-bottom: 0.75rem; } .mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; } .mb-10 { margin-bottom: 2.5rem; } .mb-12 { margin-bottom: 3rem; }
.my-5 { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.mx-auto { margin-left: auto; margin-right: auto; }

.h-1 { height: 0.25rem; } .h-16 { height: 4rem; } .h-40 { height: 10rem; }
.h-48 { height: 12rem; } .h-56 { height: 14rem; } .h-80 { height: 20rem; }
.w-5 { width: 1.25rem; } .w-16 { width: 4rem; } .w-20 { width: 5rem; } .w-full { width: 100%; }

.space-y-2 > * + * { margin-top: 0.5rem; } .space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.backdrop-blur-sm { -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.overflow-hidden { overflow: hidden; } .relative { position: relative; } .absolute { position: absolute; }
.top-0 { top: 0; } .bottom-6 { bottom: 1.5rem; } .right-6 { right: 1.5rem; }
.-top-4 { top: -1rem; } .-right-4 { right: -1rem; } .z-10 { z-index: 10; } .z-50 { z-index: 50; }

.border { border-width: 1px; } .border-b { border-bottom-width: 1px; }
.border-gray-200 { border-color: #e5e7eb; } .border-gray-100 { border-color: #f3f4f6; }
.border-gray-800 { border-color: #1f2a3e; } .border-white\/30 { border-color: rgba(255, 255, 255, 0.3); }

.leading-tight { line-height: 1.25; } .leading-relaxed { line-height: 1.7; }
.tracking-tight { letter-spacing: -0.025em; } .tracking-wide { letter-spacing: 0.05em; }
.uppercase { text-transform: uppercase; } .whitespace-nowrap { white-space: nowrap; }

button, a { cursor: pointer; } .inline-block { display: inline-block; } .inline-flex { display: inline-flex; }
.transition { transition: all 0.25s ease; }
.hover\:text-blue-600:hover { color: #2563eb; } .hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-blue-800:hover { background-color: #1e40af; } .hover\:bg-gray-800:hover { background-color: #1f2937; }
.hover\:bg-white\/20:hover { background-color: rgba(255, 255, 255, 0.2); }
.hover\:text-white:hover { color: #ffffff; }

.article-excerpt { color: #4b5563; font-size: 0.95rem; }
.blog-content p { margin-bottom: 1rem; line-height: 1.7; }
.blog-content h2 { font-size: 1.5rem; font-weight: 800; margin: 2rem 0 1rem; color: #111827; }
.blog-content ul { margin: 1rem 0 1rem 1.5rem; }
.blog-content li { margin-bottom: 0.5rem; }