:root {
    color-scheme: light;
    --home-bg: #f6f9fc;
    --home-surface: #ffffff;
    --home-border: rgba(18, 37, 58, 0.08);
    --home-text: #12253a;
    --home-muted: #5f7286;
    --home-primary: #3f7edb;
    --home-primary-strong: #13253f;
    --home-primary-soft: rgba(63, 126, 219, 0.08);
    --home-shadow: 0 18px 45px rgba(18, 37, 58, 0.08);
    --home-footer: #eef3f8;
    --home-surface-muted: #f8fbff;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(86, 151, 214, 0.12), transparent 34%),
        linear-gradient(180deg, #fbfdff 0%, var(--home-bg) 100%);
    color: var(--home-text);
    font-family: "Inter", "Segoe UI", sans-serif;
}

.home-site-shell {
    min-height: 100vh;
}

.home-site-main {
    padding: 0 0 5rem;
}

.home-site-navbar {
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(18, 37, 58, 0.06);
}

.home-site-container {
    width: min(100% - 2rem, 1400px);
    margin: 0 auto;
}

.home-site-brand {
    display: inline-flex;
    align-items: center;
    color: var(--home-text);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.home-site-brand__logo {
    display: block;
    width: 80px;
    height: auto;
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
}

.home-site-nav-link {
    color: var(--home-muted);
    font-weight: 500;
    font-size: 0.96rem;
    padding-inline: 0.65rem;
}

.home-site-nav-link.active,
.home-site-nav-link:hover,
.home-site-nav-link:focus {
    color: var(--home-primary-strong);
}

.home-site-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: var(--home-primary-soft);
    color: var(--home-primary);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-site-button {
    border-radius: 0.8rem;
    font-weight: 600;
    padding: 0.82rem 1.35rem;
}

.home-site-button--primary {
    border-color: transparent;
    background: var(--home-primary-strong);
    color: white;
    box-shadow: 0 16px 36px rgba(19, 37, 63, 0.18);
}

.home-site-button--primary:hover,
.home-site-button--primary:focus {
    background: #0d1d33;
    color: white;
}

.home-site-button:disabled,
.home-site-button.disabled {
    cursor: not-allowed;
    opacity: 0.55;
    box-shadow: none;
}

.home-site-button--secondary {
    border: 1px solid var(--home-border);
    background: var(--home-surface);
    color: var(--home-text);
}

.home-site-button--secondary:hover,
.home-site-button--secondary:focus {
    background: var(--home-surface-muted);
    color: var(--home-text);
}

.home-site-panel {
    padding: 2rem;
    border: 1px solid var(--home-border);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--home-shadow);
}

.home-site-lead {
    max-width: 64ch;
    color: var(--home-muted);
    line-height: 1.75;
}

.home-site-footer {
    border-top: 1px solid rgba(18, 37, 58, 0.06);
    background: linear-gradient(180deg, rgba(233, 239, 246, 0.5) 0%, var(--home-footer) 100%);
}

.home-site-footer__link {
    color: var(--home-muted);
    text-decoration: none;
}

.home-site-footer__link:hover,
.home-site-footer__link:focus {
    color: var(--home-primary);
}

.home-site-link-button {
    color: var(--home-text);
    font-weight: 600;
}

.home-site-account-toggle {
    color: var(--home-text);
    font-weight: 600;
}

.home-site-account-toggle:hover,
.home-site-account-toggle:focus {
    color: var(--home-primary);
}

.home-site-account-toggle.dropdown-toggle::after {
    margin-left: 0.45rem;
    vertical-align: 0.15em;
}

.home-site-account-menu {
    min-width: 12rem;
    padding: 0.4rem;
    border: 1px solid rgba(18, 37, 58, 0.08);
    border-radius: 1rem;
    box-shadow: 0 18px 36px rgba(18, 37, 58, 0.12);
}

.home-site-account-menu__item {
    border-radius: 0.8rem;
    padding: 0.72rem 0.85rem;
    color: var(--home-text);
    font-weight: 600;
}

.home-site-account-menu__item:hover,
.home-site-account-menu__item:focus {
    background: var(--home-surface-muted);
    color: var(--home-text);
}

.home-site-account-menu__item--danger {
    color: #b91c1c;
}

.home-site-account-menu__item--danger:hover,
.home-site-account-menu__item--danger:focus {
    background: rgba(239, 68, 68, 0.08);
    color: #991b1b;
}

.home-site-navbar-toggle {
    width: 3.2rem;
    height: 3.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 0.32rem;
    border: 1px solid rgba(18, 37, 58, 0.12);
    border-radius: 0.78rem;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.home-site-navbar-toggle__line {
    width: 1.34rem;
    height: 0.16rem;
    display: block;
    border-radius: 999px;
    background: var(--home-muted);
    transform-origin: center;
    transition: transform 0.22s ease, opacity 0.18s ease, background 0.2s ease;
}

.home-site-navbar-toggle:hover,
.home-site-navbar-toggle:focus {
    background: #ffffff;
    border-color: rgba(63, 126, 219, 0.24);
}

.home-site-navbar-toggle[aria-expanded="true"] {
    border-color: rgba(63, 126, 219, 0.28);
    background: rgba(63, 126, 219, 0.08);
    box-shadow: 0 12px 28px rgba(18, 37, 58, 0.1);
}

.home-site-navbar-toggle[aria-expanded="true"] .home-site-navbar-toggle__line {
    background: var(--home-primary-strong);
}

.home-site-navbar-toggle[aria-expanded="true"] .home-site-navbar-toggle__line:nth-child(1) {
    transform: translateY(0.48rem) rotate(45deg);
}

.home-site-navbar-toggle[aria-expanded="true"] .home-site-navbar-toggle__line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0.35);
}

