/* ChronoFlow - Pixel Perfect Replica of StockNews.ai Design */

/* Import Archivo font */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&display=swap');

/* Root Variables - Extracted from stocknews.ai */
:root {
    --primary-blue: #096cff;
    --text-dark: #111827;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --white: #ffffff;
    --border-light: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --gradient-bg: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Archivo', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
}

/* Typography - Exact matches from stocknews.ai */
h1 {
    font-size: 56px;
    font-weight: 700;
    line-height: 70px;
    color: var(--text-dark);
}

h2 {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-dark);
}

h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
}

h4 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Header Styles */
.navbar {
    padding: 12px 0;
    box-shadow: var(--shadow-sm);
    background: var(--white) !important;
}

.navbar-brand {
    text-decoration: none;
}

.logo-container {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
}

.logo-text {
    background: linear-gradient(135deg, var(--primary-blue), #7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-link {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 8px 16px !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-blue) !important;
}

.search-input {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    width: 250px;
}

.search-btn {
    border: none;
    background: none;
    color: var(--text-light);
    padding: 8px 12px;
}

/* Button Styles - Exact replica */
.btn-primary {
    background-color: var(--primary-blue);
    border: none;
    border-radius: 46px;
    padding: 20px 32px;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #0056d6;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: var(--white);
}

.btn-outline-primary {
    border: 2px solid var(--primary-blue);
    border-radius: 46px;
    padding: 18px 30px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-blue);
    background: transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 20px 40px;
    font-size: 18px;
}

/* Hero Section - Exact spacing from stocknews.ai */
.hero-section {
    background: var(--gradient-bg);
    padding: 120px 90px 0px;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.intro-section {
    background: var(--white);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 60px;
}

.intro-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.intro-text {
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-dark);
    text-align: left;
}

.hero-title {
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--text-dark), #374151);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-bottom: 80px;
}

/* Demo Container - Replica of stocknews.ai demo */
.demo-container {
    position: relative;
    z-index: 2;
}

.demo-window {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    margin: 0 auto;
}

.window-header {
    background: #334155;
    padding: 12px 16px;
    display: flex;
    align-items: center;
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ef4444;
}

.control.yellow {
    background: #f59e0b;
}

.control.green {
    background: #10b981;
}

.demo-content {
    padding: 24px;
    background: var(--white);
}

.demo-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.company-logo {
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary-blue);
}

.demo-text h6 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.demo-analysis {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.analysis-text {
    font-size: 14px;
    color: var(--text-light);
}

.analysis-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.tag.positive {
    background: #dcfce7;
    color: #166534;
}

.tag.neutral {
    background: #fef3c7;
    color: #92400e;
}

.tag.negative {
    background: #fee2e2;
    color: #991b1b;
}

.analysis-points {
    font-size: 14px;
    color: var(--text-dark);
}

.analysis-points p {
    margin-bottom: 8px;
}

/* Hero Decorations */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.decoration-star-1 {
    position: absolute;
    top: 20%;
    left: 15%;
    font-size: 24px;
    color: #60a5fa;
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

.decoration-star-2 {
    position: absolute;
    bottom: 30%;
    right: 20%;
    font-size: 16px;
    color: #a78bfa;
    opacity: 0.4;
    animation: float 4s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 40px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: 16px;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-blue), #7c3aed);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 24px;
    color: var(--white);
}

.feature-card h4 {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.6;
}

/* Technology Section */
.technology-section {
    background: var(--bg-light);
}

.tech-article {
    background: var(--white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.tech-article:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.article-image {
    height: 200px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tech-article:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 24px;
}

.article-content h4 {
    margin-bottom: 16px;
    font-size: 20px;
    font-weight: 600;
}

.article-content p {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 16px;
}

.read-more {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #0056d6;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--gradient-bg);
}

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}

.contact-form .form-control {
    border: 2px solid var(--border-light);
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(9, 108, 255, 0.1);
}

.thank-you-message {
    text-align: center;
    padding: 40px;
}

.success-icon {
    font-size: 48px;
    color: #10b981;
    margin-bottom: 24px;
}

.thank-you-message h3 {
    color: var(--text-dark);
    margin-bottom: 16px;
}

.thank-you-message p {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
}

/* Pricing Styles */
.pricing-main {
    padding-top: 80px;
}

.pricing-hero {
    background: var(--gradient-bg);
    padding: 60px 0;
}

.pricing-plans {
    padding: 80px 0;
}

.pricing-card {
    background: var(--white);
    border-radius: 16px;
    padding: 40px 24px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary-blue);
    transform: scale(1.05);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-blue);
    color: var(--white);
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-blue), #7c3aed);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 24px;
    color: var(--white);
}

.pricing-price {
    margin-bottom: 24px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-dark);
}

.period {
    font-size: 16px;
    color: var(--text-light);
    display: block;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
    margin-bottom: 32px;
}

.pricing-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.pricing-features .fas {
    color: #10b981;
    font-size: 16px;
}

.pricing-cta {
    text-align: center;
}

.feature-item {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 24px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}

.feature-item .feature-icon {
    width: 48px;
    height: 48px;
    margin: 0;
    flex-shrink: 0;
}

.feature-content h4 {
    margin-bottom: 12px;
    font-size: 18px;
}

.feature-content p {
    color: var(--text-light);
    margin: 0;
}

/* Legal Pages */
.legal-main {
    padding-top: 80px;
}

.legal-hero {
    background: var(--gradient-bg);
    padding: 60px 0;
}

.legal-content {
    padding: 80px 0;
}

.legal-document {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.legal-document h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 32px 0 16px 0;
}

.legal-document h2:first-child {
    margin-top: 0;
}

.legal-document h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 24px 0 12px 0;
}

.legal-document p {
    margin-bottom: 16px;
    line-height: 1.7;
    color: var(--text-dark);
}

.legal-document ul {
    margin-bottom: 16px;
    padding-left: 24px;
}

.legal-document li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: var(--text-dark);
}

/* Footer */
.footer {
    padding: 24px 48px 80px;
    background: #1f2937 !important;
}

.footer-brand .logo-container {
    font-size: 20px;
}

.footer-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.contact-info p {
    margin-bottom: 8px;
    font-size: 14px;
    color: #9ca3af;
}

.contact-info a {
    color: #9ca3af;
    text-decoration: none;
}

.contact-info a:hover {
    color: var(--white);
}

.footer-divider {
    border-color: #374151;
    margin: 32px 0 16px 0;
}

.copyright {
    color: #9ca3af;
    font-size: 14px;
    margin: 0;
}

/* Accordion Styles */
.accordion-item {
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 16px;
}

.accordion-button {
    background: var(--white);
    border: none;
    padding: 20px 24px;
    font-weight: 600;
    color: var(--text-dark);
}

.accordion-button:not(.collapsed) {
    background: var(--bg-light);
    color: var(--primary-blue);
}

.accordion-body {
    padding: 20px 24px;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 80px 20px 0px;
    }
    
    h1 {
        font-size: 36px;
        line-height: 44px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .search-input {
        width: 200px;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .demo-item {
        flex-direction: column;
    }
    
    .contact-form-container {
        margin: 0 20px;
        padding: 24px;
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 60px 16px 0px;
    }
    
    h1 {
        font-size: 28px;
        line-height: 36px;
    }
    
    .intro-section {
        padding: 24px;
    }
    
    .intro-title {
        font-size: 24px;
    }
    
    .intro-text {
        font-size: 16px;
    }
    
    .btn-primary, .btn-outline-primary {
        padding: 16px 24px;
        font-size: 14px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .footer {
        padding: 24px 16px 40px;
    }
}
