:root {
  --bg: #09090b; --panel: #111113; --panel2: #18181b; --panel3: #222226; --line: #212125; --line2: #2c2c31;
  --text: #fafafa; --muted: #a1a1aa; --faint: #71717a;
  --accent: #7c84f6; --accent-soft: rgba(124,132,246,.14); --accent-line: rgba(124,132,246,.45);
  --green: #4ade80; --green-soft: rgba(74,222,128,.1); --red: #f87171; --red-soft: rgba(248,113,113,.1);
  --amber: #fbbf24; --amber-soft: rgba(251,191,36,.08);
  --radius: 14px; --radius-sm: 9px; --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 14px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.mono { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.hidden { display: none !important; }

/* nav */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 22px; padding: 14px 28px;
  background: rgba(9,9,11,.82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; text-decoration: none; letter-spacing: -.01em; }
.logo { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--accent), #a5abff); }
.nav .links { display: flex; gap: 18px; margin-left: auto; align-items: center; }
.nav .links a { text-decoration: none; color: var(--muted); font-size: 13.5px; transition: color .15s; }
.nav .links a:hover, .nav .links a.on { color: var(--text); }

.wrap { max-width: 1040px; margin: 0 auto; padding: 40px 24px 80px; }
.narrow { max-width: 760px; }
h1 { font-size: 30px; letter-spacing: -.025em; margin: 0 0 8px; line-height: 1.2; }
h2 { font-size: 15px; margin: 0 0 4px; letter-spacing: -.01em; }
.sub { color: var(--muted); margin: 0 0 28px; font-size: 15px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 16px; }
.card p { margin: 6px 0 0; }

/* buttons + inputs */
button, .btn { font: inherit; font-weight: 500; font-size: 13.5px; color: var(--text); background: var(--panel3); border: 1px solid var(--line2);
  border-radius: var(--radius-sm); padding: 9px 15px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 7px;
  transition: background .15s, border-color .15s, transform .15s var(--ease); white-space: nowrap; }
button:hover, .btn:hover { background: #2a2a2f; }
button:active, .btn:active { transform: scale(.97); }
button:disabled { opacity: .55; cursor: default; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.primary:hover { background: #8c93f8; }
.ghost { background: transparent; }
.danger { color: var(--red); }
input, select { font: inherit; color: var(--text); background: var(--panel2); border: 1px solid var(--line2); border-radius: var(--radius-sm);
  padding: 10px 12px; width: 100%; outline: none; transition: border-color .15s, box-shadow .15s; }
input:focus { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
label { display: block; font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }
.field { margin-bottom: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row > input { flex: 1; min-width: 200px; }

/* hero */
.hero { text-align: center; padding: 56px 0 30px; }
.hero h1 { font-size: 46px; letter-spacing: -.035em; max-width: 760px; margin: 0 auto 14px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { max-width: 600px; margin: 0 auto 26px; }
.badge { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--muted); border: 1px solid var(--line2);
  border-radius: 999px; padding: 4px 11px; margin-bottom: 18px; background: var(--panel); }
.badge b { color: var(--green); font-weight: 500; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 760px) { .grid3, .grid2 { grid-template-columns: 1fr; } .hero h1 { font-size: 34px; } .nav { padding: 12px 16px; gap: 12px; } }
.feature { padding: 20px; }
.feature .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; font-size: 15px; }
.feature p { color: var(--muted); font-size: 13.5px; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin: 48px 0 14px; }

/* animated demo */
.demo { background: var(--panel); border: 1px solid var(--line2); border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px -30px rgba(124,132,246,.25), 0 1px 0 rgba(255,255,255,.03) inset; }
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); background: var(--panel2); }
.dots { display: flex; gap: 6px; } .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--panel3); display: block; }
.demo-title { font-size: 12.5px; color: var(--muted); }
.demo-live { margin-left: auto; font-size: 12px; color: var(--green); display: flex; align-items: center; gap: 7px; }
.demo-live b { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(74,222,128,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.55); } 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.demo-body { display: grid; grid-template-columns: 1fr 1.15fr; gap: 0; min-height: 330px; }
.demo-col { padding: 16px; }
.demo-col + .demo-col { border-left: 1px solid var(--line); }
@media (max-width: 760px) { .demo-body { grid-template-columns: 1fr; } .demo-col + .demo-col { border-left: 0; border-top: 1px solid var(--line); } }
.demo-label { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 10px; }
.demo-feed { display: flex; flex-direction: column; gap: 8px; }
.req { background: var(--panel2); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; font-size: 13px;
  animation: slideIn .45s var(--ease) both; transition: border-color .3s, opacity .3s; }
.req.active { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.req.done { opacity: .55; }
.req .top { display: flex; justify-content: space-between; gap: 8px; }
.req .cat { font-weight: 600; }
.req .who { color: var(--faint); font-size: 12px; }
.req .desc { color: var(--muted); margin-top: 3px; }
.req .tag { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--panel3); color: var(--muted); white-space: nowrap; height: fit-content; }
.req .tag.sent { background: var(--green-soft); color: var(--green); }
.req .tag.won { background: var(--accent-soft); color: var(--accent); }
.demo-steps { display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.step { display: flex; gap: 9px; align-items: flex-start; font-size: 13px; color: var(--muted); animation: fadeUp .35s var(--ease) both; }
.step .ic { width: 18px; height: 18px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 10px; margin-top: 1px; background: var(--panel3); color: var(--muted); }
.step.ok .ic { background: var(--green-soft); color: var(--green); }
.step b { color: var(--text); font-weight: 600; }
.step .mono { color: var(--text); }
.typing { display: inline-flex; gap: 3px; } .typing i { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.demo-chat { display: flex; flex-direction: column; gap: 7px; min-height: 92px; }
.bubble { max-width: 88%; padding: 8px 11px; border-radius: 12px; font-size: 13px; line-height: 1.45; animation: fadeUp .35s var(--ease) both; }
.bubble.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble.them { align-self: flex-start; background: var(--panel3); color: var(--text); border-bottom-left-radius: 4px; }
.bubble small { display: block; opacity: .7; font-size: 11px; margin-top: 2px; }
.demo-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.demo-stats > div { padding: 14px 16px; }
.demo-stats > div + div { border-left: 1px solid var(--line); }
.demo-stats span { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; transition: color .3s; }
.demo-stats span.bump { color: var(--green); }
.demo-stats small { color: var(--faint); font-size: 12px; }
@media (max-width: 760px) { .demo-stats { grid-template-columns: repeat(2, 1fr); } .demo-stats > div:nth-child(3) { border-left: 0; } .demo-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@keyframes slideIn { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .req, .step, .bubble { animation: none; } .demo-live b { animation: none; } }

/* pricing */
.plan { display: flex; flex-direction: column; gap: 4px; position: relative; }
.plan.best { border-color: var(--accent-line); box-shadow: 0 0 0 1px var(--accent-line) inset; }
.plan .tag { position: absolute; top: 14px; right: 14px; font-size: 11px; color: var(--accent); background: var(--accent-soft); padding: 2px 8px; border-radius: 999px; }
.plan .price { font-size: 34px; font-weight: 600; letter-spacing: -.03em; margin: 8px 0 0; }
.plan .per { color: var(--faint); font-size: 12.5px; margin-bottom: 14px; }
.plan button { margin-top: auto; justify-content: center; }

/* stats + chips */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.stat { background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat .n { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: 12.5px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip { font-size: 12.5px; border: 1px solid var(--line2); background: var(--panel2); border-radius: 999px; padding: 6px 12px; color: var(--muted); }
.chip b { color: var(--green); font-weight: 600; }
.fine { color: var(--faint); font-size: 12.5px; margin: 14px 0 0; padding-left: 18px; }
.fine li { margin: 3px 0; }

/* segmented toggle */
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; padding: 3px; }
.seg button { background: transparent; border: 0; padding: 5px 13px; color: var(--muted); border-radius: 7px; }
.seg button.on { background: var(--panel3); color: var(--text); }
.post { white-space: pre-wrap; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 14px 0; font-size: 13.5px; min-height: 80px; }

/* account */
.big { font-size: 40px; font-weight: 600; letter-spacing: -.03em; }
.pill { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; font-weight: 500; }
.pill.ok { color: var(--green); background: var(--green-soft); }
.pill.off { color: var(--red); background: var(--red-soft); }
.pill.own { color: var(--accent); background: var(--accent-soft); }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--faint); font-weight: 500; font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
.tablewrap { overflow-x: auto; }
.tabs { display: flex; gap: 6px; margin-bottom: 14px; }

/* auth */
.auth { max-width: 400px; margin: 60px auto; }
.err { color: var(--red); font-size: 13px; min-height: 20px; margin: 4px 0 10px; }
.note { background: var(--amber-soft); border: 1px solid rgba(251,191,36,.25); color: var(--amber); border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.note.ok { background: var(--green-soft); border-color: rgba(74,222,128,.25); color: var(--green); }

/* toast */
#toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--panel3); border: 1px solid var(--line2); padding: 10px 16px; border-radius: 10px; font-size: 13.5px;
  transition: opacity .3s var(--ease), transform .3s var(--ease); z-index: 50; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { color: var(--red); }
footer { color: var(--faint); font-size: 12.5px; text-align: center; padding: 30px; border-top: 1px solid var(--line); }
.foot-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 8px; }
.foot-links a { color: var(--muted); text-decoration: none; }
.foot-links a:hover { color: var(--text); }

/* legal pages */
.legal h2 { margin: 28px 0 8px; font-size: 16px; }
.legal p, .legal li { color: var(--muted); line-height: 1.7; }
.legal ul { padding-left: 20px; margin: 6px 0; }
.legal b { color: var(--text); font-weight: 500; }
.legal a { color: var(--accent); }
.agree { color: var(--faint); font-size: 12.5px; text-align: center; margin: 12px 0 0; }
.agree a { color: var(--muted); }
