/* ===================================
   Chain Bridge Research - Styles
   Exact implementation from Figma design
   =================================== */

/* CSS Variables */
:root {
    /* Colors from Figma */
    --bg-canvas: #000000;
    --bg-primary: #0d1117;
    --bg-secondary: #161b22;
    --fg-default: #f8f9fa;
    --fg-secondary: #b8c0c9;
    --fg-tertiary: #8f9aa5;
    --border-primary: #333c46;
    --btn-primary: #1669e8;
    --btn-primary-hover: #1557c7;
    --accent-gold: #c49a1e;
    
    /* Typography - Using system fonts that closely match Figma design */
    --font-serif: 'Playfair Display', 'Palatino Linotype', 'URW Palladio L', P052, serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-canvas);
    color: var(--fg-default);
    line-height: 1.6;
    overflow-x: hidden;
}

.container-fluid {
    padding-left: 112px;
    padding-right: 112px;
}

/* ===================================
   Global Menu
   =================================== */

.global-menu {
    background-color: var(--bg-canvas);
    padding: 16px 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
}

.global-menu-links {
    display: flex;
    gap: 0;
}

.global-menu-link {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.14px;
    color: var(--fg-tertiary);
    text-decoration: none;
    padding: 8px 16px;
    position: relative;
    transition: color 0.2s ease;
}

.global-menu-link:hover {
    color: var(--fg-default);
}

.global-menu-link.active {
    color: var(--fg-default);
}


/* ===================================
   Main Navigation
   =================================== */

.main-nav {
    background-color: var(--bg-canvas);
    padding: 16px 0;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.menu-container {
    position: relative;
}

.menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: var(--accent-gold);
    cursor: pointer;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 20px;
    padding: 0;
}

.menu-toggle svg {
    width: 24px;
    height: 24px;
    stroke: var(--accent-gold);
}

.menu-dropdown {
    position: absolute;
    top: calc(100% + 16px);
    left: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    min-width: 200px;
    padding: 8px 0;
    display: none;
    z-index: 1000;
    box-shadow: 0 32px 64px -12px rgba(16, 24, 40, 0.14);
}

.menu-dropdown.active {
    display: block;
}

.menu-dropdown-item {
    display: block;
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 24px;
    letter-spacing: -0.16px;
    color: var(--fg-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.menu-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--fg-default);
}

.logo-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.logo {
    height: 32px;
    width: auto;
}

.logo-text {
    font-size: 20px;
    font-weight: 600;
    color: var(--fg-default);
}

.nav-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-left: auto;
}

.btn-contact {
    background: transparent;
    border: none;
    color: var(--accent-gold);
    padding: 8px 16px;
    font-size: 14px;
    line-height: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-contact:hover {
    opacity: 0.8;
}

.btn-contact svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
}

