/* Lisa AI Blog — synced with main site design tokens */
:root {
  --bg-primary: #0A0A0A;
  --bg-secondary: #111111;
  --bg-card: #141414;
  --text-primary: #FFFFFF;
  --text-secondary: #A1A1AA;
  --text-tertiary: #808089;
  --accent-primary: #C8FF2E;
  --accent-dim: rgba(200, 255, 46, 0.12);
  --border-default: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --radius: 10px;
  --container: 1200px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter Variable', 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-primary); text-decoration: none; transition: color 0.2s var(--ease), opacity 0.2s var(--ease); }
a:hover { opacity: 0.85; }
a:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; border-radius: 4px; }

.blog-container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 640px) {
  .blog-container { padding-left: 32px; padding-right: 32px; }
}

@media (min-width: 1024px) {
  .blog-container { padding-left: 48px; padding-right: 48px; }
}

/* Header — matches main Navigation */
.blog-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 64px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border-default);
}

.blog-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
}

.blog-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-family: 'Inter Tight Variable', 'Inter Tight', system-ui, sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-lisa { color: var(--text-primary); }
.logo-ai { color: var(--accent-primary); }

.blog-nav {
  display: none;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

@media (min-width: 1024px) {
  .blog-nav { display: flex; }
}

.blog-nav-link {
  padding: 6px 12px;
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}

.blog-nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  opacity: 1;
}

.blog-nav-link.is-active {
  color: var(--text-primary);
  background: var(--accent-dim);
  opacity: 1;
}

.blog-cta {
  display: none;
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 12px;
  background: var(--accent-primary);
  color: #0A0A0A;
  font-family: 'Inter Tight Variable', 'Inter Tight', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.blog-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 255, 46, 0.25);
  opacity: 1;
}

@media (min-width: 1024px) {
  .blog-cta { display: inline-flex; align-items: center; }
}

.blog-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-default);
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  font-size: 18px;
  transition: background 0.2s var(--ease);
}

.blog-menu-btn:hover { background: rgba(255, 255, 255, 0.04); }

@media (min-width: 1024px) {
  .blog-menu-btn { display: none; }
}

.blog-mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 20px;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-default);
}

.blog-mobile-nav[hidden] { display: none; }

.blog-mobile-nav a {
  color: var(--text-primary);
  padding: 10px 0;
  font-size: 16px;
  font-weight: 500;
}

.blog-mobile-cta {
  margin-top: 8px;
  padding: 12px 16px !important;
  border-radius: 12px;
  background: var(--accent-primary) !important;
  color: #0A0A0A !important;
  text-align: center;
  font-weight: 600 !important;
}

/* Main */
.blog-main { padding: 48px 0 80px; }

.blog-page-header { margin-bottom: 48px; max-width: 720px; }

.blog-eyebrow {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-primary);
  margin-bottom: 12px;
}

.blog-page-title {
  font-family: 'Inter Tight Variable', 'Inter Tight', system-ui, sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.blog-page-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Grid */
.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
}

/* Card */
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.blog-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.blog-card-cover-link { display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--bg-secondary); }

.blog-card-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}

.blog-card:hover .blog-card-cover { transform: scale(1.03); }

.blog-card-body { padding: 24px; }

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--text-tertiary);
}

.blog-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.blog-tag {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--accent-dim);
  color: var(--accent-primary);
}

.blog-card-title {
  font-family: 'Inter Tight Variable', 'Inter Tight', system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-card-title a { color: var(--text-primary); }

.blog-card-excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-more { font-size: 14px; font-weight: 500; color: var(--accent-primary); }

/* Pagination */
.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
}

.blog-pagination-link {
  min-width: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--border-default);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 650;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.blog-pagination-link:hover {
  transform: translateY(-1px);
  border-color: rgba(200, 255, 46, 0.28);
  background: rgba(200, 255, 46, 0.08);
  color: var(--text-primary);
  opacity: 1;
}

.blog-pagination-link.is-current {
  border-color: rgba(200, 255, 46, 0.46);
  background: var(--accent-primary);
  color: var(--bg-primary);
}

.blog-pagination-prev,
.blog-pagination-next {
  min-width: 112px;
}

@media (max-width: 520px) {
  .blog-pagination {
    justify-content: stretch;
  }

  .blog-pagination-link {
    flex: 1 1 42px;
  }

  .blog-pagination-prev,
  .blog-pagination-next {
    flex-basis: 100%;
  }
}

/* Post article column — centered within container */
.blog-post-wrap { max-width: 800px; margin-left: auto; margin-right: auto; }

.blog-breadcrumbs {
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.blog-breadcrumbs a { color: var(--text-secondary); }
.blog-breadcrumbs span { opacity: 0.4; }

.blog-post-header { margin-bottom: 40px; }

.blog-post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.blog-post-meta span,
.blog-post-meta time {
  position: relative;
}

.blog-post-meta span:not(:first-child):not(.blog-reading-time)::before {
  content: '';
  position: absolute;
  left: -9px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(200, 255, 46, 0.58);
  transform: translateY(-50%);
}

.blog-reading-time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 19px;
  color: var(--text-secondary);
}

