:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #182235;
    background: #ffffff;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: #ffffff; color: #182235; line-height: 1.65; }
a { color: #1457a6; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: #101828; line-height: 1.15; margin-top: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); max-width: 900px; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -0.025em; }
h3 { font-size: 1.3rem; }
p { margin-top: 0; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }

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

.navigation { min-height: 76px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: baseline; gap: 6px; color: #102a56; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-name { font-size: 1.18rem; font-weight: 800; letter-spacing: -0.02em; }
.brand-type { font-size: 0.8rem; font-weight: 700; color: #4875ac; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: #354052; font-weight: 650; text-decoration: none; }
.nav-links a:hover, .nav-links a.active { color: #1457a6; }
.nav-links .nav-contact { background: #1457a6; color: #ffffff; padding: 10px 18px; border-radius: 8px; }
.nav-links .nav-contact:hover, .nav-links .nav-contact.active { color: #ffffff; background: #0e468b; }
.nav-toggle-button {
    display: none;
    border: 0;
    padding: 8px;
    background: transparent;
    cursor: pointer;
}

.hero {
    padding: 110px 0;
    background: radial-gradient(circle at top right, rgba(53, 118, 192, 0.19), transparent 35%),
                linear-gradient(135deg, #f7faff 0%, #ffffff 60%);
    border-bottom: 1px solid #edf0f4;
}

.hero-content { max-width: 1120px; }
.hero-description { max-width: 720px; font-size: 1.25rem; color: #4d5a6e; }
.eyebrow { color: #1457a6; font-weight: 800; letter-spacing: 0.09em; text-transform: uppercase; font-size: 0.78rem; }
.button-group { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.button {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 12px 22px; border-radius: 8px;
    font-weight: 750; text-decoration: none;
    transition: transform 120ms ease, background 120ms ease;
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button-primary { color: #ffffff; background: #1457a6; }
.button-primary:hover { color: #ffffff; background: #0e468b; }
.button-secondary { color: #15365f; background: #ffffff; border: 1px solid #cbd5e1; }

.section { padding: 88px 0; }
.section-muted { background: #f5f7fa; border-top: 1px solid #e8ecf2; border-bottom: 1px solid #e8ecf2; }
.section-heading { max-width: 760px; margin-bottom: 38px; }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.card {
    background: #ffffff; border: 1px solid #e1e7ef; border-radius: 14px;
    padding: 30px; box-shadow: 0 12px 36px rgba(15, 35, 65, 0.06);
}
.card p:last-child { margin-bottom: 0; }

.split-section { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: start; }

.callout {
    display: flex; align-items: center; justify-content: space-between; gap: 36px;
    padding: 42px; background: #102a56; color: #ffffff; border-radius: 16px;
}
.callout h2, .callout p { color: #ffffff; }
.callout p { margin-bottom: 0; }

.page-header { padding: 82px 0; background: #f5f8fc; border-bottom: 1px solid #e4e9f0; }
.page-header h1 { font-size: clamp(2.3rem, 5vw, 4rem); }
.page-header p:last-child { max-width: 760px; font-size: 1.14rem; color: #526075; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.legal-content { max-width: 850px; }
.legal-content h2 { margin-top: 42px; font-size: 1.55rem; }

.site-footer { padding: 56px 0 26px; background: #0e1b2f; color: #cbd5e1; }
.site-footer strong { color: #ffffff; font-size: 1.05rem; }
.footer-content { display: flex; justify-content: space-between; gap: 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a { color: #d7e1ef; }
.footer-bottom { margin-top: 34px; padding-top: 22px; border-top: 1px solid #26364e; font-size: 0.88rem; }

#blazor-error-ui {
    display: none; position: fixed; bottom: 0; width: 100%; padding: 12px 20px;
    background: #fff3cd; color: #453800; box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2); z-index: 1000;
}
#blazor-error-ui .dismiss { position: absolute; right: 16px; cursor: pointer; }

@media (max-width: 850px) {
    .card-grid, .contact-grid { grid-template-columns: 1fr; }
    .split-section { grid-template-columns: 1fr; gap: 24px; }
    .callout { align-items: flex-start; flex-direction: column; }
    .nav-toggle-button {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .nav-toggle-button span {
        width: 25px;
        height: 2px;
        background: #182235;
    }
    .nav-links {
        display: none; position: absolute; top: 76px; left: 0; right: 0;
        padding: 22px; flex-direction: column; align-items: stretch; gap: 8px;
        background: #ffffff; border-bottom: 1px solid #e6eaf0;
    }
    .nav-links a { padding: 11px 8px; }
    .nav-links.nav-links-open { display: flex; }
    .footer-content { flex-direction: column; }
}

@media (max-width: 560px) {
    .container { width: min(100% - 28px, 1120px); }
    .hero, .section, .page-header { padding-top: 62px; padding-bottom: 62px; }
    .card { padding: 24px; }
    .callout { padding: 28px; }
    .button-group, .button { width: 100%; }
}
