:root {
    color-scheme: dark;
    --background: #020815;
    --panel: rgba(5, 18, 38, 0.94);
    --panel-soft: rgba(10, 34, 63, 0.78);
    --line: rgba(0, 174, 255, 0.42);
    --line-soft: rgba(113, 171, 229, 0.18);
    --blue: #00aeff;
    --cyan: #24d3ff;
    --green: #35dc77;
    --white: #f6fbff;
    --muted: #98abc0;
    --danger: #ff6b78;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--white);
    background:
        radial-gradient(
            circle at 50% -10%,
            rgba(0, 174, 255, 0.24),
            transparent 38%
        ),
        radial-gradient(
            circle at 10% 90%,
            rgba(25, 89, 155, 0.16),
            transparent 35%
        ),
        var(--background);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

button,
a {
    font: inherit;
}

button {
    border: 0;
    cursor: pointer;
}

.launch-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 28px;
}

.launch-view {
    width: min(820px, 100%);
    animation: launchFadeIn 500ms ease both;
}

.launch-view[hidden] {
    display: none;
}

.startup-view {
    text-align: center;
}

.shield-stage {
    position: relative;
    width: 230px;
    height: 230px;
    display: grid;
    place-items: center;
    margin: 0 auto 28px;
}

.shield-ring {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(36, 211, 255, 0.55);
    border-radius: 50%;
    box-shadow:
        0 0 42px rgba(0, 174, 255, 0.32),
        inset 0 0 38px rgba(0, 174, 255, 0.14);
    animation: shieldPulse 2.3s ease-in-out infinite;
}

.shield-ring::before,
.shield-ring::after {
    content: "";
    position: absolute;
    border-radius: inherit;
    border: 1px solid rgba(0, 174, 255, 0.2);
}

.shield-ring::before {
    inset: -18px;
}

.shield-ring::after {
    inset: 22px;
}

.shield-logo {
    position: relative;
    z-index: 2;
    width: 180px;
    max-height: 180px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 20px rgba(0, 174, 255, 0.5))
        drop-shadow(0 16px 28px rgba(0, 0, 0, 0.55));
    animation: shieldFloat 3.5s ease-in-out infinite;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 2.2px;
    text-transform: uppercase;
}

.error-eyebrow {
    color: var(--danger);
}

h1 {
    margin: 0;
    font-size: clamp(34px, 7vw, 66px);
    line-height: 1.02;
    letter-spacing: -1.6px;
}

.lead {
    max-width: 650px;
    margin: 18px auto 0;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 19px);
    line-height: 1.65;
}

.loading-line {
    width: min(380px, 82vw);
    height: 4px;
    margin: 34px auto 18px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.loading-line span {
    display: block;
    width: 45%;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--cyan),
            var(--blue),
            transparent
        );
    animation: loadingSweep 1.4s ease-in-out infinite;
}

.status-message {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
}

.content-card {
    padding: clamp(25px, 5vw, 48px);
    border: 1px solid var(--line);
    border-radius: 28px;
    background:
        linear-gradient(
            145deg,
            rgba(11, 35, 65, 0.96),
            rgba(3, 14, 31, 0.97)
        );
    box-shadow: var(--shadow);
    text-align: center;
    backdrop-filter: blur(18px);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 34px 0;
    text-align: left;
}

.feature-grid article {
    min-height: 135px;
    padding: 19px;
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    background: var(--panel-soft);
}

.feature-grid strong,
.feature-grid span {
    display: block;
}

.feature-grid strong {
    margin-bottom: 8px;
    color: var(--white);
    font-size: 15px;
}

.feature-grid span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.primary-button,
.secondary-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 900;
    text-decoration: none;
}

.primary-button {
    color: #00131a;
    background:
        linear-gradient(
            135deg,
            var(--cyan),
            var(--blue)
        );
    box-shadow: 0 12px 28px rgba(0, 174, 255, 0.26);
}

.secondary-button {
    color: var(--white);
    border: 1px solid var(--line);
    background: rgba(13, 38, 67, 0.9);
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.setup-card {
    text-align: left;
}

.setup-card > .eyebrow,
.setup-card > h1,
.setup-card > .lead {
    text-align: center;
}

.progress-list {
    display: grid;
    gap: 12px;
    margin: 34px 0 0;
    padding: 0;
    list-style: none;
}

.progress-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid var(--line-soft);
    border-radius: 14px;
    background: rgba(5, 20, 39, 0.72);
    transition:
        border-color 200ms ease,
        background 200ms ease,
        transform 200ms ease;
}

.progress-list li.active {
    border-color: var(--cyan);
    background: rgba(0, 174, 255, 0.12);
    transform: translateX(4px);
}

.progress-list li.complete {
    border-color: rgba(53, 220, 119, 0.5);
    background: rgba(53, 220, 119, 0.08);
}

.progress-icon {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--cyan);
    background: rgba(0, 174, 255, 0.1);
    font-weight: 900;
}

.progress-list li.complete .progress-icon {
    color: #03150b;
    border-color: var(--green);
    background: var(--green);
}

.progress-list strong,
.progress-list div span {
    display: block;
}

.progress-list strong {
    margin-bottom: 4px;
}

.progress-list div span {
    color: var(--muted);
    font-size: 13px;
}

@keyframes shieldPulse {
    0%,
    100% {
        opacity: 0.56;
        transform: scale(0.97);
    }

    50% {
        opacity: 1;
        transform: scale(1.04);
    }
}

@keyframes shieldFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

@keyframes loadingSweep {
    from {
        transform: translateX(-125%);
    }

    to {
        transform: translateX(325%);
    }
}

@keyframes launchFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .launch-shell {
        padding: 18px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .shield-stage {
        width: 190px;
        height: 190px;
    }

    .shield-logo {
        width: 148px;
        max-height: 148px;
    }

    .content-card {
        border-radius: 21px;
    }
}

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

/* M15-001B2 Secure Home Pairing */

.pairing-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.pairing-label {
    display: block;
    font-weight: 700;
}

.pairing-input {
    width: 100%;
    box-sizing: border-box;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(212, 175, 55, 0.5);
    border-radius: 12px;
    background: rgba(2, 11, 24, 0.72);
    color: inherit;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-align: center;
    text-transform: uppercase;
}

.pairing-input:focus {
    outline: 2px solid rgba(212, 175, 55, 0.7);
    outline-offset: 2px;
}

.pairing-input:disabled {
    opacity: 0.65;
    cursor: wait;
}

.pairing-security-note {
    margin: 0.75rem 0 0;
    opacity: 0.8;
    font-size: 0.92rem;
}
