/* ============================================================
   The Trade Vault — landing page
   Palette: brand navy ground, brand blue accent (sampled from the logo)
   ============================================================ */

:root {
  /* Brand ground: sampled from the logo lockup so the mark sits on it seamlessly. */
  --bg:        #051D35;
  --surface:   #08243F;
  --surface-2: #0B2C4B;
  --line:      #1A4368;
  --line-soft: #113351;

  --text:      #EDF2F7;
  --text-2:    #A9BDD1;
  --muted:     #7B92A8;

  /* Brand blue, sampled from the mark.
     --blue is for fills and borders; on this navy it only reaches 4.30:1, so
     accent TEXT uses --blue-hi (5.63:1) and buttons use --blue-btn, which
     carries white text at 5.10:1. All three read as the same brand blue. */
  --blue:            #2682DC;
  --blue-hi:         #4098EE;
  --blue-btn:        #1B6FC4;
  --blue-btn-hover:  #1560AE;
  --blue-dim:        rgba(38, 130, 220, 0.14);

  --green:     #4FB487;
  --red:       #D2726C;

  --sans: "Inter", ui-sans-serif, -apple-system, "Segoe UI", system-ui, sans-serif;
  --display: "Sora", "Inter", ui-sans-serif, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1120px;
  --radius: 14px;

  --pad-section: clamp(64px, 9vw, 120px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.12; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: inherit; }

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

/* ---------- utilities ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 5vw, 32px); }
.wrap--narrow { max-width: 760px; }

.sr-only, .hp {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue-btn); color: #fff; padding: 10px 16px; font-weight: 600;
}
.skip:focus { left: 12px; top: 12px; }

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

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--blue-btn); color: #fff;
  font-family: var(--sans); font-weight: 600; font-size: 15px; letter-spacing: 0.01em;
  padding: 13px 22px; border: 0; border-radius: 10px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 160ms ease, transform 160ms ease;
}
.btn:hover { background: var(--blue-btn-hover); }
.btn:active { transform: translateY(1px); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 29, 53, 0.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand__mark { width: 30px; height: auto; flex: none; display: block; }
.brand__word { height: 15px; width: auto; display: block; }
.brand--sm .brand__mark { width: 26px; }
.brand--sm .brand__word { height: 13px; }

/* Below the nav breakpoint the wordmark is too wide; the mark carries it. */
@media (max-width: 560px) {
  .nav .brand__word { display: none; }
}

.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { color: var(--text-2); text-decoration: none; font-size: 15px; transition: color 140ms ease; }
.nav__links a:hover { color: var(--text); }
.nav__links .btn { color: #fff; }

@media (max-width: 720px) {
  .nav__links a:not(.btn) { display: none; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 136px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 50%;
  width: min(900px, 120vw); aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(38,130,220,0.16) 0%, rgba(38,130,220,0) 62%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 780px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue-hi); background: var(--blue-dim);
  border: 1px solid rgba(38,130,220,0.30); border-radius: 999px;
  padding: 6px 14px 6px 11px; margin-bottom: 28px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex: none; }

.hero__title { font-size: clamp(2.5rem, 6.4vw, 4.25rem); margin-bottom: 24px; }

.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-2);
  max-width: 60ch; margin-bottom: 36px;
}

/* ---------- signup ---------- */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; max-width: 520px; }
.signup__input {
  width: 100%; min-width: 0;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 16px; font-family: var(--sans); font-size: 16px;
  transition: border-color 140ms ease;
}
.signup__input::placeholder { color: var(--muted); }
.signup__input:focus { border-color: var(--blue); outline: none; }
.signup__input[aria-invalid="true"] { border-color: var(--red); }

.signup__note { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.signup__note.is-ok { color: var(--green); }
.signup__note.is-err { color: var(--red); }

@media (max-width: 520px) {
  .signup { grid-template-columns: minmax(0, 1fr); }
}

.hero__meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  list-style: none; padding: 0; margin: 40px 0 0;
  font-size: 14px; color: var(--muted);
}
.hero__meta li { display: flex; align-items: center; gap: 9px; }
.hero__meta li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--blue); flex: none; }

