:root {
  --navy: #0b3a5b;
  --navy-dark: #082b45;
  --teal: #0f8b8d;
  --teal-dark: #0b6e70;
  --teal-soft: #e6f4f4;
  --ink: #17283a;
  --muted: #5d6f81;
  --line: #e1e8ee;
  --bg-alt: #f5f8fb;
  --ok: #1a8a5b;
  --warn: #c98200;
  --danger: #c0392b;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 58, 91, .08);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--navy); font-weight: 700; line-height: 1.2; }
a { color: var(--teal-dark); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 2000; }
.skip-link:focus { left: 8px; color: #fff; }

/* Buttons */
.btn { font-weight: 600; border-radius: 10px; transition: background .2s, color .2s, border-color .2s, box-shadow .2s; }
.btn-brand { background: var(--teal); border: 1px solid var(--teal); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-outline-brand { border: 1px solid var(--navy); color: var(--navy); background: transparent; }
.btn-outline-brand:hover { background: var(--navy); color: #fff; }
.btn-cta { color: var(--navy); }

/* Header */
.site-header { background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); z-index: 1030; }
.navbar { padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-size: 1.2rem; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--navy); color: #fff; display: inline-grid; place-items: center; font-size: 1.1rem; }
.brand strong { color: var(--teal); font-weight: 700; }
.navbar .nav-link { color: var(--ink); font-weight: 500; font-size: .95rem; padding: 8px 14px; border-radius: 8px; white-space: nowrap; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--teal-dark); background: var(--teal-soft); }
.nav-login { color: var(--navy); text-decoration: none; }
.navbar-toggler { border: 1px solid var(--line); font-size: 1.5rem; padding: 2px 8px; color: var(--navy); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(15, 139, 141, .35); }

/* Typography helpers */
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; color: var(--teal-dark); margin-bottom: 12px; }
.lead-text { color: var(--muted); font-size: 1.05rem; }

/* Hero */
.hero { padding: 80px 0 90px; background: linear-gradient(180deg, #f2f8fb 0%, #fff 100%); }
.hero-title { font-size: 3rem; letter-spacing: -.02em; margin-bottom: 20px; }
.hero-text { font-size: 1.1rem; color: var(--muted); margin-bottom: 28px; max-width: 540px; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: .92rem; }
.hero-points i { color: var(--teal); margin-right: 4px; }

/* App window (hero + dashboard) */
.app-window { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.app-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.app-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cfd9e2; }
.app-bar em { font-style: normal; font-size: .78rem; color: var(--muted); margin-left: 10px; }
.app-body { background: #fbfdfe; }

.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; height: 100%; display: flex; flex-direction: column; gap: 2px; }
.kpi-label { font-size: .78rem; color: var(--muted); font-weight: 500; }
.kpi-value { font-size: 1.9rem; font-weight: 700; color: var(--navy); line-height: 1.2; }
.kpi-sm { padding: 10px 12px; }
.kpi-sm .kpi-value { font-size: 1.4rem; }
.kpi-trend { font-size: .78rem; color: var(--muted); }
.kpi-trend.up { color: var(--ok); }
.text-warn { color: var(--warn); }
.text-ok { color: var(--ok); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.panel-head h3 { font-size: .95rem; margin: 0; }
.muted { color: var(--muted); }

.badge-status { display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.badge-status.ok { background: #e3f5ec; color: var(--ok); }
.badge-status.warn { background: #fdf2dc; color: #946000; }
.badge-status.danger { background: #fbe6e3; color: var(--danger); }

.progress-row { display: grid; grid-template-columns: 105px 1fr 40px; align-items: center; gap: 10px; font-size: .82rem; margin-bottom: 8px; color: var(--muted); }
.progress-row b { color: var(--ink); text-align: right; }
.bar { height: 8px; background: #e9eff4; border-radius: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--ok); border-radius: 8px; }
.bar.warn i { background: #e0a21a; }
.bar.danger i { background: var(--danger); }

.list-rows { list-style: none; padding: 0; margin: 0; }
.list-rows li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); font-size: .84rem; }
.list-rows li:first-child { border-top: 0; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 700px; margin: 0 auto 52px; text-align: center; }
.section-head h2, .h2-lg { font-size: 2.1rem; letter-spacing: -.01em; margin-bottom: 14px; }
.section-head p:last-child { color: var(--muted); font-size: 1.05rem; margin: 0; }

.card-ui { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.card-ui:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #c9dae6; }
.card-ui h3 { font-size: 1.1rem; margin: 18px 0 8px; }
.card-ui p { color: var(--muted); font-size: .95rem; margin: 0; }
.card-compact { padding: 22px; }
.card-compact h3 { font-size: 1rem; margin-top: 14px; }
.icon-box { width: 50px; height: 50px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-dark); display: inline-grid; place-items: center; font-size: 1.4rem; flex: none; }
.icon-sm { width: 42px; height: 42px; font-size: 1.15rem; }

/* Workflow */
.section-dark { background: var(--navy); color: #fff; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-head p:last-child { color: #b9cde0; }
.section-dark .eyebrow { color: #6fd3d4; }
.workflow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.workflow-step { position: relative; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 26px 22px; transition: background .2s; }
.workflow-step:hover { background: rgba(255, 255, 255, .1); }
.workflow-step::after { content: "\F138"; font-family: 'bootstrap-icons'; position: absolute; right: -17px; top: 50%; transform: translateY(-50%); color: #6fd3d4; font-size: 1.1rem; z-index: 1; }
.workflow-step:nth-child(4n)::after, .workflow-step:last-child::after { display: none; }
.step-num { position: absolute; top: 14px; right: 18px; font-size: .8rem; font-weight: 700; color: #6fd3d4; }
.step-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--teal); color: #fff; display: inline-grid; place-items: center; font-size: 1.3rem; margin-bottom: 16px; }
.workflow-step h3 { font-size: 1.02rem; margin-bottom: 6px; }
.workflow-step p { font-size: .9rem; color: #b9cde0; margin: 0; }

/* Dashboard */
.dash-layout { display: grid; grid-template-columns: 200px 1fr; }
.dash-side { background: var(--navy-dark); padding: 20px 12px; }
.dash-side ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.dash-side li { color: #b9cde0; font-size: .88rem; padding: 10px 12px; border-radius: 8px; display: flex; gap: 10px; align-items: center; }
.dash-side li.active { background: rgba(255, 255, 255, .12); color: #fff; }
.dash-main { padding: 20px; background: #fbfdfe; min-width: 0; }

.chart { display: flex; align-items: flex-end; gap: 14px; height: 190px; padding-top: 6px; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; font-size: .75rem; color: var(--muted); }
.chart-bars { flex: 1; width: 100%; max-width: 44px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 6px 6px 0 0; overflow: hidden; }
.chart-bars i.filled { background: var(--teal); }
.chart-bars i.open { background: #f0b94d; }
.legend { display: flex; gap: 16px; font-size: .8rem; color: var(--muted); margin: 12px 0 0; list-style: none; padding: 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.legend .filled { background: var(--teal); }
.legend .open, .legend .pending { background: #f0b94d; }
.legend .expiring { background: var(--danger); }
.legend-col { flex-direction: column; gap: 8px; margin: 0; }
.legend-col b { color: var(--ink); margin-left: 4px; }

.donut-wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; justify-content: center; padding: 8px 0; }
.donut { width: 140px; height: 140px; border-radius: 50%; background: conic-gradient(var(--teal) 0 82%, #f0b94d 82% 93%, var(--danger) 93% 100%); display: grid; place-items: center; position: relative; }
.donut::before { content: ""; position: absolute; inset: 18px; background: #fff; border-radius: 50%; }
.donut span { position: relative; font-size: 1.6rem; font-weight: 700; color: var(--navy); }

.table-ui { margin: 0; font-size: .85rem; }
.table-ui th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; border-bottom-color: var(--line); white-space: nowrap; }
.table-ui td { vertical-align: middle; border-color: var(--line); white-space: nowrap; }

.activity { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.activity li { display: flex; gap: 12px; align-items: flex-start; }
.activity li > i { width: 34px; height: 34px; border-radius: 9px; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; flex: none; }
.activity b { display: block; font-size: .86rem; color: var(--ink); }
.activity span { font-size: .78rem; color: var(--muted); }

/* Security / benefits */
.note { display: flex; gap: 10px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--teal); border-radius: 8px; padding: 14px 16px; font-size: .88rem; color: var(--muted); margin-top: 22px; }
.note i { color: var(--teal-dark); margin-top: 3px; }
.benefit { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); height: 100%; background: #fff; transition: border-color .2s, box-shadow .2s; }
.benefit:hover { border-color: #c9dae6; box-shadow: var(--shadow); }
.benefit h3 { font-size: 1.02rem; margin-bottom: 4px; }
.benefit p { font-size: .9rem; color: var(--muted); margin: 0; }

/* CTA */
.cta { padding: 0 0 88px; }
.cta-box { background: var(--navy); border-radius: 20px; padding: 64px 32px; text-align: center; color: #fff; }
.cta-box h2 { color: #fff; font-size: 2.1rem; max-width: 720px; margin: 0 auto 16px; }
.cta-box p { color: #c3d6e6; max-width: 620px; margin: 0 auto 28px; }

/* Footer */
.site-footer { background: var(--navy-dark); color: #b9cde0; padding: 72px 0 28px; font-size: .92rem; }
.brand-light { color: #fff; }
.footer-about { max-width: 340px; margin: 0; }
.footer-title { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-links a, .footer-legal a { color: #b9cde0; text-decoration: none; }
.footer-links a:hover, .footer-legal a:hover { color: #fff; text-decoration: underline; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-contact i { color: #6fd3d4; margin-right: 6px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; font-size: .85rem; }
.footer-legal { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }

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

/* Inner pages */
[hidden] { display: none !important; }
.page-hero { background: linear-gradient(180deg, #f2f8fb 0%, #fff 100%); padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: 2.5rem; letter-spacing: -.02em; margin-bottom: 12px; }
.page-hero p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0; }
.crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #a9b8c6; }
.crumbs a { color: var(--teal-dark); text-decoration: none; }

.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 32px; box-shadow: var(--shadow); }
.form-label { font-size: .85rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.form-control, .form-select { border-color: #cfdae4; border-radius: 10px; padding: 10px 12px; }
.form-control:focus, .form-select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(15, 139, 141, .2); }
.result-count { font-size: .85rem; color: var(--muted); white-space: nowrap; }

.job-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; transition: box-shadow .2s, border-color .2s; }
.job-card:hover { box-shadow: var(--shadow); border-color: #c9dae6; }
.job-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.job-top h2 { font-size: 1.15rem; margin: 0; }
.job-top h2 a { color: var(--navy); text-decoration: none; }
.job-top h2 a:hover { color: var(--teal-dark); }
.job-summary { color: var(--muted); font-size: .94rem; margin: 10px 0 14px; }
.job-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 0 0 18px; font-size: .86rem; color: var(--muted); }
.job-meta i { color: var(--teal); margin-right: 4px; }
.job-actions { display: flex; gap: 10px; margin-top: auto; }
.tag { display: inline-block; font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.tag-teal { background: var(--teal-soft); color: var(--teal-dark); }
.empty-state { text-align: center; padding: 56px 16px; color: var(--muted); }
.empty-state i { font-size: 2.2rem; color: var(--teal); }
.empty-state h2 { font-size: 1.3rem; margin: 12px 0 6px; }

.check-list { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before { content: "\F26A"; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: 0; color: var(--teal); }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); position: sticky; top: 96px; }
.facts { margin: 16px 0 20px; }
.facts dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; margin-top: 12px; }
.facts dd { margin: 2px 0 0; font-weight: 500; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-notice { margin: 16px 0 0; padding: 12px 16px; border-radius: 10px; font-size: .92rem; }
.form-notice.success { background: #e3f5ec; color: #11633f; }
.form-notice.error { background: #fbe6e3; color: #99281c; }
.form-fine { font-size: .8rem; color: var(--muted); margin: 12px 0 0; }

.step-list { list-style: none; max-width: 760px; margin: 0 auto; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.step-list li { display: flex; gap: 18px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.step-badge { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; flex: none; }
.step-list h3 { font-size: 1.05rem; margin-bottom: 2px; }
.step-list p { margin: 0; color: var(--muted); font-size: .94rem; }

.faq { max-width: 800px; margin: 0 auto; }
.faq .accordion-item { border-color: var(--line); }
.faq .accordion-button { font-weight: 600; color: var(--navy); }
.faq .accordion-button:not(.collapsed) { background: var(--teal-soft); color: var(--navy); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(15, 139, 141, .25); }

.contact-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list li > i { width: 42px; height: 42px; border-radius: 10px; background: var(--teal-soft); color: var(--teal-dark); display: grid; place-items: center; flex: none; }
.contact-list b { display: block; color: var(--navy); }
.contact-list span { color: var(--muted); }

.legal { max-width: 800px; }
.legal h2 { font-size: 1.25rem; margin: 28px 0 8px; }
.legal p { color: var(--muted); }
