*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
 
:root {
  --bg: #000000;
  --surface: #1C1A21;
  --border: #1e2530;
  --accent: #8a65b8;
  --accent2: #d9dee1;
  --text: #d9dee1;
  --muted: #5a6472;
  --card-bg: #13181f;
}
 
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  padding: 0 0 80px;
}
 
/* ── HEADER ── */
header {
  position: relative;
  padding: 52px 24px 36px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #0d1117 0%, var(--bg) 100%);
  overflow: hidden;
  text-align: center; /* fallback */
}

/* center text block — now truly centered in the full header */
header .text-block {
  display: inline-block;
  text-align: center;
}

header h1 {
  font-family: 'Space Mono', monospace;
  font-size: clamp(22px, 4vw, 38px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
}

.header-logo {
  height: 1em; /* matches the current font-size exactly */
  width: auto;
  display: inline-block;
  vertical-align: middle;
  position: relative;
  top: -0.05em; /* subtle optical correction for cap-height alignment */
}

/* remove margin-induced drift */
header .label {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

header h1 span {
  color: var(--accent);
}

/* ── HERO: all_predictions ── */
.hero {
  max-width: 1100px;
  margin: 48px auto 0;
  padding: 0 24px;
}
.hero-label {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}
.hero-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-top: 2px solid var(--accent);
  border-radius: 4px;
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: 'ALL PREDICTIONS';
  position: absolute;
  bottom: 18px; right: 22px;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  color: var(--muted);
  opacity: 0.4;
}
.hero-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}
 
/* ── HORIZON GRID ── */
.section-label {
  max-width: 1100px;
  margin: 60px auto 20px;
  padding: 0 24px;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent2);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
}
 
.horizons {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(460px, 1fr));
  gap: 28px;
}
 
.h-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
  animation: fadeUp 0.5s ease both;
}
.h-card:hover {
  border-color: #8a65b8;
  transform: translateY(-2px);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.h-card:nth-child(1) { animation-delay: 0.05s; }
.h-card:nth-child(2) { animation-delay: 0.10s; }
.h-card:nth-child(3) { animation-delay: 0.15s; }
.h-card:nth-child(4) { animation-delay: 0.20s; }
 
.h-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,107,53,0.04);
}
.h-badge {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent2);
  letter-spacing: 2px;
}
.h-tag {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 2px;
}
 
.h-img-wrap {
  padding: 18px 18px 0;
}
.h-img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  border: 1px solid var(--border);
}
 
/* performance text block */
.perf-block {
  margin: 14px 18px 18px;
  background: #0d1117;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent2);
  border-radius: 2px;
  padding: 14px 16px;
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  line-height: 1.8;
  color: #a8b8c8;
  white-space: pre-wrap;
  word-break: break-word;
  overflow: auto;
  max-height: 260px;
}
.perf-block::-webkit-scrollbar { width: 4px; }
.perf-block::-webkit-scrollbar-track { background: transparent; }
.perf-block::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }
 
/* numbers glow slightly */
.perf-block .num { color: var(--accent2); }
 
/* loading / error states */
.placeholder {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  color: var(--muted);
  padding: 20px 18px;
  letter-spacing: 1px;
}
img.broken { filter: opacity(0.2) grayscale(1); }


/* Hamburger Code*/

.menu-container {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 10000;
}

/* button */
.hamburger {
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  padding: 6px 10px;
}

/* IMPORTANT: anchor dropdown to container */
.menu {
  display: none;
  position: absolute;
  top: 42px;
  left: 0;

  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 160px;

  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  overflow: hidden;
}

/* open state */
.menu.open {
  display: block;
}

/* links */
.menu a {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
}

.menu a:hover {
  background: rgba(138, 101, 184, 0.15);
}

.pdf-link {
  margin-top: 6px;
  font-size: 12px;
  font-family: "DM Sans", sans-serif;
  opacity: 0.7;
}

.pdf-link a {
  color: inherit;
  text-decoration: underline;
}

.pdf-link a:hover {
  opacity: 1;
}

.h-desc {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.7;
  line-height: 1.4;
}