/* ============================================
   First Ground Intelligence - Bloomberg Markets Style
   Background: #FFFFFF
   Header: #000000
   Accent: #E3120B (Bloomberg Red)
   Ticker: #1A1D23
   Font: Montserrat (Avenir substitute)
   ============================================ */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif; color: #1A1A1A; background: #FFFFFF; line-height: 1.5; -webkit-font-smoothing: antialiased; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ========== TICKER BAR ========== */
.ticker-bar { background: #1A1D23; border-bottom: 1px solid #2A2D33; position: fixed; top: 0; left: 0; right: 0; z-index: 101; height: 36px; overflow: hidden; }
.ticker-inner { display: flex; align-items: center; height: 36px; gap: 0; overflow-x: auto; white-space: nowrap; }
.ticker-inner::-webkit-scrollbar { display: none; }
.ticker-item { display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border-right: 1px solid #2A2D33; font-size: 11px; font-weight: 500; color: #B0B8C1; text-decoration: none; flex-shrink: 0; height: 36px; }
.ticker-item:last-child { border-right: none; }
.ticker-symbol { color: #FFFFFF; font-weight: 600; }
.ticker-price { color: #B0B8C1; }
.ticker-change { font-weight: 600; }
.ticker-up { color: #00C853; }
.ticker-down { color: #FF3D00; }

/* ========== HEADER ========== */
.header { position: fixed; top: 36px; left: 0; right: 0; z-index: 100; background: #000000; height: 48px; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.header-left { display: flex; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-icon { width: 20px; height: 20px; filter: brightness(0) invert(1); }
.logo-text { font-size: 13px; font-weight: 700; color: #FFFFFF; letter-spacing: 2px; }
.header-nav { display: flex; gap: 20px; margin-left: 32px; }
.header-nav a { text-decoration: none; color: #808080; font-size: 11px; font-weight: 500; transition: color .2s; letter-spacing: 0.5px; text-transform: uppercase; }
.header-nav a:hover, .header-nav a.active { color: #FFFFFF; }
.header-right { display: flex; align-items: center; gap: 10px; }
.header-right .btn { font-size: 11px; padding: 6px 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: #FFFFFF; margin: 4px 0; transition: .3s; }

/* ========== BUTTONS ========== */
.btn { display: inline-flex; align-items: center; justify-content: center; font-family: 'Montserrat', sans-serif; font-weight: 600; border: none; cursor: pointer; transition: all .2s; text-decoration: none; font-size: 11px; letter-spacing: 0.3px; }
.btn-primary { background: #E3120B; color: #FFFFFF; padding: 8px 18px; border-radius: 3px; }
.btn-primary:hover { background: #C50F08; }
.btn-lg { padding: 10px 24px; font-size: 12px; }
.btn-outline { background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,.3); border-radius: 3px; padding: 6px 14px; }
.btn-outline:hover { border-color: #FFFFFF; }
.btn-sm { font-size: 10px; padding: 4px 10px; }

/* ========== HERO ========== */
.hero { padding: 124px 0 0; }
.hero-inner { display: grid; grid-template-columns: 1fr 300px; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid #E8E8E8; }
.hero-main { }
.hero-label { font-size: 10px; font-weight: 700; color: #E3120B; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; }
.hero-title { font-size: 36px; font-weight: 700; line-height: 1.15; color: #000000; margin-bottom: 12px; letter-spacing: -0.3px; }
.hero-title a { text-decoration: none; color: #000000; }
.hero-title a:hover { color: #E3120B; }
.hero-excerpt { font-size: 14px; color: #666666; line-height: 1.6; margin-bottom: 14px; }
.hero-meta { font-size: 11px; color: #999999; text-transform: uppercase; letter-spacing: 0.5px; }
.hero-sidebar { border-left: 1px solid #E8E8E8; padding-left: 28px; }
.hero-sidebar h3 { font-size: 13px; font-weight: 700; color: #000000; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #000000; }
.hero-sidebar-item { padding: 12px 0; border-bottom: 1px solid #E8E8E8; }
.hero-sidebar-item:last-child { border-bottom: none; }
.hero-sidebar-item .tag { display: inline-block; font-size: 9px; font-weight: 700; color: #E3120B; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.hero-sidebar-item h4 { font-size: 13px; font-weight: 600; color: #1A1A1A; line-height: 1.4; }
.hero-sidebar-item h4 a { text-decoration: none; color: #1A1A1A; }
.hero-sidebar-item h4 a:hover { color: #E3120B; }
.hero-sidebar-item .meta { font-size: 10px; color: #999999; margin-top: 4px; }

/* ========== CATEGORY STRIP ========== */
.cat-strip { border-bottom: 1px solid #E8E8E8; padding: 20px 0; }
.cat-strip-inner { display: flex; gap: 20px; }
.cat-strip-item { flex: 1; }
.cat-strip-label { font-size: 10px; font-weight: 700; color: #E3120B; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.cat-strip-count { font-size: 28px; font-weight: 700; color: #000000; line-height: 1; }
.cat-strip-desc { font-size: 11px; color: #999999; }

/* ========== STORIES GRID ========== */
.stories-section { padding: 28px 0; border-bottom: 1px solid #E8E8E8; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.section-title { font-size: 14px; font-weight: 700; color: #000000; text-transform: uppercase; letter-spacing: 1px; padding-bottom: 8px; border-bottom: 2px solid #000000; display: inline-block; }
.section-link { font-size: 11px; color: #E3120B; text-decoration: none; font-weight: 500; }

.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.story-card { }
.story-label { font-size: 9px; font-weight: 700; color: #E3120B; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.story-title { font-size: 15px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.story-title a { text-decoration: none; color: #1A1A1A; }
.story-title a:hover { color: #E3120B; }
.story-excerpt { font-size: 12px; color: #666666; line-height: 1.5; }
.story-meta { font-size: 10px; color: #999999; margin-top: 8px; }

/* ========== DATA TABLE SECTION ========== */
.data-section { padding: 28px 0; border-bottom: 1px solid #E8E8E8; }
.data-table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.data-table thead { }
.data-table th { padding: 10px 14px; text-align: left; font-weight: 600; font-size: 10px; color: #666666; text-transform: uppercase; letter-spacing: 1px; border-bottom: 2px solid #000000; }
.data-table td { padding: 10px 14px; border-bottom: 1px solid #E8E8E8; color: #333333; font-size: 12px; }
.data-table tbody tr:hover td { background: #F8F8F8; }
.data-table .date { font-weight: 500; color: #999999; white-space: nowrap; font-size: 11px; }
.data-table .source { font-weight: 600; color: #E3120B; white-space: nowrap; font-size: 11px; }
.data-table .project { font-weight: 500; }
.data-tag { font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; padding: 2px 7px; border-radius: 2px; white-space: nowrap; background: #F0F0F0; color: #666666; }

/* ========== JOBS SECTION ========== */
.jobs-section { padding: 28px 0; border-bottom: 1px solid #E8E8E8; background: #FAFAFA; }
.jobs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.job-card { background: #FFFFFF; border: 1px solid #E8E8E8; padding: 20px; }
.job-card:hover { border-color: #CCCCCC; }
.job-company { font-size: 10px; font-weight: 700; color: #E3120B; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.job-title { font-size: 14px; font-weight: 600; color: #1A1A1A; margin-bottom: 4px; line-height: 1.35; }
.job-title a { text-decoration: none; color: #1A1A1A; }
.job-title a:hover { color: #E3120B; }
.job-location { font-size: 11px; color: #999999; margin-bottom: 2px; }
.job-date { font-size: 10px; color: #BBBBBB; }

/* ========== BOTTOM SECTIONS ========== */
.bg-light { background: #FAFAFA; }
.bg-dark { background: #1A1D23; }
.bg-dark .section-title { color: #FFFFFF; border-bottom-color: #E3120B; }

.why-section { padding: 40px 0; }
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: #E8E8E8; border: 1px solid #E8E8E8; }
.why-card { background: #FFFFFF; padding: 28px; }
.why-card h3 { font-size: 13px; font-weight: 700; color: #000000; margin-bottom: 8px; }
.why-card p { font-size: 12px; color: #666666; line-height: 1.6; }
.why-num { font-size: 9px; font-weight: 700; color: #E3120B; letter-spacing: 2px; margin-bottom: 6px; display: block; }

.cta-section { padding: 40px 0; }
.cta-card { background: #000000; padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.cta-content h2 { font-size: 22px; font-weight: 700; color: #FFFFFF; margin-bottom: 4px; }
.cta-content p { font-size: 12px; color: #808080; margin-bottom: 16px; }
.cta-form { max-width: 400px; }
.cta-form-row { display: flex; gap: 6px; }
.cta-form input { flex: 1; padding: 10px 14px; border: 1px solid #333333; font-size: 12px; font-family: 'Montserrat', sans-serif; outline: none; background: #1A1D23; color: #FFFFFF; border-radius: 2px; }
.cta-form input::placeholder { color: #666666; }
.cta-form input:focus { border-color: #E3120B; }
.cta-message { font-size: 11px; margin-top: 8px; padding: 6px 10px; border-radius: 2px; display: none; }
.cta-message.success { display: block; color: #00C853; background: rgba(0, 200, 83, 0.1); border: 1px solid rgba(0, 200, 83, 0.3); }
.cta-message.error { display: block; color: #FF3D00; background: rgba(255, 61, 0, 0.1); border: 1px solid rgba(255, 61, 0, 0.3); }
.cta-message.loading { display: block; color: #B0B8C1; border: 1px solid #333333; }
.cta-meta { display: flex; gap: 20px; text-align: center; flex-shrink: 0; }
.cta-stat-num { display: block; font-size: 20px; font-weight: 700; color: #E3120B; }
.cta-stat-lbl { display: block; font-size: 10px; color: #666666; text-transform: uppercase; letter-spacing: 0.8px; margin-top: 2px; }

/* ========== FOOTER ========== */
.footer { background: #000000; padding: 32px 0; border-top: 1px solid #1A1D23; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 20px; }
.footer-logo { font-size: 11px; font-weight: 700; color: #FFFFFF; letter-spacing: 2px; text-transform: uppercase; }
.footer-brand p { font-size: 10px; color: #666666; margin-top: 2px; }
.footer-nav { display: flex; gap: 20px; }
.footer-nav a { text-decoration: none; color: #666666; font-size: 10px; transition: color .2s; text-transform: uppercase; letter-spacing: 0.8px; }
.footer-nav a:hover { color: #FFFFFF; }
.footer-bottom { border-top: 1px solid #1A1D23; padding-top: 16px; font-size: 10px; color: #666666; }

/* ========== PAGE HEADER (inner) ========== */
.page-header { padding: 124px 0 24px; background: #FAFAFA; border-bottom: 1px solid #E8E8E8; }
.page-header h1 { font-size: 28px; font-weight: 700; color: #000000; }
.page-desc { font-size: 13px; color: #666666; margin-top: 4px; }

/* ========== CONTENT (About) ========== */
.content-section { padding: 32px 0 48px; }
.content { max-width: 720px; }
.content h2 { font-size: 16px; font-weight: 700; color: #E3120B; margin-top: 32px; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.content h2:first-child { margin-top: 0; }
.content p { font-size: 13px; color: #555555; margin-bottom: 14px; line-height: 1.8; }
.content ul { margin-bottom: 14px; padding-left: 20px; }
.content li { font-size: 13px; color: #555555; margin-bottom: 6px; line-height: 1.7; }
.content-highlight { display: flex; gap: 20px; margin: 20px 0; padding: 20px 24px; background: #FAFAFA; border: 1px solid #E8E8E8; }
.hl-item { text-align: center; flex: 1; padding: 8px; border-right: 1px solid #E8E8E8; }
.hl-item:last-child { border-right: none; }
.hl-num { display: block; font-size: 20px; font-weight: 700; color: #E3120B; }
.hl-lbl { display: block; font-size: 10px; color: #666666; margin-top: 2px; text-transform: uppercase; letter-spacing: 0.8px; }
.source-list { display: grid; gap: 8px; margin: 16px 0; }
.source-item { padding: 12px 16px; background: #FAFAFA; border-left: 3px solid #E3120B; }
.source-name { font-size: 13px; font-weight: 600; color: #1A1A1A; }
.source-type { font-size: 10px; color: #E3120B; text-transform: uppercase; letter-spacing: 1px; margin: 2px 0 4px; }
.source-desc { font-size: 12px; color: #666666; }
.issue-card { padding: 24px; border-bottom: 1px solid #E8E8E8; }
.issue-card:last-child { border-bottom: none; }
.issue-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.issue-meta { font-size: 10px; color: #E3120B; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.issue-card p { font-size: 12px; color: #666666; margin-bottom: 10px; line-height: 1.6; }

/* ========== MOBILE ========== */
@media (max-width: 768px) {
    .ticker-bar { height: 32px; }
    .ticker-inner { height: 32px; }
    .ticker-item { font-size: 10px; padding: 0 10px; }
    .header { top: 32px; height: 44px; }
    .header-inner { height: 44px; }
    .header-nav { display: none; position: absolute; top: 44px; left: 0; right: 0; background: #000000; flex-direction: column; padding: 12px 20px; gap: 10px; }
    .header-nav.open { display: flex; }
    .header-right .btn-outline { display: none; }
    .nav-toggle { display: block; }
    .hero { padding: 116px 0 0; }
    .hero-inner { grid-template-columns: 1fr; }
    .hero-sidebar { border-left: none; padding-left: 0; border-top: 1px solid #E8E8E8; padding-top: 20px; margin-top: 20px; }
    .hero-title { font-size: 22px; }
    .stories-grid { grid-template-columns: 1fr; }
    .jobs-grid { grid-template-columns: 1fr; }
    .cat-strip-inner { flex-wrap: wrap; gap: 16px; }
    .cat-strip-item { flex: 1 1 40%; }
    .why-grid { grid-template-columns: 1fr; }
    .cta-card { flex-direction: column; padding: 28px 20px; text-align: center; }
    .cta-form-row { flex-direction: column; }
    .footer-inner { flex-direction: column; gap: 16px; }
    .content-highlight { flex-direction: column; }
    .hl-item { border-right: none; border-bottom: 1px solid #E8E8E8; padding-bottom: 12px; }
    .hl-item:last-child { border-bottom: none; }
}

@media (max-width: 1024px) {
    .stories-grid { grid-template-columns: repeat(2, 1fr); }
    .jobs-grid { grid-template-columns: repeat(2, 1fr); }
}
