:root {
    --primary-700: #173f93;
    --primary-600: #1e4fb8;
    --accent-500: #f59e0b;
    --success-500: #10b981;
    --neutral-950: #0f172a;
    --neutral-800: #1e293b;
    --neutral-600: #475569;
    --neutral-500: #64748b;
    --neutral-200: #e2e8f0;
    --neutral-100: #f1f5f9;
    --neutral-50: #f8fafc;
    --white: #ffffff;
    --shadow: 0 8px 24px rgba(15, 42, 92, 0.08);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--neutral-950);
    background: var(--white);
}

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

button, input { font: inherit; }

.container {
    width: min(100% - 32px, 1200px);
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    display: grid;
    grid-template-columns: auto 1fr minmax(220px, 300px) auto;
    align-items: center;
    gap: 22px;
    padding: 14px clamp(16px, 4vw, 40px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.88);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(16px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    font-weight: 800;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-600), #16a34a);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--neutral-600);
}

.nav-links a:hover { color: var(--primary-600); }

.global-search input,
.newsletter input {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    padding: 0 14px;
    color: var(--neutral-800);
    background: var(--neutral-50);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 16px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { color: var(--white); background: var(--primary-600); box-shadow: 0 10px 18px rgba(30, 79, 184, 0.18); }
.btn-secondary { color: var(--primary-700); border-color: rgba(30, 79, 184, 0.2); background: var(--white); }
.btn-ghost { color: var(--neutral-600); border-color: var(--neutral-200); background: var(--white); }
.btn-accent { color: var(--neutral-950); background: var(--accent-500); }
.btn.light { color: var(--white); border-color: rgba(255,255,255,0.5); background: transparent; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.mobile-nav-actions { display: none; }

.mobile-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    background: var(--white);
}

.mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--neutral-800);
}

.hero {
    position: relative;
    min-height: 520px;
    display: grid;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.14), transparent 28%),
        linear-gradient(135deg, #eef5ff 0%, #ffffff 58%, #f3fbf7 100%);
}

.hero-inner { position: relative; z-index: 2; max-width: 740px; }

.eyebrow {
    margin: 0 0 12px;
    color: var(--primary-600);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}

h1, h2, h3 {
    margin: 0;
    font-family: "Plus Jakarta Sans", Inter, sans-serif;
    letter-spacing: 0;
}

h1 { max-width: 720px; font-size: 48px; line-height: 1.15; font-weight: 700; }
h2 { max-width: 760px; font-size: 36px; line-height: 1.2; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 600; }

.hero-copy {
    max-width: 650px;
    margin: 18px 0 28px;
    color: var(--neutral-600);
    font-size: 18px;
    line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-visual::before,
.hero-visual::after {
    content: "";
    position: absolute;
    right: 8%;
    top: 22%;
    width: 340px;
    height: 220px;
    border: 1px solid rgba(30, 79, 184, 0.16);
    border-radius: 42% 58% 55% 45%;
    transform: rotate(-12deg);
}

.hero-visual::after {
    right: 14%;
    top: 38%;
    width: 260px;
    height: 160px;
    border-color: rgba(16, 185, 129, 0.24);
    transform: rotate(18deg);
}

.node {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: var(--primary-600);
    box-shadow: 0 0 0 8px rgba(30, 79, 184, 0.12);
}

.node-a { right: 16%; top: 26%; }
.node-b { right: 30%; top: 46%; background: var(--success-500); }
.node-c { right: 12%; top: 58%; background: var(--accent-500); }
.node-d { right: 24%; top: 68%; }

.kpi-strip {
    border-block: 1px solid var(--neutral-200);
    background: var(--white);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.kpi-grid div {
    padding: 28px 24px;
    border-right: 1px solid var(--neutral-200);
}

.kpi-grid div:last-child { border-right: 0; }
.kpi-grid strong { display: block; font-size: 30px; font-family: "Plus Jakarta Sans"; color: var(--primary-600); }
.kpi-grid span { color: var(--neutral-600); font-weight: 600; }

.section { padding: 96px 0; }
.muted { background: var(--neutral-50); }
.section-heading { margin-bottom: 28px; }
.section-heading.compact { text-align: center; }
.section-heading.compact h2 { margin-inline: auto; }
.section-heading p:not(.eyebrow) {
    max-width: 650px;
    color: var(--neutral-600);
    line-height: 1.65;
}
.section-actions.inline { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

.pillar-list {
    display: grid;
    gap: 14px;
}

.pillar-list article {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    align-items: start;
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    padding: 20px;
    background: var(--white);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.pillar-list article:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 79, 184, 0.28);
    box-shadow: var(--shadow);
}

.pillar-list span,
.membership-card h3::before,
.partner-logo {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    color: var(--white);
    background: var(--primary-600);
    font-size: 13px;
    font-weight: 800;
}

.pillar-list p { margin: 8px 0 10px; color: var(--neutral-600); line-height: 1.55; }
.pillar-list a { color: var(--primary-600); font-weight: 800; }

.split-section {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 36px;
    align-items: start;
}

.benefit-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.benefit-row span,
.publisher-label {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--primary-700);
    background: #e8f0ff;
    font-size: 12px;
    font-weight: 800;
}

.membership-grid {
    display: grid;
    gap: 14px;
}

.membership-card,
.partner-card,
.event-card,
.tutorial-card {
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    background: var(--white);
    box-shadow: 0 0 0 rgba(15, 42, 92, 0);
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.membership-card:hover,
.partner-card:hover,
.event-card:hover,
.tutorial-card:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 79, 184, 0.28);
    box-shadow: var(--shadow);
}

