/* The Leverage Stack — shared site styles
   Palette + type ported from links.html so the whole site reads as one brand. */
:root {
  --ink: #0b0e13;
  --ink-2: #10141c;
  --ink-3: #161b25;
  --gold: #c0a060;
  --gold-bright: #e2c185;
  --bone: #efe9dd;
  --dim: #8b8577;
  --line: rgba(192,160,96,0.22);
  --maxw: 1080px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--ink);
  color: var(--bone);
  line-height: 1.7;
  overflow-x: hidden;
  position: relative;
  min-height: 100dvh;
}
/* Faint circuit-grid + gold bloom, echoing the cover art */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(192,160,96,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192,160,96,0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 100% 55% at 50% 0%, black 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 100% 55% at 50% 0%, black 25%, transparent 78%);
  pointer-events: none;
}
a { color: var(--gold-bright); text-decoration: none; }
img { max-width: 100%; display: block; }

/* ---- Layout ---- */
.container { width: min(var(--maxw), 92vw); margin: 0 auto; position: relative; z-index: 1; }
section { padding: 68px 0; }
.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .28em;
  text-transform: uppercase; color: var(--gold);
}
h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 650; letter-spacing: .01em; line-height: 1.18; }
h1 em, h2 em { font-style: italic; font-weight: 500; color: var(--gold-bright); }

/* ---- Header / nav ---- */
header.site {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(11,14,19,0.72);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 0; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand .mark {
  width: 34px; height: 34px; border: 1px solid rgba(192,160,96,0.55);
  border-radius: 50%; position: relative; flex: none;
}
.brand .mark span { position: absolute; left: 50%; transform: translateX(-50%); background: var(--gold); border-radius: 1px; }
.brand .mark span:nth-child(1){ width:15px; height:2px; bottom:8px; }
.brand .mark span:nth-child(2){ width:11px; height:2px; bottom:12px; }
.brand .mark span:nth-child(3){ width:7px;  height:2px; bottom:16px; }
.brand .mark span:nth-child(4){ width:2px;  height:10px; bottom:15px; left:62%; transform:translateX(-50%) rotate(38deg); background:var(--gold-bright); }
.brand .name { font-family: 'Fraunces', serif; font-weight: 600; font-size: 1.05rem; color: var(--bone); }
.brand .name em { font-style: italic; color: var(--gold-bright); }
.app-icon { width: 40px; height: 40px; border-radius: 8px; display: block; margin-bottom: 18px; }
nav.menu { display: flex; align-items: center; gap: 26px; }
nav.menu a {
  color: var(--dim); font-size: .92rem; font-weight: 400; letter-spacing: .02em;
  transition: color .16s ease;
}
nav.menu a:hover, nav.menu a[aria-current="page"] { color: var(--bone); }
@media (max-width: 620px) {
  nav.menu { gap: 16px; }
  nav.menu a.hide-sm { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-block; font-weight: 500; font-size: .95rem; letter-spacing: .02em;
  padding: 13px 26px; border-radius: 12px; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.btn.primary { background: var(--gold); color: var(--ink); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(192,160,96,0.25); }
.btn.ghost { border: 1px solid var(--line); color: var(--bone); }
.btn.ghost:hover { border-color: rgba(192,160,96,0.7); transform: translateY(-2px); }

/* ---- Hero ---- */
.hero { padding: 92px 0 72px; text-align: center; position: relative; }
.hero::after {
  content: ''; position: absolute; top: -10vh; left: 50%; transform: translateX(-50%);
  width: 120vw; height: 46vh;
  background: radial-gradient(ellipse at center, rgba(192,160,96,0.14), transparent 65%);
  pointer-events: none; z-index: -1;
}
.hero h1 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); max-width: 16ch; margin: 18px auto 0; }
.hero p.lead { font-weight: 300; font-size: clamp(1rem, 2.4vw, 1.22rem); color: var(--dim); max-width: 52ch; margin: 20px auto 0; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }

/* ---- Section headers ---- */
.sec-head { max-width: 60ch; margin-bottom: 36px; }
.sec-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-top: 10px; }
.sec-head p { color: var(--dim); font-weight: 300; margin-top: 12px; }

/* ---- Card grid ---- */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 860px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }
.card {
  display: block; background: var(--ink-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 26px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
a.card:hover { transform: translateY(-3px); border-color: rgba(192,160,96,0.6); box-shadow: 0 14px 40px rgba(0,0,0,0.45); }
.card .kicker { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.card h3 { font-size: 1.24rem; margin: 12px 0 8px; color: var(--bone); }
.card p { color: var(--dim); font-weight: 300; font-size: .95rem; }
.card .more { display: inline-block; margin-top: 14px; color: var(--gold-bright); font-size: .88rem; }
.card .more::after { content: ' →'; }

/* ---- Prose (articles / legal) ---- */
.prose { width: min(720px, 92vw); margin: 0 auto; }
.prose .eyebrow { display: block; margin-bottom: 14px; }
.prose h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 12px; }
.prose .meta { color: var(--dim); font-size: .88rem; letter-spacing: .04em; margin-bottom: 8px; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 14px; color: var(--bone); }
.prose h3 { font-size: 1.15rem; margin: 28px 0 10px; color: var(--gold-bright); font-weight: 600; }
.prose p, .prose li { font-weight: 300; font-size: 1.04rem; color: #d9d3c6; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose strong { color: var(--bone); font-weight: 600; }
.prose a { text-decoration: underline; text-decoration-color: rgba(192,160,96,0.5); text-underline-offset: 3px; }
.prose blockquote {
  border-left: 2px solid var(--gold); margin: 24px 0; padding: 4px 0 4px 22px;
  font-family: 'Fraunces', serif; font-style: italic; font-size: 1.2rem; color: var(--gold-bright);
}
.callout {
  background: linear-gradient(160deg, rgba(192,160,96,0.12), rgba(192,160,96,0.03) 60%), var(--ink-2);
  border: 1px solid rgba(192,160,96,0.4); border-radius: 14px; padding: 22px 24px; margin: 28px 0;
}
.callout .kicker { font-size: .64rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); background: var(--gold); border-radius: 99px; padding: 4px 11px 3px; display: inline-block; margin-bottom: 12px; }
.callout p { margin-bottom: 0; }

/* ---- Disclosure ---- */
.disclosure { color: rgba(139,133,119,0.8); font-weight: 300; font-size: .78rem; line-height: 1.6; }

/* ---- Footer ---- */
footer.site { border-top: 1px solid var(--line); padding: 54px 0 40px; margin-top: 30px; }
.foot-grid { display: flex; flex-wrap: wrap; gap: 34px 60px; justify-content: space-between; }
.foot-brand { max-width: 34ch; }
.foot-brand p { color: var(--dim); font-weight: 300; font-size: .9rem; margin-top: 12px; }
.foot-col h4 { font-family: 'Outfit', sans-serif; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin-bottom: 14px; }
.foot-col a { display: block; color: var(--dim); font-size: .92rem; font-weight: 300; margin-bottom: 9px; transition: color .16s ease; }
.foot-col a:hover { color: var(--bone); }
.foot-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(192,160,96,0.12); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.foot-bottom small { color: rgba(139,133,119,0.7); font-size: .8rem; }
.foot-bottom .handle { color: var(--gold); font-size: .82rem; letter-spacing: .1em; }

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
  .reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; } .reveal.d3 { animation-delay: .24s; }
  @keyframes rise { to { opacity: 1; transform: translateY(0); } }
}
