/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #2563eb;
    --primary-hover: #1d4ed8;
    --success: #16a34a;
    --destructive: #dc2626;
    --neutral-50: #f9fafb;
    --neutral-100: #f3f4f6;
    --neutral-200: #e5e7eb;
    --neutral-300: #d1d5db;
    --neutral-400: #9ca3af;
    --neutral-500: #6b7280;
    --neutral-600: #4b5563;
    --neutral-700: #374151;
    --neutral-800: #1f2937;
    --neutral-900: #111827;
    --white: #ffffff;
    --radius: 0.5rem;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.5;
    color: var(--neutral-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.125rem;
    color: var(--neutral-600);
    max-width: 42rem;
    margin: 0 auto;
}

/* Layout */
.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.container-small {
    max-width: 48rem;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--neutral-700);
    border: 1px solid var(--neutral-300);
}

.btn-outline:hover {
    background-color: var(--neutral-50);
}

.full-width {
    width: 100%;
}

/* Cards */
.card {
    background-color: var(--white);
    border-radius: var(--radius);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    background-color: var(--neutral-50);
    border-bottom: 1px solid var(--neutral-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--neutral-800);
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    background-color: var(--neutral-100);
    color: var(--neutral-700);
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    border-bottom: 1px solid var(--neutral-200);
    position: sticky;
    top: 0;
    z-index: 50;
}

.nav-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background-color: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--neutral-800);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--neutral-500);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--neutral-500);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--white);
    border-top: 1px solid var(--neutral-200);
    padding: 1rem;
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem;
    color: var(--neutral-500);
    text-decoration: none;
    font-size: 1rem;
    border-radius: var(--radius);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    color: var(--primary);
    background-color: var(--neutral-50);
}

/* Hero Section */
.hero-section {
    background-color: var(--white);
    padding: 5rem 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--neutral-800);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-title .text-primary {
    color: var(--primary);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--neutral-600);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.dashboard-mockup {
    background-color: var(--neutral-100);
    border-radius: 1rem;
    padding: 1.5rem;
}

.dashboard-mockup .card {
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.stock-list {
    padding: 1rem;
}

.stock-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem;
    background-color: var(--neutral-50);
    border-radius: var(--radius);
    margin-bottom: 0.75rem;
}

.stock-item:last-child {
    margin-bottom: 0;
}

.stock-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.stock-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.stock-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.stock-exchange {
    font-size: 0.75rem;
    color: var(--neutral-500);
}

.stock-price {
    text-align: right;
}

.price {
    font-size: 0.875rem;
    font-weight: 600;
}

.change {
    font-size: 0.75rem;
}

.change.positive {
    color: var(--success);
}

.change.negative {
    color: var(--destructive);
}

/* Market Overview Section */
.market-overview {
    background-color: var(--neutral-100);
    padding: 4rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.indices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.index-card {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
    transition: box-shadow 0.2s;
}

.index-card:hover {
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
}

.index-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.index-name {
    font-weight: 600;
    color: var(--neutral-800);
}

.index-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--neutral-800);
    margin-bottom: 0.5rem;
}

.index-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
}

.index-change.positive {
    background-color: #dcfce7;
    color: var(--success);
}

.index-change.negative {
    background-color: #fee2e2;
    color: var(--destructive);
}

.index-update {
    font-size: 0.75rem;
    color: var(--neutral-500);
    margin-top: 0.5rem;
}

/* Live Market Section */
.live-market {
    background-color: var(--white);
    padding: 4rem 0;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--neutral-500);
}

.live-dot {
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.table-container {
    overflow-x: auto;
}

.stocks-table {
    width: 100%;
    border-collapse: collapse;
}

.stocks-table th {
    background-color: var(--neutral-50);
    padding: 0.75rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--neutral-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stocks-table td {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--neutral-200);
}

.stocks-table tbody tr:hover {
    background-color: var(--neutral-50);
}

.market-badge {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border: 1px solid;
    border-radius: var(--radius);
}

.market-badge.us {
    border-color: #2563eb;
    color: #2563eb;
}

.market-badge.in {
    border-color: #ea580c;
    color: #ea580c;
}

/* About Section */
.about-section {
    background-color: var(--neutral-100);
    padding: 4rem 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.about-description {
    font-size: 1.125rem;
    color: var(--neutral-600);
    line-height: 1.75;
    margin-bottom: 1.5rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    gap: 0.75rem;
}

.feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.feature-item h4 {
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 0.25rem;
}

.feature-item p {
    font-size: 0.875rem;
    color: var(--neutral-600);
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 1rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

/* Contact Section */
.contact-section {
    background-color: var(--white);
    padding: 4rem 0;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 1.5rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    gap: 1rem;
}

.info-icon {
    width: 2.5rem;
    height: 2.5rem;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.info-item h4 {
    font-weight: 500;
    color: var(--neutral-800);
    margin-bottom: 0.25rem;
}

.info-item p {
    color: var(--neutral-600);
    white-space: pre-line;
}

.contact-form-container .card {
    background-color: var(--neutral-50);
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--neutral-700);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--neutral-300);
    border-radius: var(--radius);
    font-size: 0.875rem;
    background-color: var(--white);
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Privacy Section */
.privacy-section {
    background-color: var(--neutral-100);
    padding: 4rem 0;
}

.privacy-content {
    padding: 2rem;
}

.privacy-section-item {
    margin-bottom: 2rem;
}

.privacy-section-item:last-child {
    margin-bottom: 0;
}

.privacy-section-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--neutral-800);
    margin-bottom: 1rem;
}

.privacy-section-item p {
    color: var(--neutral-600);
    margin-bottom: 1rem;
}

.privacy-section-item ul {
    list-style: disc;
    list-style-position: inside;
    color: var(--neutral-600);
}

.privacy-section-item ul li {
    margin-bottom: 0.5rem;
}

.link {
    color: var(--primary);
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background-color: var(--neutral-800);
    color: var(--white);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-company .logo {
    margin-bottom: 1rem;
}

.footer-company .logo-text {
    color: var(--white);
}

.footer-description {
    color: var(--neutral-300);
    max-width: 28rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--neutral-400);
    transition: color 0.2s;
}

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

.footer-links h4 {
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links ul li a {
    color: var(--neutral-300);
    text-decoration: none;
    transition: color 0.2s;
}

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

.footer-bottom {
    border-top: 1px solid var(--neutral-700);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    color: var(--neutral-400);
    font-size: 0.875rem;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    z-index: 100;
}

.toast {
    background-color: var(--white);
    border-radius: var(--radius);
    padding: 1rem;
    margin-top: 0.5rem;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

.toast.success {
    border-left: 4px solid var(--success);
}

.toast.error {
    border-left: 4px solid var(--destructive);
}

.toast-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.toast-description {
    font-size: 0.875rem;
    color: var(--neutral-600);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Utility Classes */
.hidden {
    display: none !important;
}

.text-primary {
    color: var(--primary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .desktop-nav,
    .desktop-only {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .mobile-nav {
        display: block;
    }

    .hero-content,
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .stocks-table {
        min-width: 600px;
    }
}