/* TradingView Official Site - Global Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; color: #333; line-height: 1.6; background: #fff; }
a { color: #2962FF; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header { background: #131722; padding: 0; position: sticky; top: 0; z-index: 1000; }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.logo { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.logo span { color: #2962FF; }
.main-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a { color: #d1d4dc; padding: 8px 14px; border-radius: 4px; font-size: 14px; font-weight: 500; transition: background 0.2s; }
.main-nav a:hover { background: #2962FF; color: #fff; text-decoration: none; }

/* Hero */
.hero { background: linear-gradient(135deg, #131722 0%, #1e2235 50%, #2962FF 100%); color: #fff; padding: 80px 20px; text-align: center; }
.hero h1 { font-size: 42px; margin-bottom: 16px; font-weight: 800; }
.hero p { font-size: 18px; max-width: 700px; margin: 0 auto 32px; color: #d1d4dc; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 14px 32px; border-radius: 6px; font-size: 16px; font-weight: 600; transition: transform 0.2s, box-shadow 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); text-decoration: none; }
.btn-primary { background: #2962FF; color: #fff; }
.btn-secondary { background: transparent; color: #fff; border: 2px solid #fff; }
.btn-download { background: #00C853; color: #fff; }
.btn-download:hover { background: #00B84A; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 60px 20px; }
.section-title { font-size: 32px; text-align: center; margin-bottom: 12px; color: #131722; }
.section-desc { text-align: center; color: #666; max-width: 600px; margin: 0 auto 48px; font-size: 16px; }

/* Feature Cards */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card { background: #f8f9fd; border-radius: 12px; padding: 32px; text-align: center; transition: box-shadow 0.3s, transform 0.3s; border: 1px solid #e8eaed; }
.feature-card:hover { box-shadow: 0 8px 24px rgba(41,98,255,0.1); transform: translateY(-4px); }
.feature-icon { font-size: 48px; margin-bottom: 16px; }
.feature-card h3 { font-size: 20px; margin-bottom: 12px; color: #131722; }
.feature-card p { color: #666; font-size: 15px; line-height: 1.7; }

/* Stats */
.stats-section { background: #131722; color: #fff; padding: 60px 20px; }
.stats-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; text-align: center; }
.stat-item h3 { font-size: 42px; color: #2962FF; margin-bottom: 8px; }
.stat-item p { color: #d1d4dc; font-size: 15px; }

/* FAQ */
.faq-category { margin-bottom: 40px; }
.faq-category h3 { font-size: 22px; color: #2962FF; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #2962FF; }
.faq-item { margin-bottom: 24px; background: #f8f9fd; border-radius: 8px; padding: 24px; border: 1px solid #e8eaed; }
.faq-item h4 { font-size: 18px; color: #131722; margin-bottom: 16px; }
.faq-steps { list-style: none; }
.faq-steps li { padding: 10px 0 10px 36px; position: relative; color: #555; line-height: 1.8; font-size: 15px; border-bottom: 1px solid #eee; }
.faq-steps li:last-child { border-bottom: none; }
.faq-steps li::before { content: attr(data-step); position: absolute; left: 0; top: 10px; width: 26px; height: 26px; background: #2962FF; color: #fff; border-radius: 50%; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* Download Page */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.download-card { background: #f8f9fd; border-radius: 12px; padding: 32px; text-align: center; border: 1px solid #e8eaed; transition: box-shadow 0.3s; }
.download-card:hover { box-shadow: 0 8px 24px rgba(41,98,255,0.1); }
.download-card .platform-icon { font-size: 48px; margin-bottom: 12px; }
.download-card h3 { font-size: 20px; margin-bottom: 8px; color: #131722; }
.download-card p { color: #666; font-size: 14px; margin-bottom: 20px; }

/* About */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: #2962FF; }
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before { content: ''; position: absolute; left: -33px; top: 4px; width: 16px; height: 16px; background: #2962FF; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px #2962FF; }
.timeline-item h4 { font-size: 18px; color: #131722; margin-bottom: 4px; }
.timeline-item .year { color: #2962FF; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.timeline-item p { color: #666; font-size: 15px; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; }
.contact-card { background: #f8f9fd; border-radius: 12px; padding: 32px; border: 1px solid #e8eaed; }
.contact-card h3 { font-size: 20px; margin-bottom: 16px; color: #131722; }
.contact-card p { color: #666; font-size: 15px; margin-bottom: 8px; }

/* CTA Section */
.cta-section { background: linear-gradient(135deg, #2962FF, #1e88e5); color: #fff; padding: 60px 20px; text-align: center; }
.cta-section h2 { font-size: 32px; margin-bottom: 16px; }
.cta-section p { font-size: 18px; margin-bottom: 32px; color: rgba(255,255,255,0.9); }

/* Footer */
.site-footer { background: #131722; color: #d1d4dc; padding: 40px 20px 20px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; margin-bottom: 24px; }
.footer-nav a { color: #d1d4dc; font-size: 14px; }
.footer-nav a:hover { color: #2962FF; }
.footer-bottom { text-align: center; padding-top: 20px; border-top: 1px solid #2a2e39; font-size: 13px; color: #787b86; }

/* Breadcrumb */
.breadcrumb { background: #f8f9fd; padding: 12px 20px; font-size: 14px; color: #666; }
.breadcrumb a { color: #2962FF; }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; }

/* Page Header */
.page-header { background: linear-gradient(135deg, #131722, #1e2235); color: #fff; padding: 48px 20px; text-align: center; }
.page-header h1 { font-size: 36px; margin-bottom: 12px; }
.page-header p { color: #d1d4dc; font-size: 16px; max-width: 600px; margin: 0 auto; }

/* Responsive */
@media (max-width: 768px) {
    .hero h1 { font-size: 28px; }
    .hero p { font-size: 16px; }
    .section-title { font-size: 24px; }
    .header-inner { flex-direction: column; gap: 12px; }
    .main-nav { justify-content: center; }
    .page-header h1 { font-size: 28px; }
}
