:root {
    --bg-dark: #0f172a;
    --text-main: #f8fafc;
    --text-muted: #cbd5e1;
    --primary: #8b5cf6;
    --primary-hover: #7c3aed;
    --accent: #ec4899;
    --glass-bg: rgba(30, 41, 59, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    padding: 1rem;
}

/* Background Animations */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

.blob {
    position: absolute;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s infinite alternate cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    left: -100px;
    border-radius: 50%;
}

.blob-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: 0px;
    right: -50px;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation-delay: -5s;
    animation-duration: 25s;
}

.blob-3 {
    width: 250px;
    height: 250px;
    background: #3b82f6;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    animation-delay: -10s;
    animation-duration: 30s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    50% { transform: translate(50px, 30px) scale(1.1) rotate(45deg); }
    100% { transform: translate(-30px, 80px) scale(0.9) rotate(90deg); }
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 500px;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
}

/* Typography & Utils */
h1 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-align: center;
}

.gradient-text {
    background: linear-gradient(135deg, #a78bfa, #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
}

.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1rem; }
.w-full { width: 100%; }

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.btn:active {
    transform: scale(0.96);
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary), #ec4899);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.primary-btn:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    filter: brightness(1.1);
}

.outline-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.outline-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Views & Animation */
.view {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    animation: fadeScaleIn 0.5s ease forwards;
    width: 100%;
}

.view.hidden {
    display: none;
}

@keyframes fadeScaleIn {
    0% { opacity: 0; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes slideOutLeft {
    0% { opacity: 1; transform: translateX(0); }
    100% { opacity: 0; transform: translateX(-50px); }
}

@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(50px); }
    100% { opacity: 1; transform: translateX(0); }
}

.slide-out { animation: slideOutLeft 0.3s ease forwards; }
.slide-in { animation: slideInRight 0.3s ease forwards; }

.logo-icon {
    margin-bottom: 1rem;
    text-align: center;
}

.brand-logo {
    max-width: 140px;
    height: auto;
    display: inline-block;
}

/* Quiz specific */
.quiz-header {
    width: 100%;
    margin-bottom: 2rem;
}

.progress-text {
    display: block;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: right;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #a78bfa, #f472b6);
    width: 0%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}

.question-container {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    margin-bottom: 2rem;
    width: 100%;
}

.question-prompt {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-main);
    text-align: center;
    line-height: 1.4;
}

.controls {
    display: flex;
    gap: 1rem;
    width: 100%;
}

.controls .btn {
    flex: 1;
}

/* Result specific */
.result-badge {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.result-title {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.result-description {
    font-size: 1rem;
    margin-bottom: 2rem;
}

.recommendation-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 1.5rem;
    width: 100%;
}

.recommendation-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #f472b6;
}

.reflection-list {
    text-align: left;
    margin-left: 1.2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.reflection-list li {
    margin-bottom: 0.2rem;
}

/* Form Styles */
.lead-form {
    display: flex;
    flex-direction: column;
}

.form-group {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.form-group input {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
    font-family: inherit;
    width: 100%;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.form-group input:focus {
    border-color: var(--primary);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.3);
}

.privacy-note {
    font-size: 0.8rem;
    text-align: center;
    opacity: 0.7;
}