.home-site-navbar-toggle[aria-expanded="true"] .home-site-navbar-toggle__line:nth-child(3) {
    transform: translateY(-0.48rem) rotate(-45deg);
}

.home-site-modal-open {
    overflow: hidden;
}

.landing-demo-modal[hidden] {
    display: none;
}

.landing-demo-modal {
    position: fixed;
    inset: 0;
    z-index: 1060;
    display: grid;
    place-items: center;
    padding: 1.25rem;
}

.landing-demo-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 31, 56, 0.54);
    backdrop-filter: blur(4px);
}

.landing-demo-modal__panel {
    position: relative;
    z-index: 1;
    width: min(100%, 42rem);
    max-height: min(92dvh, 48rem);
    overflow: auto;
    border: 1px solid var(--home-border);
    border-radius: 1.2rem;
    background: #ffffff;
    box-shadow: 0 28px 72px rgba(18, 37, 58, 0.24);
}

.landing-demo-modal__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.55rem 1.65rem 1.15rem;
    border-bottom: 1px solid var(--home-border);
}

.landing-demo-modal__eyebrow {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--home-primary);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.landing-demo-modal__header h2 {
    margin: 0 0 0.55rem;
    color: var(--home-primary-strong);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.landing-demo-modal__header p {
    margin: 0;
    color: var(--home-muted);
    line-height: 1.55;
}

.landing-demo-modal__close {
    width: 2.35rem;
    height: 2.35rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    border: 1px solid var(--home-border);
    border-radius: 0.72rem;
    background: #ffffff;
    color: var(--home-primary-strong);
}

.landing-demo-form {
    padding: 1.35rem 1.65rem 1.6rem;
}

.landing-demo-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.landing-demo-field {
    display: grid;
    gap: 0.45rem;
    color: var(--home-primary-strong);
    font-size: 0.86rem;
    font-weight: 700;
}

.landing-demo-field--wide {
    grid-column: 1 / -1;
}

.landing-demo-field input,
.landing-demo-field textarea {
    width: 100%;
    border: 1px solid var(--home-border);
    border-radius: 0.72rem;
    background: #fbfdff;
    color: var(--home-primary-strong);
    font: inherit;
    font-weight: 500;
    line-height: 1.45;
    padding: 0.78rem 0.86rem;
}

.landing-demo-field textarea {
    resize: vertical;
}

.landing-demo-field input:focus,
.landing-demo-field textarea:focus {
    border-color: rgba(63, 126, 219, 0.58);
    box-shadow: 0 0 0 0.2rem rgba(63, 126, 219, 0.12);
    outline: none;
}

.landing-demo-field input.is-invalid,
.landing-demo-field textarea.is-invalid {
    border-color: #dc2626;
    background: #fffafa;
}

.landing-demo-field input.is-invalid:focus,
.landing-demo-field textarea.is-invalid:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.12);
}

