:root {
  --brand-indigo: #4338ca;
  --brand-indigo-hover: #3730a3;
  --brand-blue: #2563eb;
  --brand-blue-hover: #1d4ed8;
  --bg-white: #ffffff;
  --bg-soft: #fafbfc;
  --bg-card: #f8fafc;
  --bg-hero: #f1f5f9;
  --bg-blue-soft: #eff6ff;
  --heading: #171717;
  --body: #525252;
  --body-strong: #404040;
  --meta: #737373;
  --line-soft: rgba(0, 0, 0, 0.08);
  --line-faint: rgba(0, 0, 0, 0.05);
  --shadow-card: 0 24px 48px rgba(15, 23, 42, 0.12);
  --shadow-button: 0 16px 30px rgba(67, 56, 202, 0.22);
  --shadow-conversion: 0 30px 60px rgba(37, 99, 235, 0.18);
  --success: #16a34a;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-white);
  color: var(--heading);
  font-family: Inter, Arial, sans-serif;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: 8px;
  transform: translateY(-200%);
  z-index: 999;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
}

.skip-link:focus {
  transform: translateY(0);
}

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

button {
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.container {
  width: min(100% - 48px, 1280px);
  margin: 0 auto;
}

.min-h-screen {
  min-height: 100vh;
}

.bg-white {
  background: var(--bg-white);
}

.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.icon-sm {
  width: 16px;
  height: 16px;
}

.icon-check {
  color: var(--success);
}

.blog-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  display: block;
  width: 164px;
  height: auto;
}

.brand-subtitle {
  color: var(--body);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-mark-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-title,
.footer-brand-title {
  font-weight: 600;
  color: var(--heading);
}

.brand-title {
  font-size: 20px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.header-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  transition: color 0.2s ease;
}

.header-link:hover {
  color: var(--brand-blue);
}

.header-cta,
.hero-cta,
.article-mid-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 20px;
  background: var(--brand-indigo);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.header-cta {
  padding: 12px 24px;
}

.header-cta span,
.hero-cta span,
.article-mid-cta-button span {
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.header-cta span {
  font-size: 15px;
}

.header-cta:hover,
.hero-cta:hover,
.article-mid-cta-button:hover {
  background: var(--brand-indigo-hover);
  box-shadow: var(--shadow-button);
}

.hero-section {
  border-bottom: 1px solid var(--line-faint);
  background: linear-gradient(to bottom, var(--bg-card), #ffffff);
  padding: 64px 24px 56px;
}

.hero-content {
  max-width: 896px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--bg-blue-soft);
  padding: 8px 16px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--brand-blue);
  animation: pulse 1.8s infinite;
}

.hero-badge span {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-blue);
}

.hero-section h1 {
  margin: 0 0 20px;
  color: var(--heading);
  font-size: 52px;
  font-weight: 600;
  line-height: 1.15;
}

.hero-highlight {
  color: var(--brand-blue);
}

.hero-section p {
  max-width: 672px;
  margin: 0 auto 24px;
  color: var(--body);
  font-size: 20px;
  line-height: 1.6;
}

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

.hero-cta {
  padding: 14px 28px;
}

.hero-cta span {
  font-size: 16px;
}

.blog-main {
  padding-top: 56px;
  padding-bottom: 64px;
}

.latest-header {
  margin-bottom: 48px;
}

.latest-header h2 {
  margin: 0 0 8px;
  color: var(--heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
}

.latest-header p {
  margin: 0;
  color: var(--body);
  font-size: 16px;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

.post-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: var(--bg-white);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-card);
}

.post-card-media {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  min-height: 220px;
  overflow: hidden;
  background: var(--bg-hero);
}

.post-card-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-card:hover .post-card-image {
  transform: scale(1.05);
}

.post-card-badge-wrap {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
}

.post-card-badge {
  display: inline-block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  padding: 6px 12px;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
}

.post-card-body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 22px 22px 20px;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--meta);
  font-size: 13px;
}

.post-card-title {
  margin: 0 0 10px;
  color: var(--heading);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.post-card:hover .post-card-title {
  color: var(--brand-blue);
}

.post-card-excerpt {
  margin: 0 0 12px;
  color: var(--body);
  font-size: 15px;
  line-height: 1.6;
}

.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 500;
}

