:root {
    --primary: #0b1f5e;
    --secondary: #2563eb;
    --accent: #22a06b;
    --bg-light: #f8fafc;
    --text-dark: #0f172a;
    --text-muted: #475569;
    --border: #d9e2ec;
    --card-shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

html,
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background: #fff;
}

body {
    line-height: 1.55;
}

a {
    color: var(--secondary);
}

.site-shell {
    min-height: 100vh;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 420px);
}

.site-header {
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(8px);
    z-index: 1030;
}

.site-main {
    padding-top: 88px;
    padding-bottom: 2rem;
}

.content {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
}

.site-navbar {
    min-height: 74px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-brand {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    text-decoration: none;
    color: var(--primary);
}

.site-brand span {
    color: var(--accent);
}

.site-nav-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.site-nav-link,
.site-nav-anchor {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    transition: 0.2s ease;
}

.site-nav-link.active,
.site-nav-link:hover,
.site-nav-anchor:hover {
    color: var(--primary);
    background: #edf4ff;
}

.site-nav-cta {
    text-decoration: none;
    color: #fff;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 12px;
    font-weight: 600;
    padding: 0.62rem 1rem;
}

.site-nav-cta:hover {
    color: #fff;
    background: #09184a;
}

.site-nav-fab {
    position: fixed;
    top: calc(74px + 0.75rem);
    right: clamp(0.85rem, 2.4vw, 1.75rem);
    z-index: 1045;
    text-decoration: none;
    color: #fff;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.01em;
    min-height: 45px;
    padding: 0.7rem 1.15rem;
    box-shadow: 0 10px 24px rgba(11, 31, 94, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.site-nav-fab:hover {
    color: #fff;
    background: #09184a;
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(11, 31, 94, 0.28);
}

.site-nav-fab:focus-visible {
    outline: none;
    box-shadow: 0 0 0 0.22rem rgba(37, 99, 235, 0.22), 0 12px 28px rgba(11, 31, 94, 0.24);
}

.site-nav-signout {
    border: 1px solid var(--primary);
    color: var(--primary);
    font-weight: 600;
    border-radius: 12px;
    padding: 0.52rem 0.9rem;
}

.site-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border: 1px solid #dbe5f3;
    border-radius: 10px;
    background: #fff;
    width: 2.75rem;
    height: 2.5rem;
}

.site-nav-toggle span {
    width: 18px;
    height: 2px;
    background: #334155;
    margin: 0 auto;
}

.hero-section {
    padding: clamp(1.6rem, 3vw, 3.5rem);
    border-radius: 30px;
    background: radial-gradient(circle at top right, rgba(34,160,107,0.12), transparent 38%), radial-gradient(circle at top left, rgba(37,99,235,0.12), transparent 34%), linear-gradient(180deg, #f8fafc 0%, #fff 100%);
    border: 1px solid #e5eaf1;
    box-shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
}

.hero-grid {
    min-height: clamp(460px, 50vw, 600px);
}

.hero-content-col,
.hero-preview-col {
    display: flex;
    align-items: center;
}

.hero-content-col {
    padding-right: clamp(0rem, 1.4vw, 1.4rem);
}

.hero-preview-col {
    padding-left: clamp(0rem, 1.4vw, 1.4rem);
}

.hero-content {
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge {
    display: inline-flex;
    background: #eaf1ff;
    color: var(--secondary);
    border: 1px solid #cfe0ff;
    border-radius: 999px;
    padding: 0.48rem 0.92rem;
    font-size: 0.88rem;
    font-weight: 700;
    margin-bottom: 1.15rem;
    align-self: flex-start;
}

.hero-title {
    color: var(--primary);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.04;
    font-size: clamp(2.5rem, 5vw, 4.05rem);
    margin: 0;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.72;
    margin: 1.35rem 0 1.85rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.85rem;
    margin: 0 0 1.5rem;
}

.hero-btn,
.hero-actions .btn,
.btn-primary-custom,
.btn-outline-custom {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.trust-points {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 0.2rem;
}

.preview-card-wrap {
    position: relative;
    width: 100%;
    max-width: 580px;
    margin-left: auto;
    padding: 1.15rem;
}

.preview-card {
    background: #fff;
    border: 1px solid #e5eaf1;
    border-radius: 24px;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.1);
    padding: 1.45rem;
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.kpi-item {
    background: #f8fafc;
    border: 1px solid #e6edf5;
    border-radius: 14px;
    padding: 0.7rem;
}

.kpi-item small {
    color: var(--text-muted);
    display: block;
}

.kpi-item strong {
    color: var(--primary);
    font-size: 1.2rem;
}

.mini-table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 8px;
    font-size: 0.92rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid #eef2f7;
    align-items: center;
}

.mini-table-head {
    color: var(--primary);
    font-weight: 700;
    padding-top: 0;
}

.badge-hot,
.badge-warm,
.badge-new {
    display: inline-block;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.badge-hot {
    background: #dcfce7;
    color: #166534;
}

.badge-warm {
    background: #fef3c7;
    color: #92400e;
}

.badge-new {
    background: #dbeafe;
    color: #1d4ed8;
}

.floating-pill {
    position: absolute;
    border: 1px solid #e6edf5;
    background: #fff;
    border-radius: 14px;
    padding: 0.6rem 0.82rem;
    font-size: 0.85rem;
    box-shadow: var(--card-shadow);
}

.floating-pill-top {
    top: -12px;
    right: -10px;
    color: #166534;
    font-weight: 700;
}

.floating-pill-bottom {
    bottom: 12px;
    left: -12px;
    color: #1d4ed8;
    font-weight: 700;
}

.section-lite,
.section-soft,
.security-strip,
.cta-panel {
    margin-top: 1.75rem;
    border-radius: 24px;
    padding: 2.15rem;
    border: 1px solid #e6edf5;
}

.section-lite {
    background: #fff;
}

.section-soft {
    background: #eff8f2;
}

.section-title {
    color: var(--primary);
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.section-subtitle {
    color: var(--text-muted);
    max-width: 740px;
    margin: 0 auto;
}

.feature-card,
.step-card,
.showcase-card {
    background: #fff;
    border: 1px solid #e6edf5;
    border-radius: 20px;
    padding: 1.35rem;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
    height: 100%;
}

.feature-card h3,
.step-card h4 {
    color: var(--primary);
    font-size: 1.08rem;
    font-weight: 700;
}

.feature-card p,
.step-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

.icon-box {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #edf4ff;
    color: var(--secondary);
    font-weight: 800;
    margin-bottom: 0.85rem;
}

.green-icon {
    background: #eaf8f1;
    color: var(--accent);
}

.list-check {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-check li {
    position: relative;
    padding-left: 1.7rem;
    margin-bottom: 0.65rem;
    color: var(--text-muted);
}

.list-check li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 800;
}

.stage {
    display: inline-flex;
    border: 1px solid #dde7f2;
    border-radius: 999px;
    padding: 0.45rem 0.85rem;
    background: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}

.stage.active {
    background: #dcfce7;
    border-color: #bbf7d0;
    color: #166534;
}

.security-strip {
    background: linear-gradient(135deg, #0b1f5e 0%, #132d7b 100%);
    color: #fff;
}

.security-strip h2 {
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.security-strip p {
    color: rgba(255, 255, 255, 0.88);
}

.security-mini {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 1rem;
    height: 100%;
}

.security-mini h5 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
}

.security-mini p {
    margin-bottom: 0;
    color: rgba(255, 255, 255, 0.82);
}

.cta-panel {
    background: linear-gradient(135deg, rgba(11,31,94,1) 0%, rgba(34,160,107,0.95) 100%);
    color: #fff;
    text-align: center;
}

.cta-panel h2 {
    font-weight: 800;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    letter-spacing: -0.03em;
}

.cta-panel p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 720px;
    margin: 0.85rem auto 0;
}

.btn-outline-light:hover {
    color: var(--primary);
}

.card,
.table,
.alert,
.form-control,
.form-select,
.input-group-text,
.list-group-item {
    border-color: #e6edf5;
}

.card {
    border-radius: 18px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

h1,
h2,
h3,
h4,
h5 {
    color: var(--primary);
}

.text-muted {
    color: var(--text-muted) !important;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background: #09184a;
    border-color: #09184a;
}

.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus,
.btn:active:focus {
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.18);
}

.stat-card {
    border-left: 4px solid var(--secondary);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1055;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible,
.components-rejoining-animation {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible,
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-paused .components-pause-visible,
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible,
#components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible,
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible {
    display: block;
}

#components-reconnect-modal {
    background-color: #fff;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity 0.5s both;
}

#components-reconnect-modal[open] {
    animation: components-reconnect-modal-slideUp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

#components-reconnect-modal::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button {
    border: 0;
    background-color: #6b9ed2;
    color: #fff;
    padding: 4px 24px;
    border-radius: 4px;
}

#components-reconnect-modal button:hover {
    background-color: #3b6ea2;
}

.components-rejoining-animation {
    position: relative;
    width: 80px;
    height: 80px;
}

.components-rejoining-animation div {
    position: absolute;
    border: 3px solid #0087ff;
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes components-rejoining-animation {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0;
        left: 0;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}

.hero-inline-image,
.dashboard-banner-image,
.login-hero-image,
.empty-state-image,
.lead-thumb,
.rz-image {
    max-width: 100%;
    object-fit: cover;
}

.dashboard-hero-card,
.login-hero-card,
.empty-state-card {
    border: 1px solid #e6edf5;
    border-radius: 18px;
}

.stat-card-with-image {
    position: relative;
    overflow: hidden;
}

.stat-accent-image {
    position: absolute;
    right: -12px;
    top: -10px;
    width: 92px;
    height: 72px;
    opacity: 0.16;
    border-radius: 12px;
    pointer-events: none;
}

.empty-state-card {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.empty-state-image {
    width: 140px;
    height: 96px;
    border-radius: 12px;
    border: 1px solid #e6edf5;
}

.lead-thumb {
    border: 1px solid #dfe8f3;
    background: #f8fafc;
}

.login-hero-card {
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

@media (max-width: 767.98px) {
    .empty-state-image {
        width: 120px;
        height: 84px;
    }

    .stat-accent-image {
        width: 80px;
        height: 64px;
    }
}

@media (max-width: 991.98px) {
    .site-nav-toggle {
        display: inline-flex;
    }

    .site-nav-links {
        position: absolute;
        left: 0;
        right: 0;
        top: 74px;
        background: #fff;
        border-bottom: 1px solid #e6edf5;
        box-shadow: 0 18px 28px rgba(15, 23, 42, 0.1);
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .site-header.menu-open .site-nav-links {
        display: flex;
    }

    .hero-section,
    .section-lite,
    .section-soft,
    .security-strip,
    .cta-panel {
        padding: 1.8rem;
        border-radius: 20px;
    }

    .hero-grid {
        min-height: 0;
    }

    .hero-content-col,
    .hero-preview-col {
        padding-left: 0.35rem;
        padding-right: 0.35rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-preview-col {
        justify-content: center;
    }

    .hero-subtitle {
        margin-bottom: 1.6rem;
    }

    .hero-actions {
        margin-bottom: 1.3rem;
    }

    .preview-card-wrap {
        margin-left: 0;
        max-width: 640px;
        padding: 0.85rem 0.55rem 0.55rem;
    }

    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .site-main {
        padding-top: 80px;
    }

    .content {
        padding-top: 1rem;
    }

    .hero-section,
    .section-lite,
    .section-soft,
    .security-strip,
    .cta-panel {
        padding: 1.35rem;
        border-radius: 18px;
    }

    .hero-title {
        font-size: clamp(1.95rem, 10vw, 2.75rem);
    }

    .hero-subtitle {
        font-size: 1rem;
        line-height: 1.68;
        margin: 1rem 0 1.25rem;
    }

    .hero-actions {
        width: 100%;
        gap: 0.65rem;
        margin-bottom: 1rem;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .trust-points {
        margin-top: 0.4rem;
    }

    .preview-card-wrap {
        padding: 0.2rem 0 0;
    }

    .preview-card {
        padding: 1.1rem;
    }

    .mini-table-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .mini-table-head {
        display: none;
    }

    .floating-pill {
        position: static;
        margin-bottom: 0.65rem;
    }
}

h1:focus:not(:focus-visible),
.hero-title:focus:not(:focus-visible) {
    outline: none;
}

.lead-capture-shell {
    background: #f5f7fb;
    padding: 1.4rem 0 2.2rem;
}

.lead-capture-container {
    max-width: 920px;
    margin: 0 auto;
    background: #fff;
    padding: 1.6rem;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
    border: 1px solid #e7edf5;
}

.lead-capture-title {
    text-align: center;
    margin-bottom: 0.35rem;
    font-size: clamp(1.55rem, 3vw, 2rem);
}

.lead-capture-form .form-label {
    font-weight: 600;
    font-size: 0.93rem;
    color: #1f2937;
    margin-bottom: 0.4rem;
}

.lead-capture-form .form-control,
.lead-capture-form .form-select,
.lead-capture-form textarea {
    border: 1px solid #cfd6e4;
    border-radius: 8px;
    min-height: 44px;
    padding: 0.55rem 0.72rem;
    font-size: 0.94rem;
}

.lead-capture-form textarea {
    min-height: 92px;
    resize: vertical;
}

.lead-section {
    margin-bottom: 1.45rem;
    padding-bottom: 0.3rem;
}

.lead-section-title {
    font-size: 1.16rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.45rem;
}

.lead-capture-form .form-check-label {
    font-weight: 500;
}

.submit-row {
    margin-top: 1.5rem;
    text-align: center;
}

.submit-row .btn {
    min-width: 170px;
    min-height: 45px;
    border-radius: 8px;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .lead-capture-container {
        padding: 1.05rem;
        border-radius: 12px;
    }

    .lead-section {
        margin-bottom: 1.1rem;
    }
}
