/* ===== AI Reports — Databricks-style design ===== */
/* Design tokens captured from databricks.com/blog      */
/* - Font: DM Sans                                      */
/* - Page bg: #FBFAF9 (warm off-white)                  */
/* - Cards: white                                       */
/* - Accent blue: #016BC1                               */
/* - Heading: #35474D                                   */
/* - Body text: #1B3139                                 */

:root {
  --bg: #FBFAF9;
  --card: #FFFFFF;
  --text: #1B3139;
  --heading: #35474D;
  --accent: #016BC1;
  --muted: #5A6A72;
  --border: #E7E4E1;
  --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  font-size: 16px;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 700;
  font-size: 20px;
  color: var(--heading);
  text-decoration: none;
  letter-spacing: -0.4px;
}
.brand:hover { color: var(--accent); }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 40px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  color: var(--heading);
  margin: 0 0 16px;
  letter-spacing: -1px;
}
.hero-sub {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin: 0;
}

/* ---------- Filter bar ---------- */
.filter-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding: 14px 0;
}
.filter-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.cats { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.search-input {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 8px;
  padding: 9px 14px;
  font-family: inherit;
  font-size: 14px;
  min-width: 240px;
  color: var(--text);
}
.search-input:focus { outline: 2px solid var(--accent); border-color: transparent; }

/* ---------- Sections ---------- */
.picks, .recent { padding: 40px 0; }
.section-title {
  font-size: 20px;
  color: var(--heading);
  margin: 0 0 20px;
  font-weight: 700;
}

/* ---------- Feature (picks) card ---------- */
.feature {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  align-items: center;
  transition: box-shadow .15s ease, transform .15s ease;
}
.feature:hover { box-shadow: 0 10px 30px rgba(0,0,0,.07); transform: translateY(-2px); }
.feature .meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}
.feature .meta .tag { color: var(--accent); font-weight: 700; }
.feature h3 {
  font-size: clamp(20px, 2.4vw, 26px);
  color: var(--heading);
  margin: 0 0 12px;
  line-height: 1.2;
  letter-spacing: -0.4px;
}
.feature p { color: var(--muted); margin: 0 0 16px; }
.read-link { color: var(--accent); font-weight: 700; font-size: 15px; }
.read-link:hover { text-decoration: underline; }
.feature-thumb {
  border-radius: 8px;
  min-height: 160px;
  background:
    radial-gradient(circle at 30% 20%, rgba(1,107,193,.12), transparent 60%),
    linear-gradient(135deg, #EAF2F9, #F6F8FB);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-thumb span { font-size: 40px; }

/* ---------- Grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .15s ease, transform .15s ease;
}
.card:hover { box-shadow: 0 10px 26px rgba(0,0,0,.07); transform: translateY(-2px); }
.card .meta {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-weight: 500;
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.card .meta .tag { color: var(--accent); font-weight: 700; }
.card h3 {
  font-size: 18px;
  color: var(--heading);
  margin: 0 0 10px;
  line-height: 1.3;
  letter-spacing: -0.3px;
}
.card p { color: var(--muted); font-size: 14px; margin: 0 0 18px; flex: 1; }

/* ---------- Pagination ---------- */
.pagination {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Footer ---------- */
.site-footer { background: #0E2A2F; color: #DAE6EA; margin-top: 40px; }
.foot-wrap {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 48px 24px;
  flex-wrap: wrap;
}
.foot-wrap h3 { margin: 0 0 8px; color: #fff; font-size: 20px; }
.foot-wrap p { margin: 0; color: #9FB7BE; }
.subscribe { display: flex; gap: 10px; }
.subscribe input {
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #2F5057;
  background: #123238;
  color: #fff;
  font-family: inherit;
  min-width: 250px;
}
.subscribe button {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
}
.subscribe button:hover { background: #005ba0; }
.foot-bottom {
  border-top: 1px solid #2F5057;
  padding: 20px 24px;
  font-size: 13px;
  color: #9FB7BE;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .feature { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; }
}