.post-card-link .icon {
  transition: transform 0.2s ease;
}

.post-card:hover .post-card-link .icon {
  transform: translateX(4px);
}

.conversion-banner {
  background: linear-gradient(135deg, var(--brand-indigo), var(--brand-blue));
  padding: 80px 24px;
}

.conversion-inner {
  max-width: 896px;
  text-align: center;
}

.conversion-inner h2 {
  margin: 0 0 16px;
  color: #fff;
  font-size: 38px;
  font-weight: 600;
  line-height: 1.2;
}

.conversion-inner p {
  max-width: 672px;
  margin: 0 auto 32px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.6;
}

.conversion-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.conversion-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 20px;
  background: #fff;
  padding: 16px 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.conversion-cta:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow-conversion);
}

.conversion-cta span {
  color: var(--brand-indigo);
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}

.conversion-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.blog-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.footer-main {
  padding-top: 64px;
  padding-bottom: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo {
  display: block;
  width: 164px;
  height: auto;
}

.footer-brand-title {
  font-size: 18px;
}

.footer-brand-copy {
  margin: 0;
  color: var(--body);
  font-size: 14px;
  line-height: 1.6;
}

.footer-heading {
  margin: 0 0 16px;
  color: var(--heading);
  font-size: 15px;
  font-weight: 600;
}

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

.footer-list li + li {
  margin-top: 12px;
}

.footer-list a {
  color: var(--body);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-list a:hover {
  color: var(--brand-blue);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  border-top: 1px solid var(--line-soft);
  padding-top: 32px;
}

.footer-bottom p {
  margin: 0;
  color: var(--meta);
  font-size: 14px;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.social-links a {
  color: var(--body);
  transition: color 0.2s ease;
}

.social-links a:hover {
  color: var(--brand-blue);
}

.scroll-progress-track {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 4px;
  background: #e5e7eb;
}

.scroll-progress-value {
  height: 100%;
  width: 0;
  background: linear-gradient(to right, var(--brand-indigo), var(--brand-blue));
  transition: width 0.15s ease;
}

.article-shell {
  max-width: 896px;
  padding-top: 48px;
  padding-bottom: 64px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: var(--body);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--brand-blue);
}

.article-intro {
  margin-bottom: 48px;
}

.article-category {
  display: inline-block;
  margin-bottom: 20px;
  border-radius: 999px;
  background: var(--bg-blue-soft);
  padding: 6px 12px;
  color: var(--brand-blue);
  font-size: 13px;
  font-weight: 500;
}

.article-intro h1 {
  margin: 0 0 24px;
  color: var(--heading);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.15;
}

.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 32px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--meta);
  font-size: 15px;
}

.share-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.share-label {
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--body);
  transition: background 0.2s ease, color 0.2s ease;
}

.share-button:hover {
  background: var(--brand-blue);
  color: #fff;
}

.article-hero-media {
  overflow: hidden;
  border-radius: 24px;
  background: var(--bg-hero);
  aspect-ratio: 21 / 9;
}

.article-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-body {
  margin-bottom: 64px;
}

.article-mid-cta {
  margin-bottom: 64px;
  border: 1px solid rgba(37, 99, 235, 0.1);
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fafc, #eff6ff);
  padding: 40px;
}

.article-mid-cta-inner {
  max-width: 672px;
  margin: 0 auto;
  text-align: center;
}

.article-mid-cta h3 {
  margin: 0 0 16px;
  color: var(--heading);
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
}

.article-mid-cta p {
  margin: 0 0 24px;
  color: var(--body);
  font-size: 17px;
  line-height: 1.6;
}

.article-mid-cta-button {
  padding: 16px 32px;
}

.article-mid-cta-button span {
  font-size: 17px;
}

.article-mid-cta .article-mid-cta-trust {
  margin: 36px 0 0;
  color: var(--meta);
  font-size: 14px;
  line-height: 1.45;
}

.article-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  padding-bottom: 16px;
}

.article-nav-card,
.article-nav-empty {
  min-height: 144px;
}

.article-nav-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 16px;
  padding: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-nav-card:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
}

.article-nav-next {
  text-align: right;
}

