:root {
  --brand-900: #0a1f3c;
  --brand-800: #102c50;
  --brand-700: #1a3f6b;
  --brand-600: #245489;
  --brand-50: #eff4fa;
  --accent-700: #1a4fb8;
  --accent-600: #1d5bd6;
  --accent-500: #2569e3;
  --accent-300: #a8c6f7;
  --surface-50: #f6f8fb;
  --ink-900: #131f31;
  --ink-700: #3c4a5e;
  --ink-500: #64748b;
  --ink-100: #dde4ec;
  --white: #ffffff;
  --shadow-sm: 0 1px 2px rgba(16, 33, 58, 0.06);
  --shadow-md: 0 6px 20px rgba(16, 33, 58, 0.08), 0 2px 5px rgba(16, 33, 58, 0.05);
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container-max: 1200px;
  --header-h: 76px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: clip; }
body {
  font-family: var(--font-display);
  color: var(--ink-900);
  background: var(--surface-50);
  line-height: 1.6;
  font-size: 16px;
}
body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
.container { width: 100%; max-width: var(--container-max); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0 96px; }
.eyebrow {
  display: inline-flex; font-size: 13px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--brand-600); margin-bottom: 12px;
}
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 8px; color: var(--brand-900); }
.section-head p { color: var(--ink-500); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 22px; border-radius: var(--radius-sm); font-weight: 700; font-size: 15px;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent-600); color: var(--white); }
.btn-primary:hover { background: var(--accent-700); }
.btn-secondary { background: var(--white); color: var(--brand-800); border-color: var(--ink-100); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: 68px; display: flex; align-items: center;
  background: rgba(255,255,255,0.94); box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--ink-100);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--brand-900); }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent-500), var(--brand-800));
  color: var(--white); font-weight: 800; font-size: 14px; flex-shrink: 0;
}
.brand-sub { display: block; font-size: 11px; font-weight: 600; color: var(--ink-500); }
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 10px 16px; border-radius: var(--radius-pill); font-weight: 600; font-size: 14.5px; color: var(--ink-700);
}
.main-nav a:hover, .main-nav a.active { background: var(--brand-50); color: var(--brand-800); }
.nav-cta { margin-left: 6px; color: var(--white) !important; }
.nav-backdrop, .main-nav-drawer { display: none; }
.nav-toggle {
  display: none; position: relative; z-index: 130; width: 44px; height: 44px;
  border-radius: 10px; border: none; background: var(--brand-50);
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 13px; width: 18px; height: 2px;
  background: var(--brand-800); border-radius: 2px;
}
.nav-toggle span { top: 21px; }
.nav-toggle::before { top: 15px; }
.nav-toggle::after { top: 27px; }
.nav-toggle.is-open span { opacity: 0; }
.nav-toggle.is-open::before { top: 21px; transform: rotate(45deg); }
.nav-toggle.is-open::after { top: 21px; transform: rotate(-45deg); }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .brand { font-size: 16px; }
  .nav-backdrop {
    display: block; position: fixed; inset: 0; z-index: 110;
    background: rgba(10, 31, 60, 0.46); opacity: 0; visibility: hidden; pointer-events: none;
  }
  .nav-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
  .main-nav-drawer {
    display: flex; position: fixed; top: 0; right: 0; bottom: 0; width: min(320px, 86vw);
    height: 100dvh; z-index: 120; flex-direction: column; gap: 4px;
    background: var(--white); padding: calc(var(--header-h) + 16px) 22px 32px;
    box-shadow: -16px 0 40px rgba(10, 31, 60, 0.18);
    transform: translateX(100%); overflow-y: auto; transition: transform 0.28s ease;
  }
  .main-nav-drawer.is-open { transform: translateX(0); }
  .main-nav-drawer a {
    color: var(--ink-700); padding: 14px 12px; border-radius: var(--radius-sm); font-weight: 600;
  }
  .main-nav-drawer a:hover, .main-nav-drawer a.active { background: var(--brand-50); color: var(--brand-800); }
  .main-nav-drawer .nav-cta { margin-top: 12px; width: 100%; justify-content: center; color: var(--white); background: var(--accent-600); }
}

.page-header {
  padding: calc(68px + 56px) 0 56px;
  background: linear-gradient(160deg, var(--brand-900), var(--brand-800) 55%, var(--brand-700));
  color: var(--white);
}
.page-header h1 { color: var(--white); font-size: clamp(28px, 4vw, 42px); margin: 12px 0; }
.page-header p { color: rgba(255,255,255,0.85); max-width: 680px; }
.page-header-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.page-header-meta span {
  padding: 7px 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.25);
  font-size: 13px; font-weight: 700;
}
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: rgba(255,255,255,0.75); flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.75); font-weight: 600; }
.breadcrumb a:hover { color: var(--white); text-decoration: underline; }
.breadcrumb .current { color: var(--white); }

.blog-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.blog-chip {
  padding: 8px 14px; border-radius: var(--radius-pill); background: var(--white);
  border: 1px solid var(--ink-100); font-size: 13.5px; font-weight: 700; color: var(--ink-700);
}
.blog-chip:hover, .blog-chip.is-active { background: var(--brand-50); color: var(--brand-800); border-color: transparent; }
.blog-chip--sm { font-size: 12px; padding: 4px 10px; }
.blog-cat-block { margin-bottom: 56px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.blog-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--ink-100);
  display: flex; flex-direction: column; gap: 10px;
  overflow: hidden;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}
.blog-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.blog-card-cover {
  display: block; margin: -24px -24px 4px; aspect-ratio: 16 / 9; overflow: hidden; background: var(--brand-800);
}
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; }
.blog-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--ink-500); }
.blog-card h3 { font-size: 20px; line-height: 1.3; color: var(--brand-900); }
.blog-card h3 a:hover { color: var(--accent-600); }
.blog-card p { color: var(--ink-700); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-more { margin-top: auto; font-weight: 700; color: var(--accent-600); font-size: 14px; }
.blog-empty { color: var(--ink-500); }
.blog-pager { display: flex; gap: 12px; margin-top: 40px; }

.post-cover { width: 100%; border-radius: var(--radius-lg); margin-bottom: 28px; }
.post-content { color: var(--ink-700); font-size: 17px; }
.post-content h2, .post-content h3 { color: var(--brand-900); margin: 28px 0 10px; }
.post-content p { margin-bottom: 16px; }
.post-content ul { margin: 0 0 16px 20px; list-style: disc; }
.post-content ol { margin: 0 0 16px 22px; list-style: decimal; }
.post-content li { margin-bottom: 8px; }
.post-content a { color: var(--accent-600); font-weight: 600; }
.post-content a:hover { text-decoration: underline; }
.post-back { margin-top: 40px; color: var(--ink-500); font-weight: 600; }
.post-back a { color: var(--accent-600); }

.site-footer { background: var(--brand-900); color: rgba(255,255,255,0.75); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--white); margin-bottom: 12px; }
.footer-about { font-size: 14px; max-width: 320px; color: rgba(255,255,255,0.65); }
.footer-col h4 { color: var(--white); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; color: rgba(255,255,255,0.65); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 13px; color: rgba(255,255,255,0.55);
}
.footer-legal { display: flex; gap: 18px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .container, .container-narrow { padding: 0 16px; }
}
