:root {
    --navy-975: #05101d;
    --navy-950: #071422;
    --navy-925: #091a2c;
    --navy-900: #0b1d31;
    --navy-850: #10243a;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --cyan-400: #22d3ee;
    --teal-300: #5eead4;
    --teal-400: #2dd4bf;
    --green-500: #10b981;
    --slate-950: #020617;
    --slate-900: #0f172a;
    --slate-700: #334155;
    --slate-600: #475569;
    --slate-500: #64748b;
    --slate-400: #94a3b8;
    --slate-300: #cbd5e1;
    --slate-200: #e2e8f0;
    --slate-100: #f1f5f9;
    --slate-50: #f8fafc;
    --white: #ffffff;
    --danger: #dc2626;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    color: var(--slate-900);
    background: var(--white);
    font-family: "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input {
    font: inherit;
}

.login-page {
    display: grid;
    grid-template-columns: minmax(720px, 2.65fr) minmax(340px, 1fr);
    min-height: 100vh;
}

/* =========================================================
   AREA VISUALE
   ========================================================= */

.login-visual {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 100vh;
    overflow: hidden;
    padding: 24px 28px 16px;
    color: var(--white);
    background:
        radial-gradient(circle at 76% 12%, rgba(37, 99, 235, .24), transparent 26%),
        radial-gradient(circle at 5% 83%, rgba(45, 212, 191, .14), transparent 24%),
        linear-gradient(145deg, var(--navy-975) 0%, var(--navy-950) 48%, #082338 100%);
}

.login-visual::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    content: "";
    opacity: .25;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 48px 48px;
}

.login-visual::after {
    position: absolute;
    right: -185px;
    bottom: -250px;
    width: 560px;
    height: 560px;
    pointer-events: none;
    content: "";
    border: 1px solid rgba(94, 234, 212, .11);
    border-radius: 50%;
    box-shadow:
        0 0 0 72px rgba(94, 234, 212, .022),
        0 0 0 144px rgba(59, 130, 246, .022);
}

.visual-glow {
    position: absolute;
    pointer-events: none;
    border-radius: 999px;
}

.visual-glow-one {
    top: 6%;
    right: 7%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(59, 130, 246, .23), rgba(59, 130, 246, 0) 68%);
}

.visual-glow-two {
    left: -50px;
    bottom: 18%;
    width: 210px;
    height: 210px;
    background: radial-gradient(circle, rgba(45, 212, 191, .13), rgba(45, 212, 191, 0) 70%);
}

.brand {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.brand-mark {
    display: grid;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    place-items: center;
    color: var(--teal-300);
    border: 1px solid rgba(94, 234, 212, .22);
    border-radius: 10px;
    background: linear-gradient(145deg, rgba(94, 234, 212, .12), rgba(59, 130, 246, .09));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 12px 28px rgba(0, 0, 0, .13);
}

.brand-mark svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.brand-name {
    color: var(--white);
    font-size: .94rem;
    font-weight: 760;
    line-height: 1.1;
    letter-spacing: -.025em;
}

.brand-caption {
    position: relative;
    margin-top: 7px;
    padding-left: 24px;
    color: var(--teal-300);
    font-size: .54rem;
    font-weight: 760;
    letter-spacing: .11em;
    line-height: 1;
    white-space: nowrap;
}

.brand-caption::before {
    position: absolute;
    top: 50%;
    left: 0;
    width: 17px;
    height: 1px;
    content: "";
    background: currentColor;
}

.login-visual-body {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 12px 0 8px;
}

.hero-band {
    display: grid;
    grid-template-columns: minmax(300px, .82fr) minmax(360px, 1.18fr);
    gap: 22px;
    align-items: center;
    min-width: 0;
}

.hero-copy h1 {
    margin: 0;
    color: var(--white);
    font-size: clamp(1.78rem, 2.35vw, 2.65rem);
    font-weight: 790;
    line-height: 1.09;
    letter-spacing: -.035em;
}

.trend-card {
    min-width: 0;
    padding: 12px 14px 9px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .03));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .055), 0 18px 42px rgba(0, 0, 0, .12);
    backdrop-filter: blur(16px);
}

