:root {
  --bg: #0a0a0f;
  --bg2: #12121a;
  --bg3: #1a1a26;
  --surface: #1e1e2e;
  --surface2: #252538;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --text: #f0f0f8;
  --text2: #9898b8;
  --text3: #5a5a7a;
  --accent: #7c6aff;
  --accent2: #a594ff;
  --accent-glow: rgba(124,106,255,0.15);
  --green: #22d3a0;
  --green-bg: rgba(34,211,160,0.08);
  --red: #ff5f7a;
  --red-bg: rgba(255,95,122,0.08);
  --amber: #ffb830;
  --amber-bg: rgba(255,184,48,0.08);
  --gold: #f0c040;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

/* NAV */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  height: 60px;
  gap: 2rem;
}
.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 17px;
  color: var(--text);
  letter-spacing: -0.5px;
  white-space: nowrap;
  text-decoration: none;
}
.nav-logo span { color: var(--accent2); }
.nav-links { display: flex; gap: 0.25rem; margin-left: auto; }
.nav-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--text2);
  padding: 6px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
}
.nav-link:hover { color: var(--text); background: var(--surface); }
.nav-link.active { color: var(--accent2); background: var(--accent-glow); }
.nav-badge {
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid rgba(34,211,160,0.2);
  padding: 3px 10px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.live-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

/* TICKER */
.ticker-wrap {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  padding: 10px 0;
  overflow: hidden;
}
.ticker-track {
  display: flex;
  animation: ticker 40s linear infinite;
  width: max-content;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 2rem;
  font-family: 'DM Mono', monospace;
  font-size: 12px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
}
.ticker-name { color: var(--text2); }
.ticker-val { color: var(--text); font-weight: 500; }
.ticker-chg.up { color: var(--green); }
.ticker-chg.down { color: var(--red); }
@keyframes ticker { from{transform:translateX(0);} to{transform:translateX(-50%);} }

/* LAYOUT */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.two-col { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; margin-bottom: 2rem; }
.page-fade { animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from{opacity:0;transform:translateY(6px);} to{opacity:1;transform:translateY(0);} }

/* TYPOGRAPHY */
.page-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -1px;
  padding: 3rem 0 0.5rem;
  line-height: 1.15;
}
.page-sub { color: var(--text2); font-size: 15px; font-weight: 300; margin-bottom: 2rem; }
.section-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; padding-top: 3rem; }
.section-title { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -0.5px; }
.section-meta { font-size: 12px; font-family: 'DM Mono', monospace; color: var(--text3); }
.hero-eyebrow {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  color: var(--accent2);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before { content:''; display:block; width:24px; height:1px; background:var(--accent2); }

/* BUTTONS */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary:hover { background: var(--accent2); transform: translateY(-1px); }
.btn-secondary {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
  padding: 12px 24px;
  border-radius: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary:hover { color: var(--text); border-color: var(--accent); }

/* CARDS */
.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}
.metric-card:hover { border-color: var(--border2); }
.metric-label {
  font-size: 11px;
  font-family: 'DM Mono', monospace;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.metric-val { font-family: 'Syne', sans-serif; font-size: 28px; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.metric-sub { font-size: 12px; color: var(--text2); }
.metric-card.up .metric-val { color: var(--green); }
.metric-card.down .metric-val { color: var(--red); }
.metric-card.neutral .metric-val { color: var(--amber); }
.metric-card.accent .metric-val { color: var(--accent2); }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-bottom: 2rem; }

.analysis-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}
.analysis-card-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.analysis-card-title .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.analysis-body { color: var(--text2); font-size: 14px; line-height: 1.8; font-weight: 300; }

/* SENTIMENT */
.sentiment-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.sentiment-name { font-size: 13px; color: var(--text2); width: 110px; flex-shrink: 0; }
.sentiment-bar { flex: 1; height: 4px; background: var(--bg3); border-radius: 2px; overflow: hidden; }
.sentiment-fill { height: 100%; border-radius: 2px; background: var(--accent); }
.sentiment-fill.high { background: var(--green); }
.sentiment-fill.low { background: var(--red); }
.sentiment-fill.mid { background: var(--amber); }
.sentiment-score { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text2); width: 28px; text-align: right; }

/* SCENARIOS */
.scenario-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 2rem 0; }
.scenario-box { border-radius: 14px; padding: 1.25rem; }
.scenario-box.bull { background: var(--green-bg); border: 1px solid rgba(34,211,160,0.15); }
.scenario-box.bear { background: var(--red-bg); border: 1px solid rgba(255,95,122,0.15); }
.scenario-label { font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 8px; }
.scenario-box.bull .scenario-label { color: var(--green); }
.scenario-box.bear .scenario-label { color: var(--red); }
.scenario-text { font-size: 13px; color: var(--text2); line-height: 1.7; }

/* TAGS */
.tag { display: inline-block; font-size: 11px; padding: 2px 10px; border-radius: 20px; font-family: 'DM Mono', monospace; }
.tag.buy { background: var(--green-bg); color: var(--green); border: 1px solid rgba(34,211,160,0.2); }
.tag.hold { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(255,184,48,0.2); }
.tag.watch { background: var(--accent-glow); color: var(--accent2); border: 1px solid rgba(124,106,255,0.2); }
.tag.avoid { background: var(--red-bg); color: var(--red); border: 1px solid rgba(255,95,122,0.2); }

