/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #00d4ff;
    --secondary-color: #0099cc;
    --accent-color: #ff6b35;
    --success-color: #00ff88;
    --warning-color: #ffaa00;
    --danger-color: #ff4757;
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --border-color: #333;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #888;
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0099cc 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b35 0%, #f9ca24 100%);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --shadow-lg: 0 20px 40px rgba(0, 212, 255, 0.1);
    --shadow-xl: 0 25px 50px rgba(0, 0, 0, 0.3);
    --border-radius: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Video Background */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(1px);
}

.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 30s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-20px) translateX(10px); }
    66% { transform: translateY(10px) translateX(-5px); }
    100% { transform: translateY(0px) translateX(0px); }
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Centered Logo */
.centered-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.logo-icon {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main Content */
.main {
    padding-top: 60px;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    padding: 80px 0 100px;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s ease-in-out infinite;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-weight: 400;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    line-height: 1.8;
}

/* Analysis Form */
.analysis-form {
    margin-bottom: 80px;
}

.input-group {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.input-wrapper {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.stock-input {
    width: 100%;
    padding: 18px 20px 18px 50px;
    background: var(--card-bg);
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    transition: var(--transition);
    outline: none;
}

.stock-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.1);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

.stock-input:focus + .input-border {
    transform: scaleX(1);
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.analyze-btn {
    position: relative;
    padding: 18px 35px;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.analyze-btn:active {
    transform: translateY(0);
}

.btn-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.analyze-btn:active .btn-ripple {
    width: 300px;
    height: 300px;
}

.input-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    justify-content: center;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 80px;
}

.feature-card {
    background: var(--gradient-dark);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    padding: 10px;
}

.modal.show {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: var(--gradient-dark);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    padding: 30px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.analysis-symbol {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 700;
}

/* Progress Steps - Simplified */
.progress-steps {
    margin-bottom: 30px;
}

.progress-step-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.progress-step-indicator::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 1;
}

.progress-step-line {
    position: absolute;
    top: 15px;
    left: 15px;
    height: 2px;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.5s ease;
    z-index: 2;
}

.step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    position: relative;
    z-index: 3;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.step-dot.active {
    background: var(--primary-color);
    border-color: rgba(0, 212, 255, 0.3);
    box-shadow: 0 0 0 4px rgba(0, 212, 255, 0.2);
    transform: scale(1.1);
}

.step-dot.completed {
    background: var(--success-color);
    border-color: rgba(0, 255, 136, 0.3);
}

.current-step-info {
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    margin-bottom: 20px;
}

.current-step-info h4 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.current-step-info p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 3px;
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Results Modal */
.results-content {
    max-width: 700px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    padding: 10px;
    border-radius: 50%;
}

.close-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.results-header {
    text-align: center;
    margin-bottom: 40px;
}

.results-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
}

.analyzed-symbol {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Analysis Preview */
.analysis-preview {
    margin-bottom: 40px;
}

.analysis-preview h3 {
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.insight-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.insight-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.insight-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.insight-icon.positive {
    background: rgba(0, 255, 136, 0.2);
    color: var(--success-color);
}

.insight-icon.neutral {
    background: rgba(0, 212, 255, 0.2);
    color: var(--primary-color);
}

.insight-icon.warning {
    background: rgba(255, 170, 0, 0.2);
    color: var(--warning-color);
}

.insight-content {
    display: flex;
    flex-direction: column;
}

.insight-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.insight-value {
    font-weight: 600;
    font-size: 1.1rem;
}

/* WhatsApp CTA */
.whatsapp-cta {
    background: var(--gradient-dark);
    padding: 30px;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.cta-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.cta-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: white;
    flex-shrink: 0;
    margin: 0 auto;
}

.cta-text h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.cta-text p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.whatsapp-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
}

.feature-item i {
    color: var(--success-color);
    font-size: 1rem;
}

.whatsapp-btn {
    width: 100%;
    padding: 18px 30px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    border-radius: var(--border-radius);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.3);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.whatsapp-btn:hover .btn-shine {
    left: 100%;
}

/* Footer */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-section ul li i {
    color: var(--primary-color);
    width: 16px;
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .centered-logo {
        font-size: 1.2rem;
        margin-bottom: 30px;
    }
    
    .logo-icon {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 40px 0 60px;
    }
    
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-wrapper {
        max-width: none;
    }
    
    .analyze-btn {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        padding: 15px 12px;
        margin: 0;
        max-height: 95vh;
        border-radius: 8px;
        font-size: 0.9rem;
    }
    
    .progress-steps {
        margin-bottom: 15px;
    }
    
    .step-dot {
        width: 22px;
        height: 22px;
        font-size: 0.65rem;
    }
    
    .current-step-info {
        padding: 12px;
    }
    
    .current-step-info h4 {
        font-size: 0.95rem;
        margin-bottom: 6px;
    }
    
    .current-step-info p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .cta-icon {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
    }
    
    .cta-text h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }
    
    .cta-text p {
        font-size: 0.8rem;
        line-height: 1.5;
    }
    
    .whatsapp-features {
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .feature-item {
        font-size: 0.8rem;
        gap: 8px;
    }
    
    .feature-item i {
        font-size: 0.9rem;
    }
    
    .whatsapp-btn {
        font-size: 1rem;
        padding: 15px 25px;
    }
    
    .insight-cards {
        gap: 10px;
    }
    
    .insight-card {
        padding: 15px;
    }
    
    .results-content {
        max-width: none;
    }
    
    .modal-header {
        margin-bottom: 15px;
    }
    
    .modal-header h2 {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }
    
    .results-icon {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 15px;
    }
    
    .analyzed-symbol {
        font-size: 1.2rem;
    }
    
    .close-btn {
        top: 10px;
        right: 10px;
        font-size: 1rem;
        padding: 8px;
    }
    
    .whatsapp-cta {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .centered-logo {
        font-size: 1.1rem;
        margin-bottom: 25px;
        gap: 10px;
    }
    
    .logo-icon {
        font-size: 1.4rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .modal {
        padding: 5px;
    }
    
    .modal-content {
        width: 100%;
        margin: 0;
        padding: 12px 10px;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
        margin-bottom: 6px;
    }
    
    .results-icon {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .analyzed-symbol {
        font-size: 1.1rem;
    }
    
    .cta-text h3 {
        font-size: 1rem;
        margin-bottom: 6px;
    }
    
    .cta-text p {
        font-size: 0.75rem;
        line-height: 1.4;
    }
    
    .cta-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .feature-item {
        font-size: 0.75rem;
    }
    
    .whatsapp-btn {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
    
    .current-step-info h4 {
        font-size: 0.9rem;
    }
    
    .current-step-info p {
        font-size: 0.7rem;
    }
    
    .step-dot {
        width: 20px;
        height: 20px;
        font-size: 0.6rem;
    }
    
    .whatsapp-cta {
        padding: 15px 10px;
    }
}
