/* ==========================================================================
   Ulix Cortex — landing page
   --------------------------------------------------------------------------
   Standalone dark-navy + gold system for /ulixcortex/ only. Plain HTML/CSS
   like the rest of ulix.app; no framework. Display serif: Cormorant Garamond
   (Google Fonts). Body: self-hosted Geist from /assets/fonts/.
   ========================================================================== */

@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --navy: #010C24;          /* page background — matches the logo art */
  --navy-2: #071231;        /* raised panels */
  --navy-3: #030B1E;        /* recessed panels */
  --gold: #D9A85C;          /* primary gold */
  --gold-bright: #E8B45A;   /* artwork gold */
  --gold-dim: rgba(217, 168, 92, 0.55);
  --cream: #F2E7CE;         /* display headlines */
  --ink: rgba(238, 233, 220, 0.82);      /* body text */
  --muted: rgba(238, 233, 220, 0.58);
  --subtle: rgba(238, 233, 220, 0.40);
  --rule: rgba(217, 168, 92, 0.22);      /* gold hairlines */
  --rule-soft: rgba(238, 233, 220, 0.10);
  --paper: #EFE3C0;         /* ledger card */
  --paper-ink: #3A3121;

  --serif: 'Cormorant Garamond', 'EB Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'Courier New', monospace;

  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }

img { max-width: 100%; display: block; }

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

/* Small-caps label used everywhere */
.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 18px;
}

/* Section divider heading:  ——— TITLE ——— */
.section-rule {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 44px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-rule::before,
.section-rule::after {
  content: '';
  height: 1px;
  background: var(--rule);
  flex: 0 0 56px;
}
.section-rule.center { justify-content: center; }

/* Buttons */
.btn {
  display: inline-block;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 13px 26px;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover {
  background: var(--gold);
  color: var(--navy);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: 8px 16px;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  padding: 26px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}
.brand img { width: 40px; height: 40px; }
.brand .wordmark {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.3em;
  color: var(--cream);
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}
.site-nav a.navlink {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
}
.site-nav a.navlink:hover { color: var(--gold); }
.site-nav .btn { padding: 11px 20px; }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--rule-soft);
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  align-items: center;
  gap: 40px;
  padding-top: 48px;
  padding-bottom: 72px;
}
.hero-copy h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 5.2vw, 58px);
  line-height: 1.12;
  color: var(--cream);
  margin: 0 0 26px;
}
.hero-copy .lede {
  max-width: 44ch;
  color: var(--muted);
  margin: 0 0 34px;
}
.hero-art { position: relative; }
.hero-art img {
  width: 100%;
  height: auto;
  max-width: 640px;
  margin: 0 auto;
}

/* ==========================================================================
   Problem / Reframe
   ========================================================================== */

.problem {
  border-bottom: 1px solid var(--rule-soft);
  padding: 72px 0;
}
.problem .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.problem .col:first-child {
  border-right: 1px solid var(--rule-soft);
  padding-right: 64px;
  margin-right: -64px;
}
.problem h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(24px, 2.6vw, 31px);
  line-height: 1.35;
  color: var(--cream);
  margin: 0;
}
.problem .note {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 46ch;
  margin: 18px 0 0;
}

/* ==========================================================================
   What you receive
   ========================================================================== */

.receive { padding: 64px 0 72px; border-bottom: 1px solid var(--rule-soft); }
.receive-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.receive-grid .item {
  padding: 6px 26px 0;
  text-align: left;
}
.receive-grid .item + .item { border-left: 1px solid var(--rule-soft); }
.receive-grid .icon { color: var(--gold); margin-bottom: 16px; }
.receive-grid .icon svg { display: block; }
.receive-grid h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--cream);
  margin: 0 0 8px;
}
.receive-grid p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   Proof of work
   ========================================================================== */

.proof { padding: 64px 0 80px; border-bottom: 1px solid var(--rule-soft); }
.proof-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: 56px;
  align-items: start;
}
.proof-copy h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 3.6vw, 44px);
  line-height: 1.15;
  color: var(--cream);
  margin: 0 0 22px;
}
.proof-copy p {
  color: var(--muted);
  font-size: 13.5px;
  max-width: 40ch;
  margin: 0 0 28px;
}
.proof-copy .example-link {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.proof-copy .example-link .arrow { margin-left: 10px; }

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.artifact figure { margin: 0; }
.artifact .frame {
  background: var(--navy-3);
  border: 1px solid var(--rule-soft);
  overflow: hidden;
}
.artifact .frame > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.artifact figcaption { margin-top: 10px; }
.artifact .label {
  display: block;
  font-size: 13px;
  color: var(--ink);
}
.artifact .count {
  display: block;
  font-size: 11.5px;
  color: var(--subtle);
}

/* Source inventory mini-table */
.inventory {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  color: var(--muted);
}
.inventory th, .inventory td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--rule-soft);
  font-weight: 400;
  white-space: nowrap;
}
.inventory thead th {
  color: var(--subtle);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: none;
  background: rgba(238, 233, 220, 0.04);
}
.inventory tbody tr:last-child td { border-bottom: 0; }
.inventory td:nth-child(n+2) { color: var(--subtle); }