/* ---------- strip ---------- */
.strip { border-block: 1px solid var(--line-soft); background: var(--surface); padding: clamp(44px, 6vw, 68px) 0; }
.strip__text {
  font-family: var(--display); font-size: clamp(1.2rem, 2.6vw, 1.7rem);
  line-height: 1.42; letter-spacing: -0.015em; max-width: 40ch;
}
.strip__text em { color: var(--blue-hi); font-style: italic; }

/* ---------- sections ---------- */
.section { padding: var(--pad-section) 0; }
.section--alt { background: var(--surface); border-block: 1px solid var(--line-soft); }
.section__title { font-size: clamp(1.75rem, 3.6vw, 2.5rem); margin-bottom: 14px; }
.section__lede { color: var(--text-2); max-width: 56ch; margin-bottom: 48px; }
.section__title + .cards, .section__title + .steps, .section__title + .fit, .section__title + .qa { margin-top: 44px; }

/* ---------- cards ---------- */
/* Four cards: 2x2 rather than auto-fit, which stranded the fourth on its own row. */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card {
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 26px 30px;
  transition: border-color 180ms ease, transform 180ms ease;
}
.card:hover { border-color: rgba(38,130,220,0.46); transform: translateY(-2px); }
.card__num {
  font-family: var(--display); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; color: var(--blue-hi); margin-bottom: 16px;
}
.card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 15.5px; }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 32px; list-style: none; padding: 0; margin: 0; counter-reset: none; }
.step { position: relative; padding-top: 22px; border-top: 1px solid var(--line); }
.step__n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--blue-dim); border: 1px solid rgba(38,130,220,0.36);
  color: var(--blue-hi); font-family: var(--display); font-size: 14px; font-weight: 600;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15.5px; }

/* ---------- fit ---------- */
.fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.fit__col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.fit__h { font-size: 1.05rem; margin-bottom: 18px; }
.fit__h--yes { color: var(--green); }
.fit__h--no { color: var(--red); }

.list { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.list li { position: relative; padding-left: 28px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.list li::before {
  position: absolute; left: 0; top: 0; font-weight: 600;
}
.list--yes li::before { content: "\2713"; color: var(--green); }
.list--no li::before  { content: "\2715"; color: var(--red); }

/* ---------- FAQ ---------- */
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 9px; height: 9px; margin-top: -6px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(45deg); transition: transform 180ms ease;
}
.qa[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.qa summary:hover { color: var(--blue-hi); }
.qa__body { padding: 0 40px 24px 0; }
.qa__body p { color: var(--text-2); font-size: 15.5px; }

/* ---------- CTA ---------- */
.cta { padding: var(--pad-section) 0; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: auto 0 -60% 50%;
  width: min(800px, 120vw); aspect-ratio: 1; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(38,130,220,0.16) 0%, rgba(38,130,220,0) 62%);
  pointer-events: none;
}
.cta__inner { position: relative; text-align: center; }
.cta__kicker {
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue-hi); margin-bottom: 18px;
}
.cta__title { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin-bottom: 16px; }
.cta__sub { color: var(--text-2); margin-bottom: 32px; }

/* ---------- footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--line-soft); padding: 52px 0 44px; }
.footer__top {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 20px; padding-bottom: 32px; border-bottom: 1px solid var(--line-soft);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 26px; }
.footer__links a { color: var(--text-2); text-decoration: none; font-size: 14.5px; }
.footer__links a:hover { color: var(--blue-hi); }

.disclaimer { padding-top: 32px; display: grid; gap: 14px; }
.disclaimer__h {
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.disclaimer p { color: var(--muted); font-size: 13px; line-height: 1.7; max-width: 92ch; }
.disclaimer__copy { padding-top: 10px; }

/* ---------- legal pages ---------- */
.legal { padding: clamp(56px, 8vw, 88px) 0 var(--pad-section); }
.legal h1 { font-size: clamp(1.9rem, 4.4vw, 2.6rem); margin-bottom: 10px; }
.legal__meta { color: var(--muted); font-size: 14px; margin-bottom: 44px; }
.legal h2 { font-size: 1.2rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-2); font-size: 15.5px; margin-bottom: 14px; }
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal a { color: var(--blue-hi); }
.legal .draft {
  background: var(--blue-dim); border: 1px solid rgba(38,130,220,0.34);
  border-radius: 10px; padding: 16px 18px; margin-bottom: 36px;
}
.legal .draft p { color: var(--text-2); font-size: 14.5px; margin: 0; }