.trend-header {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    justify-content: space-between;
}

.trend-header strong {
    display: block;
    margin-top: 2px;
    color: var(--white);
    font-size: .72rem;
    font-weight: 720;
}

.trend-kicker {
    display: block;
    color: rgba(203, 213, 225, .56);
    font-size: .49rem;
    font-weight: 750;
    letter-spacing: .1em;
}

.trend-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 7px;
    color: var(--teal-300);
    font-size: .49rem;
    font-weight: 700;
    border: 1px solid rgba(94, 234, 212, .15);
    border-radius: 999px;
    background: rgba(45, 212, 191, .08);
}

.trend-status::before {
    width: 4px;
    height: 4px;
    margin-right: 4px;
    content: "";
    border-radius: 50%;
    background: var(--teal-300);
    box-shadow: 0 0 9px rgba(94, 234, 212, .7);
}

.trend-chart {
    height: 65px;
    margin-top: 6px;
}

.trend-chart svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.trend-grid {
    fill: none;
    stroke: rgba(148, 163, 184, .1);
    stroke-width: 1;
}

.trend-fill {
    fill: url("#loginChartFill");
}

.trend-line {
    fill: none;
    stroke: var(--teal-300);
    stroke-width: 2.4;
    stroke-linecap: round;
    filter: drop-shadow(0 4px 6px rgba(94, 234, 212, .2));
}

.trend-point {
    fill: var(--navy-900);
    stroke: var(--teal-300);
    stroke-width: 2.5;
}

.trend-months {
    display: flex;
    justify-content: space-between;
    margin-top: 1px;
    color: rgba(148, 163, 184, .48);
    font-size: .46rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
}

.feature-card {
    position: relative;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    padding: 10px 11px 9px;
    border: 1px solid rgba(148, 163, 184, .14);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .072), rgba(255, 255, 255, .027));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 12px 28px rgba(0, 0, 0, .10);
    backdrop-filter: blur(14px);
}

.feature-card::after {
    position: absolute;
    right: -38px;
    bottom: -46px;
    width: 105px;
    height: 105px;
    pointer-events: none;
    content: "";
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 130, 246, .09), transparent 68%);
}

.feature-title-row {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 7px;
    align-items: center;
    min-width: 0;
    margin-bottom: 5px;
}

.feature-icon {
    display: grid;
    flex: 0 0 auto;
    width: 23px;
    height: 23px;
    place-items: center;
    border: 1px solid currentColor;
    border-radius: 7px;
    background: rgba(255, 255, 255, .035);
}

.feature-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card-blue .feature-icon {
    color: #93c5fd;
    border-color: rgba(147, 197, 253, .22);
    background: rgba(59, 130, 246, .10);
}

.feature-card-teal .feature-icon {
    color: var(--teal-300);
    border-color: rgba(94, 234, 212, .22);
    background: rgba(45, 212, 191, .09);
}

.feature-card-cyan .feature-icon {
    color: #67e8f9;
    border-color: rgba(103, 232, 249, .21);
    background: rgba(34, 211, 238, .08);
}

.feature-card h2 {
    min-width: 0;
    margin: 0;
    color: var(--white);
    font-size: .66rem;
    font-weight: 790;
    line-height: 1.12;
    letter-spacing: .035em;
}

.feature-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(226, 232, 240, .68);
    font-size: .53rem;
    font-weight: 480;
    line-height: 1.22;
}

.feature-list li {
    position: relative;
    padding-left: 8px;
}

.feature-list li::before {
    position: absolute;
    top: .51em;
    left: 0;
    width: 3px;
    height: 3px;
    content: "";
    border-radius: 50%;
    background: currentColor;
    opacity: .65;
}

.visual-footer {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 7px;
    align-items: center;
    color: rgba(203, 213, 225, .52);
    font-size: .54rem;
}

