:root {
    --primary-color: #00D09C;
    --primary-dark: #00BFA5;
    --secondary-color: #5367FF;
    --secondary-dark: #4552ce;
    --accent-color: #7B61FF;
    --background-dark: #12141D;
    --text-main: #1F2937;
    --text-light: #6B7280;
    --bg-color: #F8FAFC;
    --white: #FFFFFF;
    --border-color: #E5E7EB;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Radii */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;

    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00D09C 0%, #3B82F6 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    --gradient-header: linear-gradient(to right, #ffffff, #f3f4f6);
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-color);
    line-height: 1.7;
    font-size: 16px;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

ul {
    list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #111827;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.025em;
}

h1 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    text-wrap: balance;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

p {
    margin-bottom: 1.2rem;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(229, 231, 235, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--secondary-color);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span {
    color: var(--primary-color);
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-item {
    font-weight: 600;
    color: var(--text-light);
    font-size: 0.95rem;
    position: relative;
    padding: 8px 0;
}

.nav-item:hover,
.nav-item.active {
    color: var(--secondary-color);
}

.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background: var(--secondary-color);
    transition: width 0.3s ease;
}

.nav-item:hover::after {
    width: 100%;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    font-size: 1rem;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 10px 20px -10px rgba(0, 208, 156, 0.5);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 24px -10px rgba(0, 208, 156, 0.6);
}

/* Calculator Wrapper */
.calculator-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 40px;
    margin: 60px 0;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 60px;
    align-items: flex-start;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.input-group {
    margin-bottom: 30px;
}

.input-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #374151;
}

.input-range {
    width: 100%;
    margin-top: 12px;
    cursor: pointer;
    accent-color: var(--primary-color);
    height: 6px;
    background: #e5e7eb;
    border-radius: 4px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    background: #F3F4F6;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 0 12px;
    transition: all 0.2s;
}

.input-wrapper:focus-within {
    background: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 208, 156, 0.1);
}

.input-field {
    width: 100px;
    padding: 10px 0;
    border: none;
    background: transparent;
    text-align: right;
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.1rem;
    outline: none;
    font-family: var(--font-family);
}

.input-wrapper span {
    color: var(--text-light);
    font-weight: 600;
    font-size: 0.9rem;
}

/* Results Section */
.calculator-results {
    background: #F8FAFC;
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid #F1F5F9;
}

.result-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid #F1F5F9;
    transition: transform 0.3s;
}

.result-box:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.result-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: #111827;
    margin: 8px 0;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #111827 0%, #4B5563 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.result-label {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Charts */
.chart-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bar-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
}

.bar-label {
    width: 80px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-light);
}

.bar-track {
    flex: 1;
    height: 16px;
    background: #E5E7EB;
    border-radius: 100px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 100px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-fill.invested {
    background: var(--secondary-color);
}

.bar-fill.returns {
    background: var(--primary-color);
}

/* Content Section */
.content-section {
    max-width: 900px;
    margin: 0 auto 80px;
    padding: 0;
}

.content-section h2 {
    margin-top: 3rem;
    position: relative;
    padding-bottom: 15px;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
}

.content-section p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    color: #374151;
}

.content-section ul {
    margin-bottom: 2rem;
    background: #F9FAFB;
    padding: 30px 30px 30px 50px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-color);
}

.content-section li {
    margin-bottom: 10px;
    position: relative;
}

/* FAQ */
.faq-section {
    margin-top: 2rem;
}

.faq-item {
    border: 1px solid #E5E7EB;
    border-radius: var(--radius-md);
    margin-bottom: 16px;
    overflow: hidden;
    background: var(--white);
    transition: all 0.3s;
}

.faq-item:hover {
    box-shadow: var(--shadow-md);
    border-color: #D1D5DB;
}

.faq-question {
    padding: 20px;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    background: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-color);
    transition: transform 0.3s;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 20px 20px;
    color: #4B5563;
    line-height: 1.6;
    border-top: 1px solid transparent;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
    border-color: #F3F4F6;
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 24px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.blog-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    line-height: 1.4;
    margin-top: 0;
}

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

.blog-excerpt {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    color: var(--secondary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.read-more:hover {
    gap: 8px;
    text-decoration: underline;
}

/* Footer */
.site-footer {
    background: #0F172A;
    color: #F8FAFC;
    padding: 80px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 48px;
    margin-bottom: 60px;
}

.footer-heading {
    color: var(--white);
    font-size: 1.1rem;
    margin-bottom: 24px;
    font-weight: 700;
}

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

.footer-links a {
    color: #94A3B8;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
    display: inline-block;
}

.copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    color: #64748B;
    font-size: 0.9rem;
}

/* Utility Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.calculator-container,
.content-section,
.blog-grid {
    animation: fadeIn 0.6s ease-out;
}