/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    color: #4ade80;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

/* Buttons */
button {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #0f172a;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 222, 128, 0.3);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 222, 128, 0.4);
}

button:active {
    transform: translateY(0);
}

/* Inputs */
input[type="text"] {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

input[type="text"]:focus {
    outline: none;
    border-color: #4ade80;
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.1);
}

/* Search Container */
.search-container {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    max-width: 600px;
    width: 100%;
}

.search-container input {
    flex: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(74, 222, 128, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Popular Searches */
.popular-searches {
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.popular-searches span {
    color: #94a3b8;
    font-size: 0.875rem;
}

.popular-ticker {
    color: #4ade80;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    background: rgba(74, 222, 128, 0.1);
    transition: all 0.3s ease;
}

.popular-ticker:hover {
    background: rgba(74, 222, 128, 0.2);
    transform: translateY(-1px);
}

/* Progress Bar */
.progress-container {
    margin: 2rem 0;
    max-width: 400px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.progress-bar {
    background: rgba(30, 41, 59, 0.8);
    height: 6px;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    background: linear-gradient(90deg, #4ade80 0%, #22c55e 100%);
    height: 100%;
    width: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 0.875rem;
    color: #94a3b8;
    margin: 0;
}

/* Features Section */
.features {
    padding: 4rem 2rem;
    background: #0f172a;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: #4ade80;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: #0f172a;
}

.feature-icon svg {
    width: 32px;
    height: 32px;
}

/* Dashboard Section */
.dashboard {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.dashboard-subtitle {
    text-align: center;
    margin-bottom: 3rem;
    color: #94a3b8;
    font-size: 1.125rem;
}

.dashboard-card {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid #334155;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.dashboard-card h3 {
    margin-bottom: 1.5rem;
    color: #4ade80;
}

/* Opportunities Grid */
.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.opportunity-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    padding: 1.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.opportunity-card:hover {
    transform: translateY(-2px);
    border-color: #4ade80;
}

.opportunity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.opportunity-ticker {
    font-weight: 700;
    font-size: 1.25rem;
    color: #4ade80;
}

.opportunity-change {
    font-weight: 600;
    color: #4ade80;
    font-size: 0.875rem;
}

.opportunity-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.opportunity-sector {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.opportunity-tag {
    display: inline-block;
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Sector Table */
.sector-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
    overflow: hidden;
}

.sector-table th {
    background: linear-gradient(135deg, #4ade80 0%, #22c55e 100%);
    color: #0f172a;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.sector-table td {
    padding: 1rem;
    border-bottom: 1px solid #334155;
    color: #cbd5e1;
}

.sector-table tr:last-child td {
    border-bottom: none;
}

.sector-table tr:hover {
    background: rgba(74, 222, 128, 0.05);
}

/* Market Snapshot Grid */
.market-snapshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.snapshot-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid #334155;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.snapshot-card:hover {
    transform: translateY(-2px);
    border-color: #4ade80;
}

.snapshot-label {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 0.5rem;
}

.snapshot-value {
    font-size: 2rem;
    font-weight: 700;
    color: #4ade80;
    margin-bottom: 0.25rem;
}

.snapshot-change {
    font-size: 0.875rem;
    color: #4ade80;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    padding: 6rem 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(74, 222, 128, 0.1) 0%, transparent 70%);
    z-index: 0;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    margin-bottom: 1rem;
}

.cta p {
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: #0f172a;
    padding: 2rem;
    text-align: center;
    border-top: 1px solid #334155;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.disclaimer {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.copyright {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .search-container {
        flex-direction: column;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .opportunities-grid {
        grid-template-columns: 1fr;
    }
    
    .market-snapshot-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .sector-table {
        font-size: 0.875rem;
    }
    
    .sector-table th,
    .sector-table td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.875rem;
    }
    
    .hero,
    .features,
    .dashboard,
    .cta {
        padding: 2rem 1rem;
    }
    
    .dashboard-card {
        padding: 1.5rem;
    }
    
    .market-snapshot-grid {
        grid-template-columns: 1fr;
    }
    
    .sector-table {
        display: block;
        overflow-x: auto;
    }
}