:root {
    --bg-primary: #FFFFFF;
    --bg-secondary: #F9FAFB;
    --accent-primary: #00A859;
    --accent-secondary: #064E3B;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-muted: #6B7280;
    --border-light: #E5E7EB;
    --border-accent: rgba(0, 168, 89, 0.3);
    --container-max: 1200px;
    --header-height: 76px;
    --ticker-height: 40px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; font-weight: 600; }
a { text-decoration: none; color: inherit; }

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

/* NEWS TICKER */
.news-ticker {
    position: fixed;
    top: 0; left: 0; width: 100%;
    height: var(--ticker-height);
    background: var(--accent-secondary);
    z-index: 2000;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: white;
}
.ticker-label {
    flex-shrink: 0;
    background: var(--accent-primary);
    color: white;
    font-weight: 800;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    white-space: nowrap;
}
.ticker-track {
    display: flex;
    align-items: center;
    animation: ticker-scroll 50s linear infinite;
    white-space: nowrap;
}
.ticker-item {
    font-size: 0.8rem;
    padding: 0 2rem;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.ticker-item span { color: var(--accent-primary); font-weight: 600; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* HEADER */
#main-header {
    position: fixed;
    top: var(--ticker-height);
    left: 0; width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow 0.3s ease;
}
#main-header.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,0.07); }
#main-header nav { display: flex; justify-content: space-between; align-items: center; height: 100%; }

.logo { font-family: 'Outfit', sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--accent-secondary); }
.logo span { color: var(--accent-primary); }
.logo-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-primary); display: inline-block; margin-left: 3px; animation: pulse-dot 2s infinite; }

.nav-links { display: flex; list-style: none; gap: 2.5rem; }
.nav-link { color: var(--text-secondary); font-weight: 500; font-size: 0.9rem; transition: color 0.2s; position: relative; }
.nav-link:hover { color: var(--accent-primary); }
.nav-link::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--accent-primary); transition: width 0.3s; }
.nav-link:hover::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 1.5rem; }
.nav-date { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 7px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}
.btn-primary { background: var(--accent-primary); color: white; }
.btn-primary:hover { background: #008f4c; }
.btn-outline { background: transparent; color: var(--accent-secondary); border: 2px solid var(--border-light); }
.btn-outline:hover { border-color: var(--accent-primary); color: var(--accent-primary); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* HERO */
.hero-section {
    padding-top: calc(var(--ticker-height) + var(--header-height) + 4rem);
    padding-bottom: 4rem;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
}
.hero-container { display: grid; grid-template-columns: 1.1fr 1fr; gap: 4rem; align-items: center; }

.hero-badge {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    background: rgba(0,168,89,0.1);
    color: var(--accent-primary);
    border-radius: 20px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.hero-content h1 { font-size: 3rem; color: var(--accent-secondary); margin-bottom: 1.25rem; line-height: 1.1; }
.hero-content h1 em { color: var(--accent-primary); font-style: normal; }
.hero-description { font-size: 1.1rem; color: var(--text-secondary); margin-bottom: 2.5rem; line-height: 1.8; }

.hero-stats {
    display: flex;
    gap: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}
.hero-stat { display: flex; flex-direction: column; }
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--accent-primary); font-family: 'Outfit', sans-serif; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.hero-visual { position: relative; }
.hero-img-wrapper { border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.1); }
.hero-img-wrapper img { width: 100%; display: block; }

.hero-news-card {
    position: absolute;
    bottom: -20px; right: -20px;
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    width: 280px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border-left: 4px solid var(--accent-primary);
}
.news-card-tag { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; color: var(--accent-primary); margin-bottom: 0.5rem; display: block; }
.news-card-headline { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); line-height: 1.4; }

/* BREAKING SECTION */
.breaking-section { padding: 4rem 0; background: white; border-bottom: 1px solid var(--border-light); }
.breaking-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; }
.breaking-item { padding: 1.5rem; border: 1px solid var(--border-light); border-radius: 12px; transition: 0.3s; }
.breaking-item:hover { border-color: var(--accent-primary); box-shadow: 0 8px 25px rgba(0,0,0,0.05); }
.breaking-number { font-size: 2rem; font-weight: 800; color: var(--border-light); margin-bottom: 0.5rem; }
.breaking-headline { font-size: 1rem; font-weight: 600; color: var(--accent-secondary); margin-bottom: 0.5rem; }
.breaking-meta { font-size: 0.75rem; color: var(--text-muted); }

/* SECTION HEADERS */
.section-label { font-size: 0.78rem; font-weight: 700; color: var(--accent-primary); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem; display: block; }
.section-title { font-size: 2.3rem; color: var(--accent-secondary); margin-bottom: 0.75rem; }
.section-subtitle { color: var(--text-secondary); max-width: 600px; margin-bottom: 3rem; }

/* NEWS FEED */
.news-section { padding: 6rem 0; background: var(--bg-secondary); }
.news-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; }
.article-card {
    display: flex; gap: 1.5rem;
    padding: 1.5rem; background: white; border-radius: 12px; border: 1px solid var(--border-light);
    margin-bottom: 1.5rem; transition: 0.3s;
}
.article-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.05); }
.article-img-thumb { width: 200px; height: 140px; border-radius: 8px; object-fit: cover; }
.article-title { font-size: 1.1rem; font-weight: 600; color: var(--accent-secondary); margin-bottom: 0.5rem; }
.article-excerpt { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 1rem; }
.article-meta { font-size: 0.75rem; color: var(--text-muted); display: flex; gap: 1rem; }

