/* Arco Shares — design system
   Institutional, restrained, editorial. No external dependencies. */

:root {
  --ink:      #0A0D14;
  --ink-2:    #0E121B;
  --ink-3:    #131825;
  --panel:    #161C2B;
  --line:     rgba(255, 255, 255, 0.09);
  --line-2:   rgba(255, 255, 255, 0.16);
  --text:     #E7E9EE;
  --muted:    #9AA3B4;
  --muted-2:  #6F7889;
  --gold:     #C2A878;
  --gold-2:   #D8C49C;
  --gold-dim: rgba(194, 168, 120, 0.14);
  --signal:   #6FB894;
  --danger:   #C77B6B;

  --maxw: 1140px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --radius: 4px;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: 0.005em;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; color: #fff; }
h1 { font-size: clamp(2.3rem, 5.4vw, 3.7rem); margin: 0 0 0.5em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 0.6em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); margin: 0 0 0.4em; }
p { margin: 0 0 1.1em; }
a { color: var(--gold-2); text-decoration: none; transition: color 0.18s ease; }
a:hover { color: #fff; }
strong { color: #fff; font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--line); margin: 3rem 0; }

::selection { background: var(--gold); color: #0a0d14; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }
.wrap--narrow { max-width: 760px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.1rem;
  display: inline-block;
}

.muted { color: var(--muted); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); line-height: 1.6; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.55em;
  font-family: var(--sans); font-size: 0.95rem; font-weight: 500;
  letter-spacing: 0.01em;
  padding: 0.82em 1.5em; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: all 0.18s ease;
}
.btn--primary { background: var(--gold); color: #0a0d14; border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-2); color: #0a0d14; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--gold); color: #fff; }
.btn--lg { padding: 0.95em 1.8em; font-size: 1rem; }
.btn .arw { transition: transform 0.18s ease; }
.btn:hover .arw { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 13, 20, 0.82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; }
.brand:hover { color: #fff; }
.brand svg { display: block; }
.brand__name { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; letter-spacing: 0.01em; }
.brand__name span { color: var(--gold); }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { color: var(--muted); font-size: 0.93rem; font-weight: 450; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; }
.nav__cta { margin-left: 0.5rem; }

.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: var(--radius);
  width: 42px; height: 38px; cursor: pointer; color: var(--text); align-items: center; justify-content: center; }
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 880px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink-2); border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--pad) 1.25rem;
    max-height: 0; overflow: hidden; transition: max-height 0.28s ease;
  }
  .nav[data-open="true"] { max-height: 70vh; }
  .nav a { padding: 0.85rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav__cta { margin: 1rem 0 0; }
  .nav .btn { width: 100%; justify-content: center; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 78% -8%, rgba(194,168,120,0.13), transparent 60%),
    radial-gradient(700px 420px at 5% 8%, rgba(111,184,148,0.06), transparent 55%);
  pointer-events: none;
}
.hero__grid { position: absolute; inset: 0; opacity: 0.45; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(circle at 70% 0%, #000, transparent 70%); }
.hero__inner { position: relative; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 6vw, 5rem); }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 56ch; margin-bottom: 2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero__note { font-size: 0.82rem; color: var(--muted-2); margin-top: 1.6rem; max-width: 60ch; }

/* ---------- Stat bar ---------- */
.statbar { border-bottom: 1px solid var(--line); background: var(--ink-2); }
.statbar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 1.6rem var(--pad); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__num { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.1rem); color: #fff; line-height: 1; }
.stat__num span { color: var(--gold); }
.stat__label { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; letter-spacing: 0.02em; }
@media (max-width: 720px) {
  .statbar__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
}

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section--alt { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__head { max-width: 64ch; margin-bottom: 3rem; }
.section__head.center { margin-left: auto; margin-right: auto; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

.card {
  background: var(--ink-3); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.7rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--line-2); }
.card__ix { font-family: var(--mono); font-size: 0.78rem; color: var(--gold); letter-spacing: 0.1em; }
.card h3 { margin-top: 0.7rem; }
.card p:last-child { margin-bottom: 0; }

/* numbered steps */
.steps { counter-reset: step; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step { background: var(--ink-3); padding: 1.8rem; display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: start; }
.step__n { counter-increment: step; font-family: var(--serif); font-size: 1.4rem; color: var(--gold);
  width: 46px; height: 46px; flex: none; border: 1px solid var(--line-2); border-radius: 50%;
  display: grid; place-items: center; }
.step__n::before { content: counter(step, decimal-leading-zero); }
.step h3 { margin: 0.3rem 0 0.4rem; }
.step p:last-child { margin-bottom: 0; }

/* feature rows */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.feature + .feature { margin-top: clamp(3rem, 7vw, 5rem); }
.feature--rev .feature__media { order: -1; }
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; } .feature--rev .feature__media { order: 0; } }

.panel { background: var(--ink-3); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.8rem; }

/* checklist */
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding: 0.55rem 0 0.55rem 1.9rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.ticks li:last-child { border-bottom: 0; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 9px; height: 9px;
  border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: rotate(45deg); }
.ticks strong { color: var(--text); }

/* ---------- Pipeline table ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
table.deals { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.deals thead th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); padding: 1rem 1.1rem; background: var(--ink-2); border-bottom: 1px solid var(--line); }
table.deals td { padding: 1.05rem 1.1rem; border-bottom: 1px solid var(--line); color: var(--text); vertical-align: middle; }
table.deals tr:last-child td { border-bottom: 0; }
table.deals tbody tr:hover { background: rgba(255,255,255,0.02); }
.tag { display: inline-block; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em;
  padding: 0.25em 0.6em; border-radius: 2px; border: 1px solid var(--line-2); color: var(--muted); }
.tag--live { color: var(--signal); border-color: rgba(111,184,148,0.4); }
.tag--soon { color: var(--gold); border-color: rgba(194,168,120,0.4); }
.exch { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
@media (max-width: 720px) {
  table.deals thead { display: none; }
  table.deals, table.deals tbody, table.deals tr, table.deals td { display: block; width: 100%; }
  table.deals tr { border-bottom: 1px solid var(--line-2); padding: 0.6rem 0; }
  table.deals td { border: 0; padding: 0.3rem 1.1rem; }
  table.deals td::before { content: attr(data-label); display: block; font-family: var(--mono);
    font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 0.15rem; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.4rem 2.5rem 1.4rem 0; position: relative;
  font-family: var(--serif); font-size: 1.12rem; color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0.2rem; top: 1.15rem; font-size: 1.5rem; color: var(--gold); transition: transform 0.2s ease; font-family: var(--sans); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 1.5rem; color: var(--muted); max-width: 72ch; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Glossary ---------- */
.glossary dt { font-family: var(--serif); font-size: 1.1rem; color: #fff; margin-top: 1.6rem; }
.glossary dd { margin: 0.35rem 0 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(180deg, var(--ink-2), var(--ink)); border-top: 1px solid var(--line); }
.cta-band .wrap { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .lead { max-width: 54ch; margin-inline: auto; margin-bottom: 2rem; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.01em; }
.field label .req { color: var(--gold); }
.field input, .field select, .field textarea {
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--radius);
  color: var(--text); font: inherit; font-size: 0.95rem; padding: 0.8rem 0.9rem; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; }
.field textarea { min-height: 120px; resize: vertical; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.check { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; font-size: 0.86rem; color: var(--muted); }
.check input { width: 18px; height: 18px; margin-top: 0.15rem; accent-color: var(--gold); }

/* ---------- Notes / callouts ---------- */
.note { border-left: 2px solid var(--gold); background: var(--gold-dim); padding: 1.1rem 1.3rem; border-radius: 0 var(--radius) var(--radius) 0; color: var(--muted); font-size: 0.92rem; }
.note strong { color: var(--gold-2); }
.note--risk { border-left-color: var(--danger); background: rgba(199,123,107,0.08); }
.note--risk strong { color: var(--danger); }

/* prose pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.6rem; }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose code { font-family: var(--mono); font-size: 0.88em; background: var(--ink-3); padding: 0.1em 0.4em; border-radius: 3px; color: var(--gold-2); }

/* breadcrumb */
.crumb { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); padding: 1.4rem 0 0; }
.crumb a { color: var(--muted); }
.crumb span { color: var(--gold); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-2); padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; font-size: 0.9rem; }
.footer__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr 1fr; gap: 2rem 1.5rem; } }
@media (max-width: 480px) { .footer__top { grid-template-columns: 1fr; } }
.footer__col h4 { font-family: var(--sans); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin: 0 0 1rem; }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col li { margin-bottom: 0.6rem; }
.footer__col a { color: var(--muted); }
.footer__col a:hover { color: #fff; }
.footer__brand p { color: var(--muted); max-width: 38ch; font-size: 0.88rem; margin-top: 1rem; }
.footer__legal { padding-top: 2rem; color: var(--muted-2); font-size: 0.8rem; line-height: 1.7; }
.footer__legal p { margin-bottom: 0.8rem; }
.footer__meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; justify-content: space-between; margin-top: 1.5rem; color: var(--muted-2); font-size: 0.78rem; }
.footer__meta a { color: var(--muted-2); }

.disclaimer-strip { background: var(--ink); border-top: 1px solid var(--line); padding: 1.1rem 0; }
.disclaimer-strip p { margin: 0; font-size: 0.76rem; color: var(--muted-2); line-height: 1.6; }

/* utilities */
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: #0a0d14; padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 4px 0; }
.skip:focus { left: 0; }
