/* Apex Human Performance Institute — public site. Brand: black, white, lime (rgb 178,247,77). */
:root {
  --bg: #000000;
  --surface: #111211;
  --surface-2: #1a1b1a;
  --border: #262826;
  --text: #f4f5f2;
  --muted: #a3a6a0;
  --brand: #b2f74d;
  --brand-dim: rgba(178, 247, 77, 0.12);
  --warn: #ffc53d;
  --radius: 16px;
  --max: 920px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.top { border-bottom: 1px solid var(--border); position: sticky; top: 0; background: rgba(0, 0, 0, 0.9); backdrop-filter: blur(10px); z-index: 10; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.wordmark { color: var(--text); font-weight: 900; letter-spacing: 4px; font-size: 18px; }
.wordmark span { color: var(--brand); }
.wordmark:hover { text-decoration: none; }
nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
nav a { color: var(--muted); }
nav a[aria-current='page'], nav a:hover { color: var(--text); text-decoration: none; }

/* Home */
.hero { text-align: center; padding: 56px 0 40px; }
.hero img { width: 320px; mix-blend-mode: lighten; }
.hero h1 { font-size: clamp(28px, 5vw, 44px); line-height: 1.15; margin: 28px 0 12px; letter-spacing: -0.5px; }
.hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto; }
.cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; background: var(--brand); color: #0b0b0b; font-weight: 800; padding: 14px 22px; border-radius: 999px; }
.cta:hover { text-decoration: none; filter: brightness(1.05); }
.note { color: var(--muted); font-size: 13px; margin-top: 10px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 24px 0 48px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .k { color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; }

/* Documents */
.doc { padding-top: 40px; padding-bottom: 64px; }
.doc h1 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; margin: 0 0 6px; }
.doc .meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.doc h2 { font-size: 20px; margin: 36px 0 10px; padding-top: 4px; }
.doc h2::before { content: ''; display: inline-block; width: 10px; height: 10px; background: var(--brand); border-radius: 3px; margin-right: 10px; }
.doc h3 { font-size: 16px; margin: 22px 0 6px; }
.doc p, .doc li { color: #d9dbd5; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.lead { font-size: 18px; color: var(--text) !important; }
.box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; margin: 18px 0; }
.box.brand { border-color: rgba(178, 247, 77, 0.35); background: var(--brand-dim); }
.box p:first-child { margin-top: 0; }
.box p:last-child { margin-bottom: 0; }

table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.table-scroll { overflow-x: auto; }

.steps { counter-reset: step; list-style: none; padding: 0 !important; }
.steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 56px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin: 10px 0; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 13px; width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #0b0b0b; font-weight: 900; display: grid; place-items: center; font-size: 14px; }

details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; }

.en { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 8px; }

/* Footer */
footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; padding: 28px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
footer nav a { color: var(--muted); }

@media (max-width: 560px) {
  .top .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .hero img { width: 240px; }
}
