:root {
    --dc-primary: #0b6bcb;
    --dc-primary-strong: #07519b;
    --dc-secondary: #13a88a;
    --dc-ink: #10283f;
    --dc-muted: #66798c;
    --dc-line: #dfe8f0;
    --dc-bg: #f4f8fb;
    --dc-surface: #ffffff;
    --dc-danger: #c53546;
    --dc-radius: 22px;
    --dc-shadow: 0 20px 60px rgba(22, 58, 89, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    color: var(--dc-ink);
    background:
        radial-gradient(circle at 10% 0%, rgba(11,107,203,.08), transparent 26rem),
        linear-gradient(180deg, #f8fbfd 0, var(--dc-bg) 100%);
    font-family: Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--dc-primary); text-decoration: none; }
a:hover { color: var(--dc-primary-strong); }
img { max-width: 100%; }

.navbar-delta {
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(16,40,63,.07);
    box-shadow: 0 5px 25px rgba(16,40,63,.04);
}
.navbar-delta .nav-link {
    color: #40556a;
    font-weight: 700;
    padding: .8rem .85rem !important;
    border-radius: 12px;
}
.navbar-delta .nav-link:hover { color: var(--dc-primary); background: rgba(11,107,203,.06); }
.brand-mark {
    width: 44px;
    height: 44px;
    display: inline-grid;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    font-size: 1.2rem;
    background: linear-gradient(135deg, var(--dc-primary), var(--dc-secondary));
    box-shadow: 0 12px 26px rgba(11,107,203,.24);
    flex: 0 0 auto;
}
.brand-logo { height: 44px; width: auto; object-fit: contain; }
.brand-copy { display: grid; line-height: 1.05; color: var(--dc-ink); }
.brand-copy strong { font-size: 1rem; letter-spacing: -.02em; }
.brand-copy small { margin-top: .32rem; font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--dc-muted); }

.emergency-strip {
    background: linear-gradient(90deg, #a71d2f, #ce3e4e);
    color: #fff;
    padding: .52rem 0;
    font-size: .82rem;
    font-weight: 700;
}

.btn {
    border-radius: 13px;
    font-weight: 800;
    transition: .18s ease;
}
.btn-delta {
    color: #fff;
    border: 0;
    padding: .78rem 1.2rem;
    background: linear-gradient(135deg, var(--dc-primary), #2587df);
    box-shadow: 0 12px 25px rgba(11,107,203,.20);
}
.btn-delta:hover, .btn-delta:focus { color: #fff; transform: translateY(-1px); box-shadow: 0 16px 30px rgba(11,107,203,.25); }
.btn-soft {
    color: var(--dc-primary);
    background: rgba(11,107,203,.09);
    border: 1px solid rgba(11,107,203,.12);
}
.btn-soft:hover { color: var(--dc-primary-strong); background: rgba(11,107,203,.14); }
.btn-ghost { color: #506579; background: #fff; border: 1px solid var(--dc-line); padding: .72rem 1rem; }
.btn-ghost:hover { border-color: #c7d6e3; background: #f8fbfd; }

.surface,
.panel-card {
    background: rgba(255,255,255,.97);
    border: 1px solid rgba(26,60,92,.08);
    border-radius: var(--dc-radius);
    box-shadow: var(--dc-shadow);
}
.panel-card { padding: 1.5rem; }

.alert-modern {
    border: 0;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(16,40,63,.08);
}

.hero-carousel .carousel-item {
    min-height: 650px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.hero-carousel .carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(4,24,42,.96) 0%, rgba(4,24,42,.86) 44%, rgba(4,24,42,.30) 78%, rgba(4,24,42,.16) 100%),
        linear-gradient(0deg, rgba(4,24,42,.22), rgba(4,24,42,.05));
}
.hero-content {
    position: relative;
    z-index: 2;
    min-height: 650px;
    display: flex;
    align-items: center;
    color: #fff;
}
.hero-card { max-width: 780px; padding: 2rem 0; }
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.25rem;
    color: #bfe8ff;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}
.hero-card h1 {
    margin: 0;
    max-width: 760px;
    color: #fff;
    font-size: clamp(2.7rem, 5.3vw, 5.25rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -.055em;
}
.hero-card p {
    max-width: 650px;
    margin-top: 1.35rem;
    color: rgba(255,255,255,.78);
    font-size: 1.12rem;
    line-height: 1.75;
}
.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem 1.25rem;
    margin-top: 1.8rem;
    color: rgba(255,255,255,.78);
    font-size: .86rem;
    font-weight: 700;
}
.hero-proof span { display: inline-flex; gap: .45rem; align-items: center; }
.hero-proof i { color: #66e0bf; }
.hero-carousel .carousel-indicators { justify-content: flex-start; margin-left: max(7.5%, calc((100% - 1140px) / 2)); margin-bottom: 2rem; }
.hero-carousel .carousel-indicators [data-bs-target] { width: 32px; height: 4px; border: 0; border-radius: 99px; }

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--dc-primary);
    background: rgba(11,107,203,.08);
    border: 1px solid rgba(11,107,203,.10);
    border-radius: 999px;
    padding: .48rem .78rem;
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.section-title {
    color: var(--dc-ink);
    font-weight: 800;
    letter-spacing: -.04em;
}
.section-copy { max-width: 720px; color: var(--dc-muted); line-height: 1.75; }

.trust-band {
    margin-top: -42px;
    position: relative;
    z-index: 5;
}
.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(20,60,90,.08);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(10,38,62,.15);
}
.trust-item { display: flex; align-items: center; gap: .9rem; padding: 1.3rem 1.4rem; border-right: 1px solid var(--dc-line); }
.trust-item:last-child { border-right: 0; }
.trust-item i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--dc-primary); background: rgba(11,107,203,.08); font-size: 1.1rem; }
.trust-item strong { display: block; font-size: .9rem; }
.trust-item small { color: var(--dc-muted); font-size: .72rem; }

.feature-card,
.service-card,
.dashboard-card {
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature-card:hover,
.service-card:hover,
.dashboard-card:hover {
    transform: translateY(-5px);
    border-color: rgba(11,107,203,.18);
    box-shadow: 0 24px 60px rgba(24,62,94,.14);
}
.icon-bubble {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-size: 1.45rem;
    color: var(--dc-primary);
    background: linear-gradient(135deg, rgba(11,107,203,.10), rgba(19,168,138,.13));
}
.icon-bubble.dark { color: #fff; background: linear-gradient(135deg, var(--dc-primary), var(--dc-secondary)); }
.badge-soft {
    display: inline-flex;
    align-items: center;
    color: var(--dc-primary);
    background: rgba(11,107,203,.08);
    border-radius: 999px;
    padding: .46rem .72rem;
    font-size: .75rem;
    font-weight: 800;
}

.process-step { position: relative; padding-left: 4.5rem; min-height: 88px; }
.process-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--dc-primary), var(--dc-secondary));
    box-shadow: 0 12px 24px rgba(11,107,203,.18);
}
.process-step h5 { font-weight: 800; }
.process-step p { color: var(--dc-muted); line-height: 1.65; }