.btn-login {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 8px 24px;
    font-size: 14px;
    line-height: 20px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-login:hover {
    background: var(--accent-gold);
    color: var(--bg-canvas);
}

/* ===================================
   Hero Section
   =================================== */

.hero-section {
    position: relative;
    height: 432px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--bg-canvas);
    background-image: url('../assets/images/hero-background.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 104px;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: 64px;
    font-weight: 500;
    line-height: 72px;
    letter-spacing: -0.64px;
    margin-bottom: 24px;
    color: var(--fg-default);
}

.hero-subtitle {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: -0.18px;
    color: var(--fg-secondary);
    margin-bottom: 32px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary {
    background: var(--btn-primary);
    border: none;
    color: var(--fg-default);
    padding: 16px 48px;
    font-size: 16px;
    line-height: 24px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.btn-lg {
    padding: 16px 48px;
    font-size: 16px;
}

/* ===================================
   What We Do Section
   =================================== */

.what-we-do-section {
    background-color: var(--bg-canvas);
    padding: 96px 0;
}

.section-header {
    text-align: center;
    max-width: 1280px;
    margin: 0 auto 64px;
    padding: 0 32px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 500;
    line-height: 56px;
    letter-spacing: -0.48px;
    margin-bottom: 24px;
    color: var(--fg-default);
}

.section-description {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: -0.18px;
    color: var(--fg-secondary);
    max-width: 760px;
    margin: 0 auto;
}

.what-we-do-list {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.what-we-do-item {
    display: grid;
    grid-template-columns: 24px 1fr 2fr;
    gap: 32px;
    align-items: start;
    padding: 32px 0;
    border-bottom: 1px solid var(--border-primary);
    transition: all 0.3s ease;
}

.what-we-do-item:hover {
    padding-left: 16px;
    border-left: 3px solid var(--border-primary);
}

.item-icon {
    flex-shrink: 0;
    color: var(--fg-secondary);
}

.item-icon svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
}

.item-title {
    font-family: var(--font-sans);
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    letter-spacing: -0.20px;
    color: var(--fg-default);
    margin: 0;
}

.item-description {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.16px;
    color: var(--fg-tertiary);
    margin: 0;
}

/* ===================================
   Sample Reports Section
   =================================== */

.sample-reports-section {
    background-color: var(--bg-primary);
    padding: 96px 0;
}

.sample-reports-section .section-header {
    text-align: left;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}

.sample-reports-section .section-title {
    font-size: 28px;
    line-height: 36px;
}

.reports-table-container {
    max-width: 1280px;
    margin: 48px auto 0;
    padding: 0 32px;
    overflow-x: auto;
}

.reports-table-wrapper {
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    overflow: hidden;
}

.region-tabs {
    display: flex;
    gap: 0;
    background-color: var(--bg-canvas);
    border-bottom: 1px solid var(--border-primary);
}

.region-tab {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.14px;
    color: var(--fg-tertiary);
    background: transparent;
    border: none;
    padding: 16px 24px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.region-tab:hover {
    color: var(--fg-secondary);
}

.region-tab.active {
    color: var(--accent-gold);
}

.reports-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--bg-canvas);
}

.reports-table thead {
    background-color: var(--bg-canvas);
}

.reports-table th {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.14px;
    color: var(--fg-tertiary);
    text-align: left;
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-primary);
}

.reports-table th:last-child {
    text-align: right;
}

.reports-table td {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.16px;
    color: var(--fg-default);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-primary);
}

.reports-table td:last-child {
    text-align: right;
}

.reports-table tbody tr:last-child td {
    border-bottom: none;
}

.reports-table tbody tr {
    transition: background-color 0.2s ease;
}

.reports-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.btn-download {
    color: var(--btn-primary);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    transition: all 0.2s ease;
}

.btn-download:hover {
    color: var(--btn-primary-hover);
}

/* ===================================
   Trusted By Section
   =================================== */

.trusted-by-section {
    background-color: var(--bg-secondary);
    padding: 96px 0;
}

.trusted-content {
    padding-right: 48px;
}

.trusted-label {
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.trusted-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 500;
    line-height: 44px;
    margin-bottom: 48px;
    color: var(--fg-default);
}

.stat-item {
    margin-bottom: 48px;
}

.stat-number {
    font-family: var(--font-serif);
    font-size: 48px;
    font-weight: 500;
    line-height: 56px;
    letter-spacing: -0.48px;
    margin-bottom: 12px;
    color: var(--fg-default);
}

.stat-description {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: -0.18px;
    color: var(--fg-tertiary);
    margin: 0;
}

.platform-preview {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 32px 64px -12px rgba(16, 24, 40, 0.14);
}

.platform-preview img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===================================
   Team Section
   =================================== */

.team-section {
    background-color: var(--bg-canvas);
    padding: 96px 0;
}

.team-header {
    padding-right: 48px;
}

.team-header .section-title {
    text-align: left;
    font-size: 28px;
    line-height: 36px;
}

.team-header .section-description {
    text-align: left;
    margin: 0;
}

