:root {
    --bg: #0b0f19;
    --fg: #e6e8eb;
    --muted: #9aa3af;
    --accent: #22c55e
}

* {
    box-sizing: border-box
}

body.landing {
    margin: 0;
    font-family: system-ui, Arial;
    color: var(--fg);
    background: linear-gradient(180deg, #0b0f19 0%, #111827 100%)
}

.wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 48px 16px
}

header {
    display: flex;
    align-items: center;
    justify-content: space-between
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--fg)
}

.logo {
    width: auto;
    height: 50px;
    border-radius: 6px;
}

.nav {
    display: flex;
    gap: 12px
}

.nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 6px 10px
}

.hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 48px 0
}

.title {
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -0.02em
}

.desc {
    color: var(--muted);
    font-size: 16px
}

.cta {
    display: flex;
    gap: 12px;
    margin-top: 24px
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600
}

.btn-primary {
    background: var(--accent);
    color: #0a0f16
}

.btn-ghost {
    border: 1px solid #1f2937;
    color: var(--fg)
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px
}

.card {
    background: #0f1624;
    border: 1px solid #1f2937;
    border-radius: 12px;
    padding: 16px
}

.card h3 {
    margin: 0 0 6px 0;
    font-size: 18px
}

.card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px
}

footer {
    margin-top: 56px;
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid #1f2937;
    padding-top: 20px
}

@media (max-width: 800px) {
    .features {
        grid-template-columns: 1fr
    }

    .title {
        font-size: 32px
    }
}

body.explore {
    margin: 0;
    font-family: system-ui, Arial;
    background: #0b0f19;
    color: #e6e8eb
}

.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px
}

.card h3 {
    color: #e6e8eb
}

.meta {
    color: #9aa3af;
    font-size: 12px
}

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 8px
}

.empty {
    color: #9aa3af;
    padding: 20px;
    text-align: center
}

@media (max-width: 800px) {
    .grid {
        grid-template-columns: 1fr
    }
}

body.builder,
body.viewer {
    font-family: system-ui, Arial;
    margin: 0;
    display: flex;
    height: 100vh
}

#sidebar {
    width: 300px;
    padding: 12px;
    border-right: 1px solid #ddd
}

#resizer {
    width: 6px;
    background: #eee
}

#canvasWrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7
}

canvas {
    background: white;
    box-shadow: 0 0 0 1px #ddd
}

input,
select,
button {
    margin: 6px 0;
    width: 100%;
    padding: 8px
}

.type-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #ddd;
    padding: 6px;
    background: #fff
}

.type-swatch {
    width: 32px;
    height: 32px;
    box-shadow: 0 0 0 1px #ccc
}

.type-item.selected {
    border-color: #000
}

.palette {
    display: grid;
    grid-template-columns: repeat(8, 24px);
    gap: 6px;
    margin-top: 6px
}

.palette-item {
    width: 24px;
    height: 24px;
    border: 1px solid #ccc
}