/* TradeMCP — shares the MTContext / CryptoContext dark tokens */
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0a0f1e;
  --surface: #111827;
  --surface-2: #1a2235;
  --border: rgba(255, 255, 255, 0.08);
  --border-lg: rgba(255, 255, 255, 0.14);
  --text: #f9fafb;
  --text-2: #e5e7eb;
  --muted: #9ca3af;
  --faint: #6b7280;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --accent: #10b981;
  --radius: 16px;
  --wrap: 1120px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .88em; background: rgba(255,255,255,.06); padding: .1em .35em; border-radius: 5px; }
h1, h2, h3, h4 { text-wrap: balance; margin: 0; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 15, 30, .8);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-row { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; }
.nav { display: flex; gap: 28px; font-size: .9rem; }
.nav a { color: var(--muted); text-decoration: none; transition: color .15s; }
.nav a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; font-weight: 600; font-size: .95rem;
  text-decoration: none; color: var(--text-2);
  background: rgba(255,255,255,.05); border: 1px solid var(--border-lg);
  transition: background .15s, border-color .15s, transform .15s;
  cursor: pointer; font-family: inherit;
}
.btn:hover { background: rgba(255,255,255,.1); }
.btn-small { padding: 7px 14px; font-size: .85rem; border-radius: 10px; background: #fff; color: #0a0f1e; border-color: #fff; }
.btn-small:hover { background: #e5e7eb; }
.btn-primary {
  color: #fff; border: 0;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 10px 30px -10px rgba(6, 182, 212, .55);
}
.btn-primary:hover { background: linear-gradient(135deg, #2563eb, #0891b2); transform: translateY(-1px); }
.btn-tint { color: var(--c); background: var(--c-soft); border-color: transparent; padding: 9px 16px; font-size: .9rem; }
.btn-tint:hover { background: var(--c-soft); border-color: var(--c); }
.link { color: var(--muted); font-size: .9rem; font-weight: 500; text-decoration: none; }
.link:hover { color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 104px 0 88px; text-align: center; }
.glow {
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 560px; pointer-events: none;
  background:
    radial-gradient(closest-side at 35% 55%, rgba(59,130,246,.22), transparent),
    radial-gradient(closest-side at 65% 50%, rgba(6,182,212,.18), transparent);
  filter: blur(30px);
}
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; color: var(--muted);
  background: rgba(255,255,255,.04); border: 1px solid var(--border-lg);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(16,185,129,.6); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(16,185,129,.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(16,185,129,0); } }
h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 800; letter-spacing: -0.035em; max-width: 900px; }
.grad { background: linear-gradient(90deg, #60a5fa, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 720px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 4px; }
.venues { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; color: var(--faint); font-size: .85rem; font-weight: 500; }
.venues li { position: relative; }
.venues li + li::before { content: ""; position: absolute; left: -12px; top: 50%; width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }

/* Sections */
.section { padding: 88px 0; border-top: 1px solid rgba(255,255,255,.05); }
.section-alt { background: rgba(17, 24, 39, .35); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 700; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.05rem; }

/* Products */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.product {
  position: relative; display: flex; flex-direction: column; gap: 12px;
  padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .2s, border-color .2s, box-shadow .2s;
  overflow: hidden;
}
.product::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, var(--c), transparent 70%);
}
.product:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 18px 40px -20px var(--c); }
.product-muted { background: rgba(17,24,39,.55); }
.product-top { display: flex; align-items: center; justify-content: space-between; }
.product-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--c); background: var(--c-soft); }
.product h3 { font-size: 1.4rem; font-weight: 700; margin-top: 6px; }
.product-market { color: var(--c); font-weight: 600; font-size: .9rem; margin-top: -6px; }
.product > p:not(.product-market) { color: var(--muted); font-size: .95rem; }
.tags { list-style: none; padding: 0; margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: .75rem; color: var(--text-2); padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--border); }
.product-links { display: flex; align-items: center; gap: 18px; margin-top: auto; padding-top: 10px; }
.badge { font-size: .72rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; letter-spacing: .02em; }
.badge-live { color: #34d399; background: rgba(16,185,129,.12); border: 1px solid rgba(16,185,129,.3); }
.badge-soon { color: #fbbf24; background: rgba(245,158,11,.12); border: 1px solid rgba(245,158,11,.3); }
.badge-dev { color: #c4b5fd; background: rgba(167,139,250,.12); border: 1px solid rgba(167,139,250,.3); }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.feature h3 { font-size: 1.02rem; font-weight: 600; margin-bottom: 8px; }
.feature h3::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 10px; vertical-align: middle; background: linear-gradient(135deg, var(--blue), var(--cyan)); transform: translateY(-1px) rotate(45deg); }
.feature p { color: var(--muted); font-size: .92rem; }

/* Setup */
.setup { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.setup-text h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); font-weight: 700; margin-bottom: 16px; }
.setup-text p + p { margin-top: 14px; }
.setup-text p:not(.muted) { color: var(--text-2); }
.code-card { background: #0d1424; border: 1px solid var(--border-lg); border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.8); min-width: 0; }
.code-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border); }
.lights { display: flex; gap: 6px; }
.lights i { width: 11px; height: 11px; border-radius: 50%; background: rgba(239,68,68,.7); }
.lights i:nth-child(2) { background: rgba(245,158,11,.7); }
.lights i:nth-child(3) { background: rgba(16,185,129,.7); }
.code-name { font: 500 .78rem ui-monospace, Menlo, monospace; color: var(--faint); }
.copy { margin-left: auto; font: 600 .75rem "Inter", sans-serif; color: var(--muted); background: rgba(255,255,255,.05); border: 1px solid var(--border-lg); border-radius: 8px; padding: 4px 10px; cursor: pointer; }
.copy:hover { color: var(--text); }
pre { margin: 0; padding: 20px; overflow-x: auto; font: .84rem/1.65 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #cbd5e1; }
pre code { background: none; padding: 0; font-size: inherit; }
pre .k { color: #67e8f9; }

/* FAQ */
details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 22px; transition: border-color .15s; }
details + details { margin-top: 12px; }
details[open] { border-color: rgba(6,182,212,.35); }
summary { cursor: pointer; list-style: none; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--cyan); font-size: 1.2rem; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); margin-top: 10px; font-size: .95rem; }
details a { color: #67e8f9; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 56px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.footer-grid ul a { color: var(--muted); text-decoration: none; }
.footer-grid ul a:hover { color: var(--text); }
.footer-grid .brand + p { margin-top: 10px; }
.disclaimer { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.05); color: var(--faint); font-size: .8rem; display: grid; gap: 8px; }

/* Responsive */
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .setup { grid-template-columns: 1fr; gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .products, .features { grid-template-columns: 1fr; }
  .hero { padding: 72px 0 64px; }
  .section { padding: 64px 0; }
  .wrap { padding: 0 16px; }
  .product { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
