/* === Daily Macro Brief — Landing Page === */

:root {
    --bg: #080c14;
    --bg-2: #0c1220;
    --bg-3: #111827;
    --border: #1e2d4a;
    --border-bright: #2a4070;
    --text: #c8d6e5;
    --text-2: #7b8fa3;
    --text-3: #4a5d75;
    --accent: #4a9eff;
    --accent-glow: rgba(74, 158, 255, 0.15);
    --green: #2ed573;
    --red: #ff4757;
    --yellow: #ffa502;
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono: 'SF Mono', 'Fira Code', 'JetBrains Mono', Consolas, monospace;
    --max: 1160px;
    --radius: 8px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

/* === NAV === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.nav.scrolled {
    background: rgba(8, 12, 20, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: var(--border);
}

.nav-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 18px 28px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.3px;
}

.logo-diamond {
    color: var(--accent);
    font-size: 16px;
}

.logo-text { color: var(--text); }

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

.nav-link {
    color: var(--text-2);
    font-size: 13px;
    padding: 8px 14px;
    border-radius: 4px;
    transition: color 0.15s;
}

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

.nav-cta {
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 5px;
    transition: all 0.15s;
    letter-spacing: 0.3px;
}

.nav-cta:hover {
    background: #6db3ff;
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(74, 158, 255, 0.3);
}

.nav-hamburger {
    display: none;
    background: none;
    border: 1px solid var(--border);
    color: var(--text-2);
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-left: auto;
}

.nav-mobile {
    display: none;
    flex-direction: column;
    padding: 16px 28px;
    border-top: 1px solid var(--border);
    background: rgba(8, 12, 20, 0.97);
    gap: 4px;
}

.nav-mobile a {
    padding: 12px 0;
    color: var(--text-2);
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.nav-mobile .mobile-cta {
    color: var(--accent);
    font-weight: 600;
    border-bottom: none;
}

.nav-mobile.open { display: flex; }

/* === TICKER === */
.ticker-wrap {
    position: fixed;
    top: 61px;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    height: 34px;
}

.ticker-track {
    display: flex;
    align-items: center;
    height: 34px;
    white-space: nowrap;
    animation: tickerScroll 40s linear infinite;
}

.ticker-wrap:hover .ticker-track { animation-play-state: paused; }

@keyframes tickerScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.tick-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 24px;
    font-family: var(--mono);
    font-size: 11px;
}

.tick-symbol {
    color: var(--text-2);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.tick-price { color: var(--text); font-weight: 600; }

.tick-up { color: var(--green); }
.tick-down { color: var(--red); }

.tick-sep { color: var(--border-bright); padding: 0 8px; }

.ticker-loading {
    padding: 0 24px;
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
}

/* === HERO === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 28px 100px;
    position: relative;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(74, 158, 255, 0.08) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
}

.hero-glow-left {
    background: radial-gradient(circle, rgba(74, 158, 255, 0.12) 0%, transparent 70%);
    top: -100px;
    left: -200px;
}

.hero-glow-right {
    background: radial-gradient(circle, rgba(46, 213, 115, 0.06) 0%, transparent 70%);
    bottom: -100px;
    right: -200px;
}

.hero-inner {
    position: relative;
    max-width: 860px;
    text-align: center;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: var(--accent);
    border: 1px solid rgba(74, 158, 255, 0.3);
    background: rgba(74, 158, 255, 0.06);
    padding: 7px 16px;
    border-radius: 20px;
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(46, 213, 115, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 4px rgba(46, 213, 115, 0); }
}

.hero-headline {
    font-size: clamp(42px, 7vw, 80px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    color: #fff;
    margin-bottom: 28px;
}

.hero-sub {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-2);
    line-height: 1.7;
    max-width: 620px;
    margin: 0 auto 40px;
}

.hero-ctas {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 6px;
    transition: all 0.2s;
    letter-spacing: 0.2px;
}

.btn-primary:hover {
    background: #6db3ff;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 158, 255, 0.35);
    color: #fff;
}

.btn-primary.large {
    font-size: 17px;
    padding: 16px 40px;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    color: var(--text-2);
    font-size: 15px;
    padding: 14px 24px;
    border-radius: 6px;
    border: 1px solid var(--border-bright);
    transition: all 0.2s;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: var(--text-3);
}

/* Hero Card */
.hero-card {
    background: var(--bg-2);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    max-width: 680px;
    margin: 0 auto;
    text-align: left;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(74, 158, 255, 0.1);
}

.hero-card-loading {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 28px 32px;
    color: var(--text-3);
    font-size: 13px;
    font-family: var(--mono);
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    flex-shrink: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--bg-3);
}

