/* LemonTrades public pages (landing, terms, privacy): plain HTML and CSS, readable without JavaScript. */

@font-face { font-family: "Inter"; src: url(/fonts/inter-latin.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(/fonts/instrument-serif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #000;
  --panel: #0b0b0c;
  --panel-2: #121214;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --dim: #71717a;
  --lemon: #f5d547;
  --gold: #e2a93b;
  --lime: #b8e35a;
  --sky: #7dd3fc;
  --bull: #34d399;
  --bear: #f87171;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--lemon); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(0, 0, 0, 0.72); backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 6px; margin-left: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 18px;
  border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: #f4f4f5; color: #0a0a0a; border-color: #f4f4f5; }
.btn-primary:hover { background: #fff; }
.btn-dark { background: rgba(255, 255, 255, 0.04); color: var(--text); }
.btn-dark:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.22); }
.btn-ghost { border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }
.arrow { transition: transform 0.2s; }
.btn:hover .arrow, .link:hover .arrow { transform: translateX(2px); }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; }
.link:hover { color: var(--text); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 112px 0 96px; overflow: hidden; }
.hero::before { /* the light beam */
  content: ""; position: absolute; left: -25%; right: -25%; top: 58%; height: 260px; transform: rotate(-9deg);
  background: radial-gradient(ellipse at 55% 50%, rgba(245, 213, 71, 0.16), rgba(245, 213, 71, 0.05) 35%, transparent 65%);
  filter: blur(24px); pointer-events: none; }
.hero::after { /* glow behind the product */
  content: ""; position: absolute; right: -10%; top: -10%; width: 760px; height: 760px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), transparent 60%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 13px; color: #e4e4e7;
  border: 1px solid transparent; background: linear-gradient(#050505, #050505) padding-box,
    linear-gradient(90deg, rgba(245, 213, 71, 0.75), rgba(184, 227, 90, 0.5), rgba(125, 211, 252, 0.45)) border-box; }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lemon); box-shadow: 0 0 10px var(--lemon); }
h1.display { text-wrap: balance; margin: 28px 0 22px; font: 400 clamp(52px, 7.4vw, 92px)/0.98 var(--serif); letter-spacing: -0.02em;
  background: linear-gradient(180deg, #fff 35%, #9ca3af); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1.display em { font-style: italic; background: linear-gradient(100deg, var(--lemon), var(--lime) 60%, #e2f7a8);
  -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 0.05em; }
.lede { max-width: 540px; margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted); }
.lede strong { color: var(--text); font-weight: 500; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 34px; }
.fine { margin-top: 16px; font-size: 13px; color: var(--dim); }

