/* SPDX-License-Identifier: PolyForm-Noncommercial-1.0.0 */
/* Copyright 2026 Anton (darkcite) */
/* Ephem landing page. Design language shared with darkcite/trading-engine-multivenue (dashboard). */
:root {
  --bg: #0f1115; --panel: #171a21; --line: #262b36; --fg: #d7dbe3; --dim: #8a93a6;
  --ok: #39c26c; --warn: #e2b13c; --bad: #e25b4c; --acc: #5b9cf5; --acc-bg: rgba(91, 156, 245, .12);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 14px/1.6 var(--mono); }
a { color: var(--acc); }
::selection { background: var(--acc); color: var(--bg); }
.hero, main, footer { max-width: 900px; margin: 0 auto; padding: 0 16px; }

.hero { padding-top: 12vh; padding-bottom: 7vh; }
.mark { margin: 0; color: var(--acc); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mark::before { content: "● "; color: var(--ok); }
h1 { font-size: clamp(22px, 4.2vw, 36px); line-height: 1.25; margin: 10px 0 12px; font-weight: 700; }
.sub { color: var(--dim); max-width: 44rem; margin: 0 0 22px; }
.start { display: inline-block; color: var(--acc); background: var(--acc-bg); border: 1px solid var(--acc); border-radius: 4px;
  padding: 9px 20px; font-weight: 700; text-decoration: none; letter-spacing: .04em; text-transform: uppercase; }
.start::after { content: " →"; }
.start:hover { background: rgba(91, 156, 245, .22); }
.small { color: var(--dim); font-size: 12px; }

section { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; margin: 0 0 10px; }
h2 { margin: 0 0 8px; font-size: 13px; color: var(--acc); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.steps { margin: 0 0 8px; padding-left: 22px; }
.steps li { margin: 4px 0; }
.steps li::marker { color: var(--acc); }
strong { color: var(--fg); }
section p { margin: 6px 0; color: var(--dim); }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 10px; background: none; border: 0; padding: 0; }
.grid > div { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 10px 14px; }
.grid ul { list-style: none; margin: 0; padding: 0; }
.grid li { margin: 6px 0; padding-left: 18px; position: relative; }
.grid > div:first-child li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); }
.grid > div:last-child li::before { content: "✗"; position: absolute; left: 0; color: var(--bad); }
.grid > div:last-child h2 { color: var(--warn); }

.cta { text-align: center; margin: 28px 0; }
footer { color: var(--dim); font-size: 12px; text-align: center; padding-top: 12px; padding-bottom: 24px; border-top: 1px solid var(--line); }

/* User guide (guide.html) */
.guide-hero { padding-top: 8vh; padding-bottom: 4vh; }
.mark a { color: inherit; text-decoration: none; }
.guide section { scroll-margin-top: 12px; }
.guide h3 { margin: 12px 0 4px; font-size: 13px; color: var(--fg); font-weight: 600; }
.guide section ul, .guide section ol { color: var(--dim); padding-left: 20px; margin: 6px 0; }
.guide section li { margin: 4px 0; }
.guide b { color: var(--fg); font-weight: 600; }
.guide code { color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 0 4px; }
.toc ol { columns: 2 260px; margin: 0; padding-left: 22px; }
.toc li { margin: 2px 0; break-inside: avoid; }
.toc li::marker { color: var(--acc); }
.note { border-left: 2px solid var(--acc); padding-left: 10px; }
.guide table { width: 100%; border-collapse: collapse; margin: 6px 0; color: var(--dim); font-size: 13px; }
.guide th, .guide td { text-align: left; vertical-align: top; padding: 6px 8px; border-top: 1px solid var(--line); }
.guide thead th { color: var(--acc); border-top: 0; }
.guide tbody th { color: var(--fg); font-weight: 600; white-space: nowrap; }
.guide small { color: var(--dim); font-weight: 400; }
.guide dl { margin: 6px 0; }
.guide dt { color: var(--fg); font-weight: 600; margin-top: 10px; }
.guide dd { color: var(--dim); margin: 2px 0 0 0; }
.guide .grid { margin: 6px 0; }
.guide .grid ul { padding-left: 0; }
.guide .grid > div:last-child h3 { color: var(--warn); }
.guide .grid > div:first-child h3 { color: var(--ok); }
@media (max-width: 600px) {
  .guide table, .guide thead, .guide tbody, .guide tr { display: block; }
  .guide thead { display: none; }
  .guide tbody th { display: block; padding-top: 10px; white-space: normal; }
  .guide td { display: block; border-top: 0; padding: 2px 8px; }
  .guide td:nth-child(2)::before { content: "Direct: "; color: var(--fg); }
  .guide td:nth-child(3)::before { content: "Tor: "; color: var(--fg); }
}