.card-date {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-3);
    letter-spacing: 0.5px;
}

.card-live {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--green);
    letter-spacing: 1px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.card-headliner {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
}

.card-headliner-label {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--yellow);
    margin-bottom: 8px;
}

.card-headliner-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.4;
}

.card-headliner-summary {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.6;
}

.card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid var(--border);
}

.card-stat {
    padding: 16px 24px;
    border-right: 1px solid var(--border);
}

.card-stat:last-child { border-right: none; }

.card-stat-val {
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.card-stat-label {
    font-size: 11px;
    color: var(--text-3);
    margin-top: 2px;
}

.card-cta {
    display: block;
    padding: 16px 24px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.3px;
    transition: background 0.15s;
}

.card-cta:hover { background: rgba(74, 158, 255, 0.05); }

/* === STATS BAR === */
.stats-bar {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-inner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 40px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.stat-item {
    text-align: center;
    padding: 0 60px;
}

.stat-value {
    font-size: 40px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -1px;
    font-family: var(--mono);
}

.stat-label {
    font-size: 12px;
    color: var(--text-3);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border-bright);
}

/* === COMMON SECTION STYLES === */
.container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 28px;
}

.section-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: #fff;
    margin-bottom: 20px;
}

.section-sub {
    font-size: 17px;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 560px;
    margin-bottom: 60px;
}

/* === FEATURES === */
.features {
    padding: 100px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--border-bright);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.feature-icon-wrap {
    width: 40px;
    height: 40px;
    background: rgba(74, 158, 255, 0.08);
    border: 1px solid rgba(74, 158, 255, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon {
    font-size: 16px;
    color: var(--accent);
}

.feature-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.7;
    margin-bottom: 16px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.feature-tags span {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-3);
    background: var(--bg-3);
    border: 1px solid var(--border);
    padding: 3px 8px;
    border-radius: 3px;
}

/* === HOW IT WORKS === */
.how-section {
    padding: 100px 0;
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
}

.step:last-child { border-bottom: none; }

.step-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 4px;
}

.step-number {
    font-family: var(--mono);
    font-size: 28px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -1px;
    flex-shrink: 0;
}

.step-line {
    width: 1px;
    flex: 1;
    background: var(--border);
    margin-top: 12px;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.step-desc {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.8;
    margin-bottom: 20px;
}

.step-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.step-chips span {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--accent);
    background: rgba(74, 158, 255, 0.08);
    border: 1px solid rgba(74, 158, 255, 0.2);
    padding: 4px 10px;
    border-radius: 3px;
}

/* === POWERED BY === */
.powered-bar {
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.powered-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.powered-label {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-3);
}

.powered-item {
    font-size: 12px;
    color: var(--text-2);
}

.powered-sep { color: var(--border-bright); }

/* === CTA SECTION === */
.cta-section {
    padding: 120px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(74, 158, 255, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta-inner { position: relative; z-index: 1; }

.cta-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--green);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cta-label::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--green);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.cta-headline {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    color: #fff;
    margin-bottom: 20px;
}

.cta-sub {
    font-size: 17px;
    color: var(--text-2);
    margin-bottom: 40px;
}

/* === FOOTER === */
.footer {
    background: var(--bg-2);
    border-top: 1px solid var(--border);
    padding: 48px 28px;
}

.footer-inner {
    max-width: var(--max);
    margin: 0 auto;
}

.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 15px;
}

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

.footer-links a {
    font-size: 13px;
    color: var(--text-2);
    transition: color 0.15s;
}

.footer-links a:hover { color: var(--text); }

.footer-bottom {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-disclaimer {
    font-size: 11px;
    color: var(--text-3);
    line-height: 1.7;
    max-width: 620px;
}

.footer-copy {
    font-size: 11px;
    color: var(--text-3);
    flex-shrink: 0;
}

/* === SCROLL REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-inner { gap: 0; }
    .stat-item { padding: 0 30px; }
}

@media (max-width: 640px) {
    .nav-links { display: none; }
    .nav-hamburger { display: block; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-inner { flex-direction: column; gap: 32px; }
    .stat-divider { width: 48px; height: 1px; }
    .step { grid-template-columns: 50px 1fr; gap: 20px; }
    .step-number { font-size: 22px; }
    .hero { padding: 140px 20px 80px; }
    .hero-ctas { flex-direction: column; }
    .card-stats { grid-template-columns: repeat(3, 1fr); }
    .footer-top { flex-direction: column; }
    .footer-links { flex-wrap: wrap; gap: 16px; }
    .ticker-wrap { top: 57px; }
}