.blog-reading-time::before {
  content: '';
  display: block;
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  background: var(--accent-primary);
  filter: drop-shadow(0 0 8px rgba(200, 255, 46, 0.22));
  transform: translateY(0.5px);
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20Zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm1-8.41 3.3 3.3-1.41 1.41L11 12.41V6h2v5.59Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 22a10 10 0 1 1 0-20 10 10 0 0 1 0 20Zm0-2a8 8 0 1 0 0-16 8 8 0 0 0 0 16Zm1-8.41 3.3 3.3-1.41 1.41L11 12.41V6h2v5.59Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.blog-reading-time::after {
  content: '';
  position: absolute;
  left: -9px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: rgba(200, 255, 46, 0.58);
  transform: translateY(-50%);
}

.blog-post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

.blog-post-title {
  font-family: 'Inter Tight Variable', 'Inter Tight', system-ui, sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}

.blog-post-cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border-default);
}

.blog-toc {
  margin: 0 0 36px;
  padding: 20px;
  border: 1px solid rgba(200, 255, 46, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(200, 255, 46, 0.08), rgba(200, 255, 46, 0.015) 44%),
    var(--bg-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.blog-toc-label {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-primary);
}

.blog-toc-list {
  display: grid;
  gap: 8px;
  list-style: none;
  counter-reset: toc;
}

.blog-toc-item {
  counter-increment: toc;
}

.blog-toc-item a {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 6px;
  align-items: baseline;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.45;
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.blog-toc-item a::before {
  content: counter(toc, decimal-leading-zero);
  color: rgba(200, 255, 46, 0.72);
  font-family: 'Inter Tight Variable', 'Inter Tight', system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: inherit;
  text-align: left;
}

.blog-toc-item a:hover {
  color: var(--text-primary);
  opacity: 1;
  transform: translateX(2px);
}

.blog-toc-level-3 a,
.blog-toc-level-4 a,
.blog-toc-level-5 a,
.blog-toc-level-6 a {
  color: rgba(161, 161, 170, 0.9);
  font-size: 13px;
}

.blog-prose {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.blog-prose h2,
.blog-prose h3,
.blog-prose h4,
.blog-prose h5,
.blog-prose h6 {
  font-family: 'Inter Tight Variable', 'Inter Tight', system-ui, sans-serif;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.25;
  scroll-margin-top: 88px;
}

.blog-prose h2 {
  margin: 44px 0 16px;
  font-size: 26px;
  font-weight: 700;
}

.blog-prose h3 {
  margin: 34px 0 12px;
  font-size: 21px;
  font-weight: 650;
}

.blog-prose h4 {
  margin: 28px 0 10px;
  font-size: 18px;
  font-weight: 650;
}

.blog-prose h5,
.blog-prose h6 {
  margin: 24px 0 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.blog-prose p { margin-bottom: 16px; }

.blog-prose ul,
.blog-prose ol {
  margin: 0 0 20px 0;
  padding-left: 1.35em;
}

.blog-prose ul { list-style: disc; }
.blog-prose ol { list-style: decimal; }
.blog-prose ul ul { list-style: circle; }
.blog-prose ul ul ul { list-style: square; }
.blog-prose ol ol { list-style: lower-alpha; }
.blog-prose ol ol ol { list-style: lower-roman; }

.blog-prose li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.blog-prose li::marker {
  color: var(--accent-primary);
  font-weight: 700;
}

.blog-prose li > ul,
.blog-prose li > ol {
  margin-top: 8px;
  margin-bottom: 0;
}

.blog-prose blockquote {
  border-left: 3px solid var(--accent-primary);
  padding: 12px 20px;
  margin: 24px 0;
  background: var(--accent-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-primary);
  font-style: italic;
}

.blog-prose a { color: var(--accent-primary); text-decoration: underline; text-underline-offset: 3px; }

.blog-source {
  margin-top: 40px;
  padding: 20px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border-default);
  background: var(--bg-secondary);
  font-size: 14px;
  color: var(--text-secondary);
}

/* Related — full container width, outside article column.
   No border/background; bottom gap is handled once by .blog-main padding. */
.blog-related {
  margin-top: 0;
  padding: 56px 0 0;
}

.blog-related-title {
  font-family: 'Inter Tight Variable', 'Inter Tight', system-ui, sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 700;
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

.blog-empty { color: var(--text-tertiary); text-align: center; padding: 64px 0; }

/* Footer */
.blog-footer {
  border-top: 1px solid var(--border-default);
  background: var(--bg-secondary);
}

.blog-footer-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.blog-footer-brand {
  grid-column: 1 / -1;
}

.blog-footer-tagline {
  margin-top: 12px;
  max-width: 320px;
  color: var(--text-tertiary);
  font-size: 14px;
  line-height: 1.65;
}

.blog-footer-company {
  margin-top: 8px;
  color: var(--text-tertiary);
  font-size: 12px;
}

.blog-footer-column h3 {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-footer-column ul {
  display: grid;
  gap: 10px;
  list-style: none;
}

.blog-footer-column a,
.blog-footer-legal a {
  color: var(--text-tertiary);
  font-size: 14px;
  transition: color 0.2s var(--ease);
}

.blog-footer-column a:hover,
.blog-footer-legal a:hover {
  color: var(--text-primary);
  opacity: 1;
}

.blog-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 16px;
  padding-bottom: 20px;
  border-top: 1px solid var(--border-default);
}

.blog-footer-bottom p {
  color: var(--text-tertiary);
  font-size: 12px;
}

.blog-footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
}

.blog-footer-legal a {
  font-size: 12px;
}

@media (min-width: 640px) {
  .blog-footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .blog-footer-bottom {
    flex-direction: row;
    align-items: center;
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

@media (min-width: 1024px) {
  .blog-footer-inner {
    grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
    gap: 48px;
  }

  .blog-footer-brand {
    grid-column: auto;
  }
}