/* SIDEBAR */
.sidebar-widget { background: white; padding: 1.5rem; border-radius: 12px; border: 1px solid var(--border-light); margin-bottom: 1.5rem; }
.widget-title { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; color: var(--accent-secondary); border-bottom: 2px solid var(--accent-primary); padding-bottom: 0.5rem; margin-bottom: 1rem; }
.market-row { display: flex; justify-content: space-between; padding: 0.75rem 0; border-bottom: 1px solid var(--border-light); }
.market-value { font-weight: 700; color: var(--accent-secondary); }
.change-up { color: var(--accent-primary); font-weight: 600; }

/* MARKET DATA */
.market-section { padding: 6rem 0; background: white; }
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 3rem; }
.chart-card { border: 1px solid var(--border-light); border-radius: 14px; padding: 1.75rem; background: var(--bg-secondary); }
.chart-wrap { height: 240px; }

.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--border-light); border-radius: 14px; overflow: hidden; }
.kpi-box { padding: 1.75rem; border-right: 1px solid var(--border-light); text-align: center; }
.kpi-box:last-child { border-right: none; }
.kpi-value { font-size: 1.8rem; font-weight: 800; color: var(--accent-primary); font-family: 'Outfit', sans-serif; }

/* SERVICES */
.services-section { padding: 6rem 0; background: var(--bg-secondary); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }

.service-card { 
    background: white; 
    border: 1px solid var(--border-light); 
    border-radius: 14px; 
    overflow: hidden; 
    transition: transform 0.3s, box-shadow 0.3s; 
}
.service-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 12px 30px rgba(0,0,0,0.07); 
}

.service-img-wrap { overflow: hidden; height: 200px; }
.service-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.service-card:hover .service-img-wrap img { transform: scale(1.04); }

.service-card-body { padding: 1.5rem; }
.service-card-body h3 { font-size: 1.1rem; color: var(--accent-secondary); margin-bottom: 0.75rem; }
.service-card-body p { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.6; }

.service-stat { 
    display: inline-block; 
    margin-top: 1rem; 
    font-size: 0.78rem; 
    font-weight: 600; 
    color: var(--accent-primary); 
    background: rgba(0,168,89,0.08); 
    border-radius: 20px; 
    padding: 0.3rem 0.9rem; 
}

.service-card-mini { 
    background: white; 
    border: 1px solid var(--border-light); 
    border-radius: 14px; 
    padding: 1.75rem; 
    transition: transform 0.3s, box-shadow 0.3s; 
}
.service-card-mini:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 12px 30px rgba(0,0,0,0.07); 
}
.service-card-mini h3 { font-size: 1.05rem; color: var(--accent-secondary); margin-bottom: 0.6rem; }
.service-card-mini p { font-size: 0.88rem; color: var(--text-secondary); }

/* POLICY WATCH */
.policy-section { padding: 6rem 0; background: white; }
.policy-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 3rem; }
.policy-item { display: flex; gap: 1.5rem; padding: 1.5rem 0; border-bottom: 1px solid var(--border-light); }
.policy-date-day { font-size: 1.6rem; font-weight: 800; color: var(--accent-primary); }

/* FOOTER */
footer { background: var(--accent-secondary); color: white; padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 4rem; margin-bottom: 3rem; }
.footer-logo { font-size: 1.8rem; font-weight: 800; margin-bottom: 1rem; }
.footer-logo span { color: var(--accent-primary); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.footer-col h4 { margin-bottom: 1.5rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.75rem; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.9rem; transition: 0.2s; }
.footer-col a:hover { color: var(--accent-primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 2rem; text-align: center; color: rgba(255,255,255,0.4); font-size: 0.8rem; }

/* ANIMATIONS */
.section-fadeup { opacity: 0; transform: translateY(20px); transition: 0.6s ease-out; }
.section-fadeup.revealed { opacity: 1; transform: translateY(0); }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }

/* LOADER */
.loader-wrapper { position: fixed; inset: 0; background: white; display: flex; flex-direction: column; justify-content: center; align-items: center; z-index: 9999; transition: opacity 0.6s; }
.loader-logo { font-size: 2rem; font-weight: 800; color: var(--accent-secondary); margin-bottom: 1rem; }
.loader-logo span { color: var(--accent-primary); }
.loader-bar { width: 120px; height: 3px; background: var(--border-light); border-radius: 3px; overflow: hidden; }
.loader-bar-fill { height: 100%; background: var(--accent-primary); animation: load-fill 1.2s forwards; }
@keyframes load-fill { from { width: 0; } to { width: 100%; } }

@media (max-width: 992px) {
    .hero-container, .news-layout, .policy-grid, .footer-grid, .services-grid, .charts-grid, .breaking-grid { grid-template-columns: 1fr; text-align: center; }
    .nav-links, .nav-cta { display: none; }
    .hero-stats { justify-content: center; }
    .article-card { flex-direction: column; align-items: center; }
    .article-img-thumb { width: 100%; height: 200px; }
    .kpi-strip { grid-template-columns: 1fr 1fr; }
}
