/* Apex Invest — "Wall Street Terminal": Deep forest emerald with gold highlights.
   Represents capital growth, compounding, hedge fund intelligence, and wealth accumulation. */
:root {
  --measure: 68ch;
  --bg: #07120a;
  --bg2: #0b1a0f;
  --card: #102416;
  --text: #eaf7ed;
  --muted: #829e89;
  --line: #183321;
  --accent: #10b981;
  --accent-bright: #34d399;
  --gold: #fbbf24;
  --up: #22c55e;
  --max: 1020px;
  --radius: 8px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); line-height: 1.75;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(7, 18, 10, 0.94);
  backdrop-filter: blur(10px);
  position: sticky; top: 0; z-index: 20;
}
.site-header::after { content: ""; display: block; height: 3px; background: linear-gradient(90deg, #10b981, #fbbf24 70%, transparent); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.85rem 0; flex-wrap: wrap; }
.brand { font-weight: 800; letter-spacing: 0.02em; color: var(--text); font-size: 1.15rem; font-family: var(--mono); }
.brand span { color: var(--gold); }
.nav-links { display: flex; gap: 1.1rem; flex-wrap: wrap; font-size: 0.88rem; font-family: var(--mono); }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--gold); }

.hero { padding: 3.4rem 0 2.2rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); border: 1px solid #78350f; background: rgba(251, 191, 36, 0.10);
  padding: 0.35rem 0.75rem; border-radius: var(--radius); margin-bottom: 1rem;
}
.hero-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
.hero h1 { margin: 0 0 0.6rem; font-size: clamp(2.05rem, 5.2vw, 3.05rem); letter-spacing: -0.02em; font-weight: 800; }
.hero p { margin: 0; color: var(--muted); max-width: 60ch; }

.grid { display: grid; gap: 1.35rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); padding: 0.5rem 0 3rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.25rem; transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12); }
.card h2 { margin: 0 0 0.5rem; font-size: 1.08rem; letter-spacing: -0.01em; line-height: 1.4; }
.card h2 a { color: var(--text); }
.card p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.meta { font-family: var(--mono); color: var(--muted); font-size: 0.8rem; margin-bottom: 1.1rem; }
.meta::before { content: "📈 "; color: var(--gold); }

article.page { padding: 2rem 0 3.5rem; }
article.page h1 { margin: 0 0 0.6rem; letter-spacing: -0.02em; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; }
article.page h2 { margin: 2rem 0 0.7rem; font-size: 1.35rem; padding-left: 0.7rem; border-left: 3px solid var(--accent); border-bottom: 1px solid var(--line); padding-bottom: 0.3rem; }
article.page h3 { margin: 1.5rem 0 0.5rem; font-size: 1.1rem; color: var(--accent-bright); }
article.page p { margin: 0.9rem 0; }
article.page ul, article.page ol { margin: 1rem 0; padding-left: 1.4rem; }
article.page li { margin: 0.45rem 0; }
article.page li::marker { color: var(--accent); }
article.page blockquote { border-left: 3px solid var(--gold); background: var(--bg2); margin: 1.4rem 0; padding: 0.9rem 1.2rem; border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); }
article.page table { border-collapse: collapse; width: 100%; margin: 1.2rem 0; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
article.page th, article.page td { border: 1px solid var(--line); padding: 0.55rem 0.8rem; text-align: right; }
article.page th:first-child, article.page td:first-child { text-align: left; }
article.page th { background: var(--bg2); color: var(--muted); font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

.crumb { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); margin-bottom: 1.2rem; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--gold); }
.crumb .sep { margin: 0 0 0.45rem; color: var(--accent); }
.crumb .here { color: var(--text); }
.legal { font-size: 0.95rem; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 1.2rem; margin-bottom: 1.4rem; font-style: italic; }

.site-footer { border-top: 1px solid var(--line); padding: 2.2rem 0 3.5rem; color: var(--muted); font-size: 0.85rem; font-family: var(--mono); }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer .nav-links { margin-bottom: 0.7rem; }
