:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --accent-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --success-gradient: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    --dark-gradient: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    
    --text-primary: #2d3748;
    --text-secondary: #718096;
    --text-light: #ffffff;
    --bg-primary: #f7fafc;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.15);
}

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

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

        /* Top gradient decoration */
.top-decoration {
    height: 6px;
    background: var(--primary-gradient);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.container {
    max-width: 430px;
    margin: 0 auto;
    padding: 0 20px;
}

        /* Header */
.header {
    text-align: center;
    padding: 40px 0 20px;
    margin-top: 6px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.logo-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-card);
}

.logo-text {
    font-size: 26px;
    font-weight: 800;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 30px;
    font-weight: 500;
}

        /* Main content card */
.main-card {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 32px 24px;
    margin: 20px 0;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.main-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
}

.hero-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.5;
}

        /* Input section */
.input-section {
    margin-bottom: 24px;
}

.input-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: block;
}

.input-wrapper {
    position: relative;
}

.stock-input {
    width: 100%;
    padding: 18px 20px;
    font-size: 17px;
    border: 2px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-primary);
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.stock-input:focus {
    border-color: #667eea;
    background: var(--bg-card);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.stock-input::placeholder {
    color: var(--text-secondary);
    font-weight: 400;
}

.input-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-secondary);
}

        /* Analysis button */
.analyze-btn {
    width: 100%;
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    background: var(--primary-gradient);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.analyze-btn:active {
    transform: translateY(0);
}

        /* Statistics data */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}

.stat-item {
    text-align: center;
    padding: 20px 16px;
    background: var(--bg-primary);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.stat-number {
    font-size: 22px;
    font-weight: 800;
    background: var(--secondary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

        /* Features list */
.features {
    margin: 32px 0;
}

.features-title {
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.feature-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 20px;
}

.feature-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feature-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
}

        /* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: 20px;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 24px;
    padding: 40px 32px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: all 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--border-color);
    color: var(--text-primary);
}

.modal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.progress-container {
    width: 100%;
    height: 8px;
    background: var(--bg-primary);
    border-radius: 8px;
    margin: 24px 0;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 8px;
    width: 0;
    transition: width 1.5s ease;
}

.analysis-steps {
    margin: 32px 0;
}

.analysis-step {
    display: flex;
    align-items: center;
    padding: 16px;
    margin-bottom: 12px;
    background: var(--bg-primary);
    border-radius: 12px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.analysis-step.active {
    opacity: 1;
    background: var(--success-gradient);
    color: var(--text-primary);
}

.step-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 16px;
}

.analysis-step.active .step-icon {
    background: var(--primary-gradient);
    color: var(--text-light);
}

.loading-dots {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary-gradient);
    margin: 0 4px;
    animation: dotBounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes dotBounce {
    0%, 80%, 100% {
        transform: scale(0);
    }
    40% {
        transform: scale(1);
    }
}

.complete-section {
    display: none;
}

.complete-section.active {
    display: block;
    animation: fadeInUp 0.5s ease;
}

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

.complete-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.complete-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    line-height: 1.5;
}

.whatsapp-btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    background: var(--secondary-gradient);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

        /* Trust indicators */
.trust-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
    margin: 32px 0;
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.trust-item {
    text-align: center;
}

.trust-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.trust-text {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

        /* Footer */
.footer {
    text-align: center;
    padding: 32px 0;
    color: var(--text-secondary);
    font-size: 14px;
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.footer-note {
    margin-bottom: 16px;
    line-height: 1.5;
}

        /* Responsive adjustments */
@media (max-width: 375px) {
    .container {
        padding: 0 16px;
    }
    
    .main-card {
        padding: 24px 20px;
    }
    
    .modal-content {
        padding: 32px 24px;
    }
    
    .stats-grid {
        gap: 12px;
    }
    
    .stat-item {
        padding: 16px 12px;
    }
}
