/* LiveBridge site. No external fonts or scripts: fast, private, works offline. */
:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --bg-2: #10131a;
  --panel: #151922;
  --panel-2: #1b202b;
  --line: #262c39;
  --text: #e9ebf1;
  --muted: #9ba3b4;
  --faint: #6b7385;
  --orange: #ff8a3d;
  --violet: #8b7cf6;
  --cyan: #3fd0e0;
  --green: #4ade80;
  --accent: var(--orange);
  --accent-ink: #1a0e05;
  --code-bg: #0e1117;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --radius: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f7f6f2;
    --bg-2: #ffffff;
    --panel: #ffffff;
    --panel-2: #f1f0ea;
    --line: #e2e0d8;
    --text: #15171c;
    --muted: #525a68;
    --faint: #7b8290;
    --orange: #e0661b;
    --violet: #6a58dc;
    --cyan: #0b93a6;
    --green: #16a34a;
    --accent-ink: #ffffff;
    --code-bg: #15171c;
    --shadow: 0 20px 50px rgba(20, 20, 30, .12);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px;
}
code, pre, kbd { font-family: var(--mono); font-size: .88em; }
:not(pre) > code {
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: .08em .38em;
}

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--panel); padding: 8px 12px; }

/* --- header ---------------------------------------------------------------------------- */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav a:hover { color: var(--text); }
.nav .gh {
  color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  display: inline-flex; gap: 8px; align-items: center;
}
.nav .gh:hover { border-color: var(--faint); }
@media (max-width: 760px) { .nav a:not(.gh) { display: none; } }

/* --- hero -------------------------------------------------------------------------------- */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 620px; z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 40%, color-mix(in srgb, var(--orange) 22%, transparent), transparent 70%),
    radial-gradient(35% 45% at 60% 30%, color-mix(in srgb, var(--violet) 22%, transparent), transparent 70%),
    radial-gradient(35% 45% at 90% 50%, color-mix(in srgb, var(--cyan) 18%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 48px; } }
.eyebrow {
  display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--bg-2);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
