/* Base Styles */
:root {
    /* Color palette - blue primary, teal accent */
    --primary-color: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    --accent-color: #14b8a6;
    --accent-light: #2dd4bf;
    --accent-dark: #0d9488;
    
    /* Neutral colors */
    --neutral-100: #f1f5f9;
    --neutral-200: #e2e8f0;
    --neutral-300: #cbd5e1;
    --neutral-400: #94a3b8;
    --neutral-500: #64748b;
    --neutral-600: #475569;
    --neutral-700: #334155;
    --neutral-800: #1e293b;
    --neutral-900: #0f172a;
    
    /* Semantic colors */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    
    /* UI elements */
    --box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05), 0 6px 6px rgba(0, 0, 0, 0.07);
    --box-shadow-small: 0 4px 6px rgba(0, 0, 0, 0.05);
    --border-radius: 10px;
    --border-radius-small: 6px;
    
    /* Market mood colors */
    --bullish-color: var(--success-color);
    --neutral-market-color: var(--warning-color);
    --bearish-color: var(--danger-color);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

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

body {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--neutral-800);
    background-color: var(--neutral-100);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
}

ul, ol {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75em;
    color: var(--neutral-900);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
}

h3 {
    font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
}

p {
    margin-bottom: 1.2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-small);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 1rem;
    border: none;
    letter-spacing: 0.01em;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-small);
}

.btn-outline:active {
    transform: translateY(-1px);
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
    border-radius: var(--border-radius);
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 5%;
    background-color: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
}

nav.scrolled {
    padding: 0.75rem 5%;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    color: var(--neutral-700);
    transition: color var(--transition-fast);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 3px;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform var(--transition-normal);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1010;
    transition: all var(--transition-normal);
}

.bar {
    width: 28px;
    height: 3px;
    background-color: var(--neutral-800);
    margin: 3px 0;
    border-radius: 3px;
    transition: var(--transition-normal);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 90vh;
    padding: 10rem 5% 5rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e6f7ff 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
    z-index: 1;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: var(--neutral-600);
    margin-bottom: 2.5rem;
}

.highlight {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(59, 130, 246, 0.15);
    z-index: -1;
    border-radius: 4px;
}

/* Features Section */
.features {
    padding: 5rem 5%;
    background-color: white;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--neutral-600);
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow-small);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--neutral-600);
}

/* How It Works Section */
.how-it-works {
    padding: 5rem 5%;
    background-color: var(--neutral-100);
    position: relative;
    overflow: hidden;
}

.how-it-works::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.1) 0%, rgba(20, 184, 166, 0) 70%);
}

.steps {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 2rem;
    width: 2px;
    background-color: var(--primary-light);
    opacity: 0.3;
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    position: relative;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.5s ease;
}

.step.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.step-number {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.5rem;
    flex-shrink: 0;
    z-index: 2;
}

.step-content {
    margin-left: 1.5rem;
    background-color: white;
    border-radius: var(--border-radius);
    padding: 1.5rem 2rem;
    box-shadow: var(--box-shadow-small);
}

.step-content h3 {
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--neutral-600);
}

/* Chatbot Preview Section */
.chatbot-preview {
    padding: 5rem 5%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: white;
}

.section-header.light h2,
.section-header.light p {
    color: white;
}

.chat-container {
    max-width: 500px;
    margin: 3rem auto;
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: 1rem;
}

.chat-title h3 {
    color: white;
    margin-bottom: 0;
    font-size: 1.1rem;
}

.chat-title p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin: 0;
}

.chat-messages {
    height: 350px;
    overflow-y: auto;
    padding: 1.5rem;
    background-color: var(--neutral-100);
}

.message {
    margin-bottom: 1.5rem;
    max-width: 80%;
}

.message.user {
    margin-left: auto;
    background-color: var(--primary-color);
    color: white;
    border-radius: 1rem 1rem 0.3rem 1rem;
    padding: 0.8rem 1.2rem;
}

.message.bot {
    background-color: white;
    color: var(--neutral-800);
    border-radius: 1rem 1rem 1rem 0.3rem;
    padding: 1rem 1.2rem;
    box-shadow: var(--box-shadow-small);
}

.message.bot ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
    list-style-type: disc;
}

.message.bot ul li {
    margin-bottom: 0.3rem;
}

.typing-indicator {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.3rem;
}

.typing-indicator span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--neutral-400);
    animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) {
    animation-delay: 0s;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typing {
    0%, 60%, 100% {
        transform: translateY(0);
    }
    30% {
        transform: translateY(-6px);
    }
}

.chat-input {
    display: flex;
    padding: 1rem;
    border-top: 1px solid var(--neutral-200);
}

.chat-input input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--neutral-300);
    border-radius: 2rem;
    font-family: inherit;
    font-size: 0.95rem;
    margin-right: 0.8rem;
    outline: none;
    transition: border-color var(--transition-fast);
}

.chat-input input:focus {
    border-color: var(--primary-color);
}

.send-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.send-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.chatbot-cta {
    text-align: center;
    margin-top: 2rem;
}

/* Market Pulse Section */
.market-pulse-section {
    padding: 5rem 5%;
    background-color: white;
}

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

