* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #1e293b;
    background: #f8fafc;
    line-height: 1.65;
}

a {
    color: #0f4c81;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

main {
    min-height: 60vh;
}

.container {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #dbe4ee;
    backdrop-filter: blur(10px);
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #0f172a;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.brand:hover {
    text-decoration: none;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0f4c81, #2563eb);
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.brand-text {
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.site-nav a {
    color: #334155;
    text-decoration: none;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.98rem;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: #e8f0fe;
    color: #0f4c81;
}

.menu-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid #dbe4ee;
    border-radius: 12px;
    background: white;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
}

.menu-toggle span {
    width: 20px;
    height: 2px;
    border-radius: 99px;
    background: #0f172a;
}

.hero {
    padding: 72px 0 48px;
    background: linear-gradient(180deg, #eef5ff 0%, #f8fafc 100%);
}

.hero-grid,
.page-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f0fe;
    color: #0f4c81;
    font-size: 0.87rem;
    font-weight: 700;
}

h1,
h2,
h3 {
    color: #0f172a;
    line-height: 1.2;
}

.hero h1,
.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.lead {
    margin: 0;
    font-size: 1.08rem;
    color: #334155;
}

.hero-panel,
.page-hero-panel,
.info-panel,
.article,
.sidebar-card,
.grid-card,
.portal-card,
.model-card,
.text-card {
    background: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 22px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.hero-panel,
.page-hero-panel,
.article,
.sidebar-card,
.text-card {
    padding: 28px;
}

.hero-actions,
.inline-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button,
.button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    border: 1px solid transparent;
}

.button {
    background: #0f4c81;
    color: #fff;
}

.button:hover {
    text-decoration: none;
    background: #0d3f6a;
}

.button-secondary {
    background: white;
    color: #0f4c81;
    border-color: #c8d8ea;
}

.button-secondary:hover {
    text-decoration: none;
    background: #f5f9ff;
}

.section {
    padding: 56px 0;
}

.section-tight {
    padding: 28px 0 56px;
}

.section h2.section-title {
    margin: 0 0 12px;
    font-size: clamp(1.55rem, 2vw, 2rem);
}

.section-intro {
    margin: 0 0 28px;
    max-width: 760px;
    color: #475569;
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

.model-card,
.portal-card,
.grid-card {
    overflow: hidden;
}

.model-card,
.grid-card {
    padding: 24px;
}

.model-card h3,
.grid-card h3,
.portal-card h3 {
    margin: 0 0 12px;
    font-size: 1.28rem;
}

.model-card p,
.grid-card p,
.portal-card p,
.article p,
.sidebar-card p,
.text-card p,
.hero-panel p,
.page-hero-panel p {
    margin: 0 0 16px;
    color: #475569;
}

.model-card p:last-child,
.grid-card p:last-child,
.portal-card p:last-child,
.article p:last-child,
.sidebar-card p:last-child,
.text-card p:last-child,
.hero-panel p:last-child,
.page-hero-panel p:last-child {
    margin-bottom: 0;
}

.portal-thumb {
    aspect-ratio: 16 / 8;
    background: #f1f5f9;
    overflow: hidden;
}

.portal-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portal-card-body {
    padding: 20px 22px 22px;
}

.pill {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef2ff;
    color: #4338ca;
    font-size: 0.82rem;
    font-weight: 700;
}

.page-hero {
    padding: 54px 0 30px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
    gap: 26px;
    align-items: start;
}

.article h2 {
    margin: 0 0 12px;
    font-size: 1.55rem;
}

.article section + section {
    margin-top: 34px;
    padding-top: 30px;
    border-top: 1px solid #e2e8f0;
}

.article ul,
.sidebar-card ul {
    margin: 0;
    padding-left: 20px;
}

.article li,
.sidebar-card li {
    margin-bottom: 10px;
    color: #475569;
}

.sidebar-stack {
    display: grid;
    gap: 18px;
}

.banner-frame {
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid #dbe4ee;
}

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

.link-list li + li {
    margin-top: 10px;
}

.info-band {
    padding: 18px 20px;
    background: #eff6ff;
    border: 1px solid #cfe1fb;
    border-radius: 18px;
    color: #334155;
}

.site-footer {
    margin-top: 56px;
    padding: 34px 0 22px;
    background: #0f172a;
    color: #cbd5e1;
}

.footer-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 24px;
    align-items: start;
    padding-bottom: 24px;
}

.footer-brand {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
    margin-bottom: 10px;
}

.footer-text {
    max-width: 560px;
    margin: 0;
}

.footer-nav {
    display: grid;
    gap: 10px;
}

.footer-nav a,
.footer-bottom a {
    color: #cbd5e1;
}

.footer-bottom {
    padding-top: 18px;
    border-top: 1px solid rgba(203, 213, 225, 0.15);
}

@media (max-width: 900px) {
    .hero-grid,
    .page-hero-grid,
    .content-grid,
    .grid-3,
    .grid-2,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        border: 1px solid #dbe4ee;
        border-radius: 18px;
        padding: 12px;
        box-shadow: 0 14px 40px rgba(15, 23, 42, 0.12);
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 14px;
    }

    .menu-toggle {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 1120px);
    }

    .header-bar {
        min-height: 62px;
    }

    .brand {
        gap: 10px;
        font-size: 1rem;
    }

    .brand-mark {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }

    .hero {
        padding-top: 42px;
    }

    .page-hero {
        padding-top: 32px;
    }

    .hero-panel,
    .page-hero-panel,
    .article,
    .sidebar-card,
    .text-card,
    .model-card,
    .grid-card {
        padding: 22px;
    }

    .portal-card-body {
        padding: 18px;
    }

    .button,
    .button-secondary {
        width: 100%;
    }
}
