﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0c4a6e 0%, #1e293b 50%, #0f172a 100%);
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    direction: ltr;
    text-align: left;
}

/* Sfondo griglia dinamica */
.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(34, 197, 94, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 197, 94, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Effetto linee neon */
.neon-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.neon-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, #22c55e, transparent);
    height: 2px;
    width: 200px;
    animation: neonMove 8s linear infinite;
}

.neon-line:nth-child(1) {
    top: 20%;
    left: -200px;
    animation-delay: 0s;
}

.neon-line:nth-child(2) {
    top: 60%;
    left: -200px;
    animation-delay: 2s;
}

.neon-line:nth-child(3) {
    top: 80%;
    left: -200px;
    animation-delay: 4s;
}

@keyframes neonMove {
    0% { left: -200px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { left: 100%; opacity: 0; }
}

/* Elementi visualizzazione dati */
.data-viz {
    position: absolute;
    top: 10%;
    right: 5%;
    width: 150px;
    height: 200px;
    opacity: 0.3;
}

.chart-bar {
    position: absolute;
    bottom: 0;
    width: 12px;
    background: linear-gradient(0deg, #22c55e, #16a34a);
    border-radius: 2px 2px 0 0;
    animation: barGrow 3s ease-in-out infinite;
}

.chart-bar:nth-child(1) { left: 10px; height: 60px; animation-delay: 0s; }
.chart-bar:nth-child(2) { left: 30px; height: 80px; animation-delay: 0.2s; }
.chart-bar:nth-child(3) { left: 50px; height: 45px; animation-delay: 0.4s; }
.chart-bar:nth-child(4) { left: 70px; height: 90px; animation-delay: 0.6s; }
.chart-bar:nth-child(5) { left: 90px; height: 70px; animation-delay: 0.8s; }
.chart-bar:nth-child(6) { left: 110px; height: 100px; animation-delay: 1s; }

@keyframes barGrow {
    0%, 100% { transform: scaleY(0.8); }
    50% { transform: scaleY(1.2); }
}

/* Container principale */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px 40px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Logo container */
.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
}

.top-logo {
    max-width: 300px;
    width: 100%;
    height: auto;
}

/* Main Title */
.main-title {
    font-size: 3.5rem;
    font-weight: 900;
    color: #22c55e;
    text-align: left;
    line-height: 1.1;
    margin-bottom: 5px;
}

.subtitle-main {
    font-size: 2rem;
    color: white;
    text-align: left;
    font-weight: 400;
    margin-bottom: 15px;
}

/* Accuracy Box */
.accuracy-box {
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 15px;
    padding: 18px 20px;
    margin-bottom: 15px;
    backdrop-filter: blur(10px);
}

.accuracy-title {
    font-size: 2.0rem;
    color: white;
    margin-bottom: 8px;
    font-weight: 600;
    text-align: left;
}

.highlight-yellow {
    color: #fbbf24;
    font-weight: 700;
}

.accuracy-description {
    font-size: 1.3rem;
    color: #94a3b8;
    text-align: left;
    line-height: 1.5;
}

/* Input Container */
.input-container {
    position: relative;
    margin-bottom: 12px;
}

.stock-input {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid rgba(34, 197, 94, 0.3);
    border-radius: 12px;
    font-size: 19px;
    background: rgba(15, 23, 42, 0.9);
    color: white;
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    outline: none;
    text-align: left;
    font-weight: 400;
}

.stock-input::placeholder {
    color: #64748b;
}

.stock-input:focus {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

/* Analyze Button */
.analyze-button {
    width: 100%;
    padding: 18px 25px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
    transition: all 0.3s ease;
    margin-bottom: 12px;
}

.analyze-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(34, 197, 94, 0.6);
}

/* Platform Badge */
.platform-badge {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin: 14px 0;
    padding: 10px 16px;
    border: 2px solid #22c55e;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.4);
    box-shadow: inset 0 0 0 3px rgba(34, 197, 94, 0.15), 0 0 18px rgba(34, 197, 94, 0.15);
}

.platform-rocket {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    background: rgba(34, 197, 94, 0.15);
    border: 2px solid rgba(34, 197, 94, 0.7);
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.3);
}