.membership-card { padding: 22px; }
.membership-card h3 { display: flex; align-items: center; gap: 12px; }
.membership-card h3::before { content: "IB"; flex: 0 0 auto; width: 40px; height: 40px; }
.membership-card p,
.membership-card li { color: var(--neutral-600); line-height: 1.55; }
.membership-card ul { margin: 14px 0 0; padding-left: 18px; }

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 24px;
}

.chip {
    min-height: 38px;
    border: 1px solid var(--neutral-200);
    border-radius: 999px;
    padding: 0 14px;
    color: var(--neutral-600);
    font-weight: 700;
    background: var(--white);
    cursor: pointer;
}

.chip.active {
    color: var(--white);
    border-color: var(--primary-600);
    background: var(--primary-600);
}

.journal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.journal-card,
.article-card,
.workflow-grid article,
.services-grid article {
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    background: var(--white);
}

.journal-card {
    display: flex;
    flex-direction: column;
    min-height: 430px;
    overflow: hidden;
    transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.journal-card:hover,
.journal-card.featured {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: rgba(30, 79, 184, 0.4);
}

.journal-cover {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    color: var(--white);
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--journal-color) 80%, #000), var(--journal-color)),
        var(--journal-color);
}

.journal-cover span {
    font-family: "Plus Jakarta Sans";
    font-size: 34px;
    font-weight: 800;
}

.journal-body { padding: 20px; }
.journal-name { margin: 6px 0 10px; color: var(--neutral-800); font-weight: 700; line-height: 1.45; }
.journal-body .publisher-label { margin-bottom: 10px; }
.journal-scope {
    display: -webkit-box;
    margin: 0;
    min-height: 48px;
    overflow: hidden;
    color: var(--neutral-600);
    line-height: 1.55;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.badge {
    min-height: 24px;
    border-radius: 999px;
    padding: 4px 9px;
    color: var(--primary-700);
    background: #e8f0ff;
    font-size: 12px;
    font-weight: 800;
}

.journal-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding: 0 20px 16px;
    color: var(--neutral-500);
    font-size: 13px;
    font-weight: 700;
}

.card-actions {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    padding: 0 20px 20px;
}

.card-actions .btn { min-height: 38px; padding: 0 10px; font-size: 13px; }

.logo-cloud {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.logo-cloud span {
    display: grid;
    place-items: center;
    min-height: 72px;
    border: 1px solid var(--neutral-200);
    border-radius: 12px;
    color: var(--neutral-500);
    font-weight: 800;
    background: var(--white);
    filter: grayscale(1);
}

.logo-cloud span:hover {
    color: var(--primary-600);
    filter: none;
}

.partner-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
    margin-top: 24px;
    color: var(--neutral-600);
}

.partner-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.partner-card {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 18px;
    padding: 22px;
}

.partner-logo {
    width: 64px;
    height: 64px;
    background: var(--success-500);
}

.partner-card p { color: var(--neutral-600); line-height: 1.6; }
.partner-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.workflow-grid,
.services-grid,
.article-grid,
.event-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.workflow-grid article,
.services-grid article {
    padding: 22px;
}

.workflow-grid span,
.services-grid span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: 10px;
    color: var(--white);
    background: var(--primary-600);
    font-weight: 800;
}

.workflow-grid p,
.services-grid p,
.article-card p {
    color: var(--neutral-600);
    line-height: 1.55;
}

.article-grid { grid-template-columns: repeat(3, 1fr); }
.article-card { padding: 22px; }
.event-grid { grid-template-columns: repeat(3, 1fr); }
.event-card { padding: 22px; }
.event-card dl { display: grid; gap: 10px; margin: 18px 0; }
.event-card dl div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--neutral-200); padding-bottom: 8px; }
.event-card dt { color: var(--neutral-500); font-weight: 700; }
.event-card dd { margin: 0; color: var(--neutral-800); font-weight: 700; text-align: right; }