h1 {
  font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -.035em;
  margin: 18px 0 18px; font-weight: 800;
}
h1 .grad {
  background: linear-gradient(90deg, var(--orange), var(--violet) 55%, var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 36em; margin: 0 0 28px; }
.lede strong { color: var(--text); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 650;
  border-radius: 12px; padding: 12px 20px; border: 1px solid var(--line); background: var(--panel);
  font-size: 16px; cursor: pointer; color: var(--text);
}
.btn:hover { border-color: var(--faint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.facts { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 14px; padding: 0; margin: 0; list-style: none; }
.facts li::before { content: "✓"; color: var(--green); margin-right: 6px; font-weight: 700; }

/* --- demo (chat + mini session view) ------------------------------------------------------ */
.demo {
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden;
}
.demo-bar {
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--faint); background: var(--bg-2);
}
.demo-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); display: inline-block; }
.demo-bar span { margin-left: 6px; }
.demo-bar button {
  margin-left: auto; font: inherit; color: var(--muted); background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 2px 10px; cursor: pointer;
}
.demo-body { padding: 16px; display: grid; gap: 14px; }
.msg { border-radius: 12px; padding: 10px 14px; font-size: 15px; line-height: 1.5; }
.msg.you { background: var(--panel-2); border: 1px solid var(--line); min-height: 4.6em; }
.msg.you b { color: var(--faint); font-weight: 600; font-size: 12px; display: block; letter-spacing: .04em; text-transform: uppercase; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--text); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.calls { list-style: none; margin: 0; padding: 0; font-family: var(--mono); font-size: 12.5px; display: grid; gap: 5px; min-height: 12.2em; }
.calls li {
  color: var(--muted);
  opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.calls li.on { opacity: 1; transform: none; }
.calls li::before { content: "●"; color: var(--green); font-size: 9px; margin-right: 8px; vertical-align: 1px; }
.calls .fn { color: var(--text); }
.session { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.session .head {
  font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; color: #0b0d12;
  opacity: .25; transition: opacity .4s;
}
.session .head.on { opacity: 1; }
.session .clip {
  height: 26px; border-radius: 6px; border: 1px dashed var(--line); font-size: 11.5px;
  display: flex; align-items: center; gap: 6px; padding: 0 8px; color: #0b0d12; font-weight: 600;
  overflow: hidden; white-space: nowrap; transition: background .4s, border-color .4s;
}
.session .clip.on { border-style: solid; }
.session .clip.on::before { content: "▶"; font-size: 9px; }
.session .clip.playing::before { animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.c-orange { background: var(--orange); border-color: var(--orange) !important; }
.c-violet { background: var(--violet); border-color: var(--violet) !important; }
.c-cyan { background: var(--cyan); border-color: var(--cyan) !important; }
.demo-foot { font-size: 13px; color: var(--faint); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.demo-foot a { color: var(--muted); }

/* --- sections ----------------------------------------------------------------------------- */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.025em; line-height: 1.12; margin: 0 0 12px; }
.sub { color: var(--muted); font-size: 18px; max-width: 44em; margin: 0 0 36px; }
h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -.01em; }

.shot {
  margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow);
  background: #1e1e1e;
}
.shot img { display: block; width: 100%; }
.shot figcaption { font-size: 14px; color: var(--faint); padding: 10px 14px; background: var(--panel); border-top: 1px solid var(--line); }
.shots { display: grid; gap: 28px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: border-color .2s, transform .2s;
}
a.card:hover { border-color: var(--faint); transform: translateY(-2px); }
.card .quote { font-size: 16px; line-height: 1.45; }
.card .quote::before { content: "“"; color: var(--accent); font-weight: 800; margin-right: 1px; }
.card .quote::after { content: "”"; color: var(--accent); font-weight: 800; }
.card .what { color: var(--muted); font-size: 14.5px; margin-top: auto; }
.card .num { font: 600 12px var(--mono); color: var(--faint); letter-spacing: .06em; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.feature { padding: 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.feature p { color: var(--muted); margin: 0; font-size: 15.5px; }
.feature .ico {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 14px;
  background: color-mix(in srgb, var(--c, var(--orange)) 16%, transparent); color: var(--c, var(--orange));
}
.feature .ico svg { width: 20px; height: 20px; }

/* how it works */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 14px; align-items: stretch; }
.node { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.node small { color: var(--faint); font: 600 12px var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.node p { color: var(--muted); font-size: 15px; margin: 6px 0 0; }
.arrow { display: grid; place-items: center; color: var(--faint); font: 12px var(--mono); text-align: center; }
.arrow span { display: block; font-size: 22px; line-height: 1; color: var(--muted); }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } .arrow span { transform: rotate(90deg); } }

/* install */
.tabs { display: flex; gap: 6px; margin-bottom: -1px; }
.tab {
  font: 600 14px var(--sans); background: none; border: 1px solid transparent; border-bottom: none; color: var(--muted);
  padding: 8px 16px; border-radius: 10px 10px 0 0; cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--code-bg); color: #e9ebf1; border-color: var(--line); }
.code {
  position: relative; background: var(--code-bg); color: #e3e6ee; border: 1px solid var(--line);
  border-radius: 0 12px 12px 12px; padding: 18px 18px; overflow-x: auto;
}
.code.solo { border-radius: 12px; }
.code pre { margin: 0; font-size: 14px; line-height: 1.7; }
.code .c { color: #7d8597; }
.copy {
  position: absolute; top: 10px; right: 10px; font: 600 12px var(--sans); color: #c9cdd8; background: #1c212c;
  border: 1px solid #2b3240; border-radius: 8px; padding: 4px 10px; cursor: pointer;
}
.copy:hover { color: #fff; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.steps li::before {
  content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--panel-2); border: 1px solid var(--line); font-weight: 700; font-size: 15px;
}
.two { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.two > *, .hero .wrap > * { min-width: 0; } /* long code lines scroll inside their box */
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } }
.note { color: var(--muted); font-size: 15px; }

/* tools */
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.area {
  display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; font-size: 15px;
}
.area b { font: 700 13px var(--mono); color: var(--faint); }

/* prompts */
.prompts { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.prompt {
  display: flex; gap: 10px; align-items: center; justify-content: space-between; background: var(--panel);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 10px 10px 14px; font-size: 15px;
}
.prompt button {
  flex: none; font: 600 12px var(--sans); color: var(--muted); background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 8px; padding: 4px 10px; cursor: pointer;
}
.prompt button:hover { color: var(--text); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; }
.faq summary { cursor: pointer; font-weight: 650; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 16px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--faint); font-size: 14px; }
footer .wrap { display: grid; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }

.center { text-align: center; }
.more { margin-top: 22px; }
.more a { color: var(--text); font-weight: 600; }
