/* OrbFlow Labs: shared styles */
:root {
  --bg: #0b0e14;
  --bg-2: #11151d;
  --card: #151a24;
  --line: #232a37;
  --text: #e6e9ef;
  --muted: #9aa3b2;
  --faint: #6b7385;
  --up: #089981;
  --down: #f23645;
  --trig: #2962ff;
  --accent: #2962ff;
  --accent-2: #4f7dff;
  --warn: #ff9800;
  --radius: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 650; }
p { margin: 0 0 1em; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 84px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow { color: var(--accent-2); font-weight: 650; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(11, 14, 20, 0.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); font-size: 0.95rem; }
.nav-links a:hover, .nav-links a.active { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 1rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 10px; font-weight: 650; font-size: 1rem; border: 1px solid transparent; cursor: pointer; transition: transform 0.08s ease, background 0.15s ease; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* hero */
.hero { padding: 76px 0 40px; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -200px -200px auto auto; width: 700px; height: 700px; background: radial-gradient(closest-side, rgba(41, 98, 255, 0.22), transparent); pointer-events: none; }
.hero .lead { margin-top: 8px; }
.hero-shot { margin-top: 48px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55); }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--muted); padding: 5px 12px; border-radius: 999px; font-size: 0.85rem; margin-bottom: 20px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); display: inline-block; }

/* grids and cards */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p:last-child { margin-bottom: 0; }
.card .icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px; font-weight: 800; }
.icon.up { background: rgba(8, 153, 129, 0.15); color: var(--up); }
.icon.down { background: rgba(242, 54, 69, 0.15); color: var(--down); }
.icon.trig { background: rgba(41, 98, 255, 0.15); color: var(--accent-2); }
.icon.warn { background: rgba(255, 152, 0, 0.15); color: var(--warn); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); border: 1px solid var(--line); }
.list { list-style: none; padding: 0; margin: 0 0 1em; }
.list li { padding-left: 26px; position: relative; margin-bottom: 10px; color: var(--muted); }
.list li strong { color: var(--text); }
.list li::before { content: ""; position: absolute; left: 4px; top: 0.6em; width: 9px; height: 9px; border-radius: 2px; background: var(--accent); }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 58px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: -2px; width: 38px; height: 38px; border-radius: 50%; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 750; color: var(--accent-2); }

/* pricing */
.billing-toggle { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin: 10px 0 30px; }
.billing-toggle button { background: none; border: 0; color: var(--muted); padding: 8px 18px; border-radius: 999px; font: inherit; font-size: 0.95rem; cursor: pointer; }
.billing-toggle button.on { background: var(--accent); color: #fff; }
.price-card { max-width: 460px; margin: 0 auto; text-align: left; border-color: rgba(41, 98, 255, 0.5); box-shadow: 0 0 0 1px rgba(41, 98, 255, 0.15), 0 20px 60px rgba(41, 98, 255, 0.12); }
.price { font-size: 3rem; font-weight: 800; letter-spacing: -0.03em; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.save { display: inline-block; background: rgba(8, 153, 129, 0.15); color: var(--up); font-size: 0.8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }
.price-card .btn { width: 100%; margin-top: 10px; }
.soon { opacity: 0.85; }
.agree { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0 6px; font-size: 0.88rem; color: var(--muted); line-height: 1.5; cursor: pointer; }
.agree input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex-shrink: 0; }
.btn.locked { opacity: 0.45; }
.btn.locked:hover { transform: none; }
.form-note.warn { color: var(--warn); }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; background: rgba(255, 152, 0, 0.14); color: var(--warn); margin-bottom: 12px; }
.badge.live { background: rgba(8, 153, 129, 0.15); color: var(--up); }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
details summary { cursor: pointer; font-weight: 650; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 12px 0 0; }

/* forms */
.waitlist { display: flex; gap: 10px; max-width: 460px; margin: 20px auto 0; }
.waitlist input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text); font: inherit; }
.waitlist input:focus { outline: 2px solid var(--accent); border-color: transparent; }
.form-note { font-size: 0.85rem; color: var(--faint); margin-top: 10px; }

/* notice */
.notice { border: 1px solid rgba(255, 152, 0, 0.35); background: rgba(255, 152, 0, 0.07); border-radius: 12px; padding: 16px 20px; color: var(--muted); font-size: 0.95rem; }
.notice strong { color: var(--text); }

/* legal pages */
.doc { max-width: 760px; }
.doc h2 { font-size: 1.35rem; margin-top: 2em; }
.doc p, .doc li { color: var(--muted); }
.doc .draft { background: rgba(255, 152, 0, 0.08); border: 1px dashed rgba(255, 152, 0, 0.5); color: var(--warn); padding: 12px 16px; border-radius: 10px; font-size: 0.9rem; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 48px 0 40px; color: var(--faint); font-size: 0.88rem; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 28px; }
.footer-links { display: flex; gap: 40px; flex-wrap: wrap; }
.footer-links div { display: flex; flex-direction: column; gap: 8px; }
.footer-links strong { color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.footer-links a { color: var(--faint); }
.footer-links a:hover { color: var(--text); }
.risk { border-top: 1px solid var(--line); padding-top: 22px; line-height: 1.55; }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 60px 0; }
  .wrap { padding: 0 16px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 16px; gap: 14px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .waitlist { flex-direction: column; }
  .hero { padding-top: 48px; }
}

/* tiers */
.plans { text-align: left; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan .list { flex: 1; }
.plan .btn { width: 100%; }
.plan .price { font-size: 2.4rem; }
.plan.featured { border-color: rgba(41, 98, 255, 0.6); box-shadow: 0 0 0 1px rgba(41, 98, 255, 0.2), 0 20px 60px rgba(41, 98, 255, 0.14); }
.plan .badge { margin-bottom: 8px; }
.list li .badge { margin: 0 0 0 6px; font-size: 0.65rem; vertical-align: middle; }
.was { font-size: 1.1rem; color: var(--faint); font-weight: 500; margin-left: 6px; }
.table-wrap { overflow-x: auto; margin-top: 24px; }
.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--muted); }
.compare thead th { color: var(--text); }

/* promo bar */
.promo-bar { background: linear-gradient(90deg, #1f3cff, #7a2bff); color: #fff; font-size: 0.92rem; }
.promo-bar .wrap { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; justify-content: center; padding-top: 9px; padding-bottom: 9px; text-align: center; }
.promo-bar .promo-detail { opacity: 0.85; }
.promo-bar .promo-clock { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: rgba(0, 0, 0, 0.25); padding: 2px 8px; border-radius: 6px; }
.promo-bar a { color: #fff; font-weight: 700; text-decoration: underline; }

/* Indicator library */
.lib { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 36px; }
.lib-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.lib-card .shot { aspect-ratio: 16 / 7; overflow: hidden; border-bottom: 1px solid var(--line); background: #000; }
.lib-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
.lib-card .body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.lib-card .body .muted { flex: 1; }
.lib-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.lib-card .tags .badge { margin: 0; }
.badge.free { background: rgba(41, 98, 255, 0.15); color: var(--accent-2); }
.badge.plan { background: rgba(154, 163, 178, 0.14); color: var(--muted); }
.lib-card .btn-row { margin-top: 16px; }
.wide-shot { margin-top: 36px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; }
@media (max-width: 760px) { .lib { grid-template-columns: 1fr; } }
