:root {
  --bg: #f5f8fc;
  --bg-soft: #eaf1fb;
  --surface: #ffffff;
  --ink: #142033;
  --ink-soft: #42536d;
  --muted: #6b7c93;
  --line: #dbe5f0;
  --primary: #1d4ed8;
  --primary-dark: #1e40af;
  --primary-soft: #e8efff;
  --accent: #06b6d4;
  --accent-soft: #e6fbff;
  --success: #16a34a;
  --shadow-sm: 0 2px 10px rgba(20,32,51,.05);
  --shadow: 0 16px 40px rgba(20,32,51,.08);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1200px;
  --header-h: 76px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, h4 { overflow-wrap: break-word; margin-top: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input { font: inherit; }
.skip-link { position: absolute; left: -999px; top: 10px; background: var(--primary); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 1000; }
.skip-link:focus { left: 10px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: .92rem; border: 2px solid transparent; cursor: pointer; transition: .2s ease; white-space: nowrap; }
.btn svg { width: 16px; height: 16px; flex: 0 0 auto; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 24px rgba(29,78,216,.22); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: #b7c8dc; background: #f9fbff; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--primary); }
.text-link:hover { color: var(--primary-dark); }
.kicker { display: block; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em; color: var(--primary); margin-bottom: 12px; }
.section-lead { font-size: 1.06rem; color: var(--ink-soft); max-width: 680px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 200; background: rgba(245,248,252,.94); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: .25s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.brand-mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand-text { font-size: 1.5rem; line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.brand-text strong { font-weight: 800; }
.brand-text span { font-weight: 600; color: var(--muted); font-size: .95rem; }
.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: .92rem; font-weight: 700; color: var(--ink-soft); position: relative; padding: 4px 0; }
.main-nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--primary); transform: scaleX(0); transition: .2s; }
.main-nav a:hover, .main-nav a.is-active { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.header-cta { padding: 10px 20px; font-size: .88rem; }

/* Hero */
.hero { padding: 72px 0 56px; background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 100%); overflow: clip; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--primary); margin-bottom: 18px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(6,182,212,.15); }
.hero h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 20px; max-width: 11.5em; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero-copy > p { font-size: 1.08rem; color: var(--ink-soft); max-width: 560px; margin-bottom: 28px; }
.hero-search { display: flex; align-items: center; gap: 10px; background: #fff; padding: 6px 6px 6px 18px; border-radius: 999px; box-shadow: var(--shadow); max-width: 560px; }
.hero-search svg { width: 20px; height: 20px; color: var(--muted); flex: 0 0 auto; }
.hero-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .95rem; color: var(--ink); }
.hero-search input::placeholder { color: #8a99ad; }
.hero-search .btn { padding: 12px 24px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid var(--line); font-size: .78rem; font-weight: 700; color: var(--ink-soft); transition: .2s; }
.chip:hover { background: #fff; color: var(--primary); border-color: #bfd0f5; }
.hero-proof { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.avatars { display: flex; }
.avatars span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #eef4ff; background: linear-gradient(135deg, var(--primary-soft), #d7ecff); color: var(--primary-dark); font-size: .68rem; font-weight: 800; display: grid; place-items: center; margin-left: -8px; }
.avatars span:first-child { margin-left: 0; }
.hero-proof p { margin: 0; font-size: .88rem; color: var(--ink-soft); }
.hero-proof strong { color: var(--ink); }
.hero-visual { position: relative; min-width: 0; }
.hero-visual img { width: 100%; border-radius: 28px; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.float-card { position: absolute; background: #fff; padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow); font-size: .82rem; font-weight: 700; color: var(--ink-soft); line-height: 1.35; }
.float-card strong { display: block; color: var(--primary); font-size: 1.02rem; }
.float-card.one { left: -14px; bottom: 56px; }
.float-card.two { right: -10px; top: 40px; }

/* Stats */
.stats { background: var(--ink); color: #fff; padding: 34px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat strong { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #93c5fd; line-height: 1.1; margin-bottom: 4px; }
.stat span { font-size: .84rem; color: #c7d6ea; }

/* Layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; padding: 64px 0 72px; align-items: start; }
.main-column { min-width: 0; }
.section { padding: 0 0 64px; margin-bottom: 64px; border-bottom: 1px solid var(--line); }
.section:last-of-type { margin-bottom: 0; padding-bottom: 0; border-bottom: 0; }
.section h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.18; letter-spacing: -.03em; margin-bottom: 14px; max-width: 18em; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; margin-top: 28px; align-items: start; }
.about-copy p { color: var(--ink-soft); margin-bottom: 14px; }
.signature { font-weight: 700; color: var(--ink) !important; border-left: 3px solid var(--accent); padding-left: 14px; margin: 20px 0; }
.value-stack { display: grid; gap: 14px; }
.value-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; padding: 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.value-card .icon { width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); font-weight: 800; display: grid; place-items: center; flex: 0 0 auto; }
.value-card h3 { font-size: .98rem; margin: 0 0 4px; }
.value-card p { font-size: .86rem; color: var(--muted); margin: 0; }

/* Services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.service-card { background: #fff; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: .2s; }
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service-icon { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(135deg, var(--primary-soft), #dff7fb); color: var(--primary); display: grid; place-items: center; margin-bottom: 16px; }
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 1.08rem; margin-bottom: 8px; }
.service-card p { font-size: .9rem; color: var(--muted); margin: 0; }

/* Articles */
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-end; margin-bottom: 24px; }
.section-head h2 { margin-bottom: 0; }
.section-head p { margin: 8px 0 0; color: var(--ink-soft); max-width: 560px; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; align-items: center; }
.filter-btn { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink-soft); font-size: .8rem; font-weight: 700; cursor: pointer; }
.filter-btn:hover { border-color: #bfd0f5; color: var(--primary); }
.filter-btn.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.result-count { margin-left: auto; font-size: .8rem; color: var(--muted); font-weight: 600; }
.article-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s; display: flex; flex-direction: column; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.article-card[hidden] { display: none !important; }
.card-link { display: block; color: inherit; }
.card-media { display: block; overflow: hidden; background: #dfe8f5; }
.card-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .35s; }
.article-card:hover .card-media img { transform: scale(1.03); }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-tag { display: inline-block; align-self: flex-start; font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-dark); background: var(--primary-soft); padding: 5px 10px; border-radius: 999px; margin-bottom: 12px; }
.card-body h3 { font-size: 1.15rem; line-height: 1.35; margin-bottom: 10px; }
.card-body h3 a:hover { color: var(--primary); }
.card-body p { font-size: .9rem; color: var(--muted); margin-bottom: 16px; flex: 1; }
.card-meta { font-size: .74rem; color: var(--muted); font-weight: 600; display: flex; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.no-results { padding: 28px; text-align: center; color: var(--muted); background: #fff; border-radius: var(--radius); border: 1px dashed var(--line); margin: 0; }
.section-cta { margin-top: 28px; display: flex; justify-content: center; }

/* FAQ / CTA */
.faq-list { margin-top: 24px; display: grid; gap: 12px; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq-list summary { padding: 16px 0; font-weight: 700; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; float: right; color: var(--primary); font-size: 1.2rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 0 16px; margin: 0; color: var(--muted); font-size: .92rem; }
.cta-panel { background: linear-gradient(135deg, var(--ink) 0%, #243b63 100%); color: #fff; border-radius: 28px; padding: 40px; text-align: center; }
.cta-panel h2 { color: #fff; max-width: none; }
.cta-panel p { color: #c8d7ee; max-width: 560px; margin-inline: auto; }
.cta-form { display: flex; gap: 10px; max-width: 520px; margin: 24px auto 10px; }
.cta-form input { flex: 1; min-width: 0; border: 0; border-radius: 999px; padding: 13px 20px; outline: 0; }
.form-msg { font-size: .82rem; color: #9fd3ff; margin: 0; min-height: 1.4em; }


/* Full posts */
.full-post { scroll-margin-top: calc(var(--header-h) + 20px); padding: 34px 0 40px; border-bottom: 1px solid var(--line); }
.full-post:last-child { border-bottom: 0; padding-bottom: 0; }
.post-head .card-tag { margin-bottom: 12px; }
.post-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.22; margin: 0 0 10px; max-width: 100%; }
.post-head .card-meta { border-top: 0; padding-top: 0; margin-bottom: 18px; }
.post-nav { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .88rem; font-weight: 700; }
.back-link { color: var(--ink-soft); }
.back-link:hover, .post-nav .text-link:hover { color: var(--primary); }
.page-hero { padding: 64px 0 48px; background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.breadcrumb { font-size: .82rem; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.breadcrumb a:hover { color: var(--primary); }
.page-hero h1 { font-size: clamp(2.2rem, 4.8vw, 3.6rem); line-height: 1.1; letter-spacing: -.035em; margin-bottom: 14px; }
.page-hero p { max-width: 680px; color: var(--ink-soft); font-size: 1.04rem; margin: 0; }
.post-body img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; margin: 0 0 24px; }
.post-body p { color: var(--ink-soft); margin-bottom: 14px; }
.post-body h3 { margin: 26px 0 8px; font-size: 1.12rem; }
.takeaway { background: var(--primary-soft); border-left: 4px solid var(--primary); border-radius: 0 14px 14px 0; padding: 16px 20px; margin: 22px 0 0; color: var(--ink-soft); }
.takeaway strong { color: var(--ink); }
/* Sidebar */
.sidebar { position: sticky; top: 100px; display: grid; gap: 18px; }
.widget { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.widget-title { font-size: 1.02rem; margin: 0 0 16px; }
.widget-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.widget-head .widget-title { margin: 0; }
.status { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; padding: 4px 9px; border-radius: 999px; background: #f1f3f5; color: var(--muted); white-space: nowrap; }
.status.is-live { background: #e4f5ee; color: var(--success); }
.status.is-empty { background: #fff3e6; color: #a66a1f; }
.status.is-offline { background: #fdecec; color: #b34a4a; }
.recent-list, .sape-links { list-style: none; margin: 0; padding: 0; }
.recent-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.recent-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.recent-list img { width: 62px; height: 52px; object-fit: cover; border-radius: 10px; flex: 0 0 auto; }
.recent-list strong { display: block; font-size: .85rem; line-height: 1.35; margin-bottom: 2px; }
.recent-list strong a:hover { color: var(--primary); }
.recent-list small { color: var(--muted); font-size: .72rem; }
.sape-links li { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.sape-links li:last-child { border-bottom: 0; padding-bottom: 0; }
.sape-links a { font-size: .86rem; font-weight: 700; color: var(--ink); }
.sape-links a:hover { color: var(--primary); }
.sape-links small { display: block; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 2px; }
.widget-note { font-size: .74rem; color: var(--muted); margin: 12px 0 0; }
.magenet-ad { padding: 10px 0; border-bottom: 1px dashed var(--line); }
.magenet-ad:last-child { border-bottom: 0; padding-bottom: 0; }
.magenet-ad img { max-width: 100%; height: auto; border-radius: 8px; }
.seed-badge { display: block; text-align: center; }
.seed-badge img { width: 100%; max-width: 240px; height: auto; border-radius: 8px; margin-inline: auto; }
.sidebar-cta { background: var(--primary-soft); border-color: #ccdafc; text-align: center; }
.sidebar-cta p { font-size: .86rem; color: var(--ink-soft); margin-bottom: 14px; }

/* Footer */
.site-footer { background: #0f1929; color: #c4d1e3; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-text { color: #fff; }
.footer-brand .brand-text span { color: #8ea2bd; }
.footer-brand p { margin: 14px 0 0; font-size: .9rem; max-width: 280px; color: #9fb0c7; }
.footer-col h3 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: .88rem; color: #9fb0c7; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0 28px; font-size: .8rem; color: #7f93ad; }

@media (max-width: 1024px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero-inner, .about-grid { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 40px; }
  .hero h1 { max-width: 100%; }
  .hero-visual { max-width: 100%; }
  .service-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: stretch; }
}
@media (max-width: 760px) {
  :root { --header-h: 70px; }
  .layout { padding: 48px 0 56px; gap: 40px; }
  .section { padding-bottom: 48px; margin-bottom: 48px; }
  .filter-bar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .filter-bar::-webkit-scrollbar { display: none; }
  .result-count { display: none; }
  .hero-chips { gap: 8px; }
  .container { width: min(100% - 32px, var(--container)); }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .main-nav { display: none; position: absolute; top: calc(100% + 1px); left: 0; right: 0; background: #fff; padding: 20px 24px; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid #edf2f8; }
  .main-nav a:last-child { border-bottom: 0; }
  .main-nav a::after { display: none; }
  .hero-search { flex-direction: column; align-items: stretch; border-radius: 20px; padding: 16px; }
  .hero-search svg { display: none; }
  .hero-search input { padding: 12px 14px; background: var(--bg); border-radius: 12px; }
  .hero-search .btn { width: 100%; }
  .float-card { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .article-grid, .sidebar, .footer-grid { grid-template-columns: 1fr; }
  .cta-form { flex-direction: column; }
  .cta-panel { padding: 32px 22px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
