/* 
  Chiefinance - Design System & CSS (Class-Only Selectors)
*/

:root {
    --primary-color: #0A1F44;
    --primary-light: #162E5A;
    --secondary-color: #FFFFFF;
    --accent-teal: #14B8A6;
    --accent-gradient: linear-gradient(135deg, #14B8A6 0%, #0891B2 100%);
    --bg-light: #F8FAFC;
    --text-main: #1E293B;
    --text-muted: #64748B;
    --border-color: #E2E8F0;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow-sm: 0 1px 3px rgba(10, 31, 68, 0.05);
    --shadow-md: 0 8px 20px rgba(10, 31, 68, 0.08);
    --shadow-lg: 0 20px 40px rgba(10, 31, 68, 0.12);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.body-main {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(10, 31, 68, 0.03) 1px, transparent 0);
    background-size: 32px 32px;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

.body-main::before {
    content: "";
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.05) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.body-main::after {
    content: "";
    position: absolute;
    top: 40%;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(10, 31, 68, 0.03) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.cf-heading {
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    font-weight: 700;
}

.cf-text {
    margin-bottom: 1.5rem;
}

.cf-link {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.cf-link:hover {
    color: var(--accent-teal);
}

.cf-list {
    padding-left: 1.25rem;
    margin-bottom: 1.5rem;
}

.cf-list li {
    margin-bottom: 12px;
}

.cf-section {
    padding: 80px 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

/* Header & Navigation */
.header {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(10, 31, 68, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 18px 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary-color);
    text-decoration: none;
    display: inline-block;
}

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

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-main);
    text-decoration: none;
}

.nav-link:hover {
    color: var(--accent-teal);
}

.cta-btn-nav {
    background: var(--primary-color);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}

.cta-btn-nav:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.5rem;
}

/* Hero Section */
.hero {
    background: radial-gradient(circle at top right, #f1f5f9 0%, #ffffff 100%);
    padding: 120px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(rgba(10, 31, 68, 0.01) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 31, 68, 0.01) 1px, transparent 1px);
    background-size: 100px 100px;
    pointer-events: none;
}

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

.hero-badge {
    display: inline-block;
    background: rgba(20, 184, 166, 0.1);
    color: var(--accent-teal);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--primary-color);
    font-weight: 700;
}

.hero-p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.glass-card {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 24px;
    border: 1px solid rgba(10, 31, 68, 0.08);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.glass-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-teal);
}

.btn-primary {
    background: var(--primary-color);
    color: white !important;
    padding: 16px 36px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(10, 31, 68, 0.15);
}

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(10, 31, 68, 0.2);
}

.btn-secondary {
    background: white;
    color: var(--primary-color) !important;
    border: 2px solid var(--border-color);
    padding: 14px 34px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    display: inline-block;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

/* Glass Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.glass-card {
    background: var(--secondary-color);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
}

.glass-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-teal);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: var(--accent-gradient);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: white;
    font-size: 1.5rem;
}

/* Comparison Table */
.table-container {
    overflow-x: auto;
    margin: 40px 0;
    border-radius: 15px;
    border: 1px solid var(--border-color);
    background: white;
}

.cf-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
}

.cf-th {
    background: var(--primary-color);
    color: white;
    text-align: left;
    padding: 20px;
}

.cf-td {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.table-btn {
    background: var(--accent-teal);
    color: white !important;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}

/* FAQ */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.faq-item {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    color: var(--primary-color);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: var(--text-muted);
}

.faq-item.active .faq-answer {
    padding: 0 20px 20px 20px;
    max-height: 500px;
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    padding: 80px 20px 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand-title {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.footer-brand-text {
    color: #94a3b8;
    max-width: 300px;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 25px;
    font-size: 1.1rem;
    color: white;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

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

.footer-link {
    color: #94a3b8;
    text-decoration: none;
}

.footer-link:hover {
    color: var(--accent-teal);
}

.footer-disclosure {
    border-top: 1px solid #1e293b;
    padding-top: 30px;
    text-align: center;
    font-size: 0.85rem;
    color: #64748b;
}

.footer-bottom {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid #1e293b;
    padding-top: 20px;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Contact Form UI */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-input {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: white;
    font-family: inherit;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.1);
}

/* Utils */
.text-center { text-align: center; }
.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.accent-text { color: var(--accent-teal); }
.section-title { font-size: 2.5rem; margin-bottom: 16px; color: var(--primary-color); font-weight: 700;}
.section-subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 700px; margin: 0 auto 50px; }
.bold-text { font-weight: 700; }

/* Mobile Responsiveness */
@media (max-width: 968px) {
    .hero-h1 {
        font-size: 2.5rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: var(--shadow-lg);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-h1 {
        font-size: 2.2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .cf-section {
        padding: 50px 20px;
    }
}

@media (max-width: 480px) {
    .hero-h1 {
        font-size: 1.8rem;
    }
    .hero-btns {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-btns .btn-primary, .hero-btns .btn-secondary {
        width: 100%;
        box-sizing: border-box;
    }
    .section-title {
        font-size: 1.8rem;
    }
    .card-grid {
        grid-template-columns: 1fr;
    }
    .glass-card {
        padding: 25px;
    }
}
