:root {
  --primary: #0A0A23;
  --secondary: #004d40;
  --accent: #917239;
  --accent-hover: #a58d54;
  --support: #6A1B9A;
  --light: #f5f5f5;
  --text: #1a1a1a;
  --muted: #5c5c6e;
  --line: #e4e4ea;
  --gold-soft: #d8be86;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--light);
}
img { max-width: 100%; height: auto; }
a { color: var(--support); }
a:hover { text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: #fff;
  color: var(--primary);
  padding: 0.5rem 0.8rem;
  z-index: 20;
  border-radius: 6px;
}
.skip:focus { top: 0.75rem; }

header {
  background: var(--primary);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.navbar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #fff;
  min-width: 0;
}
.brand .logo-mark { width: 44px; height: 44px; flex: 0 0 auto; }
.brand-name {
  display: block;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.2;
  font-size: 0.98rem;
}
.brand-sub {
  display: block;
  margin-top: 0.15rem;
  color: var(--gold-soft);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.navbar nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.15rem 1.05rem; }
.navbar nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
}
.navbar nav a:hover,
.navbar nav a[aria-current="page"] { color: var(--gold-soft); }

.hero {
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  color: #fff;
  padding: 4rem 1.25rem;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("hero.jpg") center/cover no-repeat;
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,35,0.72) 0%, rgba(10,10,35,0.9) 78%);
  z-index: -1;
}
.hero-inner { max-width: var(--max); margin: 0 auto; width: 100%; }
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1.15;
  font-weight: 700;
  max-width: 16ch;
  margin: 0 0 1rem;
}
.hero .lede {
  max-width: 42rem;
  font-size: 1.08rem;
  color: #eeeef5;
  margin: 0 0 1.5rem;
}
.hero-actions, .cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.btn-primary, .btn-ghost, .btn-secondary, .btn-outline {
  display: inline-block;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: var(--gold-soft); }
