:root {
  --navy: #0f2b5b;
  --navy-soft: #1a3d73;
  --accent: #3b82f6;
  --accent-soft: #dbeafe;
  --ink: #1e293b;
  --ink-soft: #475569;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #ffffff;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --font-ui: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.blog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.blog-header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  width: min(1120px, calc(100% - 3rem));
  min-height: 72px;
  margin: 0 auto;
}

.blog-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}

.blog-header__brand:hover {
  text-decoration: none;
}

.blog-header__brand img {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
  border-radius: 12px;
}

.blog-header__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.blog-header__brand-text strong {
  font-size: 1rem;
  color: #0f172a;
}

.blog-header__brand-text span {
  font-size: 0.78rem;
  color: var(--muted);
}

.blog-header__brand-group {
  display: flex;
  align-items: center;
  min-width: 0;
}

.blog-header__nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: clamp(0.75rem, 1.6vw, 1.1rem);
  padding-left: clamp(0.75rem, 1.6vw, 1.1rem);
  border-left: 1px solid #e2e8f0;
}

.blog-header__link {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.9rem;
  border-radius: 10px;
  color: var(--navy-soft);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition:
    color 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
}

.blog-header__link:hover {
  background: #f1f5f9;
  color: var(--navy);
  text-decoration: none;
}

.blog-header__link.is-active {
  background: #eff6ff;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px #dbeafe;
}

/* Use-cases dropdown — mirrors .site-nav__dropdown on the landing page */

.blog-nav__item--dropdown {
  position: relative;
}

.blog-nav__trigger {
  gap: 0.35rem;
  border: 0;
  background: transparent;
  font-family: inherit;
  cursor: pointer;
}

.blog-nav__chevron {
  flex-shrink: 0;
  width: 0.72rem;
  height: 0.72rem;
  opacity: 0.55;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.blog-nav__item--dropdown.is-open .blog-nav__trigger {
  background: #eff6ff;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px #dbeafe;
}

.blog-nav__item--dropdown.is-open .blog-nav__chevron {
  transform: rotate(180deg);
  opacity: 0.9;
}

.blog-nav__dropdown {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  z-index: 30;
  min-width: min(52rem, calc(100vw - 2rem));
  padding: 1rem 1.05rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 24px 60px -20px rgba(15, 43, 91, 0.25);
}

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

.blog-nav__dropdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem 1rem;
}

.blog-nav__group--strategy { --menu-group-color: #2563eb; }
.blog-nav__group--justify { --menu-group-color: #0891b2; }
.blog-nav__group--design { --menu-group-color: #7c3aed; }
.blog-nav__group--build { --menu-group-color: #ea580c; }

.blog-nav__group {
  display: flex;
  flex-direction: column;
}

.blog-nav__group-title {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--menu-group-color, var(--accent));
}

.blog-nav__group-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.blog-nav__dropdown-link {
  display: block;
  padding: 0.38rem 0;
  border-radius: 8px;
  color: var(--navy-soft);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease;
}

.blog-nav__dropdown-link:hover {
  background: #f1f5f9;
  color: var(--navy);
  text-decoration: none;
}

@media (max-width: 720px) {
  .blog-nav__dropdown {
    position: fixed;
    top: 72px;
    left: 12px;
    right: 12px;
    min-width: 0;
    max-height: calc(100vh - 90px);
    overflow: auto;
  }

  .blog-nav__dropdown-grid {
    grid-template-columns: 1fr;
  }
}

.blog-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  background: #2563eb;
  color: #fff !important;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.7;
  white-space: nowrap;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 10px 24px -10px rgba(37, 99, 235, 0.7);
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    background 0.2s ease;
}

.blog-header__cta:hover {
  text-decoration: none;
  transform: translateY(-1px);
  background: #1d4ed8;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.28) inset,
    0 16px 34px -12px rgba(37, 99, 235, 0.72);
}

.blog-header__cta-arrow {
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}

.blog-header__cta:hover .blog-header__cta-arrow {
  transform: translateX(3px);
}

@media (max-width: 640px) {
  .blog-header__link:not(.is-active) {
    display: none;
  }

  .blog-header__brand-text span {
    display: none;
  }
}

/* Article */

.blog-article {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.blog-article__eyebrow {
  margin: 0 0 12px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.blog-article h1 {
  margin: 0 0 14px;
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.blog-article__byline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 36px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.blog-article__body {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  line-height: 1.68;
  color: #242e3f;
}

.blog-article__body p {
  margin: 0 0 1.35em;
}

.blog-article__body h2,
.blog-article__body h3 {
  font-family: var(--font-ui);
  margin: 1.8em 0 0.6em;
  line-height: 1.3;
}

.blog-article__body ul {
  margin: 0 0 1.35em;
  padding-left: 1.4em;
}

.blog-article__body li {
  margin-bottom: 0.55em;
}

.blog-article__body blockquote {
  margin: 0 0 1.35em;
  padding: 2px 0 2px 20px;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
}

.blog-article__body hr {
  margin: 2.2em auto;
  width: 120px;
  border: 0;
  border-top: 1px solid var(--border);
}

/* Index */

.blog-index {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 24px 64px;
}

.blog-index h1 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 4.5vw, 2.2rem);
  letter-spacing: -0.015em;
}

.blog-index__lead {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 1.02rem;
}

.blog-index__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.blog-index__item {
  border-top: 1px solid var(--border);
}

.blog-index__item a {
  display: block;
  padding: 26px 0;
  color: inherit;
}

.blog-index__item a:hover {
  text-decoration: none;
}

.blog-index__item h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  line-height: 1.35;
}

.blog-index__item a:hover h2 {
  color: var(--accent);
}

.blog-index__item p {
  margin: 0 0 10px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.blog-index__meta {
  display: flex;
  gap: 8px;
  color: var(--muted) !important;
  font-size: 0.86rem;
}

.blog-index__empty {
  padding: 26px 0;
  color: var(--muted);
}

/* Footer */

.blog-footer {
  max-width: 680px;
  margin: 0 auto;
  padding: 26px 24px 48px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.blog-footer p {
  margin: 0;
}
