/* TradeMCP News — landing page. Visual language shared with the sibling site mtcontext.com:
   near-black navy, indigo/blue primary, emerald "live" accent, hairline white borders, Inter. */

/* Inter (SIL OFL 1.1, fonts/OFL.txt), self-hosted: no third-party font requests. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/inter-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #050912;
  --bg-2: #0a0f1e;
  --surface: #0f1626;
  --surface-2: #1a2235;
  --border: #ffffff14;
  --border-lg: #ffffff24;
  --text: #f3f4f6;
  --text-2: #d1d5dc;
  --muted: #99a1af;
  --faint: #6a7282;
  --primary: #155dfc;
  --primary-hi: #3080ff;
  --primary-glow: #155dfc55;
  --indigo: #6366f1;
  --accent: #10b981;
  --sky: #54a2ff;
  --cyan: #00d2ef;
  --amber: #fcbb00;
  --danger: #ef4444;
  --radius: 14px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
img, svg { display: block; }
code, pre, .mono { font-family: var(--mono); }
.wrap { width: min(1152px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(768px, 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--primary-hi); outline-offset: 3px; border-radius: 6px; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand .logo { width: 32px; height: 32px; border-radius: 8px; }
.badge {
  font-size: 12px; font-weight: 500; color: var(--sky);
  border: 1px solid #155dfc66; background: #155dfc1f; padding: 1px 8px; border-radius: 999px;
}
.nav-links { display: flex; gap: 32px; margin-inline: auto; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.nav-cta .ghost { color: var(--text-2); }
.btn-white {
  background: #fff; color: #0a0f1e; font-weight: 600; padding: 7px 16px; border-radius: 8px;
}
.btn-white:hover { color: #0a0f1e; background: #e5e7eb; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 96px 0 72px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% 10% auto; height: 780px; z-index: -1;
  background: radial-gradient(closest-side, #1c398e66, #0a0f1e00 70%);
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--text-2);
  border: 1px solid var(--border-lg); background: #ffffff08; padding: 6px 16px; border-radius: 999px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #10b98126; }
.dot.live { animation: pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes pulse { 50% { opacity: .45; } }
h1, h2 { text-wrap: balance; }
h1 {
  font-size: clamp(40px, 6.4vw, 72px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 800;
  margin: 28px auto 24px; max-width: 920px;
}
.grad {
  background: linear-gradient(90deg, var(--sky), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 700px; margin: 0 auto; }
.ctas { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 40px 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px;
  padding: 14px 30px; border-radius: 10px; border: 1px solid transparent; transition: .15s ease;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 30px -8px var(--primary-glow); }
.btn-primary:hover { background: var(--primary-hi); color: #fff; }
.btn-ghost { border-color: var(--border-lg); background: #ffffff08; color: var(--text); }
.btn-ghost:hover { background: #ffffff12; }
.arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* code window */
.window {
  margin: 72px auto 0; max-width: 820px; text-align: left;
  background: var(--surface); border: 1px solid var(--border-lg); border-radius: var(--radius);
  box-shadow: 0 30px 80px -30px #000, 0 0 0 1px #00000040; overflow: hidden;
}
.window-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-bottom: 1px solid var(--border); background: #ffffff05;
}
.window-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ef4444cc; }
.window-bar i:nth-child(2) { background: #f99c00cc; }
.window-bar i:nth-child(3) { background: #00c758cc; }
.tabs { display: flex; gap: 4px; margin-left: 12px; }
.tab {
  font: 12px var(--mono); color: var(--faint); background: none; border: 0; padding: 4px 10px;
  border-radius: 6px; cursor: pointer;
}
.tab[aria-selected="true"] { color: var(--text-2); background: #ffffff0f; }
.copy {
  margin-left: auto; font: 12px var(--sans); color: var(--muted); background: none;
  border: 1px solid var(--border); border-radius: 6px; padding: 3px 10px; cursor: pointer;
}
.copy:hover { color: var(--text); border-color: var(--border-lg); }
pre {
  margin: 0; padding: 20px 24px; overflow-x: auto; font-size: 13.5px; line-height: 1.7; color: var(--text-2);
}
.panel[hidden] { display: none; }
.k { color: #c4b5fd; } .s { color: #86efac; } .n { color: #fcd34d; } .c { color: var(--faint); }
.p { color: var(--sky); }
.caption { color: var(--faint); font-size: 14px; margin-top: 20px; }

/* ---------------------------------------------------------------- sections */
section { padding: 104px 0; border-top: 1px solid var(--border); }
section.alt { background: var(--bg-2); }
.section-head { text-align: center; margin-bottom: 56px; }
h2 { font-size: clamp(30px, 4vw, 42px); letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 14px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0 auto; max-width: 680px; }

.grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 24px;
  transition: border-color .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--border-lg); transform: translateY(-2px); }
.card .icon { font-size: 30px; line-height: 1; margin-bottom: 18px; }
.card h3 { font-size: 15px; margin: 0 0 8px; font-weight: 650; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.65; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; max-width: 1024px; margin-inline: auto; }
.step { display: flex; gap: 20px; }
.num {
  flex: 0 0 48px; height: 48px; display: grid; place-items: center; border-radius: 10px;
  font: 600 14px var(--mono); color: var(--sky); background: #155dfc1a; border: 1px solid #155dfc40;
}
.step h3 { margin: 2px 0 4px; font-size: 15px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }
.step code { font-size: 13px; color: var(--text-2); background: #ffffff0d; padding: 1px 6px; border-radius: 4px; }

/* sources */
.source-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.source-group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.source-group h3 { margin: 0 0 4px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.source-group .sub { margin: 0 0 16px; color: var(--faint); font-size: 13.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; color: var(--text-2); background: #ffffff08; border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px;
}
.note { text-align: center; color: var(--faint); font-size: 14px; margin-top: 28px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1024px; margin-inline: auto; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 32px 24px 24px;
}
.plan.featured { border-color: #155dfc99; background: linear-gradient(#0b1430, var(--surface)); }
.plan .tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 600; color: #fff; background: var(--primary); padding: 3px 12px; border-radius: 999px;
}
.plan .name { color: var(--text-2); font-size: 14px; }
.plan .price { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 2px; }
.plan .price small { font-size: 14px; font-weight: 400; color: var(--muted); }
.plan .desc { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; font-size: 14px; color: var(--text-2); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: "✓"; color: var(--accent); font-weight: 700; font-size: 12px; margin-top: 3px; }
.plan .btn { margin-top: auto; justify-content: center; padding: 11px; font-size: 14px; }
.plan.soon { opacity: .7; }
.btn-disabled { border-color: var(--border); background: #ffffff08; color: var(--muted); cursor: default; }

/* faq */
.faq { display: grid; gap: 14px; }
details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0 24px; transition: border-color .15s ease;
}
details[open] { border-color: var(--border-lg); }
summary {
  list-style: none; cursor: pointer; padding: 20px 28px 20px 0; position: relative;
  font-weight: 600; font-size: 15px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--sky); font-size: 18px; font-weight: 400; transition: transform .2s ease;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0 0 20px; color: var(--muted); font-size: 15px; }
details p a, .note a, .more a { color: var(--sky); }
.more { text-align: center; color: var(--faint); font-size: 14.5px; margin-top: 32px; }

/* closing cta */
.closing { text-align: center; }
.closing p { color: var(--muted); font-size: 18px; margin: 0 0 36px; }
.closing .alt-link { color: var(--muted); font-size: 15px; }
.closing .ctas { align-items: center; margin-top: 0; }

/* footer */
footer { border-top: 1px solid var(--border); padding: 48px 0 40px; font-size: 14px; color: var(--muted); }
.foot { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.foot .brand { font-size: 16px; }
.foot .brand .logo { width: 26px; height: 26px; }
.tagline { color: var(--faint); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-left: auto; }
.legal {
  margin-top: 36px; padding: 22px 24px; border-radius: var(--radius);
  border: 1px solid #f99c0040; background: #f99c0008; font-size: 13px; color: var(--faint); line-height: 1.65;
}
.legal h4 { margin: 0 0 10px; color: var(--amber); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.legal p { margin: 0 0 10px; }
.legal p:last-child { margin: 0; }
.legal b { color: var(--text-2); font-weight: 600; }
.legal a { color: var(--amber); text-decoration: underline; }
.copyright { text-align: center; color: var(--faint); font-size: 13px; margin-top: 28px; }
.family { display: inline-flex; gap: 6px; align-items: center; }
.family a { color: var(--text-2); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .grid, .plans { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .hero { padding: 64px 0 48px; }
  .nav-cta .ghost, .brand .badge { display: none; }
  .grid, .plans, .steps, .source-groups { grid-template-columns: 1fr; }
  section { padding: 72px 0; }
  .window { margin-top: 48px; }
  pre { font-size: 12px; padding: 16px; }
  .window-bar { padding: 10px 10px; gap: 4px; }
  .window-bar i { display: none; }
  .tabs { margin-left: 0; gap: 2px; min-width: 0; }
  .tabs .tab { padding: 4px 6px; font-size: 11px; }
  .copy { flex: none; }
  .foot-links { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.card code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; color: var(--text); }
