:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --bg: #0f0f1a;
    --surface: #1a1a2e;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --success: #10b981;
    --warning: #f59e0b;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

#app {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

/* Phase Management */
.phase {
    display: none;
    animation: fadeIn 0.5s ease;
}

.phase.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 3rem;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.narrative {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text);
}

/* Choices */
.choices {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.choice {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text);
    font-size: 1rem;
    text-align: left;
}

.choice:hover {
    border-color: var(--primary);
    transform: translateX(10px);
}

.choice.selected {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
}

.choice .icon {
    font-size: 2rem;
}

/* Email Section */
.email-section {
    text-align: center;
    margin-top: 2rem;
}

.email-section.hidden {
    display: none;
}

input[type="email"] {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: 8px;
    color: var(--text);
    width: 100%;
    max-width: 400px;
    margin-bottom: 1rem;
}

input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
}

button {
    padding: 1rem 2rem;
    font-size: 1rem;
    background: var(--surface);
    border: 2px solid var(--primary);
    border-radius: 8px;
    color: var(--text);
    cursor: pointer;
    transition: all 0.3s ease;
}

button:hover {
    background: var(--primary);
}

button.primary {
    background: var(--primary);
    border-color: var(--primary-dark);
    font-weight: 600;
}

button.primary:hover {
    background: var(--primary-dark);
}

/* Progress Bar */
.progress-bar {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 600px;
    background: var(--surface);
    border-radius: 20px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.progress {
    height: 10px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 10px;
    transition: width 0.5s ease;
}

.badge {
    font-size: 0.875rem;
    white-space: nowrap;
}

/* Status Panel */
.status-panel {
    position: fixed;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 1rem;
    background: var(--surface);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
}

/* Consent Layers */
.consent-layers {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.layer {
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.layer:hover {
    border-color: var(--primary);
}

.layer.selected {
    border-color: var(--success);
    background: rgba(16, 185, 129, 0.1);
}

.layer.required {
    border-color: var(--warning);
    opacity: 0.8;
}

.layer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.layer-name {
    font-weight: 600;
    font-size: 1.1rem;
}

.layer-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--primary);
    border-radius: 4px;
}

/* Connectors Grid */
.connectors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.connector {
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.connector:hover {
    border-color: var(--primary);
}

.connector.connected {
    border-color: var(--success);
}

.connector .icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

/* Upload Zone */
.upload-zone {
    border: 3px dashed var(--primary);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    margin-bottom: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.upload-zone:hover {
    background: rgba(99, 102, 241, 0.1);
}

.upload-zone.dragover {
    background: rgba(99, 102, 241, 0.2);
    border-color: var(--secondary);
}

/* Responsive */
@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .status-panel {
        top: 1rem;
        right: 1rem;
        font-size: 0.75rem;
    }
}
