/* Codify Capital — carries the codifycomco identity: deep purple-black ground,
   Tailwind-purple accents (#a855f7 family), Playfair Display + Inter.
   Deliberately single-theme (dark): brand continuity with the original site. */

:root {
  --bg: #0b0612;
  --bg-2: #140a20;
  --card: #1a0f2a;
  --line: #2e1d47;
  --ink: #f3ecfd;
  --ink-2: #c9b8e4;
  --ink-3: #8d7bab;
  --accent: #a855f7;
  --accent-soft: #d8b4fe;
  --accent-deep: #581c87;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-soft); text-decoration: none; }
a:hover { color: var(--ink); }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 3px; }

h1, h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

/* ---------- hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; overflow: hidden; }
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.5;
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 50% at 25% 30%, rgba(168, 85, 247, 0.16), transparent 70%),
    linear-gradient(to bottom, rgba(11, 6, 18, 0.82), rgba(11, 6, 18, 0.62) 45%, var(--bg) 96%);
}
.hero-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 1060px; margin: 0 auto;
  padding: 28px 24px 90px;
  display: flex; flex-direction: column;
}
.nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 600; font-size: 17px; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 26px; font-size: 14.5px; }
.nav-links a { color: var(--ink-2); }
.nav-links a:hover { color: var(--ink); }

.hero-copy { margin: auto 0; padding-top: 72px; max-width: 780px; }
.hero-copy h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.14; margin-bottom: 22px; }
.sub { color: var(--ink-2); font-size: 18px; max-width: 62ch; }

.stat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 34px; }
.stat-chips span {
  font-size: 13.5px; color: var(--ink-2);
  border: 1px solid var(--line);
  background: rgba(26, 15, 42, 0.65);
  padding: 7px 14px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.stat-chips b { color: var(--accent-soft); font-weight: 600; margin-right: 4px; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 8px;
  font-weight: 600; font-size: 15px; transition: transform 0.15s ease, background 0.15s ease;
}
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: #b96ef8; transform: translateY(-1px); }
.btn.ghost { border: 1px solid var(--line); color: var(--ink-2); }
.btn.ghost:hover { border-color: var(--accent); color: var(--ink); }

/* ---------- sections ---------- */
.section { max-width: 1060px; margin: 0 auto; padding: 88px 24px; }
.section.alt { max-width: none; background: var(--bg-2); }
.section.alt > * { max-width: 1012px; margin-left: auto; margin-right: auto; }
.section.alt > .eyebrow, .section.alt > h2, .section.alt > .lede { max-width: 1012px; }
.section h2 { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 18px; }
.lede { color: var(--ink-2); font-size: 17px; max-width: 68ch; margin-bottom: 34px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 24px 22px;
}
.card h3 { font-size: 16.5px; margin-bottom: 10px; color: var(--accent-soft); }
.card p { font-size: 14.5px; color: var(--ink-2); }

.findings { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 10px; }
.finding {
  border-left: 3px solid var(--accent); padding: 6px 0 6px 20px;
}
.finding .num {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 34px; color: var(--ink); display: block; margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}
.finding p { font-size: 14.5px; color: var(--ink-2); }

.paper-sub { color: var(--ink-3); margin-bottom: 18px; max-width: 75ch; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); }
.foot-grid {
  max-width: 1060px; margin: 0 auto; padding: 54px 24px 20px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 30px;
}
.foot-head { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; font-weight: 600; }
.foot-note { color: var(--ink-3); font-size: 13.5px; margin-top: 10px; }
.foot-legal { max-width: 1060px; margin: 0 auto; padding: 8px 24px 34px; color: var(--ink-3); font-size: 12.5px; }

@media (max-width: 640px) {
  .wide-only { display: none; }
  .nav-links { display: none; }
  .hero-copy { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
  .btn { transition: none; }
}
