:root {
    /* Color Scheme */
    --primary: #0a2540; /* Deep navy */
    --accent: #007a8d;  /* Professional teal */
    --hover-accent: #006272;
    --light-bg: #f8fafc;
    --text-dark: #1e293b;
    --text-medium: #64748b;
    --text-light: #94a3b8;
    
    /* Spacing */
    --nav-height: 70px;
    --section-padding: 120px;
    --mobile-section-padding: 80px;
    
    /* Effects */
    --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    --dropdown-radius: 6px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Neue Haas Grotesk', 'Helvetica Now', -apple-system, sans-serif;
    background: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- Premium Navigation ---------- */
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    height: var(--nav-height);
    display: flex;
    justify-content: center;
    transition: var(--transition);
}

.nav-wrapper {
    width: 100%;
    max-width: 1280px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.5px;
    z-index: 1001;
    display: flex;
    align-items: center;
}

.logo span {
    font-weight: 400;
    color: var(--accent);
    margin-left: 4px;
}

/* Main Navigation */
.nav-links {
    display: flex;
    gap: 2px;
    height: 100%;
    align-items: center;
}

.nav-item {
    position: relative;
    list-style: none;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    padding: 0 16px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
    height: 100%;
}

.nav-link i {
    font-size: 0.7rem;
    transition: transform 0.3s ease;
}

/* Hover States */
.nav-link:hover {
    color: var(--accent);
}

.nav-link:hover i {
    transform: translateY(1px);
}

/* Active State */
.nav-item.active .nav-link {
    color: var(--accent);
    font-weight: 600;
}

/* Underline Animation */
.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    width: calc(100% - 32px);
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

.nav-item:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

/* Dropdown Menu */
.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 200px;
    background: white;
    border-radius: var(--dropdown-radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 100;
    padding: 6px 0;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-item:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    padding: 10px 20px;
    transition: var(--transition);
    color: var(--text-dark);
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
}

.dropdown-item:hover {
    color: var(--accent);
    background: rgba(0, 122, 141, 0.03);
}

/* CTA Button - Now properly sized */
.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 8px 18px;
    border-radius: 4px;
    font-weight: 600;
    margin-left: 12px;
    transition: var(--transition);
    height: auto;
    line-height: normal;
}

.nav-cta:hover {
    background: var(--hover-accent);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 141, 0.15);
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
    z-index: 1001;
    color: var(--primary);
}

/* ---------- Hero Section ---------- */
.page-hero {
    padding: 180px 0 120px;
    color: white;
    text-align: center;
}

.page-hero a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease
}

.page-hero a:hover {
    color: #fff;
}

.page-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.page-hero .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 25px;
}

a {
    color: var(--accent);
}

/* Performance Highlights */
.performance {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-top: 40px;
    max-width: 700px;
    box-shadow: var(--shadow);
}

.performance h3 {
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.1rem;
}

.performance-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.performance-card {
    text-align: center;
    padding: 10px;
}

.performance-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.performance-label {
    font-size: 0.8rem;
    color: var(--text-medium);
}

/* ---------- Mobile Responsiveness ---------- */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .performance-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
        --section-padding: 80px;
    }
    
    .nav-wrapper {
        padding: 0 20px;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background: white;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0;
        padding: 30px 20px;
        transform: translateX(-100%);
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-links.active {
        transform: translateX(0);
    }
    
    .nav-item {
        width: 100%;
        height: auto;
        padding: 12px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }
    
    .nav-link {
        font-size: 1rem;
        padding: 0;
        height: auto;
    }
    
    .dropdown {
        position: static;
        width: 100%;
        margin: 10px 0 0;
        box-shadow: none;
        border: none;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        padding: 0;
    }
    
    .dropdown.active {
        display: block;
    }
    
    .dropdown-item {
        padding: 10px 0 10px 15px;
        font-size: 0.9rem;
    }
    
    .nav-cta {
        margin: 20px 0 0;
        width: 100%;
        text-align: center;
        padding: 12px;
    }
    
    .hero {
        padding: calc(var(--nav-height) + 30px) 0 var(--mobile-section-padding);
        text-align: center;
        background-position: 65% center;
    }
    
    .hero-content {
        padding: 0 20px;
    }
    
    .hero h1 {
        font-size: 2rem;
        margin: 0 auto 1.2rem;
    }
    
    .hero p {
        font-size: 1rem;
        margin: 0 auto 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 40px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .performance {
        padding: 20px;
        margin: 30px auto 0;
    }
}

@media (max-width: 480px) {
    .performance-grid {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
}

/* Performance Section Styles */
.performance-section {
    padding: 100px 0;
    background-color: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    font-weight: 600;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-medium);
    max-width: 700px;
    margin: 0 auto;
}

/* Chart Grid */
.chart-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.chart-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
    padding: 25px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.chart-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.08);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.chart-header h3 {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 600;
}

.chart-legend {
    display: flex;
    gap: 15px;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-medium);
}

.legend-color {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 6px;
}

.legend-color.tcd {
    background-color: var(--accent);
}

.legend-color.benchmark {
    background-color: #64748b;
}

.legend-color.sp500 {
    background-color: #7c3aed;
}

.chart-container {
    height: 250px;
    position: relative;
}

/* Performance Table */
.performance-table {
    margin-bottom: 70px;
}

.performance-table table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
}

.performance-table th {
    background-color: var(--primary);
    color: white;
    padding: 15px 20px;
    text-align: left;
    font-weight: 600;
}

.performance-table td {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.performance-table tr:last-child td {
    border-bottom: none;
}

.highlight-row {
    background-color: rgba(0, 122, 141, 0.05);
}

.highlight-row td:first-child {
    font-weight: 600;
}

.positive {
    color: #00a86b;
    font-weight: 500;
}

.negative {
    color: #ff4d4f;
    font-weight: 500;
}

/* Download Section */
.download-section {
    margin-top: 50px;
}

.download-section h3 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem;
    color: var(--primary);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.download-item {
    display: flex;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-dark);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.download-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 122, 141, 0.2);
}

.download-icon {
    width: 50px;
    height: 50px;
    background: rgba(0, 122, 141, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: var(--accent);
    font-size: 1.2rem;
}

.download-content {
    flex: 1;
}

.download-content h4 {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1rem;
}

.download-content p {
    font-size: 0.85rem;
    color: var(--text-medium);
}

.download-cta {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .chart-grid {
        grid-template-columns: 1fr;
    }
    
    .chart-container {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .performance-section {
        padding: 70px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .performance-table th, 
    .performance-table td {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .download-item {
        padding: 15px;
    }
}

/* Footer Styles */
.main-footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

.footer-about {
    max-width: 300px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.footer-logo span {
    font-weight: 400;
    color: var(--accent);
}

.footer-about p {
    opacity: 0.8;
    line-height: 1.6;
    margin-bottom: 25px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    opacity: 0.9;
}

.footer-links ul {
    list-style: none;
    padding-left: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
    padding-left: 5px;
}

.footer-contact address {
    font-style: normal;
}

.footer-contact p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    opacity: 0.8;
}

.footer-contact i {
    margin-right: 10px;
    margin-top: 3px;
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.copyright {
    opacity: 0.7;
}

.legal-links {
    display: flex;
    gap: 20px;
}

.legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.legal-links a:hover {
    color: white;
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .login-cta {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .cta-content p {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .resources-section {
        padding: 70px 0;
    }
    
    .tab-buttons {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
    
    .footer-about {
        max-width: 100%;
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-about {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .legal-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}