:root {
    --ink: #14213d;
    --muted: #5c677d;
    --surface: #ffffff;
    --surface-soft: #f5f7fb;
    --line: #dce3ec;
    --brand: #075985;
    --brand-dark: #0c3f5f;
    --accent: #f59e0b;
    --success: #166534;
    --danger: #b42318;
    --radius: 12px;
    --shadow: 0 16px 45px rgba(20, 33, 61, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--surface);
    font: 16px/1.6 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
img { display: block; max-width: 100%; }
a { color: var(--brand); }
button, input, textarea, select { font: inherit; }
.front-container { width: min(1120px, calc(100% - 32px)); 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; }
.skip-link { position: fixed; z-index: 1000; top: 8px; left: 8px; transform: translateY(-150%); padding: 8px 14px; border-radius: 6px; color: #fff; background: var(--ink); }
.skip-link:focus { transform: none; }

.site-header { position: sticky; z-index: 50; top: 0; border-bottom: 1px solid rgba(220, 227, 236, .8); background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); }
.header-inner { display: flex; min-height: 72px; align-items: center; justify-content: space-between; gap: 24px; }
.site-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-size: 1.03rem; font-weight: 750; text-decoration: none; }
.brand-mark { display: inline-grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; color: #fff; background: linear-gradient(145deg, var(--brand), #0891b2); font-size: .77rem; font-weight: 800; letter-spacing: .04em; }
.site-navigation { display: flex; align-items: center; gap: 24px; }
.site-navigation > a { color: var(--ink); font-size: .94rem; font-weight: 650; text-decoration: none; }
.site-navigation > a:hover, .site-navigation > a:focus-visible { color: var(--brand); }
.nav-toggle { display: none; width: 44px; height: 42px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.nav-toggle > span:not(.sr-only) { display: block; height: 2px; margin: 5px; background: var(--ink); }

.button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border: 1px solid transparent; border-radius: 8px; color: #fff !important; background: var(--brand); font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; }
.button:hover { background: var(--brand-dark); }
.button-small { min-height: 38px; padding: 8px 14px; font-size: .9rem; }
.button-secondary { color: var(--ink) !important; border-color: var(--line); background: #fff; }

.hero { overflow: hidden; padding: 96px 0 82px; background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, .18), transparent 28%), linear-gradient(145deg, #f8fbff, #edf7fb); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); align-items: center; gap: 64px; }
.eyebrow { display: inline-flex; margin: 0 0 14px; color: var(--brand); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { max-width: 760px; margin: 0 0 20px; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.04; letter-spacing: -.045em; }
.hero-copy { max-width: 650px; margin: 0 0 30px; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-panel { padding: 26px; border: 1px solid rgba(255, 255, 255, .8); border-radius: 18px; background: rgba(255, 255, 255, .88); box-shadow: var(--shadow); }
.hero-panel h2 { margin: 0 0 16px; font-size: 1rem; }
.metric-list { display: grid; gap: 12px; }
.metric { display: flex; align-items: center; justify-content: space-between; padding: 14px; border-radius: 9px; background: var(--surface-soft); }
.metric strong { font-size: 1.2rem; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34, 197, 94, .12); }

.section { padding: 78px 0; }
.section-soft { background: var(--surface-soft); }
.section-heading { max-width: 700px; margin: 0 auto 36px; text-align: center; }
.section-heading h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1.15; }
.section-heading p { margin: 0; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 5px 18px rgba(20, 33, 61, .04); }
.feature-card h3 { margin: 14px 0 8px; }
.feature-card p { margin: 0; color: var(--muted); }
.feature-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 10px; color: var(--brand); background: #e0f2fe; font-weight: 800; }
.content-page { min-height: 55vh; padding: 64px 0 84px; }
.content-narrow { max-width: 790px; }
.page-heading { margin-bottom: 32px; }
.page-heading h1 { margin: 0 0 10px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.12; }
.prose { color: #27364d; }
.prose h2, .prose h3 { margin-top: 1.7em; line-height: 1.2; }
.prose img { height: auto; border-radius: var(--radius); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 40px; }
.contact-list { display: grid; gap: 16px; padding: 0; list-style: none; }
.contact-list li { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-soft); }
.contact-list span { display: block; color: var(--muted); font-size: .82rem; font-weight: 700; text-transform: uppercase; }
.error-page { display: grid; min-height: 60vh; place-items: center; padding: 64px 0; text-align: center; }
.error-code { margin: 0; color: var(--brand); font-size: clamp(5rem, 18vw, 9rem); font-weight: 850; line-height: .9; opacity: .12; }
.error-page h1 { margin: -20px 0 12px; }

.flash-stack { display: grid; gap: 10px; margin-top: 18px; }
.alert { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border: 1px solid #bae6fd; border-radius: 8px; color: #075985; background: #f0f9ff; }
.alert-success { color: var(--success); border-color: #bbf7d0; background: #f0fdf4; }
.alert-error, .alert-danger { color: var(--danger); border-color: #fecaca; background: #fef2f2; }
.alert-warning { color: #92400e; border-color: #fde68a; background: #fffbeb; }
.alert-close { padding: 0 4px; border: 0; color: inherit; background: transparent; font-size: 1.3rem; cursor: pointer; }
.site-footer { padding: 42px 0; color: #cbd5e1; background: #102035; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr 1fr; align-items: start; gap: 32px; }
.site-footer p { margin: 8px 0 0; }
.site-footer address { display: grid; gap: 5px; font-style: normal; }
.site-footer a { color: #e0f2fe; }
.copyright { text-align: right; }

@media (max-width: 800px) {
    .nav-toggle { display: block; }
    .site-navigation { position: absolute; top: 100%; right: 16px; left: 16px; display: none; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
    .site-navigation.open { display: grid; }
    .hero { padding: 64px 0; }
    .hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .feature-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .copyright { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