.platform-text {
    color: #22c55e;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Section Title */
.section-title {
    font-size: 3.3rem;
    font-weight: 900;
    color: #22c55e;
    text-align: left;
    margin-bottom: 8px;
}

.section-subtitle {
    font-size: 1.9rem;
    color: white;
    text-align: left;
    margin-bottom: 18px;
    font-weight: 300;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: center;
    background: rgba(15, 23, 42, 0.8);
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid rgba(34, 197, 94, 0.2);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(34, 197, 94, 0.1);
    border-color: #22c55e;
}

.feature-icon {
    width: 30px;
    height: 30px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.feature-icon.accuracy {
    background: #ef4444;
}

.feature-text {
    font-size: 0.95rem;
    color: #e2e8f0;
    font-weight: 500;
}

/* Stats Container */
.stats-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
    margin-top: 25px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.stat-item {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    text-align: center;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.stat-number {
    font-size: 2.4rem;
    font-weight: 900;
    color: #22c55e;
    display: block;
    line-height: 1.2;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(34,197,94,.35);
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-label {
    font-size: 0.8rem;
    color: #9fb3c8;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 20px 0 10px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.trust-icon {
    width: 44px;
    height: 44px;
    background: rgba(34, 197, 94, 0.14); /* 半透明，随底色变化 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.5);
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.25), inset 0 0 10px rgba(34, 197, 94, 0.12);
    backdrop-filter: saturate(120%);
}

.trust-text {
    font-size: 0.8rem;
    color: #9fb3c8;
    text-align: center;
    font-weight: 500;
}

/* Contact Section */
.contact-section {
    text-align: center;
    margin: 20px 0;
}

.whatsapp-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center; /* 内容整体居中 */
    gap: 12px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    padding: 20px 90px; /* 增加左右内边距，让长度更宽 */
    border-radius: 12px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    margin-bottom: 8px;
    min-width: 580px; /* 让按钮更长 */
}

.whatsapp-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
}

.whatsapp-icon-img {
    width: 24px;
    height: 24px;
}

.contact-note {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-top: 10px;
}

/* Performance Section */
.performance-section {
    margin: 25px 0;
}

.performance-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: #22c55e;
    text-align: center;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* 左右为绿色，中间一条窄白带，配合位移动画从左向右扫过 */
    background: linear-gradient(90deg,
        #22c55e 0%,
        #22c55e 40%,
        #ffffff 50%,
        #22c55e 60%,
        #22c55e 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: perfSweep 3s linear infinite;
}

@keyframes perfSweep {
    /* 从左往右：起始在更左侧，位移到右侧 */
    0% { background-position: -100% 50%; }
    100% { background-position: 100% 50%; }
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(3, 220px); /* 每个卡片更窄 */
    justify-content: center; /* 居中对齐 */
    gap: 16px;
    margin: 0 auto 24px;
}

.performance-item {
    background: rgba(34, 197, 94, 0.10); /* 淡淡的绿色背景 */
    padding: 22px 20px;
    border-radius: 14px;
    border: 1px solid rgba(34, 197, 94, 0.25);
    text-align: center; /* 内容水平居中 */
    backdrop-filter: blur(10px);
    min-height: 250px; /* 高度更高 */
    width: 220px; /* 卡片宽度更小 */
    box-shadow: inset 0 0 0 2px rgba(34,197,94,.08), 0 10px 24px rgba(0,0,0,.25);
}

.performance-icon {
    background: none; /* 去除背景圆，仅显示图标 */
    border: none;
    width: auto;
    height: auto;
    margin: 0 auto 14px; /* 图标水平居中 */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px; /* 图标大小 */
}

.performance-number {
    font-size: 2.3rem;
    font-weight: 900;
    color: #fde047; /* 柔和黄色，更接近图片 */
    margin-bottom: 10px;
}

.performance-label {
    font-size: 1.5rem;
    color: white;
    font-weight: 500;
}

/* Stock Examples */
.stock-examples {
    display: grid;
    grid-template-columns: repeat(3, 220px); /* 与上方卡片同宽 */
    justify-content: center;
    gap: 16px;
    margin: 0 auto 1px; /* 下边距更紧凑 */
}

.stock-card {
    background: rgba(34, 197, 94, 0.10); /* 与上方一致的淡绿色背景 */
    padding: 22px 20px;
    border-radius: 14px; /* 同上方圆角 */
    border: 1px solid rgba(34, 197, 94, 0.25); /* 同上方描边 */
    backdrop-filter: blur(10px);
    width: 220px; /* 同上方宽度 */
    min-height: 160px; /* 比上方稍矮 */
    box-shadow: inset 0 0 0 2px rgba(34,197,94,.08), 0 10px 24px rgba(0,0,0,.25);
    text-align: center; /* 内容居中 */
}

.stock-symbol {
    font-size: 1.6rem;
    font-weight: 500; /* 取消过度加粗 */
    color: #2dd4ff; /* 青色标题，贴近图片 */
    margin-bottom: 8px;
}

.stock-name {
    font-size: 0.9rem;
    color: #cbd5e1;
    margin-bottom: 10px;
}

.stock-price {
    font-size: 1.2rem;
    color: #fde047; /* 黄色价格 */
    font-weight: 800;
    margin-bottom: 6px;
}

.stock-change {
    font-size: 0.9rem;
    font-weight: 600;
}

.stock-change.positive {
    color: #22c55e;
}

.stock-change.negative {
    color: #ef4444;
}

/* Footer */
.footer {
    margin-top: 24px; /* 减小与上方区域的间距 */
    padding: 30px 0;
    border-top: 1px solid rgba(34, 197, 94, 0.2);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.footer-link {
    color: white;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #22c55e;
}

.footer-text {
    color: #64748b;
    font-size: 0.8rem;
    line-height: 1.6;
}

/* Modal styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-radius: 20px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 2px solid rgba(34, 197, 94, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.8);
    transition: all 0.3s ease;
    position: relative;
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #22c55e;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content {
    color: #e2e8f0;
    line-height: 1.6;
}

/* Analysis process modal */
.analysis-step {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border-left: 4px solid transparent;
    transition: all 0.5s ease;
}

.analysis-step.active {
    border-left-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.analysis-step.completed {
    border-left-color: #16a34a;
    background: rgba(22, 163, 74, 0.15);
}

.step-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.analysis-step.active .step-icon {
    background: #22c55e;
    color: #0f172a;
    animation: pulse 1s ease-in-out infinite;
}

.analysis-step.completed .step-icon {
    background: #16a34a;
    color: white;
}

.step-text {
    flex: 1;
    font-weight: 500;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(34, 197, 94, 0.2);
    border-radius: 4px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #22c55e, #16a34a);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 4px;
}

/* Result modal */
.result-content {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    50% { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(34, 197, 94, 0); }
}

.result-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #22c55e;
    margin-bottom: 15px;
}

.result-description {
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 30px;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    animation: bounce 2s ease-in-out infinite;
    border: none;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.whatsapp-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.6);
    animation: none;
}

.whatsapp-button .whatsapp-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

/* Info modal content */
.info-section {
    margin-bottom: 20px;
}

.info-section h3 {
    color: #22c55e;
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.info-section p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 10px;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    .main-title {
        font-size: 2.5rem;
    }
    
    .subtitle-main {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
        margin-top: 25px;
    }
    
    .performance-grid {
        grid-template-columns: 1fr;
    }
    
    .stock-examples {
        grid-template-columns: 1fr;
    }
    
    .top-logo {
        max-width: 150px;
    }
    
    .modal {
        padding: 20px;
        margin: 20px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }
    
    .top-logo {
        max-width: 120px;
    }
}
