:root {
  color-scheme: light;
  --brand-500: #3998d7;
  --brand-600: #1863dc;
  --brand-700: #124a9e;
  --brand-100: #e8f2fb;

  --surface-0: #f9f9f7;
  --surface-1: #ffffff;
  --surface-2: #fafaf9;
  --text-primary: #0b0b0b;
  --text-secondary: #52514e;
  --text-muted: #898781;
  --border: #e1e0d9;

  --shadow-sm: 0 1px 2px rgba(11, 11, 11, 0.06), 0 1px 1px rgba(11, 11, 11, 0.04);
  --shadow-md: 0 4px 16px rgba(11, 11, 11, 0.08);
  --radius: 12px;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--surface-0);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--brand-600);
}

img {
  max-width: 100%;
}

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */

header.site-header {
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}

.brand .name {
  font-weight: 700;
  font-size: 17px;
  color: var(--text-primary);
}

nav.trade-nav {
  display: flex;
  gap: 4px;
}

nav.trade-nav a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background 0.12s ease, color 0.12s ease;
}

nav.trade-nav a:hover {
  background: var(--surface-2);
  color: var(--text-primary);
}

nav.trade-nav a.active {
  background: var(--brand-100);
  color: var(--brand-600);
}

@media (max-width: 720px) {
  .site-header .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  nav.trade-nav {
    flex-wrap: wrap;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding: 56px 0 40px;
  background: linear-gradient(180deg, var(--brand-100), var(--surface-0));
}

.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  max-width: 760px;
}

.hero p.lead {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 0 8px;
}

.trust-line {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

/* ---------- Sections ---------- */

section {
  padding: 48px 0;
}

section.alt {
  background: var(--surface-1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

h2 {
  font-size: 28px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

h2.center {
  text-align: center;
}

p.section-lead {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 640px;
}

p.section-lead.center {
  margin: 0 auto 32px;
  text-align: center;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.card {
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.1s ease;
  display: block;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card .trade-icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ---------- Form section ---------- */

#quote {
  scroll-margin-top: 80px;
}

.form-shell {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface-1);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.form-shell iframe {
  width: 100%;
  border: none;
  display: block;
  min-height: 720px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  background: var(--brand-600);
  color: #fff !important;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  transition: background 0.12s ease;
}

.btn:hover {
  background: var(--brand-700);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

/* ---------- Trade page content ---------- */

.trade-hero {
  padding: 48px 0 32px;
}

.trade-hero .kicker {
  color: var(--brand-600);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.trade-hero h1 {
  font-size: 34px;
  margin: 8px 0 16px;
}

.content-block {
  max-width: 700px;
}

.content-block h2 {
  font-size: 22px;
  margin-top: 36px;
}

.content-block h2:first-child {
  margin-top: 0;
}

.content-block ul {
  padding-left: 20px;
  color: var(--text-secondary);
}

.content-block li {
  margin-bottom: 8px;
}

.cta-banner {
  background: linear-gradient(135deg, var(--brand-100), var(--surface-1));
  border: 1px solid var(--brand-500);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 40px 0;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner .cta-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--surface-1);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.cta-banner .cta-text {
  flex: 1;
  min-width: 220px;
}

.cta-banner h3 {
  margin: 0 0 4px;
  font-size: 17px;
  letter-spacing: -0.01em;
}

.cta-banner p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* ---------- Trade body disclaimer ---------- */

.trade-disclaimer {
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  max-width: 620px;
  margin-top: 16px;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--text-muted);
  font-size: 13px;
}

footer p {
  margin: 4px 0;
}