/* Discrepancy ledger card */
.ledger {
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.6;
  padding: 14px 16px;
  border-left: 3px solid var(--gold);
  box-shadow: inset 0 0 40px rgba(58, 49, 33, 0.12);
}
.ledger .ledger-head {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid rgba(58, 49, 33, 0.35);
  padding-bottom: 6px;
  margin-bottom: 8px;
  font-weight: 700;
}
.ledger dl { margin: 0; }
.ledger .row { display: flex; gap: 8px; }
.ledger dt { flex: 0 0 64px; font-weight: 700; }
.ledger dd { margin: 0; }

/* ==========================================================================
   Who it's for
   ========================================================================== */

.audience { padding: 64px 0 72px; border-bottom: 1px solid var(--rule-soft); }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.audience-grid .item { padding: 0 30px; }
.audience-grid .item + .item { border-left: 1px solid var(--rule-soft); }
.audience-grid h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--cream);
  margin: 0 0 10px;
}
.audience-grid p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   How an engagement works
   ========================================================================== */

.process { padding: 64px 0 72px; border-bottom: 1px solid var(--rule-soft); }
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li.step {
  flex: 1;
  text-align: center;
  counter-increment: step;
}
.steps .num {
  width: 34px;
  height: 34px;
  margin: 0 auto 14px;
  border: 1px solid var(--gold-dim);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: 12px;
}
.steps .num::before { content: counter(step); }
.steps h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 18px;
  color: var(--cream);
  margin: 0 0 6px;
}
.steps p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 auto;
  max-width: 22ch;
}
.steps li.sep {
  flex: 0 0 auto;
  color: var(--gold-dim);
  padding-top: 5px;
  font-size: 22px;
  line-height: 1;
}

/* ==========================================================================
   About + final CTA + footer
   ========================================================================== */

.about { padding: 56px 0; border-bottom: 1px solid var(--rule-soft); }
.about .inner { max-width: 620px; margin: 0 auto; text-align: center; }
.about p { color: var(--muted); font-size: 13.5px; margin: 0; }
.about p + p { margin-top: 12px; }

.cta { padding: 84px 0 96px; text-align: center; }
.cta h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  color: var(--cream);
  margin: 0 0 30px;
}

.site-footer {
  border-top: 1px solid var(--rule-soft);
  padding: 26px 0;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--subtle);
}
.site-footer .foot-brand { display: flex; align-items: center; gap: 10px; }
.site-footer .foot-brand img { width: 22px; height: 22px; }
.site-footer a { color: var(--subtle); }
.site-footer a:hover { color: var(--gold); }
.site-footer .sep { margin: 0 8px; color: var(--rule); }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1020px) {
  .receive-grid { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .receive-grid .item:nth-child(3n + 1) { border-left: 0; }
  .receive-grid .item:nth-child(4) { border-left: 0; }
  .audience-grid { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .audience-grid .item:nth-child(odd) { border-left: 0; }
  .proof-layout { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .site-nav a.navlink { display: none; }
  .hero .container { grid-template-columns: 1fr; padding-bottom: 24px; }
  .hero-art { order: -1; }
  .hero-art img { width: 100%; margin: -20px 0 -30px; }
  .problem .container { grid-template-columns: 1fr; gap: 44px; }
  .problem .col:first-child {
    border-right: 0;
    padding-right: 0;
    margin-right: 0;
    border-bottom: 1px solid var(--rule-soft);
    padding-bottom: 44px;
  }
  .steps { flex-direction: column; align-items: stretch; gap: 28px; }
  .steps li.sep { display: none; }
  .steps p { max-width: 40ch; }
}

@media (max-width: 540px) {
  .site-nav .btn { display: none; }
  .brand img { width: 32px; height: 32px; }
  .brand .wordmark { font-size: 18px; letter-spacing: 0.24em; }
}

@media (max-width: 620px) {
  .receive-grid { grid-template-columns: 1fr; }
  .receive-grid .item { border-left: 0 !important; padding: 0; }
  .audience-grid { grid-template-columns: 1fr; }
  .audience-grid .item { border-left: 0 !important; padding: 0; }
  .proof-grid { grid-template-columns: 1fr; }
  .site-footer .container { flex-direction: column; gap: 10px; text-align: center; }
}