.article-nav-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--meta);
  font-size: 13px;
  font-weight: 500;
}

.article-nav-next .article-nav-kicker {
  justify-content: flex-end;
}

.article-nav-card h4 {
  margin: 0;
  color: var(--heading);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.article-nav-card:hover h4 {
  color: var(--brand-blue);
}

.prose-blog {
  color: var(--heading);
}

.prose-blog p {
  margin: 0 0 20px;
  color: var(--body-strong);
  font-size: 18px;
  line-height: 1.65;
}

.prose-blog h2 {
  margin: 42px 0 20px;
  color: var(--heading);
  font-size: 32px;
  font-weight: 600;
  line-height: 1.3;
}

.prose-blog h3 {
  margin: 34px 0 16px;
  color: var(--heading);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.4;
}

.prose-blog ul {
  margin: 0 0 24px;
  padding-left: 24px;
}

.prose-blog li {
  color: var(--body-strong);
  font-size: 18px;
  line-height: 1.65;
}

.prose-blog li + li {
  margin-top: 8px;
}

.prose-blog strong {
  color: var(--heading);
  font-weight: 600;
}

.prose-blog a {
  color: var(--brand-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.prose-blog a:hover {
  color: var(--brand-blue-hover);
}

.prose-blog blockquote {
  margin: 28px 0;
  border-left: 4px solid rgba(67, 56, 202, 0.35);
  border-radius: 0 10px 10px 0;
  background: #f8fafc;
  padding: 14px 18px;
}

.prose-blog blockquote p {
  margin: 0;
  color: #3f3f46;
  font-size: 17px;
  line-height: 1.6;
}

.prose-blog pre {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #111827;
  padding: 16px;
}

.prose-blog pre code {
  color: #e5e7eb;
  font-size: 14px;
  line-height: 1.55;
}

.prose-blog :not(pre) > code {
  border-radius: 6px;
  background: #eef2ff;
  padding: 2px 6px;
  color: #3730a3;
  font-size: 0.92em;
}

.prose-blog hr {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid #e5e7eb;
}

.media-embed {
  margin: 28px 0;
}

.media-embed-frame {
  overflow: hidden;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #111827;
  aspect-ratio: 16 / 9;
}

.media-embed-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.media-embed figcaption {
  margin-top: 10px;
  color: var(--meta);
  font-size: 14px;
}

.link-preview {
  margin: 24px 0;
}

.link-preview-anchor {
  display: block;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fbff;
  padding: 14px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.link-preview-anchor:hover {
  transform: translateY(-1px);
  border-color: #93c5fd;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.12);
}

.link-preview-domain {
  display: block;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.link-preview-title {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.35;
}

.link-preview-url {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 13px;
  word-break: break-word;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.45;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 32px, 1280px);
  }

  .header-inner,
  .article-meta-row,
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-nav {
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
    margin-left: 0;
  }

  .hero-section {
    padding: 52px 16px 48px;
  }

  .hero-section h1,
  .article-intro h1 {
    font-size: 38px;
  }

  .hero-section p,
  .conversion-inner p {
    font-size: 18px;
  }

  .blog-main,
  .article-shell,
  .footer-main {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .post-grid,
  .article-nav-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .conversion-banner {
    padding: 64px 16px;
  }

  .conversion-inner h2 {
    font-size: 32px;
  }

  .conversion-trust {
    flex-direction: column;
    gap: 12px;
  }

  .share-row {
    flex-wrap: wrap;
  }

  .article-mid-cta {
    padding: 28px;
  }
}

@media (max-width: 560px) {
  .header-nav {
    flex-wrap: wrap;
  }

  .brand-logo,
  .footer-logo {
    width: 148px;
  }

  .brand-subtitle {
    font-size: 16px;
  }

  .header-cta,
  .hero-cta,
  .conversion-cta,
  .article-mid-cta-button {
    width: 100%;
  }

  .hero-actions,
  .conversion-actions {
    width: 100%;
  }

  .hero-section h1,
  .article-intro h1 {
    font-size: 32px;
  }

  .latest-header h2,
  .prose-blog h2 {
    font-size: 28px;
  }

  .prose-blog p,
  .prose-blog li {
    font-size: 17px;
  }
}