.team-header .btn-primary {
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    padding: 8px 24px;
    font-size: 14px;
    line-height: 20px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.team-header .btn-primary:hover {
    background: var(--accent-gold);
    color: var(--bg-canvas);
}

.team-grid {
    display: flex;
    gap: 32px;
    overflow-x: auto;
    padding-bottom: 16px;
}

.team-grid::-webkit-scrollbar {
    height: 8px;
}

.team-grid::-webkit-scrollbar-track {
    background: var(--bg-secondary);
    border-radius: 4px;
}

.team-grid::-webkit-scrollbar-thumb {
    background: var(--border-primary);
    border-radius: 4px;
}

.team-grid::-webkit-scrollbar-thumb:hover {
    background: var(--fg-tertiary);
}

.team-member {
    position: relative;
    flex: 0 0 auto;
    width: 444px;
}

.team-member-large {
    width: 444px;
}

.team-member-image {
    position: relative;
    width: 100%;
    padding-bottom: 69.37%;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 24px;
}

.team-member-large .team-member-image {
    padding-bottom: 120%;
}

.team-member-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.team-member:hover .team-member-image img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.team-member-info {
    padding: 0 8px;
}

.team-member-name {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 500;
    line-height: 36px;
    letter-spacing: -0.28px;
    margin-bottom: 8px;
    color: var(--fg-default);
}

.team-member-role {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: -0.18px;
    color: var(--fg-tertiary);
    margin: 0;
}

/* ===================================
   Disclaimer Section
   =================================== */

.disclaimer-section {
    background-color: var(--bg-canvas);
    border-top: 1px solid var(--border-primary);
    border-bottom: 1px solid var(--border-primary);
    padding: 32px 0;
}

.disclaimer-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.disclaimer-text {
    font-size: 18px;
    line-height: 26px;
    color: var(--fg-tertiary);
    margin: 0;
}

.disclaimer-link {
    color: var(--btn-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.disclaimer-link:hover {
    color: var(--btn-primary-hover);
}

/* ===================================
   Footer
   =================================== */

.footer {
    background-color: var(--bg-canvas);
    padding: 48px 0 24px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.footer-logo {
    height: 32px;
    width: auto;
    opacity: 0.6;
}

.footer-info-section {
    display: flex;
    gap: 48px;
}

.footer-info {
    margin-bottom: 0;
}

.footer-label {
    font-size: 12px;
    line-height: 18px;
    color: var(--fg-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.footer-text {
    font-size: 16px;
    line-height: 24px;
    color: var(--fg-secondary);
    margin: 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-primary);
    padding-top: 24px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-link {
    font-size: 14px;
    line-height: 20px;
    color: var(--fg-tertiary);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: var(--fg-default);
}

.footer-copyright {
    margin: 0;
}

.footer-copyright p {
    font-size: 12px;
    line-height: 18px;
    color: var(--fg-tertiary);
    margin: 0;
}

/* ===================================
   Responsive Design
   =================================== */

@media (max-width: 1199px) {
    .container-fluid {
        padding-left: 48px;
        padding-right: 48px;
    }
}

@media (max-width: 991px) {
    .container-fluid {
        padding-left: 24px;
        padding-right: 24px;
    }
    
    .menu-toggle span {
        display: none;
    }
    
    .btn-contact span {
        display: none;
    }
    
    .btn-login {
        padding: 8px 16px;
    }
    
    .hero-section {
        height: 300px;
    }
    
    .hero-title {
        font-size: 48px;
        line-height: 56px;
    }
    
    .section-title {
        font-size: 36px;
        line-height: 44px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .team-member-large {
        grid-row: span 1;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-info-section {
        flex-direction: column;
        gap: 24px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

@media (max-width: 767px) {
    .hero-section {
        height: 250px;
    }
    
    .hero-title {
        font-size: 36px;
        line-height: 44px;
    }
    
    .section-title {
        font-size: 28px;
        line-height: 36px;
    }
    
    .what-we-do-item {
        grid-template-columns: 24px 1fr;
        gap: 16px;
    }
    
    .item-title {
        grid-column: 2;
    }
    
    .item-description {
        grid-column: 1 / -1;
        padding-left: 56px;
    }
    
    .reports-table {
        font-size: 14px;
    }
    
    .reports-table th,
    .reports-table td {
        padding: 12px 16px;
    }
}

/* ===================================
   Animations
   =================================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Selection color */
::selection {
    background-color: var(--btn-primary);
    color: var(--fg-default);
}
