/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #0a0e1a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Video Background */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background video {
    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: linear-gradient(135deg, 
        rgba(10, 14, 26, 0.8) 0%, 
        rgba(26, 31, 46, 0.85) 50%, 
        rgba(45, 27, 105, 0.8) 100%);
    backdrop-filter: blur(1px);
}

/* Header */
.header {
    position: relative;
    z-index: 100;
    padding: 20px 0;
    backdrop-filter: blur(10px);
    background: rgba(10, 14, 26, 0.8);
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 700;
}

.logo-icon {
    color: #667eea;
    font-size: 32px;
    animation: pulse 2s infinite;
}

.logo-text {
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #ffffff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #667eea;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Main Content */
.main {
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.hero {
    text-align: center;
    padding: 80px 0;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.2;
}

.title-gradient {
    background: linear-gradient(45deg, #667eea, #764ba2, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

.description {
    font-size: 1.2rem;
    color: #a0a9c0;
    max-width: 600px;
    margin: 0 auto 50px;
    line-height: 1.8;
}

/* Analysis Form */
.analysis-form {
    max-width: 600px;
    margin: 0 auto 60px;
}

.input-group {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
}

.input-wrapper {
    flex: 1;
    position: relative;
}

.input-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #667eea;
    font-size: 18px;
}

.stock-input {
    width: 100%;
    padding: 18px 20px 18px 55px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stock-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

.stock-input::placeholder {
    color: #a0a9c0;
}

.analyze-btn {
    padding: 18px 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.analyze-btn:active {
    transform: translateY(0);
}

.analyze-btn::before {
    content: '';
    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;
}

.analyze-btn:hover::before {
    left: 100%;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.analyze-btn:hover .btn-icon {
    transform: translateX(5px);
}

/* Example Codes */
.example-codes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.example-label {
    color: #a0a9c0;
    font-size: 14px;
    margin-right: 10px;
}

.example-code {
    padding: 8px 16px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    color: #667eea;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.example-code:hover {
    background: rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

/* Features */
.features {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #a0a9c0;
    font-weight: 500;
}

.feature-icon {
    color: #667eea;
    font-size: 20px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 999;
    display: none;
}

.modal-content {
    background: linear-gradient(145deg, #1a1f2e, #2d1b69);
    border-radius: 16px;
    width: 85%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    border: 1px solid rgba(102, 126, 234, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 25px 18px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}

.close-btn {
    background: none;
    border: none;
    color: #a0a9c0;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.modal-body {
    padding: 25px;
}

/* Analysis Process */
.analysis-process {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 18px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    opacity: 0.5;
    transition: all 0.5s ease;
}

.process-step.active {
    opacity: 1;
    border-color: #667eea;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
}

.process-step.completed {
    opacity: 1;
    border-color: #4ade80;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #ffffff;
    position: relative;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #ffffff;
}

.step-content p {
    color: #a0a9c0;
    font-size: 13px;
    line-height: 1.4;
}

.step-loader {
    width: 24px;
    height: 24px;
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-top: 2px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    opacity: 0;
    flex-shrink: 0;
}

.process-step.active .step-loader {
    opacity: 1;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Analysis Results */
.analysis-results {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.results-completion {
    text-align: center;
    padding: 20px;
}

.completion-icon {
    margin-bottom: 20px;
    animation: bounceIn 0.8s ease-out;
}

.completion-icon i {
    font-size: 80px;
    color: #4ade80;
    text-shadow: 0 0 20px rgba(74, 222, 128, 0.5);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.results-completion h3 {
    font-size: 28px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #4ade80, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.completion-message {
    font-size: 16px;
    color: #a0a9c0;
    margin-bottom: 40px;
    line-height: 1.6;
}

/* WhatsApp CTA Main */
.whatsapp-cta-main {
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.15), rgba(37, 211, 102, 0.1));
    border: 2px solid rgba(37, 211, 102, 0.4);
    border-radius: 20px;
    padding: 35px;
    margin-top: 30px;
    animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 0 30px rgba(37, 211, 102, 0.6), 0 0 40px rgba(37, 211, 102, 0.4);
    }
}

.cta-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.cta-icon {
    width:70px;
    height: 70px;
    background: linear-gradient(45deg, #25d366, #20b358);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
    padding: 12px;
    display: none;
}

.whatsapp-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.cta-text h4 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    background: linear-gradient(45deg, #25d366, #4ade80);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-text p {
    color: #a0a9c0;
    line-height: 1.6;
    font-size: 16px;
}

.benefits-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(37, 211, 102, 0.2);
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.benefit:hover {
    background: rgba(37, 211, 102, 0.1);
    transform: translateY(-2px);
}

.benefit i {
    color: #25d366;
    font-size: 16px;
    width: 16px;
}

.whatsapp-btn-primary {
    width: 100%;
    background: linear-gradient(45deg, #25d366, #20b358);
    border: none;
    border-radius: 15px;
    padding: 18px 30px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.whatsapp-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.6);
    background: linear-gradient(45deg, #22c55e, #16a34a);
}

.whatsapp-btn-primary:active {
    transform: translateY(-1px);
}

.btn-whatsapp-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s;
}

.whatsapp-btn-primary:hover .btn-shine {
    left: 100%;
}

.urgency-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    color: #fbbf24;
    font-size: 14px;
    font-weight: 600;
    animation: pulse 2s infinite;
}

.urgency-text i {
    font-size: 16px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    
    .description {
        font-size: 1rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .features {
        gap: 20px;
    }
    
    .feature {
        font-size: 14px;
    }
    
    .nav {
        display: none;
    }
    
    /* Mobile Modal Optimizations */
    .modal-content {
        margin: 10px;
        border-radius: 15px;
        width: 90%;
        max-width: 500px;
    }
    
    .modal-body,
    .modal-header {
        padding: 18px;
    }
    
    .analysis-process {
        gap: 15px;
    }
    
    .process-step {
        padding: 12px 15px;
        gap: 12px;
    }
    
    .step-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .step-content h4 {
        font-size: 15px;
    }
    
    .step-content p {
        font-size: 12px;
    }
    
    .step-loader {
        width: 20px;
        height: 20px;
    }
    
    .completion-icon i {
        font-size: 60px;
    }
    
    .results-completion h3 {
        font-size: 22px;
    }
    
    .completion-message {
        font-size: 14px;
        margin-bottom: 25px;
    }
    
    /* Simplified Mobile CTA */
    .whatsapp-cta-main {
        padding: 25px 20px;
        margin-top: 20px;
    }
    
    .cta-header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        margin-bottom: 20px;
    }
    
    .cta-icon {
        width: 60px;
        height: 60px;
        margin: 0 auto;
    }
    
    .cta-text h4 {
        font-size: 20px;
        margin-bottom: 5px;
    }
    
    .cta-description {
        display: none; /* Hide description on mobile for simplicity */
    }
    
    /* Hide benefits list on mobile */
    .benefits-list {
        display: none;
    }
    
    .whatsapp-btn-primary {
        font-size: 16px;
        padding: 16px 25px;
        margin-bottom: 15px;
    }
    
    .urgency-text {
        font-size: 13px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .process-step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .step-content {
        order: 1;
    }
    
    .step-loader {
        order: 2;
    }
    
    /* Extra small mobile optimizations */
    .modal-content {
        margin: 5px;
        width: 95%;
        max-width: 400px;
    }
    
    .modal-body,
    .modal-header {
        padding: 15px;
    }
    
    .analysis-process {
        gap: 12px;
    }
    
    .process-step {
        padding: 10px 12px;
        gap: 10px;
    }
    
    .step-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }
    
    .step-content h4 {
        font-size: 14px;
    }
    
    .step-content p {
        font-size: 11px;
    }
    
    .step-loader {
        width: 18px;
        height: 18px;
        border-width: 1.5px;
    }
    
    .completion-icon i {
        font-size: 50px;
    }
    
    .results-completion h3 {
        font-size: 20px;
    }
    
    .whatsapp-cta-main {
        padding: 20px 15px;
    }
    
    .cta-icon {
        width: 50px;
        height: 50px;
    }
    
    .cta-text h4 {
        font-size: 18px;
    }
    
    .whatsapp-btn-primary {
        font-size: 15px;
        padding: 14px 20px;
    }
    
    .btn-whatsapp-icon {
        width: 20px;
        height: 20px;
    }
    
    .modal-header h3 {
        font-size: 20px;
    }
}
