:root {
    --brand: #183f8d;
    --brand-2: #1e4fa0;
    --brand-light: #2f6fd6;
    --accent: #27ae60;
    --ink: #1c2434;
    --muted-bg: #f4f7fb;
    --bs-font-sans-serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body { color: var(--ink); background: #fff; font-family: var(--bs-font-sans-serif); display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1 0 auto; }
a { color: var(--brand-light); }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: #fff; padding: .5rem 1rem; }
.text-primary-brand { color: var(--brand) !important; }

/* Buttons */
.btn-primary { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); border-color: var(--brand); }
.btn-primary:hover, .btn-primary:focus { background: linear-gradient(135deg, var(--brand-2) 0%, var(--brand) 100%); border-color: var(--brand-2); }
.btn-outline-primary { color: var(--brand); border-color: var(--brand); }
.btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Header */
.site-header { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%); box-shadow: 0 2px 12px rgba(0,0,0,.12); }
.site-header .navbar { padding-top: .8rem; padding-bottom: .8rem; }
.site-header .navbar-brand { font-weight: 700; letter-spacing: -.01em; }
.brand-logo { width: auto; display: block; }
.site-header .nav-link { color: rgba(255,255,255,.88); font-weight: 500; }
.site-header .nav-link:hover, .site-header .nav-link.active { color: #fff; }
.site-header .nav-link.active { text-decoration: underline; text-underline-offset: .5rem; text-decoration-thickness: 2px; }
.portal-btn { color: var(--brand); font-weight: 600; }
.products-menu { min-width: 20rem; padding: .5rem; border: 0; box-shadow: 0 10px 30px rgba(16,32,64,.18); }
.products-menu .dropdown-item { border-radius: .5rem; padding: .65rem .75rem; white-space: normal; }
.product-menu-icon { width: 2rem; height: 2rem; flex: 0 0 2rem; margin-right: .75rem; border-radius: .5rem; display: inline-flex; align-items: center; justify-content: center; background: #e8effb; color: var(--brand); }

/* Hero and sections */
.hero { background: radial-gradient(circle at 85% 20%, rgba(47,111,214,.55), transparent 45%), linear-gradient(135deg, #102c66 0%, var(--brand) 55%, var(--brand-2) 100%); color: #fff; padding: 6rem 0 5rem; }
.hero-title { font-size: clamp(2.1rem, 4.5vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 1rem 0; }
.hero-lead { font-size: 1.15rem; color: rgba(255,255,255,.88); max-width: 40rem; }
.hero .btn-light { color: var(--brand); font-weight: 600; }
.hero-panel { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 1.25rem; padding: 1.25rem; backdrop-filter: blur(6px); }
.hero-panel-item { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: .9rem; }
.hero-panel-item + .hero-panel-item { border-top: 1px solid rgba(255,255,255,.15); }
.hero-panel-item small { color: rgba(255,255,255,.8); }
.hero-panel-icon { width: 3rem; height: 3rem; border-radius: .8rem; background: #fff; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.25rem; flex: 0 0 3rem; }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: rgba(255,255,255,.8); }
.eyebrow-dark { color: var(--brand-light); }
.page-hero { background: linear-gradient(135deg, #102c66 0%, var(--brand) 60%, var(--brand-2) 100%); color: #fff; padding: 4rem 0 3.5rem; }
.page-hero h1 { font-weight: 800; letter-spacing: -.02em; margin: .5rem 0 1rem; font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.page-hero .lead { color: rgba(255,255,255,.88); max-width: 46rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--muted-bg); }
.section-heading { max-width: 42rem; margin: 0 auto 3rem; }
.section-heading h2 { font-weight: 800; letter-spacing: -.02em; margin-top: .5rem; }
.product-card { border: 1px solid #e3e9f3; border-radius: 1rem; transition: transform .15s ease, box-shadow .15s ease; }
.product-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(16,32,64,.12); }
.product-icon, .feature-icon { width: 3.25rem; height: 3.25rem; border-radius: .9rem; display: inline-flex; align-items: center; justify-content: center; background: #e8effb; color: var(--brand); font-size: 1.35rem; }
.feature { background: #fff; border-radius: 1rem; padding: 1.75rem; height: 100%; border: 1px solid #e3e9f3; }
.feature h3, .feature h2 { margin-top: 1rem; }
.value { border-left: 3px solid var(--brand-light); padding-left: 1rem; height: 100%; }
.stat-card { background: #fff; border: 1px solid #e3e9f3; border-radius: 1rem; padding: 1.5rem; text-align: center; height: 100%; }
.stat-card i { font-size: 1.6rem; color: var(--brand); display: block; margin-bottom: .6rem; }
.stat-label { font-weight: 600; }
.cta-band { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%); color: #fff; padding: 3.5rem 0; }
.cta-band .btn-light { color: var(--brand); font-weight: 600; }
.contact-list li { display: flex; gap: 1rem; margin-bottom: 1.25rem; }
.contact-icon { width: 2.75rem; height: 2.75rem; flex: 0 0 2.75rem; border-radius: .75rem; background: #e8effb; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.legal { max-width: 48rem; }
.legal h2 { font-size: 1.25rem; font-weight: 700; margin-top: 2rem; scroll-margin-top: 6rem; }
.legal h3 { font-size: 1rem; font-weight: 700; margin-top: 1.25rem; color: var(--brand); }
.legal-nav .nav-link { color: var(--brand); font-weight: 600; }
.legal-nav .nav-link.active { background: var(--brand); color: #fff; }

/* Footer */
.site-footer { background: #0e1b38; color: rgba(255,255,255,.72); flex-shrink: 0; }
.site-footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer li { margin-bottom: .5rem; }
.footer-heading { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; margin-bottom: 1rem; }
.footer-rule { border-color: rgba(255,255,255,.15); margin: 2rem 0 1.25rem; }

/* Sign-in and account pages */
.auth-section { background: var(--muted-bg); padding: 4rem 0; min-height: 60vh; }
.auth-card { border: 0; border-radius: 1rem; }
.auth-icon { width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: #e8effb; color: var(--brand); display: inline-flex; align-items: center; justify-content: center; font-size: 1.4rem; }
.auth-section .nav-pills .nav-link.active { background: var(--brand); }
#qrCode { margin: 1rem 0; }
#qrCode img, #qrCode canvas { background: #fff; padding: .5rem; border: 1px solid #e3e9f3; border-radius: .5rem; }

/* Portals */
.portal-bar { background: #fff; border-bottom: 1px solid #e3e9f3; padding: .6rem 0; }
.portal-bar-title { font-weight: 700; color: var(--brand); }
.portal-nav .nav-link { color: var(--ink); padding: .4rem .8rem; border-radius: .5rem; font-weight: 500; }
.portal-nav .nav-link.active, .portal-nav .nav-link:hover { background: #e8effb; color: var(--brand); }
.portal-content { min-height: 60vh; }
.portal-content .card { --bs-card-border-color: #e3e9f3; --bs-card-border-radius: .9rem; --bs-card-inner-border-radius: calc(.9rem - 1px); }
.portal-content .card-header { background: transparent; border-bottom-color: #e3e9f3; }
.stat-tile { display: block; background: #fff; border: 1px solid #e3e9f3; border-radius: .9rem; padding: 1.25rem; text-decoration: none; color: var(--ink); height: 100%; }
.stat-tile:hover { border-color: var(--brand-light); }
.stat-value { display: block; font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1.1; }
.stat-name { color: #5b667a; font-size: .9rem; }
.message-body, .notes { white-space: pre-wrap; }
.message-body { background: var(--muted-bg); border-radius: .75rem; padding: 1.25rem; }
.temp-password { background: #fff; padding: .25rem .6rem; border-radius: .4rem; user-select: all; }

/* About: founders */
.stat-number { display: block; font-size: 2rem; font-weight: 800; color: var(--brand); line-height: 1.1; margin-bottom: .35rem; }
.founder-card { background: #fff; border: 1px solid #e3e9f3; border-radius: 1rem; padding: 2rem; }
.founder-photo { width: 96px; height: 96px; flex: 0 0 96px; border-radius: 50%; object-fit: cover; border: 3px solid #e8effb; }
.founder-initials { display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--brand) 0%, var(--brand-light) 100%); color: #fff; font-size: 1.9rem; font-weight: 700; }
.founder-credentials li { font-size: .92rem; color: #4a5568; margin-bottom: .4rem; display: flex; }
.founder-credentials i { color: var(--brand); margin-top: .25rem; }