.landing-demo-field__error {
    min-height: 1rem;
    color: #b42318;
    font-size: 0.76rem;
    font-weight: 600;
    line-height: 1.35;
}

.landing-demo-form__feedback {
    min-height: 1.35rem;
    margin: 1rem 0 0;
    color: var(--home-muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.landing-demo-form__feedback.is-error {
    color: #b42318;
}

.landing-demo-form__feedback.is-success {
    color: #137333;
}

.landing-demo-form__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.landing-demo-form__footer .home-site-button {
    border-radius: 0.58rem;
    padding: 0.76rem 1.15rem;
}

.home-site-link-button:hover,
.home-site-link-button:focus {
    color: var(--home-primary);
}

@media (max-width: 991.98px) {
    .home-site-main {
        padding-bottom: 4rem;
    }

    .home-site-navbar .home-site-container {
        flex-wrap: wrap;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    .home-site-brand {
        max-width: calc(100% - 4.5rem);
        min-width: 0;
    }

    .home-site-brand__logo {
        width: 72px;
        max-width: 100%;
    }

    .home-site-navbar .navbar-toggler {
        margin-left: auto;
        box-shadow: none;
    }

    .home-site-navbar .navbar-toggler:focus {
        box-shadow: 0 0 0 0.18rem rgba(63, 126, 219, 0.16);
    }

    .home-site-navbar .navbar-collapse {
        flex: 0 0 100%;
        width: 100%;
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid rgba(18, 37, 58, 0.08);
        border-radius: 1rem;
        background: rgba(255, 255, 255, 0.96);
        box-shadow: 0 18px 40px rgba(18, 37, 58, 0.08);
    }

    .home-site-navbar .navbar-nav {
        gap: 0.35rem !important;
    }

    .home-site-nav-link {
        padding-inline: 0;
        padding-block: 0.55rem;
    }

    .home-site-navbar .home-site-link-button,
    .home-site-navbar .home-site-button {
        width: 100%;
        justify-content: center;
    }

    .home-site-footer {
        padding-top: 4rem !important;
        padding-bottom: 4rem !important;
    }

    .landing-demo-modal {
        padding: 0.85rem;
    }

    .landing-demo-modal__header,
    .landing-demo-form {
        padding-inline: 1.15rem;
    }

    .landing-demo-form__grid {
        grid-template-columns: 1fr;
    }

    .landing-demo-form__footer {
        display: grid;
        grid-template-columns: 1fr;
    }

    .landing-demo-form__footer .home-site-button {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .home-site-container {
        width: min(100% - 1.35rem, 1400px);
    }

    .home-site-main {
        padding-bottom: 3.5rem;
    }

    .home-site-brand__logo {
        width: 80px;
        max-width: 80px;
        max-height: 80px;
    }

    .landing-demo-modal {
        align-items: end;
        padding: 0.5rem;
    }

    .landing-demo-modal__panel {
        width: 100%;
        max-height: calc(100dvh - 1rem);
        border-radius: 1rem 1rem 0.85rem 0.85rem;
    }

    .landing-demo-modal__header {
        gap: 0.8rem;
        padding-top: 1.2rem;
        padding-bottom: 1rem;
    }

    .landing-demo-modal__header h2 {
        font-size: 1.28rem;
    }

    .landing-demo-modal__header p {
        font-size: 0.92rem;
    }

    .landing-demo-form {
        padding-bottom: 1.1rem;
    }

    .home-site-footer .row {
        margin-bottom: 3rem !important;
    }
}
