:root {
    --primary: #059669;
    --primary-dark: #065F46;
    --secondary: #34D399;
    --accent: #F59E0B;
    --bg-light: #ECFDF5;
    --bg-dark: #D1FAE5;
    --text-main: #064E3B;
    --text-muted: #374151;
    --white: #FFFFFF;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --radius: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--bg-dark) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

#background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.4;
}

#background-animation::before,
#background-animation::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

#background-animation::before {
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: var(--secondary);
    animation: float 20s infinite alternate ease-in-out;
}

#background-animation::after {
    bottom: -10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--primary);
    animation: float-reverse 25s infinite alternate ease-in-out;
}

@keyframes float {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(50px, 50px) rotate(10deg); }
}

@keyframes float-reverse {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-50px, -50px) rotate(-10deg); }
}

.app-container {
    width: 100%;
    max-width: 600px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.app-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

.logo svg {
    color: var(--primary);
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(167, 243, 208, 0.5);
    border-radius: 999px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Quiz Container */
#quiz-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.6);
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-title {
    font-size: 1.5rem;
    line-height: 1.3;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    text-align: center;
}

.options-grid {
    display: grid;
    gap: 1rem;
}

.option-btn {
    background: var(--white);
    border: 1px solid rgba(5, 150, 105, 0.2);
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.option-btn:hover {
    background: var(--bg-light);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.option-btn:active {
    transform: translateY(0);
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    margin-top: 1rem;
    text-align: center;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
    box-shadow: var(--shadow);
}

.input-field {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(5, 150, 105, 0.3);
    border-radius: var(--radius);
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Animations Logic classes */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.5s forwards;
}

.fade-out {
    opacity: 1;
    animation: fadeOut 0.5s forwards;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-10px); }
}

/* Processing/Analysis Steps */
.processing-step {
    text-align: center;
}
.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--bg-dark);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 2rem auto;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

/* Offer Step */
.offer-card {
    text-align: center;
}
.offer-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    margin: 1rem 0;
}
.offer-features {
    text-align: left;
    margin: 1.5rem 0;
}
.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.check-icon {
    color: var(--accent);
}

/* Social Proof Step */
.social-proof-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}
.proof-item {
    background: #f9fafb;
    padding: 1rem;
    border-radius: var(--radius);
    font-size: 0.9rem;
    text-align: center;
    border: 1px solid #e5e7eb;
}

/* Responsive */
@media (max-width: 640px) {
    .step-title {
        font-size: 1.25rem;
    }
}
