:root {
    --body-background: linear-gradient(#47d6d6, pink 50%);
    --ink: #07151f;
    --panel: rgba(255, 255, 255, 0.2);
    --panel-strong: rgba(255, 255, 255, 0.34);
    --line: rgba(255, 255, 255, 0.48);
    --shadow: 0 24px 80px rgba(10, 20, 35, 0.22);
    --cyan: #19f5ff;
    --pink: #ff6fd8;
    --violet: #6658ff;
    --green: #72ffbd;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--body-background);
    overflow: hidden;
}

button {
    font: inherit;
}

.cloud-desktop {
    position: relative;
    display: flex;
    min-height: 100vh;
    padding: clamp(16px, 3vw, 34px);
    isolation: isolate;
}

.cloud-desktop::before,
.cloud-desktop::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    pointer-events: none;
}

.cloud-desktop::before {
    background:
        linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 78%);
}

.cloud-desktop::after {
    background:
        radial-gradient(circle at 18% 18%, rgba(25, 245, 255, 0.28), transparent 28%),
        radial-gradient(circle at 84% 30%, rgba(255, 111, 216, 0.28), transparent 26%),
        linear-gradient(135deg, rgba(7, 21, 31, 0.12), transparent 45%);
}

.desktop-stage {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(260px, 1fr);
    grid-template-rows: auto 1fr auto;
    width: 100%;
    min-height: calc(100vh - clamp(32px, 6vw, 68px));
    padding: clamp(18px, 3.4vw, 42px);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(22px);
    overflow: hidden;
}

.desktop-stage::before {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 8px;
    content: "";
    pointer-events: none;
}

.system-status {
    position: relative;
    z-index: 1;
    display: inline-flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 10px;
    width: fit-content;
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.18);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 18px var(--green);
}

.desktop-brand {
    z-index: 1;
    display: grid;
    grid-column: 1 / -1;
    align-self: center;
    justify-items: center;
    gap: 18px;
    padding: 42px 0 28px;
    text-align: center;
}

.desktop-logo {
    width: min(380px, 78vw);
    max-height: 220px;
    object-fit: contain;
    filter: drop-shadow(0 18px 36px rgba(7, 21, 31, 0.26));
}

.desktop-tagline {
    max-width: 620px;
    margin: 0;
    font-size: clamp(1rem, 2.3vw, 1.38rem);
    font-weight: 700;
}

.app-grid {
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(96px, 1fr));
    gap: 12px;
    align-self: end;
    max-width: 320px;
}

.app-icon {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 104px;
    padding: 14px 10px;
    border: 1px solid rgba(255, 255, 255, 0.44);
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
    cursor: pointer;
    transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.app-icon:hover,
.app-icon:focus-visible,
.app-icon.is-active {
    border-color: rgba(25, 245, 255, 0.9);
    background: rgba(255, 255, 255, 0.38);
    outline: none;
    transform: translateY(-2px);
}

.app-symbol {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(7, 21, 31, 0.22);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(25, 245, 255, 0.72), rgba(255, 111, 216, 0.68));
    color: #fff;
    font-size: 1.4rem;
    font-weight: 900;
    text-shadow: 0 1px 10px rgba(7, 21, 31, 0.36);
}

.app-icon span:last-child {
    font-size: 0.9rem;
    font-weight: 800;
}

.preview-panel {
    z-index: 1;
    align-self: end;
    justify-self: end;
    width: min(520px, 100%);
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.24);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.panel-kicker {
    margin: 0 0 9px;
    color: #164054;
    font-size: 0.74rem;
    font-weight: 900;
    text-transform: uppercase;
}

.preview-panel h1 {
    margin: 0 0 10px;
    font-size: clamp(1.45rem, 3.2vw, 2.8rem);
    line-height: 1.02;
}

.preview-panel p:last-child {
    margin: 0;
    font-size: clamp(0.94rem, 1.7vw, 1.04rem);
    line-height: 1.58;
}

.dock {
    position: fixed;
    right: clamp(14px, 3vw, 32px);
    bottom: clamp(14px, 3vw, 28px);
    left: clamp(14px, 3vw, 32px);
    z-index: 3;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.52);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.28);
    box-shadow: 0 18px 60px rgba(7, 21, 31, 0.18);
    backdrop-filter: blur(18px);
}

.dock-launcher {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    cursor: pointer;
}

.dock-launcher span,
.dock-launcher span::before,
.dock-launcher span::after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
    content: "";
}

.dock-launcher span::before {
    transform: translateY(-6px);
}

.dock-launcher span::after {
    transform: translateY(4px);
}

.dock-apps {
    display: flex;
    gap: 9px;
    align-items: center;
}

.dock-apps span {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.34);
}

.clock {
    min-width: 58px;
    font-size: 0.9rem;
    font-weight: 900;
    text-align: right;
}

@media (max-width: 760px) {
    body {
        overflow: auto;
    }

    .cloud-desktop {
        min-height: 100svh;
        padding: 12px;
        padding-bottom: 84px;
    }

    .desktop-stage {
        grid-template-columns: 1fr;
        min-height: calc(100svh - 96px);
        padding: 16px;
    }

    .desktop-stage::before {
        inset: 10px;
    }

    .desktop-brand {
        padding: 34px 0 20px;
    }

    .desktop-logo {
        width: min(300px, 82vw);
    }

    .app-grid {
        grid-template-columns: repeat(4, minmax(64px, 1fr));
        max-width: none;
        order: 3;
    }

    .app-icon {
        min-height: 86px;
        padding: 10px 6px;
    }

    .app-symbol {
        width: 34px;
        height: 34px;
        font-size: 1.05rem;
    }

    .app-icon span:last-child {
        font-size: 0.74rem;
    }

    .preview-panel {
        justify-self: stretch;
        margin-bottom: 16px;
    }

    .dock {
        grid-template-columns: 40px 1fr auto;
        min-height: 54px;
    }
}

@media (max-width: 430px) {
    .app-grid {
        grid-template-columns: repeat(2, minmax(96px, 1fr));
    }

    .system-status {
        max-width: 100%;
        font-size: 0.7rem;
    }
}

.maintenance-desktop {
    align-items: stretch;
}

.maintenance-stage {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-items: center;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

.maintenance-brand {
    z-index: 1;
    display: grid;
    align-self: center;
    justify-items: center;
    min-height: 60vh;
    padding: clamp(32px, 8vw, 96px) 0;
}

.maintenance-brand .desktop-logo {
    width: min(620px, 84vw);
    max-height: 380px;
    opacity: 0.95;
    filter: drop-shadow(0 24px 56px rgba(7, 21, 31, 0.24));
}

@media (max-width: 760px) {
    .maintenance-stage {
        min-height: calc(100svh - 24px);
    }

    .maintenance-brand {
        min-height: 58vh;
        padding: 34px 0 24px;
    }

    .maintenance-brand .desktop-logo {
        width: min(360px, 82vw);
    }
}
