:root {
    /* Color Palette - "Architectural & Refined" */
    --bg-primary: #0a0a0a;
    --bg-secondary: #0f0f0f;
    --accent-primary: #ffffff;
    --accent-secondary: #888888;
    --text-main: #f5f5f5;
    --text-muted: #a0a0a0;
    --border-color: rgba(255, 255, 255, 0.1);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --error: #ff4d4d;
    --success: #00ff88;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-s: 1rem;
    --space-m: 2rem;
    --space-l: 4rem;
    --space-xl: 8rem;
    
    /* Typography */
    --font-display: 'Instrument Serif', serif;
    --font-body: 'Inter', sans-serif;

    /* Effects */
    --blur: blur(20px);
    --transition-fast: 0.2s ease;
    --transition-base: 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 1.1;
}

/* Layout Components */
.container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 var(--space-m);
}

.section {
    padding: var(--space-xl) 0;
}

/* Navigation */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-m) 0;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--accent-primary);
}

.nav-links {
    display: flex;
    gap: var(--space-m);
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--accent-primary);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border: 1px solid var(--accent-primary);
    background: transparent;
    color: var(--accent-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 0.5rem;
}

.btn:hover {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent-primary);
}

.btn-outline-muted {
    border-color: var(--border-color);
    color: var(--text-muted);
}

.btn-outline-muted:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.btn-icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
    margin-bottom: var(--space-m);
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: var(--space-m);
}

/* Auth Cards */
.auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-form-container {
    padding: var(--space-xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-visual {
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.form-group {
    margin-bottom: var(--space-m);
}

.form-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
    color: var(--text-muted);
}

.form-input {
    width: 100%;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    color: var(--text-main);
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Upload & Steps */
.step-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.upload-zone {
    border: 2px dashed var(--border-color);
    padding: var(--space-xl);
    margin: var(--space-m) 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    border-color: var(--accent-primary);
    background: var(--glass-bg);
}

/* Portfolio Preview Overlay */
.preview-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--bg-primary);
    padding: var(--space-s) var(--space-m);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Placeholders */
.placeholder-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Dashboard / Editor specific */
.editor-layout {
    display: grid;
    grid-template-columns: 320px 1fr 320px;
    height: 100vh;
    overflow: hidden;
}

.sidebar {
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sidebar-header {
    padding: var(--space-m);
    border-bottom: 1px solid var(--border-color);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-m);
}

.canvas-area {
    background: #1a1a1a;
    padding: var(--space-l);
    overflow-y: auto;
    display: flex;
    justify-content: center;
}

.preview-container {
    width: 100%;
    max-width: 900px;
    background: white;
    min-height: 1200px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    border-radius: 4px;
    transform-origin: top center;
    color: #1a1a1a; /* Preview content uses dark text usually */
}

.chat-panel {
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: var(--space-m);
}

.message {
    margin-bottom: var(--space-m);
}

.message-ai {
    background: var(--glass-bg);
    padding: var(--space-s);
    border-radius: 4px;
    font-size: 0.9rem;
}

.message-user {
    text-align: right;
    font-size: 0.9rem;
}

.chat-input-container {
    padding: var(--space-m);
    border-top: 1px solid var(--border-color);
}

/* Status Badges */
.badge {
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
}

/* Utilities */
.text-center { text-align: center; }
.mb-l { margin-bottom: var(--space-l); }
.mt-m { margin-top: var(--space-m); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-m); }

.flex-gap-s { display: flex; gap: var(--space-s); }
.flex-gap-l { display: flex; gap: var(--space-l); }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-end { display: flex; justify-content: space-between; align-items: flex-end; }

.nav-btn-start { padding: 0.5rem 1.5rem; }
.step-label { font-size: 0.8rem; color: var(--text-muted); display: block; }
.step-item { border-top: 1px solid var(--border-color); padding-top: var(--space-m); flex: 1; }
.feature-section { background: var(--bg-secondary); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.feature-title { font-size: 3rem; margin-bottom: var(--space-l); }
.card-icon { margin-bottom: var(--space-s); }
.card-text { color: var(--text-muted); }
.footer-brand { color: var(--text-muted); margin-top: var(--space-s); }
.footer-copy { color: var(--text-muted); font-size: 0.8rem; }
