/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1C1917;
    background-color: #F2F4F7;
    font-size: 16px;
}

/* Typography System */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
}

h2 {
    font-size: 40px;
    font-weight: 700;
}

h3 {
    font-size: 24px;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Color System */
:root {
    --deep-corporate-blue: #14532D;
    --primary-action-blue: #22C55E;
    --action-hover: #92400E;
    --accent-teal: #A3E635;
    --text-primary: #1C1917;
    --text-secondary: #475467;
    --surface-white: #FFFFFF;
    --page-background: #F2F4F7;
    --border-gray: #E4E7EC;
    --error-red: #D92D20;
    --success-green: #039855;
    --warning-orange: #F79009;
}

/* Container and Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-title {
    text-align: center;
    color: var(--deep-corporate-blue);
    margin-bottom: 3rem;
}

/* Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    height: 56px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-action-blue);
    color: white;
    box-shadow: 0 4px 6px -1px rgba(16, 24, 40, 0.1), 0 2px 4px -1px rgba(16, 24, 40, 0.06);
}

.btn-primary:hover {
    background-color: var(--action-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-action-blue);
    border: 2px solid var(--primary-action-blue);
}

.btn-secondary:hover {
    background-color: var(--primary-action-blue);
    color: white;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: var(--surface-white);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    height: 80px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-action-blue);
}

.logo-text {
    color: var(--deep-corporate-blue);
}

/* Navigation */
.nav {
    display: flex;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 32px;
    margin: 0;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-action-blue);
    border-bottom-color: var(--primary-action-blue);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.call-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.call-btn:hover {
    background-color: var(--page-background);
}

.login-btn {
    background: transparent;
    border: 1px solid var(--border-gray);
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 8px;
    height: 40px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.login-btn:hover {
    border-color: var(--primary-action-blue);
    color: var(--primary-action-blue);
}

.cta-btn {
    background-color: var(--primary-action-blue);
    color: white;
    border: none;
    padding: 0 24px;
    border-radius: 8px;
    height: 44px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cta-btn:hover {
    background-color: var(--action-hover);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--text-primary);
    margin: 2px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Hero Section */
.hero {
    background: linear-gradient(180deg, #F9FAFB 0%, #EFF8FF 100%);
    padding: 140px 0 80px;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-title {
    color: var(--deep-corporate-blue);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.advisor-image {
    position: relative;
    z-index: 1;
}

.dashboard-overlay {
    position: absolute;
    top: 20px;
    right: -20px;
    z-index: 2;
}

.chart-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
}

.growth {
    color: var(--accent-teal);
    font-weight: 700;
}

/* About Preview */
.about-preview {
    padding: 96px 0;
    background-color: var(--surface-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-description {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.6;
}

.highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.highlight {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
}

.check-icon {
    color: var(--accent-teal);
    font-weight: bold;
    font-size: 18px;
}

/* Why Choose Us */
.why-choose-us {
    padding: 96px 0;
    background-color: var(--page-background);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background-color: var(--surface-white);
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(16, 24, 40, 0.05), 0 2px 4px -1px rgba(16, 24, 40, 0.03);
    transition: all 0.25s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
}

.feature-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 20px;
    background-color: #EFF8FF;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-title {
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-description {
    color: var(--text-secondary);
    font-size: 16px;
}

/* Services Section */
.services {
    padding: 96px 0;
    background-color: var(--surface-white);
}

.services-tabs {
    background-color: var(--surface-white);
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(16, 24, 40, 0.05);
    overflow: hidden;
}

.tab-header {
    display: flex;
    background-color: var(--page-background);
    border-bottom: 1px solid var(--border-gray);
}

.tab-btn {
    flex: 1;
    padding: 16px 24px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 2px solid transparent;
}

.tab-btn.active {
    color: var(--primary-action-blue);
    background-color: #EFF8FF;
    border-bottom-color: var(--primary-action-blue);
}

.tab-btn:hover:not(.active) {
    color: var(--primary-action-blue);
    background-color: rgba(0, 82, 204, 0.05);
}

.tab-content {
    padding: 48px;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.tab-panel.active {
    display: block;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.service-item {
    padding: 16px 20px;
    background-color: var(--page-background);
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-primary);
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.service-item:hover {
    background-color: var(--primary-action-blue);
    color: white;
    transform: translateY(-2px);
}

/* Testimonials */
.testimonials {
    padding: 96px 0;
    background-color: var(--page-background);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.testimonial-card {
    background-color: var(--surface-white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(16, 24, 40, 0.05);
    transition: transform 0.2s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
}

.stars {
    font-size: 20px;
    margin-bottom: 16px;
}

.testimonial-text {
    font-size: 16px;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.testimonial-author strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.testimonial-author span {
    color: var(--text-secondary);
    font-size: 14px;
}

/* FAQ Section */
.faq {
    padding: 96px 0;
    background-color: var(--surface-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-gray);
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    background: none;
    border: none;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}

.faq-question:hover {
    color: var(--primary-action-blue);
}

.faq-toggle {
    font-size: 24px;
    font-weight: 300;
    transition: transform 0.2s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding-bottom: 24px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 96px 0;
    background-color: var(--page-background);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-details {
    space-y: 16px;
}

.contact-item {
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.contact-item strong {
    color: var(--text-primary);
}

/* Form Styles */
.contact-form {
    background-color: var(--surface-white);
    padding: 48px;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(16, 24, 40, 0.05);
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D0D5DD;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-action-blue);
    box-shadow: 0 0 0 4px rgba(0, 82, 204, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 4px;
}

.checkbox-group label {
    margin: 0;
    cursor: pointer;
}

/* Footer */
.footer {
    background-color: var(--deep-corporate-blue);
    color: white;
    padding: 64px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.social-links a {
    display: inline-block;
    font-size: 24px;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.social-links a:hover {
    transform: scale(1.1);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a {
    color: white;
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(16, 24, 40, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--surface-white);
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.modal-content.large {
    max-width: 700px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-gray);
}

.modal-header h3 {
    margin: 0;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background-color: var(--page-background);
    color: var(--text-primary);
}

.modal-body {
    padding: 32px;
}

.modal-form {
    padding: 0;
}

.modal-body h4 {
    color: var(--text-primary);
    margin: 24px 0 12px;
}

.modal-body h4:first-child {
    margin-top: 0;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    justify-content: flex-end;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    /* Typography scaling */
    h1 {
        font-size: 40px;
    }
    
    h2 {
        font-size: 32px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    /* Header mobile styles */
    .nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-actions {
        gap: 8px;
    }
    
    .call-btn span {
        display: none;
    }
    
    /* Hero mobile */
    .hero {
        padding: 120px 0 60px;
        min-height: auto;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    /* Section spacing */
    .about-preview,
    .why-choose-us,
    .services,
    .testimonials,
    .faq,
    .contact {
        padding: 60px 0;
    }
    
    /* Features grid mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    /* Tab header mobile */
    .tab-header {
        flex-direction: column;
    }
    
    .tab-btn {
        text-align: left;
        border-bottom: 1px solid var(--border-gray);
    }
    
    .tab-btn:last-child {
        border-bottom: none;
    }
    
    /* Service grid mobile */
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    /* Testimonials mobile */
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    /* Contact form mobile */
    .contact-form {
        padding: 32px 24px;
    }
    
    /* Footer mobile */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Modal mobile */
    .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .modal-header,
    .modal-body {
        padding: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    .modal-actions .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .header-content {
        gap: 12px;
    }
    
    .logo-text {
        display: none;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .tab-content {
        padding: 24px;
    }
    
    .feature-card,
    .testimonial-card {
        padding: 24px;
    }
}

/* Print styles */
@media print {
    .header,
    .modal,
    .btn,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    body {
        background-color: white;
    }
    
    .section-title,
    h1, h2, h3 {
        color: black;
    }
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #000000;
        --text-secondary: #333333;
        --border-gray: #666666;
    }
    
    .btn-primary {
        border: 2px solid #000000;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}