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

:root {
    --primary-color: #1a365d;
    --secondary-color: #d4af37;
    --accent-color: #2c5aa0;
    --text-color: #333;
    --bg-color: #f8f9fa;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --success-color: #28a745;
    --danger-color: #dc3545;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--secondary-color);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s;
}

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

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

/* Buttons */
.btn-primary, .btn-calculate {
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-block;
}

.btn-primary:hover, .btn-calculate:hover {
    background: #b8941f;
    transform: translateY(-2px);
}

/* Sections */
section {
    padding: 3rem 0;
}

.tools, .services, .privacy, .contact {
    background: var(--white);
    margin: 2rem 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Tool Grid */
.tool-grid, .service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.tool-card, .service-card {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s;
}

.tool-card:hover, .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Calculator Styles */
.calculator, .stock-lookup {
    margin-top: 1rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
}

.input-group input {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.results {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 5px;
    border-left: 4px solid var(--secondary-color);
}

/* Privacy Section */
.privacy-content h3 {
    color: var(--primary-color);
    margin: 1.5rem 0 1rem 0;
}

.privacy-content ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

/* Contact Section */
.contact-info {
    background: var(--bg-color);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.disclaimer {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #ffc107;
}

.disclaimer h3 {
    color: #856404;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }

    .nav ul {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

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

    .tool-grid, .service-grid {
        grid-template-columns: 1fr;
    }
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.tool-card, .service-card {
    animation: fadeIn 0.6s ease-in-out;
}

/* Financial styling */
.positive { color: var(--success-color); }
.negative { color: var(--danger-color); }
.neutral { color: var(--text-color); }

.financial-number {
    font-weight: bold;
    font-family: 'Courier New', monospace;
}