.footer-indicator {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green-500);
    box-shadow: 0 0 10px rgba(16, 185, 129, .55);
}

/* =========================================================
   PANNELLO LOGIN
   ========================================================= */

.login-panel {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 100vh;
    padding: 26px 32px 16px;
    background:
        radial-gradient(circle at 100% 0, rgba(59, 130, 246, .065), transparent 28%),
        var(--white);
}

.login-panel-inner {
    width: min(330px, 100%);
    margin: auto;
}

.mobile-brand {
    display: none;
    gap: 10px;
    align-items: center;
    margin-bottom: 30px;
}

.mobile-brand .brand-mark {
    color: var(--blue-600);
    border-color: rgba(37, 99, 235, .14);
    background: rgba(37, 99, 235, .06);
    box-shadow: none;
}

.mobile-brand .brand-name {
    color: var(--slate-900);
}

.login-heading {
    margin-bottom: 28px;
}

.login-kicker {
    display: inline-flex;
    margin-bottom: 7px;
    color: var(--blue-600);
    font-size: .58rem;
    font-weight: 790;
    letter-spacing: .13em;
}

.login-heading h2 {
    margin: 0;
    color: var(--slate-950);
    font-size: clamp(2rem, 2.6vw, 2.45rem);
    font-weight: 780;
    line-height: 1;
    letter-spacing: -.045em;
}

.login-heading p {
    margin: 9px 0 0;
    color: var(--slate-500);
    font-size: .76rem;
    line-height: 1.5;
}

.system-message {
    margin: 0 0 14px;
    padding: 10px 11px;
    font-size: .74rem;
    line-height: 1.4;
    border: 1px solid transparent;
    border-radius: 9px;
}

.system-message-success {
    color: #166534;
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.system-message-error {
    color: #991b1b;
    border-color: #fecaca;
    background: #fef2f2;
}

.validation-summary {
    display: none;
    margin-bottom: 15px;
    padding: 10px 11px;
    color: #991b1b;
    font-size: .74rem;
    line-height: 1.4;
    border: 1px solid #fecaca;
    border-radius: 9px;
    background: #fef2f2;
}

.validation-summary.validation-summary-errors {
    display: block;
}

.validation-summary ul {
    margin: 0;
    padding-left: 17px;
}

.form-field {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    margin: 0 0 6px;
    color: var(--slate-700);
    font-size: .66rem;
    font-weight: 700;
}

.input-shell {
    position: relative;
}

.form-control {
    width: 100%;
    height: 44px;
    padding: 0 43px 0 41px;
    color: var(--slate-900);
    font-size: .78rem;
    border: 1px solid #dbe4ef;
    border-radius: 9px;
    outline: none;
    background: #eef4ff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .02);
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.form-control::placeholder {
    color: var(--slate-400);
}

.form-control:hover {
    border-color: var(--slate-300);
}

.form-control:focus {
    color: var(--slate-900);
    border-color: var(--blue-500);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .10), 0 7px 20px rgba(15, 23, 42, .05);
}

.input-icon {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 12px;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    color: var(--slate-400);
    pointer-events: none;
    transform: translateY(-50%);
}

.input-shell:focus-within .input-icon {
    color: var(--blue-600);
}

.input-icon svg,
.password-toggle svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 8px;
    display: grid;
    width: 31px;
    height: 31px;
    padding: 0;
    place-items: center;
    color: var(--slate-400);
    border: 0;
    border-radius: 7px;
    outline: none;
    cursor: pointer;
    background: transparent;
    transform: translateY(-50%);
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: var(--blue-600);
    background: var(--slate-100);
}

.eye-closed {
    display: none;
}

.password-toggle.is-visible .eye-open {
    display: none;
}

.password-toggle.is-visible .eye-closed {
    display: block;
}

.field-validation {
    display: block;
    min-height: 0;
    margin-top: 4px;
    color: var(--danger);
    font-size: .65rem;
    font-weight: 550;
}

.field-validation:empty {
    display: none;
}

.input-validation-error {
    border-color: #f87171;
    background-color: #fffafa;
}

