:root {
  --bg: #0b0f14;
  --bg-elevated: #121821;
  --surface: #161d28;
  --text: #e8eef7;
  --muted: #93a0b4;
  --line: rgba(255, 255, 255, 0.08);
  --brand: #5b8cff;
  --brand-2: #3dd6c6;
  --us: #5b8cff;
  --in: #3dd6c6;
  --danger: #ff6b7a;
  --radius: 16px;
  --font: "DM Sans", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(91, 140, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(61, 214, 198, 0.12), transparent 55%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 20, 0.75);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo {
  font-weight: 700; letter-spacing: -0.03em; font-size: 1.125rem;
}
.nav { display: flex; gap: 1.25rem; align-items: center; font-size: 0.925rem; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav-admin {
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text) !important;
}

.hero { padding: 5.5rem 0 4rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem;
  color: var(--brand-2); font-weight: 600; margin: 0 0 1rem;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.hero h1 em { font-style: italic; color: #c9d7ff; }
.lede {
  max-width: 40rem; margin: 1.25rem 0 0; color: var(--muted); font-size: 1.1rem;
}
.lede strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 0.75rem 1.25rem; font-weight: 600; font-size: 0.95rem;
  border: 1px solid transparent; cursor: pointer; transition: 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #7aa2ff);
  color: #0b0f14;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost {
  border-color: var(--line); color: var(--text); background: transparent;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.03); }
.btn-block { width: 100%; }

.markets, .product, .trust { padding: 3.5rem 0; }
.markets h2, .product h2, .trust h2 {
  margin: 0; font-size: 1.75rem; letter-spacing: -0.02em;
}
.section-lede { color: var(--muted); margin: 0.5rem 0 1.75rem; max-width: 36rem; }

.market-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem;
}
@media (max-width: 800px) {
  .market-grid { grid-template-columns: 1fr; }
  .nav { gap: 0.75rem; font-size: 0.85rem; }
}
.market-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.market-card:hover {
  border-color: rgba(91, 140, 255, 0.45);
  transform: translateY(-2px);
}
.market-card-in:hover { border-color: rgba(61, 214, 198, 0.45); }
.market-flag {
  display: inline-flex; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center;
  border-radius: 10px; font-weight: 700; font-size: 0.8rem;
  background: rgba(91, 140, 255, 0.15); color: var(--us);
}
.market-card-in .market-flag {
  background: rgba(61, 214, 198, 0.15); color: var(--in);
}
.market-card h3 { margin: 1rem 0 0.35rem; font-size: 1.35rem; }
.market-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.market-card ul {
  margin: 1rem 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.9rem;
}
.market-go {
  display: inline-block; margin-top: 0.25rem; font-weight: 600; color: var(--brand);
}
.market-card-in .market-go { color: var(--in); }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.75rem;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-grid article {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
}
.feature-grid h3 { margin: 0 0 0.35rem; font-size: 1rem; }
.feature-grid p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.trust-inner {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
  background: linear-gradient(180deg, rgba(91,140,255,0.06), transparent);
}
.trust p { color: var(--muted); max-width: 48rem; }
.trust-note { font-size: 0.9rem; }
.trust-note a { color: var(--brand); text-decoration: underline; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  margin-top: 2rem;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--muted); font-size: 0.9rem;
}
.footer-inner strong { color: var(--text); display: block; }
.footer-links { display: flex; gap: 1rem; align-items: center; }

/* Admin */
.admin-body { background: var(--bg); }
.admin-main {
  display: grid; place-items: center; padding: 3rem 1.25rem 4rem; min-height: calc(100vh - 64px);
}
.admin-card {
  width: min(420px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.75rem;
}
.admin-card h1 { margin: 0; font-size: 1.5rem; letter-spacing: -0.02em; }
.admin-lede { color: var(--muted); font-size: 0.95rem; margin: 0.5rem 0 1.25rem; }
.admin-form { display: grid; gap: 0.9rem; }
.field { display: grid; gap: 0.35rem; font-size: 0.85rem; color: var(--muted); }
.field input, .field select {
  width: 100%; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg-elevated); color: var(--text);
  padding: 0.7rem 0.8rem; font: inherit;
}
.field input:focus, .field select:focus {
  outline: 2px solid rgba(91, 140, 255, 0.35); border-color: transparent;
}
.admin-error {
  margin: 0; color: var(--danger); font-size: 0.88rem;
  background: rgba(255, 107, 122, 0.08); border: 1px solid rgba(255, 107, 122, 0.25);
  border-radius: 10px; padding: 0.6rem 0.75rem;
}
.admin-alt {
  margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 0.88rem;
}
.admin-links { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.75rem; }
.admin-footnote {
  margin: 1.25rem 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.45;
}
.admin-footnote code {
  font-size: 0.75rem; background: rgba(255,255,255,0.05); padding: 0.1rem 0.3rem; border-radius: 4px;
}
