:root {
    --bg: #f3f5f0;
    --ink: #13211b;
    --muted: #66736b;
    --line: #d8ded6;
    --panel: #ffffff;
    --accent: #b8df3b;
    --accent-strong: #243b2f;
    --blue: #22577a;
    --shadow: 0 18px 60px rgba(21, 38, 31, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: "Segoe UI", "Noto Sans", sans-serif;
    background: var(--bg);
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 750;
    text-decoration: none;
}

.public-topbar,
.os-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
    padding: 0 28px;
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
}

.public-nav,
.os-app-menu,
.os-status,
.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.public-nav a,
.os-app-menu a,
.public-footer a {
    text-decoration: none;
    color: var(--muted);
}

.button,
button {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    text-decoration: none;
}

.button-primary {
    border-color: var(--accent-strong);
    background: var(--accent-strong);
    color: #fff;
}

.landing-hero {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
    gap: 42px;
    min-height: calc(100vh - 148px);
    padding: 72px 7vw 40px;
    align-items: center;
}

.eyebrow {
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.landing-copy h1 {
    margin: 0;
    font-size: clamp(3rem, 8vw, 6.8rem);
    line-height: 0.92;
}

.lead {
    max-width: 640px;
    color: var(--muted);
    font-size: 1.18rem;
    line-height: 1.6;
}

.desktop-preview {
    position: relative;
    min-height: 430px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(184, 223, 59, 0.18), rgba(34, 87, 122, 0.12)),
        #eef3ea;
    box-shadow: var(--shadow);
}

.preview-topbar {
    height: 42px;
    border-bottom: 1px solid rgba(19, 33, 27, 0.12);
    background: rgba(255, 255, 255, 0.76);
}

.preview-icons {
    display: grid;
    grid-template-columns: repeat(2, 110px);
    gap: 18px;
    padding: 30px;
}

.preview-icons span,
.desktop-icon {
    display: grid;
    place-items: center;
    width: 86px;
    min-height: 78px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.68);
    text-align: center;
    font-size: 0.82rem;
    box-shadow: 0 8px 24px rgba(21, 38, 31, 0.08);
}

.preview-window {
    position: absolute;
    right: 34px;
    bottom: 48px;
    width: min(360px, 52%);
    padding: 24px;
    border: 1px solid rgba(19, 33, 27, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
}

.public-band {
    display: grid;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 24px;
    padding: 42px 7vw 70px;
    border-top: 1px solid var(--line);
}

.public-footer {
    display: flex;
    gap: 18px;
    padding: 22px 28px;
    border-top: 1px solid var(--line);
}

.auth-panel,
.simple-page {
    width: min(680px, calc(100% - 40px));
    margin: 64px auto;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--panel);
}

.auth-panel form p {
    display: grid;
    gap: 6px;
}

.auth-panel input {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 10px;
}

.os-body {
    min-height: 100vh;
    overflow: hidden;
}

.os-status {
    color: var(--muted);
    font-size: 0.88rem;
}

.os-status form {
    margin: 0;
}

.workspace-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
}

.workspace-switcher select,
.credit-topup input {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    padding: 4px 8px;
}

.desktop-shell {
    position: relative;
    height: calc(100vh - 68px);
    background:
        linear-gradient(135deg, rgba(216, 243, 106, 0.24), rgba(34, 87, 122, 0.10)),
        #eaf0e7;
}

.desktop-canvas {
    position: absolute;
    inset: 0 0 46px;
}

.desktop-icon {
    position: absolute;
    border: 1px solid rgba(19, 33, 27, 0.10);
    user-select: none;
}

.desktop-icon:hover,
.desktop-icon:focus {
    outline: 2px solid rgba(34, 87, 122, 0.36);
}

.desktop-icon-symbol {
    display: block;
    margin-bottom: 5px;
    font-size: 1.45rem;
}

.desktop-context-menu {
    position: absolute;
    z-index: 20;
    min-width: 150px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.desktop-context-menu button {
    width: 100%;
    justify-content: flex-start;
    border: 0;
}

.taskbar {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 46px;
    padding: 0 16px;
    border-top: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.88);
}

.app-page {
    height: calc(100vh - 68px);
    overflow: auto;
    padding: 36px;
    background: #f8faf6;
}

.app-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.app-header h1 {
    margin: 0 0 8px;
}

.two-column,
.store-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 18px;
}

.store-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    margin-bottom: 24px;
}

.os-panel,
.service-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 18px;
}

.os-panel h2,
.service-card h2 {
    margin-top: 0;
}

.os-panel form p,
.os-panel > p {
    display: grid;
    gap: 6px;
}

.os-panel input {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 10px;
}

.workspace-row,
.service-card-footer,
.credit-topup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.workspace-row {
    border-top: 1px solid var(--line);
    padding: 12px 0;
}

.workspace-row span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
}

.service-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 210px;
}

.social-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.social-header h1 {
    margin: 0 0 8px;
}

.trust-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 520px;
}

.trust-strip span {
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 8px 10px;
}

.social-grid,
.social-feed {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 18px;
}

.social-feed {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    margin-top: 26px;
}

.social-panel,
.feed-row {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 18px;
}

.social-panel h2,
.social-feed h2 {
    margin-top: 0;
}

.social-panel p {
    display: grid;
    gap: 6px;
}

.social-panel input,
.social-panel textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 8px 10px;
}

.social-panel textarea {
    min-height: 94px;
}

.feed-row {
    margin-bottom: 10px;
}

.feed-row span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 760px) {
    .public-topbar,
    .os-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 16px;
    }

    .landing-hero,
    .public-band {
        grid-template-columns: 1fr;
        padding: 34px 20px;
    }

    .landing-copy h1 {
        font-size: 3.6rem;
    }

    .desktop-preview {
        min-height: 330px;
    }

    .preview-window {
        right: 18px;
        bottom: 24px;
        width: calc(100% - 36px);
    }

    .social-header,
    .social-grid,
    .social-feed {
        grid-template-columns: 1fr;
    }

    .social-header {
        display: grid;
    }
}