.input-validation-error:focus {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .08);
}

.login-options {
    display: flex;
    align-items: center;
    margin: 1px 0 17px;
}

.remember-option {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    color: var(--slate-600);
    font-size: .65rem;
    cursor: pointer;
    user-select: none;
}

.remember-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.custom-checkbox {
    display: grid;
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    place-items: center;
    color: var(--white);
    border: 1px solid var(--slate-300);
    border-radius: 5px;
    background: var(--white);
}

.custom-checkbox svg {
    width: 9px;
    height: 8px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
}

.remember-checkbox:checked + .custom-checkbox {
    border-color: var(--blue-600);
    background: var(--blue-600);
}

.remember-checkbox:checked + .custom-checkbox svg {
    opacity: 1;
}

.remember-checkbox:focus-visible + .custom-checkbox {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, .12);
}

.login-button {
    display: flex;
    width: 100%;
    height: 44px;
    padding: 0 17px;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: .72rem;
    font-weight: 730;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
    box-shadow: 0 11px 24px rgba(37, 99, 235, .22), inset 0 1px 0 rgba(255, 255, 255, .2);
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
}

.login-button svg {
    width: 16px;
    height: 16px;
    margin-left: 9px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-button:hover {
    filter: brightness(1.04);
    box-shadow: 0 14px 27px rgba(37, 99, 235, .28), inset 0 1px 0 rgba(255, 255, 255, .23);
    transform: translateY(-1px);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:focus-visible {
    outline: 3px solid rgba(59, 130, 246, .20);
    outline-offset: 3px;
}

.login-button[disabled] {
    cursor: wait;
    opacity: .72;
}

.login-button .button-loading {
    display: none;
}

.login-button.is-loading .button-label,
.login-button.is-loading > svg {
    display: none;
}

.login-button.is-loading .button-loading {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.loading-spinner {
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: login-spin .75s linear infinite;
}

@keyframes login-spin {
    to {
        transform: rotate(360deg);
    }
}

.security-note {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    margin-top: 13px;
    color: var(--slate-400);
    font-size: .57rem;
}

.security-icon {
    display: grid;
    width: 15px;
    height: 15px;
    place-items: center;
    color: var(--green-500);
}

.security-icon svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-footer {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding-top: 15px;
    color: var(--slate-400);
    font-size: .52rem;
    line-height: 1.25;
    text-align: center;
}

.footer-divider {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--slate-300);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (min-width: 1600px) {
    .login-visual {
        padding: 28px 34px 18px;
    }

    .login-visual-body {
        gap: 16px;
        padding-top: 16px;
    }

    .hero-band {
        grid-template-columns: minmax(340px, .82fr) minmax(440px, 1.18fr);
        gap: 28px;
    }

    .hero-copy h1 {
        font-size: clamp(2.25rem, 2.25vw, 3rem);
    }

    .trend-card {
        padding: 15px 17px 11px;
    }

    .trend-chart {
        height: 82px;
    }

    .feature-grid {
        gap: 10px;
    }

    .feature-card {
        padding: 12px 13px 10px;
    }

    .feature-icon {
        width: 27px;
        height: 27px;
    }

    .feature-icon svg {
        width: 16px;
        height: 16px;
    }

    .feature-card h2 {
        font-size: .73rem;
    }

    .feature-list {
        gap: 3px;
        font-size: .59rem;
    }

    .login-panel-inner {
        width: min(360px, 100%);
    }
}

@media (max-width: 1220px) and (min-width: 1081px) {
    .login-page {
        grid-template-columns: minmax(700px, 2.45fr) minmax(330px, 1fr);
    }

    .login-visual {
        padding-inline: 22px;
    }

    .hero-band {
        grid-template-columns: minmax(270px, .78fr) minmax(330px, 1.22fr);
        gap: 16px;
    }

    .hero-copy h1 {
        font-size: 1.72rem;
    }

    .feature-card {
        padding-inline: 9px;
    }

    .feature-card h2 {
        font-size: .61rem;
    }

    .feature-list {
        font-size: .49rem;
    }

    .login-panel {
        padding-inline: 26px;
    }
}

@media (max-width: 1080px) {
    .login-page {
        display: block;
    }

    .login-visual {
        display: none;
    }

    .login-panel {
        min-height: 100vh;
        padding: 30px 24px 18px;
    }

    .login-panel-inner {
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: min(390px, 100%);
        min-height: calc(100vh - 100px);
    }

    .mobile-brand {
        display: flex;
    }
}

@media (max-width: 520px) {
    .login-panel {
        padding-inline: 18px;
    }

    .mobile-brand {
        margin-bottom: 26px;
    }

    .login-heading {
        margin-bottom: 23px;
    }

    .login-heading h2 {
        font-size: 2rem;
    }

    .form-control,
    .login-button {
        height: 43px;
    }

    .login-footer {
        row-gap: 4px;
    }
}

@media (max-height: 720px) and (min-width: 1081px) {
    .login-visual {
        padding-top: 18px;
        padding-bottom: 11px;
    }

    .brand-mark {
        width: 32px;
        height: 32px;
    }

    .brand-mark svg {
        width: 20px;
        height: 20px;
    }

    .brand-name {
        font-size: .86rem;
    }

    .brand-caption {
        margin-top: 5px;
        font-size: .49rem;
    }

    .login-visual-body {
        gap: 9px;
        padding: 7px 0 5px;
    }

    .hero-band {
        gap: 16px;
    }

    .hero-copy h1 {
        font-size: 1.58rem;
    }

    .trend-card {
        padding: 8px 11px 6px;
    }

    .trend-chart {
        height: 49px;
        margin-top: 4px;
    }

    .feature-grid {
        gap: 6px;
    }

    .feature-card {
        padding: 7px 8px 6px;
        border-radius: 9px;
    }

    .feature-title-row {
        gap: 5px;
        margin-bottom: 3px;
    }

    .feature-icon {
        width: 19px;
        height: 19px;
        border-radius: 6px;
    }

    .feature-icon svg {
        width: 12px;
        height: 12px;
    }

    .feature-card h2 {
        font-size: .55rem;
    }

    .feature-list {
        gap: 1px;
        font-size: .44rem;
        line-height: 1.15;
    }

    .visual-footer {
        font-size: .48rem;
    }

    .login-panel {
        padding-top: 20px;
        padding-bottom: 12px;
    }

    .login-heading {
        margin-bottom: 20px;
    }

    .login-heading h2 {
        font-size: 2rem;
    }

    .form-field {
        margin-bottom: 12px;
    }

    .login-options {
        margin-bottom: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* =========================================================
   REV55 - VIDEO DEMO LOGIN
   ========================================================= */

.visual-topbar {
    position: relative;
    z-index: 3;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    justify-content: space-between;
    min-width: 0;
}

.visual-topbar .brand {
    min-width: 0;
}

.video-trigger {
    -webkit-tap-highlight-color: transparent;
}

.general-video-button,
.feature-video-button {
    border: 0;
    outline: none;
    cursor: pointer;
    transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease, color 150ms ease;
}

.general-video-button {
    display: inline-flex;
    flex: 0 0 auto;
    gap: 7px;
    align-items: center;
    min-height: 34px;
    padding: 7px 10px;
    color: #dffcf8;
    font-size: .58rem;
    font-weight: 760;
    line-height: 1;
    white-space: nowrap;
    border: 1px solid rgba(94, 234, 212, .24);
    border-radius: 9px;
    background: linear-gradient(145deg, rgba(45, 212, 191, .15), rgba(37, 99, 235, .12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 9px 22px rgba(0, 0, 0, .12);
}

.general-video-button:hover,
.general-video-button:focus-visible {
    color: #ffffff;
    border-color: rgba(94, 234, 212, .48);
    background: linear-gradient(145deg, rgba(45, 212, 191, .23), rgba(37, 99, 235, .17));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 12px 30px rgba(0, 0, 0, .18), 0 0 0 3px rgba(94, 234, 212, .07);
    transform: translateY(-1px);
}

.video-button-icon {
    display: grid;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    place-items: center;
    color: var(--navy-975);
    border-radius: 50%;
    background: var(--teal-300);
    box-shadow: 0 0 0 3px rgba(94, 234, 212, .07);
}

.video-button-icon svg {
    width: 10px;
    height: 10px;
    fill: currentColor;
    stroke: none;
}

.video-button-duration {
    padding-left: 6px;
    color: rgba(203, 213, 225, .64);
    font-size: .49rem;
    font-weight: 650;
    border-left: 1px solid rgba(203, 213, 225, .16);
}

.feature-card {
    padding-bottom: 34px;
}

.feature-video-button {
    position: absolute;
    z-index: 3;
    right: 9px;
    bottom: 8px;
    display: inline-flex;
    gap: 5px;
    align-items: center;
    min-height: 21px;
    padding: 3px 7px 3px 5px;
    color: rgba(226, 232, 240, .86);
    font-size: .50rem;
    font-weight: 720;
    line-height: 1;
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 999px;
    background: rgba(2, 6, 23, .28);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    backdrop-filter: blur(8px);
}

.feature-video-button .video-button-icon {
    width: 14px;
    height: 14px;
    box-shadow: none;
}

.feature-video-button .video-button-icon svg {
    width: 8px;
    height: 8px;
}

.feature-video-button:hover,
.feature-video-button:focus-visible {
    color: #ffffff;
    border-color: rgba(94, 234, 212, .34);
    background: rgba(45, 212, 191, .11);
    box-shadow: 0 0 0 3px rgba(94, 234, 212, .055);
    transform: translateY(-1px);
}

body.video-modal-open {
    overflow: hidden;
}

.video-modal {
    position: fixed;
    z-index: 1200;
    inset: 0;
    display: grid;
    padding: 28px;
    place-items: center;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 170ms ease, visibility 170ms ease;
}

.video-modal.is-open {
    pointer-events: auto;
    opacity: 1;
    visibility: visible;
}

.video-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, .80);
    backdrop-filter: blur(10px);
}

.video-modal-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: min(980px, calc(100vw - 56px));
    max-height: calc(100vh - 56px);
    overflow: hidden;
    color: var(--white);
    border: 1px solid rgba(148, 163, 184, .20);
    border-radius: 16px;
    background:
        radial-gradient(circle at 85% 0, rgba(37, 99, 235, .18), transparent 32%),
        linear-gradient(145deg, #071422, #0a1e32 72%, #092339);
    box-shadow: 0 28px 90px rgba(0, 0, 0, .42), inset 0 1px 0 rgba(255, 255, 255, .05);
    transform: translateY(12px) scale(.985);
    transition: transform 170ms ease;
}

.video-modal.is-open .video-modal-dialog {
    transform: translateY(0) scale(1);
}

.video-modal-header {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between;
    padding: 16px 18px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, .13);
}

.video-modal-heading {
    min-width: 0;
}

.video-modal-kicker {
    display: block;
    margin-bottom: 5px;
    color: var(--teal-300);
    font-size: .54rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.video-modal-title-row {
    display: flex;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.video-modal-title-row h2 {
    min-width: 0;
    margin: 0;
    color: var(--white);
    font-size: 1.15rem;
    font-weight: 780;
    line-height: 1.15;
    letter-spacing: -.02em;
}

.video-modal-duration {
    flex: 0 0 auto;
    padding: 3px 7px;
    color: #bfdbfe;
    font-size: .54rem;
    font-weight: 720;
    border: 1px solid rgba(147, 197, 253, .18);
    border-radius: 999px;
    background: rgba(59, 130, 246, .09);
}

.video-modal-heading p {
    max-width: 760px;
    margin: 6px 0 0;
    color: rgba(203, 213, 225, .67);
    font-size: .66rem;
    line-height: 1.42;
}

.video-modal-close {
    display: grid;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    color: rgba(226, 232, 240, .76);
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 9px;
    outline: none;
    cursor: pointer;
    background: rgba(255, 255, 255, .035);
}

.video-modal-close:hover,
.video-modal-close:focus-visible {
    color: #ffffff;
    border-color: rgba(94, 234, 212, .30);
    background: rgba(94, 234, 212, .08);
    box-shadow: 0 0 0 3px rgba(94, 234, 212, .055);
}

.video-modal-close svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.video-stage {
    position: relative;
    display: grid;
    min-height: 300px;
    overflow: hidden;
    place-items: center;
    background:
        radial-gradient(circle at 50% 42%, rgba(59, 130, 246, .08), transparent 40%),
        #020817;
}

.demo-video {
    display: block;
    width: 100%;
    max-height: calc(100vh - 190px);
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #020617;
}

.demo-video.is-unavailable {
    opacity: .17;
    filter: saturate(.7);
}

.video-unavailable {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: min(430px, calc(100% - 40px));
    padding: 20px;
    color: rgba(226, 232, 240, .82);
    text-align: center;
    border: 1px solid rgba(148, 163, 184, .17);
    border-radius: 13px;
    background: rgba(7, 20, 34, .92);
    box-shadow: 0 20px 45px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .05);
    transform: translate(-50%, -50%);
    backdrop-filter: blur(12px);
}

.video-unavailable[hidden] {
    display: none;
}

.video-unavailable-icon {
    display: grid;
    width: 44px;
    height: 44px;
    margin: 0 auto 10px;
    place-items: center;
    color: var(--navy-975);
    border-radius: 50%;
    background: var(--teal-300);
    box-shadow: 0 0 0 7px rgba(94, 234, 212, .07);
}

.video-unavailable-icon svg {
    width: 23px;
    height: 23px;
    fill: currentColor;
}

.video-unavailable strong {
    display: block;
    color: #ffffff;
    font-size: .86rem;
}

.video-unavailable p {
    margin: 6px 0 10px;
    color: rgba(203, 213, 225, .65);
    font-size: .65rem;
    line-height: 1.42;
}

.video-unavailable code {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    padding: 5px 8px;
    color: #99f6e4;
    font-size: .57rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid rgba(94, 234, 212, .14);
    border-radius: 7px;
    background: rgba(45, 212, 191, .055);
}

.video-modal-footer {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    padding: 9px 18px;
    color: rgba(148, 163, 184, .55);
    font-size: .52rem;
    border-top: 1px solid rgba(148, 163, 184, .12);
}

@media (max-width: 1220px) and (min-width: 1081px) {
    .general-video-button {
        padding-inline: 8px;
        font-size: .53rem;
    }

    .video-button-duration {
        display: none;
    }

    .feature-card {
        padding-bottom: 32px;
    }
}

@media (max-height: 720px) and (min-width: 1081px) {
    .general-video-button {
        min-height: 29px;
        padding: 5px 8px;
        font-size: .49rem;
    }

    .general-video-button .video-button-icon {
        width: 15px;
        height: 15px;
    }

    .feature-card {
        padding-bottom: 27px;
    }

    .feature-video-button {
        right: 6px;
        bottom: 5px;
        min-height: 18px;
        padding: 2px 6px 2px 4px;
        font-size: .44rem;
    }

    .feature-video-button .video-button-icon {
        width: 12px;
        height: 12px;
    }
}

@media (max-width: 760px) {
    .video-modal {
        padding: 14px;
    }

    .video-modal-dialog {
        width: calc(100vw - 28px);
        max-height: calc(100vh - 28px);
        border-radius: 13px;
    }

    .video-modal-header {
        padding: 13px 14px 11px;
    }

    .video-modal-title-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .video-modal-title-row h2 {
        font-size: 1rem;
    }

    .video-modal-heading p {
        font-size: .62rem;
    }

    .video-stage {
        min-height: 220px;
    }

    .demo-video {
        max-height: calc(100vh - 230px);
    }

    .video-modal-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 3px;
        padding: 8px 14px;
    }
}
