:root {
    --bg-color: #0f0f0f;
    --text-color: #ffffff;
    --accent-color: #646cff;
    --panel-bg: rgba(30, 30, 30, 0.7);
    --panel-border: rgba(255, 255, 255, 0.1);
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow: hidden;
    width: 100vw;
    height: 100vh;
}


.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    pointer-events: none;
    
}

.logo {
    font-weight: 700;
    font-size: 1.5rem;
    pointer-events: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.nav-links {
    display: flex;
    gap: 1rem;
    background: var(--panel-bg);
    backdrop-filter: blur(10px);
    padding: 0.5rem;
    border-radius: 2rem;
    border: 1px solid var(--panel-border);
    pointer-events: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.nav-btn {
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-family: inherit;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
    transition: all 0.2s;
}

.nav-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-btn.active {
    background: var(--accent-color);
    color: white;
}


.view {
    display: none;
    width: 100%;
    height: 100%;
}

.view.active {
    display: block;
}


#view-home {
    overflow-y: auto;
    padding-top: 80px;
    text-align: center;
}

.hero {
    padding: 4rem 2rem;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: #888;
    margin-bottom: 2rem;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.primary-btn,
.secondary-btn {
    padding: 0.8rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: transform 0.1s;
}

.primary-btn {
    background: var(--accent-color);
    color: white;
}

.primary-btn:hover {
    background: #747bff;
    transform: translateY(-2px);
}

.secondary-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}


.scene-container {
    width: 100%;
    height: 100%;
    
}


.editor-panel {
    position: absolute;
    top: 80px;
    
    left: 20px;
    width: 260px;
    background-color: var(--panel-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--panel-border);
    color: white;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.panel-header h2 {
    margin: 0;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    font-weight: 600;
}

.tool-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}

.control-row {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 8px;
    color: white;
    padding: 0.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.icon-btn.full-width {
    flex: 1;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.control-group label {
    display: flex;
    justify-content: space-between;
    color: #ccc;
}

.checkbox-row {
    flex-direction: row;
    align-items: center;
}

.separator {
    height: 1px;
    background: var(--panel-border);
    margin: 0.5rem 0;
}

.hint-text {
    font-style: italic;
    color: #666;
    font-size: 0.9rem;
    text-align: center;
    margin: 1rem 0 0 0;
}


input[type="range"] {
    width: 100%;
    accent-color: var(--accent-color);
}

input[type="color"] {
    border: none;
    width: 100%;
    height: 30px;
    cursor: pointer;
    background: transparent;
}