/* Bob website — same palette as the app (Theme.xaml). Dark only, like the app. */
:root {
  --bg: #0e1015;
  --surface: #161a22;
  --surface-alt: #1c212b;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f5f6f8;
  --text-2: #b8bfc9;
  --text-3: #8891a0;
  --accent: #006bff;          /* the logo's blue */
  --accent-hover: #0057d6;
  --accent-subtle: rgba(0, 107, 255, 0.15);
  --link: #5c9dff;            /* lighter tint: readable as small text on the dark background */
  --positive: #22c55e;
  --radius: 14px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }

.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 16, 21, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 19px; }
.logo:hover { text-decoration: none; }
.logo img { height: 46px; width: auto; display: block; }
.footer__logo { height: 26px; width: auto; display: block; margin-bottom: 8px; opacity: .9; }
.lang { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--border-strong); border-radius: 9px; }
.lang a { padding: 3px 9px; border-radius: 6px; font-size: 13px; font-weight: 700; color: var(--text-3); }
.lang a:hover { color: var(--text); text-decoration: none; }
.lang a.on { background: var(--surface-alt); color: var(--text); }
.logo__mark {
  width: 30px; height: 30px; border-radius: 8px; background: var(--accent);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px;
}
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__end { display: flex; align-items: center; gap: 12px; }
.nav__links a { color: var(--text-2); font-size: 15px; }
.nav__links a:hover { color: var(--text); text-decoration: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 10px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { color: var(--text); border-color: var(--border-strong); background: transparent; }
.btn--ghost:hover { border-color: var(--text-3); }
.btn--lg { padding: 14px 26px; font-size: 16px; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 88px 0 56px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: -120px 0 auto; height: 520px; z-index: -1;
  background: radial-gradient(600px 300px at 50% 30%, rgba(0, 107, 255, 0.24), transparent 70%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--link); background: var(--accent-subtle); border: 1px solid rgba(0, 107, 255, 0.4);
}
h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.1; margin: 18px 0 16px; letter-spacing: -0.02em; }
h1 em { font-style: normal; color: var(--link); }
.lead { font-size: 18px; color: var(--text-2); margin: 0 0 28px; max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero__note { margin-top: 14px; font-size: 13px; color: var(--text-3); }
.hero__note--smartscreen { margin-top: 6px; }
.hero__release { margin-top: 6px; }

/* changelog */
.changelog { margin-top: 28px; display: grid; gap: 14px; }
.release { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.release--latest { border-color: var(--accent); }
.release__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.legal .release__head h2 { margin: 0; font-size: 20px; }
.release__head time { margin-left: auto; color: var(--text-3); font-size: 14px; }
.release ul { margin: 12px 0 0; padding-left: 20px; }
.release li { color: var(--text-2); margin: 4px 0; }
.release .badge.badge--inline { position: static; }
.hero__note--smartscreen strong { color: var(--text-2); }

/* app mock */
.mock {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45); overflow: hidden;
}
.mock__bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.mock__bar .logo__mark { width: 20px; height: 20px; font-size: 11px; border-radius: 6px; }
.mock__tabs { display: flex; gap: 6px; margin: 0 auto; }
.mock__tab {
  font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1.4; padding: 3px 9px; border-radius: 6px;
  color: var(--text-3); background: none; border: 0; cursor: pointer; transition: background .2s, color .2s;
}
.mock__tab:hover { color: var(--text); }
.mock__tab--on, .mock__tab--on:hover { background: var(--accent); color: #fff; }
.mock__progress { height: 2px; background: var(--border); }
.mock__progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.mock__stage { height: 290px; overflow: hidden; }
.mock__stage .mock__body { height: 100%; }
.mock__label--gap { margin-top: 10px; }

/* scene pieces appear one after another */
.pop { opacity: 0; transform: translateY(6px); transition: opacity .35s ease, transform .35s ease; }
.pop.is-in { opacity: 1; transform: none; }

/* prep */
.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.qlist li { font-size: 12px; color: var(--text); line-height: 1.45; }
.qtag {
  display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 4px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .02em; vertical-align: 1px;
}
.qtag--sys { background: rgba(0, 107, 255, .18); color: #7fb2ff; }
.qtag--tech { background: rgba(168, 85, 247, .18); color: #c9a2fb; }
.qtag--beh { background: rgba(245, 158, 11, .16); color: #f8c46b; }
.qtag--cv { background: rgba(34, 197, 94, .16); color: #6ee7a0; }
.mock__ok { margin-top: 10px; font-size: 11.5px; font-weight: 600; color: var(--positive); }

/* code assist */
.shot {
  position: relative; background: #f6f7f9; color: #1f2430; border-radius: 6px; padding: 10px 12px;
  font-size: 11.5px; line-height: 1.5;
}
.shot b { font-size: 12.5px; }
.shot p { margin: 6px 0 0; }
.shot code { font: 11px ui-monospace, Consolas, monospace; background: #e7e9ee; padding: 0 3px; border-radius: 3px; }
.shot__ex { color: #5b6270; font-family: ui-monospace, Consolas, monospace; font-size: 10.5px; }
.shot__sel {
  position: absolute; left: 4px; top: 4px; width: 0; height: 0; border: 1.5px dashed var(--accent);
  background: rgba(0, 107, 255, .08); border-radius: 4px; opacity: 0;
  transition: width 1s cubic-bezier(.2, .7, .3, 1), height 1s cubic-bezier(.2, .7, .3, 1), opacity .15s;
}
.shot__sel.is-in { width: calc(100% - 8px); height: calc(100% - 8px); opacity: 1; }
.code {
  margin: 0; padding: 8px 10px; border-radius: 6px; background: #0b0d12; border: 1px solid var(--border);
  font: 11px/1.55 ui-monospace, Consolas, monospace; color: #d6dbe4; white-space: pre; overflow: hidden; min-height: 112px;
}
.code .kw { color: #7fb2ff; }
.code .fn { color: #f8c46b; }

/* chat */
.chat { height: 100%; overflow: hidden; padding: 12px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.bubble { max-width: 82%; padding: 8px 11px; border-radius: 10px; font-size: 12px; line-height: 1.5; }
.bubble--me { align-self: flex-end; background: var(--accent-subtle); border: 1px solid rgba(0, 107, 255, .35); }
.bubble--bob { align-self: flex-start; background: var(--surface-alt); border: 1px solid var(--border); }
.bubble .who { display: block; font-size: 10px; font-weight: 700; color: var(--text-3); margin-bottom: 2px; }
.thumb {
  margin-bottom: 6px; padding: 6px 8px; border-radius: 6px; background: #2a0f12; border: 1px solid #5c1d24;
  font: 10.5px/1.45 ui-monospace, Consolas, monospace; color: #ff9aa4;
}
.thumb span { display: block; color: #c27a82; }
.dots { display: inline-flex; gap: 3px; padding: 4px 0; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); animation: dot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
  .pop, .shot__sel { transition: none; }
  .dots i { animation: none; }
}
.mock__body { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; padding: 12px; }
.mock__card { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }
.mock__label { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--text-3); margin-bottom: 6px; }
.mock__line { font-size: 12px; color: var(--text-2); margin: 0 0 8px; }
.mock__line b { color: var(--text); font-weight: 600; }
.mock__q { font-size: 12px; color: var(--positive); margin-bottom: 6px; }
.mock__answer { font-size: 12.5px; color: var(--text); line-height: 1.55; margin: 0; }
.caret { display: inline-block; width: 7px; height: 14px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------------------------------------------------------------- sections */
section { padding: 72px 0; }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.section__head p { color: var(--text-2); margin: 0; }

.grid { display: grid; gap: 16px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.card__icon {
  width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent-subtle); color: var(--link); margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }
.kbd {
  display: inline-block; margin-top: 12px; font: 600 12px/1 ui-monospace, Consolas, monospace;
  padding: 5px 8px; border-radius: 6px; background: var(--surface-alt); border: 1px solid var(--border-strong); color: var(--text-2);
}

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-left: 58px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; background: var(--accent); color: #fff;
}

/* pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px;
}
.plan--popular { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 20px 50px rgba(0, 107, 255, 0.18); }
.plan h3 { margin: 0; font-size: 17px; }
.plan__price { font-size: 34px; font-weight: 800; margin: 16px 0 0; letter-spacing: -0.02em; }
.plan__usd { margin: 2px 0 0; color: var(--text-2); font-weight: 600; }
.plan__period { margin: 0; color: var(--text-2); }
.plan__perday { margin: 14px 0 0; color: var(--text-3); font-size: 14px; }
.plan__save { margin: 2px 0 20px; color: var(--positive); font-weight: 700; font-size: 14px; }
.plan .btn { margin-top: auto; }
.badge {
  position: absolute; top: -12px; left: 24px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: var(--accent); color: #fff;
}
.pricing__note { text-align: center; color: var(--text-3); font-size: 14px; margin-top: 22px; }
.notice {
  max-width: 760px; margin: 18px auto 0; padding: 12px 16px; border-radius: 10px; font-size: 14px; text-align: center;
  color: var(--text-2); background: var(--surface); border: 1px solid var(--border-strong);
}

/* faq */
.faq { max-width: 760px; margin: 0 auto; }
details {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; margin-bottom: 10px;
}
summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 20px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 16px; color: var(--text-2); }

/* cta + footer */
.cta {
  text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 48px 24px;
  background-image: radial-gradient(500px 200px at 50% 0%, rgba(0, 107, 255, 0.2), transparent 70%);
}
.cta p { color: var(--text-2); margin: 0 0 24px; }
footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--text-3); font-size: 14px; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
footer a { color: var(--text-2); }

/* legal pages */
.legal { max-width: 780px; padding: 56px 0 80px; }
.legal h1 { font-size: clamp(30px, 4vw, 40px); }
.legal h2 { font-size: 21px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-2); }
.legal strong { color: var(--text); }
.legal .meta { color: var(--text-3); font-size: 14px; }
.legal table { width: 100%; border-collapse: collapse; margin: 10px 0; font-size: 14.5px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-2); }
.legal th { color: var(--text); background: var(--surface); }

/* reveal on scroll (no-JS / reduced motion: always visible) */
.reveal { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .hero { padding-top: 56px; }
  .hero__grid, .grid--3, .grid--2, .plans { grid-template-columns: 1fr; }
  .nav__links { display: none; }
  .nav__end { margin-left: auto; }
  .logo img { height: 38px; }
  .mock__body { grid-template-columns: 1fr; }
  .mock__stage { height: 452px; }
  section { padding: 56px 0; }
}
