:root {
    --bg: #eef2f7;
    --panel: rgba(255, 255, 255, 0.72);
    --panel-solid: #ffffff;
    --text: #101828;
    --muted: #667085;
    --border: rgba(16, 24, 40, 0.08);
    --primary: #2563eb;
    --shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

button,
input,
select {
    font: inherit;
}

.topbar {
    height: 72px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.brand {
    font-weight: 800;
    letter-spacing: 0.04em;
}

.nav-links {
    display: flex;
    gap: 20px;
    color: var(--muted);
}

.hero {
    padding: 72px 24px 56px;
    background: radial-gradient(circle at top right, rgba(37, 99, 235, 0.18), transparent 30%), linear-gradient(180deg, #f8fbff, #eef2f7);
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 12px;
}

.hero h1 {
    margin: 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.04;
}

.hero-text {
    max-width: 640px;
    margin: 16px auto 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.7;
}

.cta-button {
    display: inline-flex;
    margin-top: 28px;
    background: var(--primary);
    color: #fff;
    padding: 14px 22px;
    border-radius: 999px;
    box-shadow: var(--shadow);
}

.products-section {
    padding: 48px 24px 80px;
}

.section-head {
    max-width: 1100px;
    margin: 0 auto 24px;
}

.section-head h2 {
    margin: 0 0 8px;
    font-size: 32px;
}

.section-head p {
    margin: 0;
    color: var(--muted);
}

.product-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.product-card {
    background: var(--panel-solid);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.product-card-body {
    padding: 18px;
}

.product-card-body h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.product-card-body p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.65;
}

.customize-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    background: var(--primary);
    color: #fff;
    padding: 12px 18px;
    border-radius: 14px;
}

.customizer-layout {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr) 320px;
    gap: 16px;
    padding: 16px;
}

.sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.panel {
    background: var(--panel);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
}

.panel h3 {
    margin-top: 0;
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 14px;
}

input[type="text"],
input[type="number"],
select {
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    padding: 0 12px;
    background: #fff;
}

input[type="range"] {
    width: 100%;
}

input[type="color"] {
    width: 100%;
    height: 44px;
    border: none;
    background: transparent;
    padding: 0;
}

button {
    border: none;
    background: #111827;
    color: #fff;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
}

.button-row,
.action-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tool-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.tab-btn,
.mode-btn {
    background: #e5e7eb;
    color: var(--text);
}

.tab-btn.is-active,
.mode-btn.is-active {
    background: var(--primary);
    color: #fff;
}

.tool-panel {
    display: none;
}

.tool-panel.is-active {
    display: block;
}

.logo-library {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.logo-item {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.editor-center {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.editor-topbar {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.mode-toggle {
    display: flex;
    gap: 10px;
}

.editor-stage {
    position: relative;
    min-height: 740px;
    background: var(--panel-solid);
    border-radius: 28px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.editor-panel {
    display: none;
    width: 100%;
    height: 100%;
}

.editor-panel.is-active {
    display: block;
}

#fabricCanvas {
    width: 100%;
    max-width: 100%;
    height: auto;
}

#threeCanvas {
    width: 100%;
    height: 740px;
}

.mobile-tools-btn {
    display: none;
    background: var(--primary);
}

@media (max-width: 1100px) {
    .customizer-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-tools-btn {
        display: inline-flex;
    }

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

    .editor-topbar {
        flex-direction: column;
    }

    .tool-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #threeCanvas {
        height: 58vh;
        min-height: 420px;
    }
}
.layer-item {
    width: 100%;
    text-align: left;
    background: #f8fafc;
    color: #111827;
    border: 1px solid rgba(16, 24, 40, 0.08);
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
}

.layer-item--active {
    background: #dbeafe;
    border-color: #60a5fa;
}
