:root {
  --navy: #0D1B2A;
  --navy-light: #16263b;
  --purple: #7F77DD;
  --purple-light: #AFA9EC;
  --purple-dark: #534AB7;
  --ink: #1a1a2e;
  --paper: #f7f7fb;
  --border: #e2e1ec;
  --text-muted: #5f5e6e;
  --success: #1D9E75;
  --error: #D85A30;
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'DM Sans', 'Trebuchet MS', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.6;
}

a { color: var(--purple-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- Header ---------- */
header.site-header {
  background: var(--navy);
  padding: 18px 0;
}

header.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img { height: 36px; width: auto; }

.brand-text {
  color: #f0f0f8;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
}

nav.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

nav.site-nav a {
  color: #d8d6ea;
  font-size: 15px;
  font-weight: 500;
}

nav.site-nav a:hover { color: #ffffff; }

.btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 15px;
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn-primary {
  background: var(--purple);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--purple-dark);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--purple-light);
  color: #f0f0f8;
}

.btn-outline:hover {
  background: rgba(127,119,221,0.15);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #f0f0f8;
  padding: 90px 0 100px;
  text-align: center;
}

.hero-kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--purple-light);
  margin: 0 0 18px;
}

.hero h1 {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0 0 20px;
  line-height: 1.2;
}

.hero p.lede {
  font-size: 19px;
  color: #c7c5dd;
  max-width: 640px;
  margin: 0 auto 36px;
}

.hero .actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* ---------- Sections ---------- */
section { padding: 80px 0; }
section.alt { background: var(--paper); }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head h2 { font-size: 30px; font-weight: 700; letter-spacing: -0.5px; margin: 0 0 14px; }
.section-head p { color: var(--text-muted); font-size: 17px; margin: 0; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px 28px;
}

.card h3 { font-size: 18px; font-weight: 700; margin: 0 0 10px; }
.card p { color: var(--text-muted); font-size: 15px; margin: 0; }

.icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #EEEDFE;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 20px;
  color: var(--purple-dark);
  font-weight: 700;
}

.markets-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.pill {
  background: #EEEDFE;
  color: var(--purple-dark);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 999px;
}

.cta-band {
  background: var(--navy);
  color: #f0f0f8;
  text-align: center;
  padding: 64px 0;
}

.cta-band h2 { font-size: 28px; margin: 0 0 12px; }
.cta-band p { color: #c7c5dd; margin: 0 0 28px; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 32px 0;
  text-align: center;
}

footer.site-footer p {
  color: #9694b3;
  font-size: 13px;
  margin: 0;
}

footer.site-footer a { color: #c7c5dd; }

/* ---------- Form page ---------- */
.form-page-hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #f0f0f8;
  padding: 64px 0 56px;
  text-align: center;
}

.form-page-hero h1 { font-size: 34px; font-weight: 700; margin: 0 0 14px; letter-spacing: -0.5px; }
.form-page-hero p { color: #c7c5dd; font-size: 17px; max-width: 560px; margin: 0 auto; }

.form-wrap {
  max-width: 640px;
  margin: -40px auto 0;
  padding: 0 24px 80px;
}

.form-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 12px 40px rgba(13,27,42,0.08);
}

.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 7px;
  color: var(--ink);
}
.form-row .req { color: var(--error); }

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #ffffff;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(127,119,221,0.15);
}

.form-row textarea { resize: vertical; min-height: 100px; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-submit {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  margin-top: 6px;
}

.form-note {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 16px;
}

#form-status {
  display: none;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 22px;
}

#form-status.success {
  display: block;
  background: #EAF3DE;
  color: #27500A;
}

#form-status.error {
  display: block;
  background: #FCEBEB;
  color: #791F1F;
}

/* ---------- Feature cards / lists (features page + lean home cards) ---------- */
.icon-badge.mono { font-size: 13px; letter-spacing: 0.5px; }

.feature-card { display: flex; flex-direction: column; }
.feature-card h3 { margin-bottom: 4px; }
.feature-card .feature-lede { color: var(--text-muted); font-size: 15px; margin: 0; }

.feature-list { list-style: none; margin: 16px 0 0; padding: 0; }
.feature-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 11px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.5;
}
.feature-list li:last-child { margin-bottom: 0; }
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--purple);
  font-weight: 700;
}

.card-lede { color: var(--text-muted); font-size: 15px; margin: 0; }

.center-link { text-align: center; margin-top: 44px; }
.center-link a { font-weight: 600; font-size: 16px; }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--purple-dark);
  margin-bottom: 12px;
}

/* In-page jump navigation (features page) */
.jump-nav { padding: 44px 0 4px; }
a.pill { transition: background 0.15s ease; }
a.pill:hover { text-decoration: none; background: #e0ddfa; }

/* Two-column bullet layouts sit flush under a section head */
.grid-2 > .feature-list { margin-top: 0; }

/* ---------- Catch cards (home) — hover-lift links into the detail sections ---------- */
.catch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.catch-card {
  display: block;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 24px;
  color: var(--ink);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.catch-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(13, 27, 42, 0.10);
  border-color: var(--purple-light);
  text-decoration: none;
}
.catch-card h3 { font-size: 17px; font-weight: 700; margin: 6px 0 10px; color: var(--ink); }
.catch-card p { color: var(--text-muted); font-size: 14px; margin: 0; }
.catch-more {
  display: inline-block;
  margin-top: 14px;
  color: var(--purple-dark);
  font-weight: 600;
  font-size: 14px;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.catch-card:hover .catch-more { opacity: 1; transform: translateX(0); }

@media (max-width: 720px) {
  .grid-3, .grid-2, .two-col { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .hero .actions { flex-direction: column; align-items: center; }
  nav.site-nav { display: none; }
  .form-card { padding: 28px 22px; }
  /* No hover on touch — always show the card's link affordance. */
  .catch-more { opacity: 1; transform: none; }
}