.tutorial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.tutorial-card {
    overflow: hidden;
}

.video-thumb {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 16 / 9;
    background:
        linear-gradient(135deg, rgba(30, 79, 184, 0.94), rgba(16, 185, 129, 0.84)),
        var(--primary-600);
}

.video-thumb span {
    width: 0;
    height: 0;
    border-top: 16px solid transparent;
    border-bottom: 16px solid transparent;
    border-left: 24px solid var(--white);
}

.tutorial-card .publisher-label { margin: 18px 18px 10px; }
.tutorial-card h3 { margin: 0 18px; }
.tutorial-card p { margin: 10px 18px 20px; color: var(--neutral-600); line-height: 1.55; }

.article-badge {
    display: inline-flex;
    margin-bottom: 18px;
    border-radius: 999px;
    padding: 5px 10px;
    color: var(--white);
    background: var(--success-500);
    font-size: 12px;
    font-weight: 800;
}

.article-card h3 {
    display: -webkit-box;
    min-height: 78px;
    overflow: hidden;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.article-card time {
    display: block;
    margin: 16px 0 12px;
    color: var(--neutral-500);
    font-weight: 700;
}

.article-card a { color: var(--primary-600); font-weight: 800; }
.section-action { margin-top: 26px; text-align: center; }

.closing-cta {
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-700), #0f766e);
}

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

.cta-inner p { margin-bottom: 0; color: rgba(255,255,255,0.82); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.site-footer {
    color: #dbe4f0;
    background: #111827;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding: 62px 0;
}

.site-footer a { display: block; margin-top: 10px; color: #dbe4f0; }
.site-footer .youtube-link {
    display: inline-flex;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 9px 12px;
    font-weight: 800;
}
.site-footer h3 { margin-bottom: 14px; font-size: 16px; color: var(--white); }
.footer-brand { margin-top: 0; color: var(--white); }
.newsletter { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: 14px; }
.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 18px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #b6c3d4;
    font-size: 14px;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.62);
}

.modal[hidden] { display: none; }
.modal-panel {
    width: min(100%, 620px);
    max-height: min(720px, 88vh);
    overflow: auto;
    border-radius: 12px;
    padding: 26px;
    background: var(--white);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
}

.modal-close {
    float: right;
    width: 36px;
    height: 36px;
    border: 1px solid var(--neutral-200);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    font-size: 22px;
}

.modal-list {
    display: grid;
    gap: 10px;
    margin-top: 20px;
}

.modal-list a {
    display: grid;
    gap: 4px;
    border: 1px solid var(--neutral-200);
    border-radius: 10px;
    padding: 14px;
}

.modal-list span { color: var(--neutral-600); }

.not-found {
    display: grid;
    place-items: center;
    min-height: 100vh;
    text-align: center;
}

:focus-visible {
    outline: 3px solid rgba(245, 158, 11, 0.7);
    outline-offset: 3px;
}

@media (max-width: 1024px) {
    .site-header { grid-template-columns: auto 1fr auto; }
    .global-search, .header-actions { display: none; }
    .mobile-toggle { display: block; justify-self: end; }
    .nav-links {
        position: fixed;
        inset: 64px 16px auto 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        border: 1px solid var(--neutral-200);
        border-radius: 12px;
        padding: 16px;
        background: var(--white);
        box-shadow: var(--shadow);
    }
    .nav-links.open { display: flex; }
    .mobile-nav-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 4px;
    }
    .split-section { grid-template-columns: 1fr; }
    .journal-grid, .article-grid, .tutorial-grid, .event-grid { grid-template-columns: repeat(2, 1fr); }
    .workflow-grid, .services-grid, .logo-cloud, .partner-card-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    h3 { font-size: 20px; }
    .hero { min-height: 420px; }
    .hero-copy { font-size: 16px; }
    .section { padding: 56px 0; }
    .kpi-grid, .journal-grid, .article-grid, .workflow-grid, .services-grid, .logo-cloud, .footer-grid, .partner-card-grid, .event-grid, .tutorial-grid {
        grid-template-columns: 1fr;
    }
    .pillar-list article, .partner-card { grid-template-columns: 1fr; }
    .kpi-grid div { border-right: 0; border-bottom: 1px solid var(--neutral-200); }
    .card-actions { grid-template-columns: 1fr; }
    .cta-inner { align-items: flex-start; flex-direction: column; }
    .newsletter { grid-template-columns: 1fr; }
    .footer-bottom { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