.cta-panel {
    overflow: hidden;
    position: relative;
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(93,224,190,.35), transparent 18rem),
        linear-gradient(135deg, #092d4d, #0b6bcb 60%, #13a88a);
}
.cta-panel::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -80px;
    bottom: -140px;
    border: 45px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.form-control,
.form-select {
    min-height: 48px;
    border-radius: 13px;
    border-color: #d5e0e9;
    padding: .72rem .9rem;
    color: var(--dc-ink);
}
textarea.form-control { min-height: auto; }
.form-control:focus,
.form-select:focus {
    border-color: rgba(11,107,203,.65);
    box-shadow: 0 0 0 .22rem rgba(11,107,203,.10);
}
.form-label { color: #334b61; font-size: .84rem; font-weight: 800; }
.form-text { color: #7a8b9b; }

.auth-shell { min-height: calc(100vh - 180px); display: grid; place-items: center; padding: 4rem 0; }
.auth-card { width: min(100%, 560px); }
.auth-aside {
    min-height: 100%;
    color: #fff;
    background: linear-gradient(145deg, #082a47, #0b6bcb 70%, #13a88a);
    border-radius: var(--dc-radius);
    padding: 2.4rem;
}

.dashboard-hero {
    padding: 2rem;
    color: #fff;
    background:
        radial-gradient(circle at 85% 10%, rgba(114,235,205,.28), transparent 18rem),
        linear-gradient(135deg, #0a3153, #0b6bcb 65%, #13a88a);
    border-radius: 26px;
    box-shadow: 0 24px 60px rgba(13,69,112,.18);
}
.dashboard-hero p { color: rgba(255,255,255,.78); }
.metric-card { padding: 1.35rem; }
.metric-label { color: var(--dc-muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.metric-value { margin-top: .35rem; color: var(--dc-ink); font-size: 2rem; font-weight: 800; letter-spacing: -.04em; }
.metric-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; color: var(--dc-primary); background: rgba(11,107,203,.08); font-size: 1.2rem; }

.app-shell { padding: 2.4rem 0 4rem; }
.app-sidebar { position: sticky; top: 104px; }
.app-sidebar .surface { padding: .8rem; }
.app-menu-title { padding: .7rem .8rem; color: #91a0ae; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.app-menu a {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .82rem .9rem;
    border-radius: 13px;
    color: #4d6275;
    font-size: .88rem;
    font-weight: 750;
}
.app-menu a:hover,
.app-menu a.active { color: var(--dc-primary); background: rgba(11,107,203,.08); }
.app-menu a i { font-size: 1rem; }

.sidebar-admin { position: sticky; top: 104px; }
.sidebar-admin a {
    display: flex;
    align-items: center;
    gap: .72rem;
    padding: .84rem .9rem;
    border-radius: 13px;
    color: #4a6074;
    font-size: .86rem;
    font-weight: 750;
}
.sidebar-admin a:hover,
.sidebar-admin a.active { color: var(--dc-primary); background: rgba(11,107,203,.08); }

.table-modern { margin: 0; }
.table-modern > :not(caption) > * > * { padding: .92rem .85rem; border-color: #e8eef3; vertical-align: middle; }
.table-modern thead th { color: #718294; background: #f8fafc; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; }
.table-modern tbody tr:hover { background: #fbfdff; }

.status-dot { display: inline-flex; align-items: center; gap: .42rem; font-size: .77rem; font-weight: 800; }
.status-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.timeline { position: relative; padding-left: 1.7rem; }
.timeline::before { content: ""; position: absolute; left: .45rem; top: .4rem; bottom: .4rem; width: 2px; background: #dce6ee; }
.timeline-item { position: relative; padding: 0 0 1.2rem 1rem; }
.timeline-item::before { content: ""; position: absolute; left: -1.55rem; top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--dc-primary); box-shadow: 0 0 0 4px #eaf4fd; }

.recorder { border: 1px dashed #b8cad9; border-radius: 16px; padding: 1rem; background: #f9fbfd; }
.recorder.is-recording { border-color: #dc3545; background: #fff6f7; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: #dc3545; display: inline-block; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(1.4); } }

.ai-response h4 { margin-top: 1.5rem; margin-bottom: .65rem; color: var(--dc-ink); font-size: 1.05rem; font-weight: 800; }
.ai-response p, .ai-response li { line-height: 1.75; color: #405469; }
.risk-emergency { color: #9c1e2d; background: #fff0f2; border: 1px solid #f6c3ca; }
.risk-high { color: #7a5900; background: #fff8e7; border: 1px solid #f3dc99; }
.risk-routine { color: #0c7055; background: #eefaf6; border: 1px solid #bce8da; }

.report-paper { max-width: 900px; margin: 0 auto; background: #fff; border: 1px solid #e3eaf0; border-radius: 14px; box-shadow: 0 18px 55px rgba(0,0,0,.08); }
.report-header { border-bottom: 2px solid var(--dc-primary); }

.footer-delta { color: rgba(255,255,255,.66); background: #071d30; }
.footer-delta h6 { margin-bottom: 1.1rem; color: #fff; font-weight: 800; }
.footer-lead { max-width: 520px; line-height: 1.7; }
.footer-links { display: flex; flex-direction: column; gap: .7rem; font-size: .87rem; }
.footer-links a, .footer-links span { color: rgba(255,255,255,.72); }
.footer-links a:hover { color: #fff; }
.compliance-note { display: flex; gap: .7rem; max-width: 560px; padding: 1rem; border: 1px solid rgba(255,255,255,.10); border-radius: 14px; background: rgba(255,255,255,.04); font-size: .78rem; line-height: 1.65; }
.compliance-note i { color: #6be2c1; font-size: 1rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .76rem; }

@media (max-width: 991px) {
    .hero-carousel .carousel-item, .hero-content { min-height: 570px; }
    .hero-carousel .carousel-item::before { background: linear-gradient(90deg, rgba(4,24,42,.95), rgba(4,24,42,.72)); }
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
    .trust-item:nth-child(2) { border-right: 0; }
    .trust-item:nth-child(-n+2) { border-bottom: 1px solid var(--dc-line); }
    .app-sidebar, .sidebar-admin { position: static; }
}

@media (max-width: 575px) {
    .hero-carousel .carousel-item, .hero-content { min-height: 610px; }
    .hero-card h1 { font-size: 2.6rem; }
    .hero-card p { font-size: 1rem; }
    .trust-band { margin-top: -20px; }
    .trust-grid { grid-template-columns: 1fr; }
    .trust-item { border-right: 0; border-bottom: 1px solid var(--dc-line); }
    .trust-item:last-child { border-bottom: 0; }
    .footer-bottom { flex-direction: column; }
    .dashboard-hero { padding: 1.5rem; }
}

@media print {
    .no-print, nav, footer, .emergency-strip { display: none !important; }
    body { background: #fff; }
    .report-paper { box-shadow: none; border: 0; max-width: none; }
}