.market-card {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow-small);
    transition: transform var(--transition-normal);
    opacity: 0;
    transform: translateY(30px);
}

.market-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.market-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--box-shadow);
}

.market-card h3 {
    margin-bottom: 1rem;
}

.market-value {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.market-value span {
    font-size: 1rem;
    font-weight: 600;
}

.market-value.up span {
    color: var(--bullish-color);
}

.market-value.down span {
    color: var(--bearish-color);
}

.market-detail {
    margin-bottom: 1.5rem;
    color: var(--neutral-600);
}

.market-mood-indicator {
    position: relative;
    margin-top: 1.5rem;
}

.mood-bar {
    display: flex;
    height: 6px;
    background-color: var(--neutral-200);
    border-radius: 3px;
    overflow: hidden;
}

.mood-segment {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    padding-top: 0.6rem;
    color: var(--neutral-500);
}

.mood-segment.bearish {
    background-color: var(--bearish-color);
    opacity: 0.3;
}

.mood-segment.neutral {
    background-color: var(--warning-color);
    opacity: 0.3;
}

.mood-segment.bullish {
    background-color: var(--bullish-color);
    opacity: 0.3;
}

.mood-segment.active {
    opacity: 1;
}

.mood-marker {
    position: absolute;
    top: -5px;
    left: 50%;
    width: 16px;
    height: 16px;
    background-color: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    transition: left var(--transition-normal);
}

.fd-banks {
    margin-top: 1.5rem;
}

.bank {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--neutral-200);
}

.bank:last-child {
    border-bottom: none;
}

.trend-chart {
    height: 100px;
    margin-top: 1.5rem;
    background-color: var(--neutral-100);
    border-radius: var(--border-radius-small);
}

/* Call to Action Section */
.cta {
    padding: 5rem 5%;
    background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent-color) 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

/* Footer */
footer {
    background-color: var(--neutral-800);
    color: var(--neutral-300);
    padding: 4rem 5% 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    max-width: 280px;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
}

.footer-logo p {
    margin-top: 1rem;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.link-group h4 {
    color: white;
    margin-bottom: 1.2rem;
}

.link-group a {
    display: block;
    margin-bottom: 0.75rem;
    transition: color var(--transition-fast);
}

.link-group a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--neutral-700);
}

.social-icons {
    display: flex;
    gap: 1.2rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--neutral-700);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

/* Animations */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.delay-1 {
    transition-delay: 0.2s;
}

.animate-in.delay-2 {
    transition-delay: 0.4s;
}

.animate-in.delay-3 {
    transition-delay: 0.6s;
}

.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section Extensions */
.hero-image {
    position: relative;
    z-index: 2;
}

.market-pulse {
    background-color: white;
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--box-shadow);
    min-width: 350px;
}

.market-mood {
    margin-bottom: 1.5rem;
}

.mood-indicator {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
}

.mood {
    font-weight: 700;
    font-size: 1.2rem;
}

.mood.bullish {
    color: var(--bullish-color);
}

.mood.neutral {
    color: var(--neutral-market-color);
}

.mood.bearish {
    color: var(--bearish-color);
}

.pe-ratio {
    font-weight: 500;
    color: var(--neutral-600);
}

.allocation-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.allocation-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-radius: var(--border-radius-small);
    font-weight: 500;
}

.allocation-item.stocks {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
}

.allocation-item.gold {
    background-color: rgba(245, 158, 11, 0.1);
    color: var(--warning-color);
}

.allocation-item.fd {
    background-color: rgba(20, 184, 166, 0.1);
    color: var(--accent-color);
}

/* Media Queries */
@media (max-width: 1200px) {
    .hero {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
        padding-bottom: 5rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .highlight::after {
        left: 0;
        right: 0;
        margin: 0 auto;
    }
}

@media (max-width: 992px) {
    .nav-links, .auth-buttons {
        display: none;
        position: fixed;
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        z-index: 100;
    }

    .nav-links.active {
        top: 70px;
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        border-bottom: 1px solid var(--neutral-200);
    }
    
    .nav-links.active a {
        padding: 1rem 2rem;
        width: 100%;
        text-align: center;
    }
    
    .nav-links.active a::after {
        display: none;
    }
    
    .nav-links.active a.active {
        background-color: var(--primary-light);
        color: white;
    }

    .auth-buttons.active {
        top: calc(70px + 4rem + 1rem * 5);
        padding: 1.5rem;
        display: flex;
        justify-content: center;
        gap: 1rem;
    }
    
    .auth-buttons.active button {
        width: 45%;
    }

    /* Improved hamburger menu animation */
    .hamburger {
        display: flex;
        z-index: 1010;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 2rem;
    }

    .footer-links {
        width: 100%;
        justify-content: space-between;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .chat-container {
        margin: 3rem auto 0;
    }

    .market-data {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .feature-cards, .steps {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .hero {
        min-height: auto;
        padding-top: 8rem;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }

    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    
    .hero-buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
    }
    
    h1 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .market-pulse {
        min-width: auto;
        width: 100%;
    }
    
    .section-header p {
        font-size: 1rem;
    }
}

/* Improve animations and transitions */
@keyframes animate-in {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.recommendation-card, .education-card, .insight-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
}

.animate-in {
    animation: animate-in 0.6s ease forwards;
}