.btn-ghost:hover { background: rgba(216,190,134,0.15); color: #fff; }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-secondary { background: #fff; color: var(--secondary); border-color: #fff; }
.btn-secondary:hover { background: var(--gold-soft); color: var(--primary); }

.page-hero {
  background: linear-gradient(135deg, var(--primary) 0%, #1a1a4a 100%);
  color: #fff;
  padding: 3.2rem 1.25rem 2.6rem;
}
.page-hero .inner, .wrap { max-width: var(--max); margin: 0 auto; }
.eyebrow {
  color: var(--gold-soft);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.75rem;
  margin: 0 0 0.7rem;
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.2;
  margin: 0 0 0.8rem;
  max-width: 22em;
}
#sell-form, #buy-form { scroll-margin-top: 5.5rem; }
.page-hero .lede { margin: 0; max-width: 44rem; color: #e4e4ef; font-size: 1.05rem; }

main { padding: 2.5rem 1.25rem 3.5rem; }
.wrap > * + * { margin-top: 1.1rem; }
.wrap h2 {
  color: var(--primary);
  font-size: 1.55rem;
  margin: 2rem 0 0.7rem;
  position: relative;
  padding-bottom: 0.55rem;
}
.wrap h2::after {
  content: "";
  width: 52px;
  height: 4px;
  background: var(--accent);
  position: absolute;
  left: 0;
  bottom: 0;
}
.wrap h3 { color: var(--secondary); font-size: 1.12rem; margin: 1.4rem 0 0.4rem; }
.wrap p { margin: 0 0 0.9rem; }
.wrap ul, .wrap ol { margin: 0 0 1rem 1.2rem; }
.wrap li { margin: 0 0 0.45rem; }
.narrow { max-width: 46rem; }

.grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin: 1.25rem 0 0.5rem;
}
.card, .callout, .form-card, .disclaimer {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.card {
  padding: 1.4rem 1.35rem 1.3rem;
  border-top: 6px solid var(--accent);
}
.card h3, .card h2 { margin: 0 0 0.45rem; color: var(--secondary); font-size: 1.12rem; padding: 0; }
.card h2::after, .card h3::after { display: none; }
.card p:last-child { margin-bottom: 0; }
.card a.more { font-weight: 600; }

.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
  margin-top: 0.5rem;
}
.two-col img { width: 100%; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.meta-line { color: var(--muted); font-size: 0.95rem; }

.callout, .disclaimer {
  border-left: 6px solid var(--accent);
  padding: 1.15rem 1.25rem;
  margin: 1.25rem 0;
}
.disclaimer { border-left-color: var(--support); }
.disclaimer p:last-child, .callout p:last-child { margin-bottom: 0; }
.disclaimer strong, .callout strong { color: var(--primary); }

.table-wrap { overflow-x: auto; margin: 1rem 0 1.25rem; }
table {
  border-collapse: collapse;
  width: 100%;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  font-size: 0.95rem;
}
th, td { text-align: left; padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--primary); color: #fff; font-weight: 600; }
tr:last-child td { border-bottom: none; }

.steps { list-style: none; margin: 1rem 0 0; padding: 0; }
.steps li {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 1.1rem 1.2rem 1rem 4.4rem;
  margin: 0 0 0.85rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  left: 1rem;
  top: 1.05rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
}
.steps { counter-reset: step; }
.steps h3 { margin: 0 0 0.35rem; }
.steps p:last-child { margin-bottom: 0; }

details.faq {
  background: #fff;
  border-radius: 12px;
  padding: 0.35rem 1.1rem;
  margin: 0 0 0.7rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--primary);
  padding: 0.75rem 0;
}
details.faq p { margin: 0 0 0.9rem; }

.checklist { list-style: none; margin-left: 0; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 1.8rem;
  margin: 0 0 0.65rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--accent);
  border-radius: 3px;
}

.form-card { padding: 1.4rem 1.3rem 1.3rem; border-top: 6px solid var(--secondary); }
.form-card.is-selected { outline: 2px solid var(--accent); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; }
.full { grid-column: 1 / -1; }
label { display: block; font-weight: 600; font-size: 0.84rem; margin-bottom: 0.3rem; color: var(--primary); }
.hint { display: block; font-weight: 500; color: var(--muted); font-size: 0.78rem; margin-top: 0.2rem; }
input, select, textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}
textarea { min-height: 7rem; resize: vertical; }
fieldset.checks {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 0.7rem 0.85rem 0.4rem;
}
fieldset.checks legend { font-weight: 600; font-size: 0.84rem; color: var(--primary); padding: 0 0.25rem; }
.check { display: flex; gap: 0.5rem; align-items: flex-start; font-weight: 500; font-size: 0.92rem; margin: 0.35rem 0; }
.check input { width: auto; margin-top: 0.25rem; }
.form-note { color: var(--muted); font-size: 0.88rem; }
.form-actions { margin-top: 0.4rem; }

.band {
  background: var(--secondary);
  color: #fff;
  border-radius: 12px;
  padding: 1.6rem 1.4rem;
  margin-top: 2rem;
}
.band h2 { color: #fff; }
.band h2::after { background: var(--gold-soft); }
.band p { color: #f3f7f6; }
.band a:not([class^="btn-"]) { color: #fff; }

footer {
  background: var(--primary);
  color: #c8c8d4;
  padding: 2rem 1.25rem 1.5rem;
  font-size: 0.88rem;
}
.footer-grid {
  max-width: var(--max);
  margin: 0 auto 1.2rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}
footer a { color: var(--gold-soft); text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer h2 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: #fff; margin: 0 0 0.55rem; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 0 0 0.3rem; }
.legal {
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 0.9rem;
  color: #9a9ab0;
}

.resource-list { list-style: none; margin: 0; padding: 0; }
.resource-list li { margin: 0 0 0.75rem; }
.resource-list a { font-weight: 600; text-decoration: none; }
.resource-list a:hover { text-decoration: underline; }

.sources { font-size: 0.92rem; color: #333; }
.sources li { margin-bottom: 0.55rem; }

@media (max-width: 640px) {
  .brand-name { font-size: 0.84rem; }
  .brand-sub { letter-spacing: 0.04em; }
}

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .navbar { flex-wrap: wrap; }
  .navbar nav {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.35rem;
    padding: 0.35rem 0 0.5rem;
  }
  .navbar nav.is-open { display: flex; }
  .navbar nav a { padding: 0.35rem 0; }
}

@media (max-width: 900px) {
  .two-col, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  header, footer, .hero-actions, .cta-row, .form-card, .nav-toggle { display: none !important; }
  body { background: #fff; }
  .card, .callout, .disclaimer, .steps li { box-shadow: none; }
}
