
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #764ba2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    text-shadow: 0 0 10px rgba(118, 75, 162, 0.3);
}

.credentials {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    color: #666;
}

/* Hero Section */
.hero {
    padding: 80px 0;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)" /></svg>');
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(10px, 10px); }
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: pulse 2s infinite, slideInDown 1s ease-out;
    position: relative;
    z-index: 2;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

@keyframes slideInDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.hero-subtitle {
    font-size: 24px;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: slideInUp 1s ease-out 0.3s both;
    position: relative;
    z-index: 2;
}

@keyframes slideInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Stock Analyzer Tool */
.analyzer-tool {
    background: white;
    border-radius: 20px;
    padding: 40px;
    margin: 40px auto;
    max-width: 600px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    transform: translateY(-40px);
    animation: slideInUp 1s ease-out 0.6s both;
    position: relative;
    z-index: 2;
}

.tool-header {
    text-align: center;
    margin-bottom: 30px;
}

.tool-header h2 {
    color: #764ba2;
    font-size: 28px;
    margin-bottom: 10px;
}

.stock-input {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.stock-input input {
    flex: 1;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: linear-gradient(45deg, #f8f9fa, #fff);
}

.stock-input input:focus {
    outline: none;
    border-color: #764ba2;
    box-shadow: 0 0 15px rgba(118, 75, 162, 0.2);
    transform: scale(1.02);
}

.analyze-btn {
    padding: 15px 30px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.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.5s;
}

.analyze-btn:hover::before {
    left: 100%;
}

.analyze-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(118, 75, 162, 0.3);
}

.analyze-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.quick-stocks {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

.quick-stock {
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    border: 2px solid transparent;
}

.quick-stock:hover {
    background: #764ba2;
    color: white;
    transform: scale(1.1);
    border-color: #667eea;
}

/* Loading Animation */
.loading-container {
    display: none;
    text-align: center;
    padding: 30px;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #764ba2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.loading-progress {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 15px;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(45deg, #667eea, #764ba2);
    width: 0%;
    animation: progress 3s ease-in-out;
}

@keyframes progress {
    0% { width: 0%; }
    33% { width: 30%; }
    66% { width: 70%; }
    100% { width: 100%; }
}

.loading-steps {
    text-align: left;
    font-size: 14px;
    color: #999;
}

.loading-step {
    opacity: 0.3;
    transition: all 0.5s ease;
    margin-bottom: 5px;
}

.loading-step.active {
    opacity: 1;
    color: #764ba2;
    font-weight: bold;
}

.loading-step.completed {
    opacity: 0.7;
    color: #27ae60;
}

.loading-step::before {
    content: '⏳ ';
}

.loading-step.active::before {
    content: '🔄 ';
}

.loading-step.completed::before {
    content: '✅ ';
}

/* Analysis Result */
.analysis-result {
    display: none;
    margin-top: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    animation: slideInUp 0.8s ease-out;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.stock-name {
    font-size: 20px;
    font-weight: bold;
    color: #333;
}

.health-score {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-circle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 18px;
    animation: scoreAnimation 2s ease-out;
}

@keyframes scoreAnimation {
    0% { transform: scale(0) rotate(0deg); }
    50% { transform: scale(1.2) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}

.metric {
    background: white;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    transition: all 0.3s ease;
    animation: slideInUp 0.8s ease-out;
}

.metric:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.metric-value {
    font-size: 24px;
    font-weight: bold;
    color: #764ba2;
}

.metric-label {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

/* CTA Buttons */
.cta-buttons {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.btn-primary {
    flex: 1;
    padding: 15px 25px;
    background: linear-gradient(45deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-secondary {
    flex: 1;
    padding: 15px 25px;
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before, .btn-secondary::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.5s;
}

.btn-primary:hover::before, .btn-secondary:hover::before {
    left: 100%;
}

.btn-primary:hover, .btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Modal Popup */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    text-align: center;
    animation: slideInDown 0.5s ease-out;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #000;
}

.modal-icon {
    font-size: 64px;
    margin-bottom: 20px;
    animation: bounce 1s ease-out;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.modal-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
}

.modal-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    line-height: 1.6;
}

.whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(45deg, #25D366, #20BA5A);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon {
    font-size: 24px;
}

/* Floating Elements */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
}

.floating-element {
    position: absolute;
    opacity: 0.1;
    animation: floatElement 15s linear infinite;
}

@keyframes floatElement {
    0% { transform: translateY(100vh) rotate(0deg); }
    100% { transform: translateY(-100px) rotate(360deg); }
}

/* Features Section */
.features {
    background: white;
    padding: 80px 0;
    position: relative;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 60px;
    color: #333;
    animation: slideInUp 1s ease-out;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    transform: translateY(0);
    transition: all 0.3s ease;
    animation: slideInUp 1s ease-out;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(118, 75, 162, 0.3);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

.feature-title {
    font-size: 24px;
    margin-bottom: 15px;
}

/* Market Data */
.market-data {
    background: #f8f9fa;
    padding: 80px 0;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.data-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    animation: slideInUp 1s ease-out;
}

.data-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.data-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.data-list {
    list-style: none;
}

.data-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.data-list li:hover {
    background: #f8f9fa;
    padding-left: 10px;
}

.positive { color: #27ae60; font-weight: bold; }
.negative { color: #e74c3c; font-weight: bold; }

/* Learning System */
.learning-system {
    background: white;
    padding: 80px 0;
}

.learning-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.level-card {
    border: 2px solid #e0e0e0;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: slideInUp 1s ease-out;
}

.level-card:hover {
    border-color: #764ba2;
    transform: scale(1.02);
}

.level-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.level-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.level-price {
    font-size: 36px;
    font-weight: bold;
    color: #764ba2;
    margin-bottom: 20px;
}

.level-features {
    list-style: none;
    margin-bottom: 30px;
}

.level-features li {
    padding: 8px 0;
    color: #666;
}

.level-features li:before {
    content: '✓';
    color: #27ae60;
    font-weight: bold;
    margin-right: 10px;
}

/* Testimonials */
.testimonials {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.testimonial {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    animation: slideInUp 1s ease-out;
}

.testimonial:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.testimonial-content {
    font-size: 16px;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    font-weight: bold;
    color: #f0f0f0;
}

.testimonial-result {
    font-size: 24px;
    font-weight: bold;
    color: #27ae60;
    margin-top: 10px;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #764ba2;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    padding: 5px 0;
    color: #ccc;
    transition: color 0.3s ease;
}

.footer-section li:hover {
    color: #764ba2;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    color: #999;
}

.disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
    padding: 15px;
    border-radius: 10px;
    margin: 20px 0;
    font-size: 14px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 36px; }
    .hero-subtitle { font-size: 18px; }
    .analyzer-tool { margin: 20px; padding: 25px; }
    .stock-input { flex-direction: column; }
    .cta-buttons { flex-direction: column; }
    .features-grid { grid-template-columns: 1fr; }
    .quick-stocks { justify-content: flex-start; }
    .modal-content { margin: 10% auto; padding: 30px; }
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Scroll animations */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