/* TABLE */
.sectors-table { width: 100%; border-collapse: collapse; }
.sectors-table th { font-size: 11px; font-family: 'DM Mono', monospace; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.sectors-table td { padding: 14px; font-size: 13px; border-bottom: 1px solid var(--border); color: var(--text2); }
.sectors-table td:first-child { color: var(--text); font-weight: 500; }
.sectors-table tr:last-child td { border-bottom: none; }
.sectors-table tr:hover td { background: var(--surface2); }

/* INDICATORS */
.indicators-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 2rem; }
.indicator-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; }
.indicator-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.indicator-name { font-size: 13px; font-weight: 500; margin-bottom: 2px; }
.indicator-desc { font-size: 11px; color: var(--text3); }
.indicator-val { font-family: 'Syne', sans-serif; font-size: 22px; font-weight: 700; }
.indicator-gauge { height: 3px; background: var(--bg3); border-radius: 2px; margin-bottom: 8px; overflow: hidden; }
.indicator-gauge-fill { height: 100%; border-radius: 2px; }
.indicator-signal { font-size: 11px; }

/* BLOG */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }
.blog-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem; cursor: pointer; transition: all 0.2s; text-decoration: none; display: block; color: inherit; }
.blog-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.blog-cat { font-size: 11px; font-family: 'DM Mono', monospace; color: var(--accent2); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 10px; }
.blog-title { font-family: 'Syne', sans-serif; font-size: 17px; font-weight: 600; line-height: 1.3; margin-bottom: 10px; letter-spacing: -0.3px; }
.blog-excerpt { font-size: 13px; color: var(--text2); line-height: 1.7; margin-bottom: 14px; }
.blog-meta { font-size: 12px; color: var(--text3); display: flex; gap: 12px; }
.blog-card.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; background: linear-gradient(135deg, var(--surface) 0%, #1e1e38 100%); border-color: rgba(124,106,255,0.2); }
.blog-card.featured .blog-title { font-size: 22px; }

/* ABOUT */
.about-hero { padding: 4rem 0 2rem; max-width: 680px; }
.about-hero h2 { font-family: 'Syne', sans-serif; font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin-bottom: 1.25rem; }
.about-hero p { color: var(--text2); font-size: 16px; font-weight: 300; line-height: 1.8; margin-bottom: 1rem; }
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 2rem 0; }
.about-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 1.25rem; }
.about-icon { font-size: 20px; margin-bottom: 12px; }
.about-card h4 { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.about-card p { font-size: 13px; color: var(--text2); line-height: 1.7; }

/* UPDATE STRIP */
.update-strip { background: var(--accent-glow); border: 1px solid rgba(124,106,255,0.2); border-radius: 10px; padding: 10px 16px; font-size: 13px; color: var(--accent2); display: flex; align-items: center; gap: 10px; margin-bottom: 2rem; }
.update-strip strong { color: var(--text); }

/* HERO */
.hero { padding: 5rem 2rem 3rem; max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.hero h1 { font-family: 'Syne', sans-serif; font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -1.5px; margin-bottom: 1.25rem; }
.hero h1 em { font-style: normal; color: var(--accent2); }
.hero-sub { color: var(--text2); font-size: 16px; font-weight: 300; line-height: 1.7; margin-bottom: 2rem; max-width: 420px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.chart-card { background: var(--surface); border: 1px solid var(--border2); border-radius: 20px; padding: 1.5rem; position: relative; overflow: hidden; }
.chart-card::before { content:''; position:absolute; top:-60px; right:-60px; width:200px; height:200px; background:radial-gradient(circle, rgba(124,106,255,0.12) 0%, transparent 70%); pointer-events:none; }
.chart-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.5rem; }
.chart-title { font-size: 12px; color: var(--text2); margin-bottom: 4px; }
.chart-val { font-family: 'Syne', sans-serif; font-size: 26px; font-weight: 700; }
.chart-sub { font-size: 12px; color: var(--green); margin-top: 2px; }
.mini-chart { width: 100%; height: 100px; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 1.25rem; border-top: 1px solid var(--border); padding-top: 1.25rem; }
.stat-item { text-align: center; }
.stat-label { font-size: 11px; color: var(--text3); margin-bottom: 4px; }
.stat-val { font-family: 'DM Mono', monospace; font-size: 14px; font-weight: 500; }

/* PRIVACY */
.privacy-content { max-width: 760px; padding: 3rem 0 4rem; }
.privacy-content h2 { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 700; margin: 2rem 0 0.75rem; color: var(--text); }
.privacy-content p, .privacy-content li { font-size: 14px; color: var(--text2); line-height: 1.9; margin-bottom: 0.75rem; }
.privacy-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.privacy-content a { color: var(--accent2); }

/* DIVIDER */
.divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

/* FOOTER */
footer { border-top: 1px solid var(--border); padding: 2rem; margin-top: 4rem; display: flex; justify-content: space-between; align-items: center; color: var(--text3); font-size: 12px; flex-wrap: wrap; gap: 1rem; }
.footer-logo { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 14px; color: var(--text2); text-decoration: none; }
.footer-logo span { color: var(--accent2); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--text3); text-decoration: none; font-size: 12px; }
.footer-links a:hover { color: var(--text2); }
.footer-disclaimer { max-width: 400px; text-align: center; line-height: 1.6; }

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; padding: 2rem 1rem; }
  .two-col { grid-template-columns: 1fr; }
  .scenario-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .blog-card.featured { grid-template-columns: 1fr; }
  nav { padding: 0 1rem; gap: 1rem; }
  .nav-links { display: none; }
  .container { padding: 0 1rem; }
  footer { flex-direction: column; text-align: center; }
  .footer-disclaimer { max-width: 100%; }
}