/* product mock-ups */
.stack { position: relative; height: 560px; }
.mock { position: absolute; border-radius: 18px; border: 1px solid var(--line-2); padding: 18px 20px;
  background: linear-gradient(180deg, #151517, #0b0b0c); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
.mock::before { /* top-edge highlight */
  content: ""; position: absolute; top: -1px; left: 20%; right: 20%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent); }
.mock-alert { top: 10px; left: 0; right: 30px; }
.mock-brief { top: 236px; right: 0; width: 72%; }
.mock-twan { top: 436px; left: 18px; width: 74%; }
.tag { display: inline-block; font: 500 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; }
.mock-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 12px; color: var(--dim); }
.mock-title { font-weight: 600; font-size: 15px; line-height: 1.4; color: var(--text); }
.mock p { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.fx { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.fx b { color: var(--text); font-weight: 600; }
.d { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; }
.d.bull { background: var(--bull); box-shadow: 0 0 8px rgba(52, 211, 153, 0.6); }
.d.bear { background: var(--bear); box-shadow: 0 0 8px rgba(248, 113, 113, 0.5); }
.d.flat { background: #52525b; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 8px; border: 1px solid var(--line-2);
  font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip b { color: var(--text); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bias { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; }
.bias.bull { color: var(--bull); background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); }
.bias.bear { color: var(--bear); background: rgba(248, 113, 113, 0.12); border: 1px solid rgba(248, 113, 113, 0.3); }
.twan-row { display: flex; gap: 12px; align-items: flex-start; }
.twan-row img { width: 34px; height: 34px; border-radius: 50%; flex: none; }
.twan-row .who { font-size: 12px; color: var(--dim); }
.twan-row .who b { color: var(--text); }
.hot { color: #fb923c; }

/* ---------- markets strip ---------- */
.strip { padding: 40px 0 88px; text-align: center; }
.strip p { margin: 0 0 26px; color: var(--muted); font-size: 15px; }
.tickers { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; font-size: 19px; font-weight: 600;
  letter-spacing: -0.01em; color: #d4d4d8; }
.tickers span { opacity: 0.85; }
.tickers .more { color: var(--dim); font-weight: 500; }

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.eyebrow { font: 500 12px/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--lemon); margin-bottom: 18px; }
h2 { text-wrap: balance; margin: 0 0 18px; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em;
  background: linear-gradient(180deg, #fff 40%, #a1a1aa); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 .grad { background: linear-gradient(95deg, var(--lemon), var(--lime) 50%, var(--sky)); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.sub { margin: 0; font-size: 18px; color: var(--muted); }
.divider { height: 1px; max-width: 1100px; margin: 0 auto; background: linear-gradient(90deg, transparent, var(--line-2), transparent); }

/* window (terminal / chat) */
.window { max-width: 1020px; margin: 0 auto; border-radius: 22px; border: 1px solid var(--line-2); overflow: hidden;
  background: linear-gradient(180deg, #0e0e10, #070708); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7); position: relative; }
.window::before { content: ""; position: absolute; top: -1px; left: 25%; right: 25%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245, 213, 71, 0.7), transparent); }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3f3f46; }
.window-bar .label { margin-left: 10px; font: 500 12px var(--mono); color: var(--dim); }
.window-bar .tag { margin-left: auto; }
.wire { padding: 10px 0; font: 13px/1.5 var(--mono); }
.wire-row { display: grid; grid-template-columns: 56px 1fr 230px 74px; gap: 16px; align-items: center; padding: 11px 22px; }
.wire-row + .wire-row { border-top: 1px solid rgba(255, 255, 255, 0.04); }
.wire-row .t { color: var(--dim); }
.wire-row .h { color: #e4e4e7; font-family: var(--sans); font-size: 14px; }
.wire-row .s { display: flex; gap: 6px; flex-wrap: wrap; }
.sc { padding: 2px 7px; border-radius: 6px; font-size: 12px; border: 1px solid var(--line); color: var(--muted); }
.sc.hi { color: var(--lemon); border-color: rgba(245, 213, 71, 0.35); background: rgba(245, 213, 71, 0.07); }
.go { justify-self: end; font-size: 12px; color: var(--dim); }
.go.alert { color: #0a0a0a; background: var(--lemon); border-radius: 6px; padding: 2px 8px; font-weight: 600; }

/* feature cards */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { position: relative; border-radius: 24px; border: 1px solid var(--line); background: linear-gradient(180deg, #0c0c0d, #050505);
  padding: 22px; overflow: hidden; }
.card::before { content: ""; position: absolute; top: -1px; left: 15%; right: 15%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); }
.card .ui { height: 176px; border-radius: 16px; border: 1px solid var(--line); background: radial-gradient(120% 100% at 50% 0%, #17171a, #0a0a0b);
  padding: 16px; margin-bottom: 22px; overflow: hidden; font-size: 13px; color: var(--muted); }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; }
.card h3 svg { width: 18px; height: 18px; color: var(--lemon); flex: none; }
.card p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }
.ui .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.ui .row + .row { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.ui .k { color: var(--text); font-weight: 500; }
.ui .small { font-size: 12px; color: var(--dim); }
.dots { display: flex; gap: 7px; margin: 14px 0 12px; }
.dots i { width: 14px; height: 14px; border-radius: 50%; }
.dots .r { background: var(--bull); } .dots .w { background: var(--bear); } .dots .f { background: #3f3f46; } .dots .p { border: 1.5px dashed #52525b; }
.notif { border-radius: 14px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); padding: 10px 12px; }
.notif + .notif { margin-top: 8px; opacity: 0.6; }
.notif .top { display: flex; justify-content: space-between; font-size: 11px; color: var(--dim); margin-bottom: 3px; }
.notif .top b { color: var(--muted); font-weight: 600; }
.notif .msg { color: var(--text); font-size: 13px; }

/* Twan */
.twan-tile { width: 112px; height: 112px; margin: 0 auto 30px; border-radius: 30px; padding: 14px; position: relative;
  background: linear-gradient(180deg, #1b1b1e, #0b0b0c); border: 1px solid var(--line-2);
  box-shadow: 0 0 60px rgba(245, 213, 71, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.twan-tile img { width: 100%; height: 100%; border-radius: 50%; }
.chat { padding: 26px 28px 30px; display: grid; gap: 22px; }
.bubble-me { justify-self: end; max-width: 70%; background: #1f1f23; border: 1px solid var(--line); border-radius: 18px 18px 6px 18px;
  padding: 10px 16px; font-size: 15px; }
.bubble-twan { display: flex; gap: 14px; max-width: 760px; }
.bubble-twan img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.bubble-twan .body { font-size: 15px; color: #d4d4d8; line-height: 1.65; }
.bubble-twan .body .who { font-size: 12px; color: var(--dim); margin-bottom: 4px; }
.bubble-twan .body .who b { color: var(--text); }
.bubble-twan ul { margin: 8px 0 0; padding-left: 20px; }
.bubble-twan li { margin: 4px 0; }
.bubble-twan b.n { color: #fff; }
.checked { margin-top: 10px; font-size: 12px; color: var(--dim); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { border-radius: 24px; border: 1px solid var(--line); padding: 28px; background: linear-gradient(180deg, #0c0c0d, #050505); }
.step .n { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; margin-bottom: 18px;
  font: 600 14px var(--mono); color: #0a0a0a; background: linear-gradient(135deg, var(--lemon), var(--lime)); }
.step h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 4px; font-size: 17px; font-weight: 500; display: flex;
  justify-content: space-between; align-items: center; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; font-weight: 300; color: var(--dim); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 4px 22px; color: var(--muted); font-size: 15.5px; }
.faq .a p { margin: 0 0 10px; }
.faq .a a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* closing call to action */
.cta { position: relative; overflow: hidden; text-align: center; padding: 120px 0 130px; }
.cta::before { content: ""; position: absolute; left: 50%; top: 40%; width: 900px; height: 420px; transform: translate(-50%, -50%);
  background: radial-gradient(ellipse, rgba(245, 213, 71, 0.13), transparent 65%); filter: blur(10px); pointer-events: none; }
.cta h2 { font: 400 clamp(46px, 6vw, 76px)/1 var(--serif); letter-spacing: -0.02em; }
.cta .hero-cta { justify-content: center; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 56px 0 40px; color: var(--muted); font-size: 14px; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 14px; font-size: 13px; font-weight: 600; color: var(--text); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a:hover { color: var(--text); }
.foot .brand { color: var(--text); }
.foot .about { max-width: 320px; margin: 14px 0 0; color: var(--dim); }
.legal-line { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 12px; font-size: 13px; color: var(--dim); }

/* ---------- documents (terms, privacy) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 72px 24px 96px; }
.doc h1 { margin: 0 0 8px; font: 400 clamp(44px, 6vw, 64px)/1.05 var(--serif); letter-spacing: -0.02em; }
.doc .updated { margin: 0 0 32px; font-size: 14px; color: var(--dim); }
.doc .intro { font-size: 18px; color: #d4d4d8; margin: 0 0 12px; }
.doc h2 { margin: 44px 0 12px; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; background: none; color: var(--text); }
.doc p, .doc li { color: var(--muted); font-size: 15.5px; line-height: 1.7; }
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- small screens ---------- */
@media (max-width: 980px) {
  .hero { padding: 72px 0 56px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .stack { height: auto; display: grid; gap: 14px; }
  .mock { position: relative; inset: auto; width: auto; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .wire-row { grid-template-columns: 48px 1fr 74px; }
  .wire-row .s { display: none; }
  .foot { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .nav-cta .btn-ghost { padding: 0 10px; }
  .grid, .steps { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .lede, .sub { font-size: 16.5px; }
  .chat { padding: 20px 16px 24px; }
  .bubble-me { max-width: 88%; }
  .wire-row { grid-template-columns: 1fr 64px; padding: 10px 16px; }
  .wire-row .t { display: none; }
  .foot { grid-template-columns: 1fr; }
}
