/* GoldRex — shared stylesheet. No external dependencies. */

:root {
  --ink: #14181f;          /* main text / dark sections */
  --ink-soft: #3d4450;     /* secondary text (AA on --bg) */
  --bg: #fbfaf7;           /* page background */
  --surface: #ffffff;      /* cards */
  --line: #e4e0d6;         /* borders */
  --gold-text: #8a6417;    /* gold for text on light bg (AA 5:1+) */
  --gold: #c9a24a;         /* gold for accents on dark bg */
  --gold-tint: #f4ecd9;    /* light gold tint */
  --radius: 10px;
  --max: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 650; }
p  { margin: 0 0 1em; }

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

/* Skip link (keyboard / screen reader users) */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: 6px; z-index: 100; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 72px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font-size: 1.35rem; font-weight: 750; letter-spacing: .06em; }
.brand-name span { color: var(--gold-text); }

.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.main-nav a {
  display: inline-block; padding: 8px 14px; border-radius: 6px;
  text-decoration: none; color: var(--ink); font-weight: 550;
}
.main-nav a:hover { background: var(--gold-tint); color: var(--ink); }
.main-nav a[aria-current="page"] { color: var(--gold-text); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 8px;
  font-weight: 650; text-decoration: none; border: 2px solid transparent;
  transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; color: var(--gold); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 7vw, 88px);
  background:
    radial-gradient(1000px 400px at 85% 0%, var(--gold-tint), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold-text); margin-bottom: 18px;
}
.hero h1 { max-width: 20ch; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }

.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(36px, 5vw, 56px); }
.page-hero h1 { max-width: 22ch; }

/* ---------- Sections ---------- */
section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--ink-soft); }
.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.alt .card { background: var(--bg); }
.card p { color: var(--ink-soft); font-size: .98rem; margin: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 10px; margin-bottom: 16px;
  background: var(--gold-tint); color: var(--gold-text);
  display: grid; place-items: center;
}
.icon svg { width: 26px; height: 26px; }

/* Markets list */
.tag-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list li {
  border: 1px solid var(--line); background: var(--surface);
  padding: 10px 16px; border-radius: 999px; font-weight: 550;
}

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: step; position: relative; padding-top: 52px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-size: 1.9rem; font-weight: 750; color: var(--gold-text);
}
.steps p { color: var(--ink-soft); margin: 0; }

/* Dark band */
.band { background: var(--ink); color: #f2f0ea; }
.band h2 { color: #fff; }
.band p { color: #cfd3da; }
.band a:not(.btn) { color: var(--gold); }
.band a:not(.btn):hover { color: #fff; }

.contact-box {
  display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start;
}
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.contact-list strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }

/* About page */
.prose { max-width: 70ch; }
.prose p { color: var(--ink-soft); }
.leader {
  display: grid; grid-template-columns: 120px 1fr; gap: 28px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.monogram {
  width: 120px; height: 120px; border-radius: 50%;
  background: var(--ink); color: var(--gold);
  display: grid; place-items: center; font-size: 2.2rem; font-weight: 700; letter-spacing: .04em;
}
.leader .role { color: var(--gold-text); font-weight: 650; margin-bottom: .8em; }
.leader p { color: var(--ink-soft); }
@media (max-width: 560px) {
  .leader { grid-template-columns: 1fr; }
  .monogram { width: 88px; height: 88px; font-size: 1.6rem; }
}

/* ---------- Footer ---------- */
.site-footer { background: #0e1116; color: #b9bec7; padding: 40px 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: center; }
.site-footer a { color: #e6e3db; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer .brand { color: #fff; }
.site-footer .brand-name span { color: var(--gold); }
.band .eyebrow { color: var(--gold); }
.site-footer .copy { margin: 0; }
.section-head .eyebrow { color: var(--gold-text); }
