:root {
  color-scheme: light;
  --bg: #f3f0e8;
  --ink: #111318;
  --muted: #66707f;
  --quiet: #9aa2ad;
  --line: rgba(17, 19, 24, 0.12);
  --panel: rgba(255, 255, 255, 0.74);
  --panel-solid: #fffdf8;
  --accent: #2f6bff;
  --accent-2: #72d7ff;
  --gold: #f0c86c;
  --danger: #c84d4d;
  --success: #147653;
  --shadow: 0 34px 90px rgba(33, 31, 27, 0.14);
  --soft-shadow: 0 16px 42px rgba(33, 31, 27, 0.1);
  --wrap: min(1180px, calc(100vw - 40px));
}
html.theme-dark {
  color-scheme: dark;
  --bg: #05070d;
  --ink: #f6f7fb;
  --muted: #9aa6b8;
  --quiet: #6d7788;
  --line: rgba(232, 238, 255, 0.13);
  --panel: rgba(12, 16, 27, 0.72);
  --panel-solid: #0d111c;
  --accent: #5e8cff;
  --accent-2: #7de1ff;
  --gold: #f2cf7a;
  --danger: #ff7b7b;
  --success: #61d4a3;
  --shadow: 0 40px 110px rgba(0, 0, 0, 0.55);
  --soft-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "Onest", "Manrope", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% -20%, rgba(47, 107, 255, 0.22), transparent 38%),
    radial-gradient(circle at 18% 20%, rgba(240, 200, 108, 0.16), transparent 28%),
    linear-gradient(180deg, #fbf6ea 0%, var(--bg) 52%, #fbf9f3 100%);
}
html.theme-dark body {
  background:
    radial-gradient(circle at 50% -20%, rgba(47, 107, 255, 0.38), transparent 36%),
    radial-gradient(circle at 82% 8%, rgba(125, 225, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #020308 0%, #060814 48%, #05070d 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 19, 24, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 24, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 82%);
}
html.theme-dark body::before {
  background-image:
    linear-gradient(rgba(232, 238, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232, 238, 255, 0.04) 1px, transparent 1px);
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 72%, white); outline-offset: 3px; }
.bb-shell { min-height: 100vh; }
.bb-topbar, .bb-page, .bb-footer__inner { width: var(--wrap); margin: 0 auto; }
.bb-topbar { position: sticky; top: 14px; z-index: 30; padding-top: 14px; }
.bb-topbar__inner {
  min-height: 64px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-solid) 78%, transparent);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(24px) saturate(1.2);
}
.bb-brand, .bb-nav, .bb-topbar__actions, .bb-actions, .bb-proof, .bb-footer__links, .bb-account-slot, .bb-inline, .bb-orbit__tag, .bb-mini-message, .bb-theme-toggle { display: flex; align-items: center; }
.bb-brand { gap: 10px; font-weight: 760; letter-spacing: -0.04em; }
.bb-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 13px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(140deg, rgba(94, 140, 255, 0.95), rgba(125, 225, 255, 0.7)), #111827;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 14px 28px rgba(47, 107, 255, 0.28);
}
.bb-brand__mark::before { content: ""; position: absolute; inset: 8px 6px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.62); }
.bb-brand__mark::after { content: ""; position: absolute; width: 7px; height: 7px; right: 8px; top: 8px; border-radius: 99px; background: var(--gold); }
.bb-brand__word { display: inline-flex; gap: 3px; font-size: 0.98rem; }
.bb-brand__word strong:last-child { color: var(--accent); }
.bb-nav { justify-content: center; gap: 8px; }
.bb-nav a {
  min-height: 38px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}
.bb-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--panel-solid) 68%, transparent); }
.bb-topbar__actions { justify-content: flex-end; gap: 8px; }
.bb-theme-toggle, .bb-btn {
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.bb-theme-toggle {
  gap: 8px;
  padding: 0 13px;
  color: var(--muted);
  background: transparent;
  font-weight: 700;
  font-size: 0.88rem;
}
.bb-theme-toggle::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--gold), #ff9d60);
  box-shadow: 0 0 0 4px rgba(240, 200, 108, 0.2);
}
.bb-theme-toggle.is-dark::before { background: linear-gradient(135deg, var(--accent-2), var(--accent)); box-shadow: 0 0 0 4px rgba(94, 140, 255, 0.22); }
.bb-btn {
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  color: var(--ink);
  background: transparent;
  font-weight: 760;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}
.bb-btn:hover, .bb-theme-toggle:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--line) 50%, var(--ink)); }
.bb-btn:disabled { opacity: 0.58; cursor: not-allowed; transform: none; }
.bb-btn--primary { color: #fff; border-color: rgba(94, 140, 255, 0.2); background: linear-gradient(135deg, #1e56ff, #6fd9ff); box-shadow: 0 18px 44px rgba(47, 107, 255, 0.28); }
.bb-btn--secondary { background: color-mix(in srgb, var(--panel-solid) 56%, transparent); }
.bb-btn--ghost { color: var(--muted); }
.bb-btn--wide { width: 100%; }
.bb-page { padding: 54px 0 54px; }
.bb-hero { min-height: calc(100vh - 150px); display: grid; align-content: center; gap: 28px; }
.bb-hero__copy { width: min(860px, 100%); margin: 0 auto; text-align: center; display: grid; gap: 16px; justify-items: center; }
.bb-kicker, .bb-eyebrow {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--panel-solid) 50%, transparent);
  font-size: 0.76rem;
  font-weight: 760;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.bb-title, .bb-title--sm { margin: 0; letter-spacing: -0.065em; line-height: 0.98; text-wrap: balance; }
.bb-title { max-width: 920px; font-size: clamp(2.35rem, 6vw, 5.55rem); font-weight: 820; }
.bb-title--sm { font-size: clamp(1.65rem, 3.1vw, 3.05rem); font-weight: 800; }
.bb-title em, .bb-title--sm em { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; letter-spacing: -0.035em; }
.bb-copy, .bb-note, .bb-list span, .bb-card p, .bb-step p, .bb-footer, .bb-doc-meta, .bb-doc-body { color: var(--muted); line-height: 1.6; }
.bb-copy { max-width: 660px; margin: 0; font-size: clamp(1rem, 1.3vw, 1.14rem); }
.bb-actions { gap: 10px; flex-wrap: wrap; justify-content: center; }
.bb-proof { gap: 8px; flex-wrap: wrap; justify-content: center; color: var(--quiet); font-size: 0.84rem; font-weight: 650; }
.bb-proof span { padding: 8px 10px; border-radius: 999px; border: 1px solid var(--line); background: color-mix(in srgb, var(--panel-solid) 42%, transparent); }
.bb-orbit {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 36px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,.54), rgba(255,255,255,.22)), radial-gradient(circle at 50% 35%, rgba(47,107,255,.24), transparent 34%), color-mix(in srgb, var(--panel-solid) 62%, transparent);
  box-shadow: var(--shadow);
}
html.theme-dark .bb-orbit { background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)), radial-gradient(circle at 50% 35%, rgba(47,107,255,.3), transparent 34%), rgba(10,14,24,.74); }
.bb-orbit::before, .bb-orbit::after { content: ""; position: absolute; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.bb-orbit::before { inset: 34px; transform: rotate(-8deg) scaleX(1.18); }
.bb-orbit::after { inset: 96px 150px; transform: rotate(9deg) scaleX(1.28); border-color: color-mix(in srgb, var(--accent-2) 28%, transparent); }
.bb-product {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: min(720px, calc(100% - 80px));
  transform: translate(-50%, -48%);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  background: color-mix(in srgb, var(--panel-solid) 72%, transparent);
  box-shadow: 0 44px 140px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}
.bb-product__bar { height: 46px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--quiet); font-size: .78rem; font-weight: 700; }
.bb-product__dots { display: flex; gap: 7px; }
.bb-product__dots span { width: 9px; height: 9px; border-radius: 99px; background: color-mix(in srgb, var(--line) 60%, var(--ink)); }
.bb-product__body { display: grid; grid-template-columns: .68fr 1.32fr; min-height: 330px; }
.bb-product__rail { padding: 18px; border-right: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.bb-rail-item { display: flex; justify-content: space-between; gap: 8px; padding: 11px 12px; border-radius: 16px; color: var(--muted); font-size: .86rem; font-weight: 700; }
.bb-rail-item.is-active { color: var(--ink); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.bb-product__chat { padding: 24px; display: grid; align-content: center; gap: 14px; }
.bb-mini-message {
  width: fit-content;
  max-width: 520px;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--panel-solid) 70%, transparent);
  box-shadow: var(--soft-shadow);
  color: var(--muted);
  font-size: .92rem;
  line-height: 1.45;
}
.bb-mini-message strong { display: block; margin-bottom: 4px; color: var(--ink); }
.bb-mini-message--owner { justify-self: end; background: linear-gradient(135deg, rgba(47,107,255,.96), rgba(114,215,255,.86)); color: rgba(255,255,255,.86); }
.bb-mini-message--owner strong { color: #fff; }
.bb-orbit__tag {
  position: absolute;
  z-index: 3;
  gap: 8px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--panel-solid) 72%, transparent);
  box-shadow: var(--soft-shadow);
  color: var(--muted);
  font-size: .82rem;
  font-weight: 760;
}
.bb-orbit__tag::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--accent-2); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent-2) 16%, transparent); }
.bb-orbit__tag--memory { left: 7%; top: 18%; }
.bb-orbit__tag--skills { right: 8%; top: 20%; }
.bb-orbit__tag--channels { left: 14%; bottom: 16%; }
.bb-orbit__tag--mail { right: 13%; bottom: 14%; }
.bb-section {
  margin-top: 22px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 36px;
  background: color-mix(in srgb, var(--panel-solid) 58%, transparent);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(18px);
}
.bb-section--strip { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 24px; }
.bb-section__head { display: grid; gap: 12px; max-width: 760px; }
.bb-grid { display: grid; gap: 12px; }
.bb-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bb-card, .bb-step { display: grid; gap: 10px; min-height: 150px; padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: color-mix(in srgb, var(--panel-solid) 52%, transparent); }
.bb-card strong, .bb-step strong, .bb-list strong { font-size: 1rem; line-height: 1.3; }
.bb-card p, .bb-step p { margin: 0; font-size: .92rem; }
.bb-step__index { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 99px; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); font-weight: 800; }
.bb-auth { min-height: calc(100vh - 170px); display: grid; grid-template-columns: minmax(320px, 470px) minmax(360px, 1fr); align-items: center; gap: 26px; }
.bb-auth--single { grid-template-columns: minmax(320px, 500px) minmax(360px, .9fr); }
.bb-panel {
  border: 1px solid var(--line);
  border-radius: 36px;
  background: color-mix(in srgb, var(--panel-solid) 70%, transparent);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
  display: grid;
  gap: 16px;
  padding: 30px;
}
.bb-panel--form { align-content: start; }
.bb-panel--side { min-height: 520px; position: relative; overflow: hidden; background: radial-gradient(circle at 52% 28%, rgba(47,107,255,.28), transparent 34%), color-mix(in srgb, var(--panel-solid) 54%, transparent); }
.bb-panel--side::before { content: ""; position: absolute; inset: 42px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); transform: rotate(-12deg) scaleX(1.18); }
.bb-panel--side > * { position: relative; z-index: 1; }
.bb-form { display: grid; gap: 13px; }
.bb-field { display: grid; gap: 7px; }
.bb-label { color: var(--muted); font-size: .86rem; font-weight: 720; }
.bb-input, .bb-textarea { width: 100%; min-height: 52px; border: 1px solid var(--line); border-radius: 17px; padding: 0 15px; color: var(--ink); outline: 0; background: color-mix(in srgb, var(--panel-solid) 68%, transparent); }
.bb-input::placeholder, .bb-textarea::placeholder { color: var(--quiet); }
.bb-input:focus, .bb-textarea:focus { border-color: color-mix(in srgb, var(--accent) 72%, white); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.bb-textarea { min-height: 180px; padding: 16px; resize: vertical; }
.bb-otp { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.bb-otp__digit {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--ink);
  background: color-mix(in srgb, var(--panel-solid) 68%, transparent);
  text-align: center;
  font-size: 1.12rem;
  font-weight: 800;
  outline: 0;
}
.bb-otp__digit:focus { border-color: color-mix(in srgb, var(--accent) 72%, white); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.bb-check { display: grid; grid-template-columns: 20px 1fr; gap: 11px; align-items: start; color: var(--muted); font-size: .88rem; line-height: 1.45; }
.bb-check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); }
.bb-linkline { color: var(--accent); font-weight: 720; }
.bb-link-btn { border: 0; padding: 0; color: var(--accent); background: transparent; font-weight: 760; }
.bb-link-btn:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.bb-status { min-height: 22px; color: var(--muted); font-size: .9rem; }
.bb-status--error { color: var(--danger); }
.bb-status--success { color: var(--success); }
.bb-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.bb-list li { display: grid; gap: 4px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 18px; background: color-mix(in srgb, var(--panel-solid) 42%, transparent); }
.bb-list span { font-size: .9rem; }
.bb-auth-visual { margin-top: auto; display: grid; gap: 12px; }
.bb-auth-visual__chip { width: fit-content; padding: 9px 12px; border-radius: 99px; color: var(--muted); border: 1px solid var(--line); background: color-mix(in srgb, var(--panel-solid) 44%, transparent); font-size: .82rem; font-weight: 760; }
.bb-auth-visual__phone { width: min(310px, 100%); margin: 12px auto 0; padding: 14px; border: 1px solid var(--line); border-radius: 34px; background: #080b13; box-shadow: 0 34px 90px rgba(0,0,0,.34); }
.bb-auth-visual__screen { min-height: 410px; display: grid; align-content: center; gap: 12px; padding: 18px; border-radius: 25px; background: radial-gradient(circle at 50% 20%, rgba(94,140,255,.5), transparent 34%), linear-gradient(180deg, #111827, #070a12); color: #fff; }
.bb-phone-bubble { padding: 13px 14px; border-radius: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); color: rgba(255,255,255,.72); font-size: .88rem; line-height: 1.45; }
.bb-phone-bubble strong { display: block; margin-bottom: 4px; color: #fff; }
.bb-inline { gap: 10px; flex-wrap: wrap; }
.bb-inline--auth .bb-btn { flex: 1 1 180px; }
.bb-doc-card { border: 1px solid var(--line); border-radius: 36px; background: color-mix(in srgb, var(--panel-solid) 72%, transparent); box-shadow: var(--shadow); }
.bb-doc-meta { margin-top: -6px; }
.bb-doc-body { margin-top: 12px; }
.bb-modal { position: fixed; inset: 0; z-index: 80; display: none; }
.bb-modal.is-open { display: block; }
.bb-modal__backdrop { position: absolute; inset: 0; background: rgba(2,3,8,.64); }
.bb-modal__dialog { position: relative; width: min(560px, calc(100vw - 24px)); margin: min(8vh, 56px) auto 0; padding: 26px; border: 1px solid var(--line); border-radius: 36px; background: var(--panel-solid); box-shadow: var(--shadow); }
.bb-modal__close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--ink); }
.bb-modal__tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.bb-chip { min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-weight: 720; }
.bb-chip--active { color: #fff; border-color: rgba(94,140,255,.22); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.bb-auth-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bb-auth-head__meta { color: var(--quiet); font-size: .86rem; font-weight: 720; }
.bb-footer { padding: 0 0 26px; font-size: .86rem; }
.bb-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 18px; color: var(--quiet); }
.bb-footer__links { gap: 14px; justify-content: flex-end; flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) {
  .bb-hero__copy, .bb-orbit, .bb-section, .bb-panel { animation: bb-rise .7s ease both; }
  .bb-orbit { animation-delay: .08s; }
  .bb-section, .bb-panel:nth-child(2) { animation-delay: .12s; }
  @keyframes bb-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (max-width: 1080px) {
  .bb-topbar__inner { grid-template-columns: auto auto; }
  .bb-nav { display: none; }
  .bb-auth, .bb-auth--single, .bb-section--strip { grid-template-columns: 1fr; }
  .bb-panel--side { min-height: 420px; }
}
@media (max-width: 760px) {
  :root { --wrap: min(100% - 24px, 680px); }
  .bb-topbar { top: 8px; padding-top: 8px; }
  .bb-topbar__inner { grid-template-columns: 1fr; border-radius: 28px; }
  .bb-topbar__actions, .bb-account-slot { width: 100%; justify-content: stretch; }
  .bb-topbar__actions .bb-btn, .bb-topbar__actions .bb-theme-toggle, .bb-account-slot .bb-btn { flex: 1 1 0; padding-inline: 12px; }
  .bb-page { padding: 32px 0 42px; }
  .bb-hero { min-height: auto; }
  .bb-title { font-size: clamp(2.1rem, 12vw, 3.6rem); }
  .bb-title--sm { font-size: clamp(1.55rem, 8vw, 2.3rem); }
  .bb-orbit { min-height: 560px; border-radius: 30px; }
  .bb-orbit::before, .bb-orbit::after { inset: 64px 18px; transform: rotate(-7deg) scaleX(1); }
  .bb-product { width: calc(100% - 28px); }
  .bb-product__body { grid-template-columns: 1fr; }
  .bb-product__rail { display: none; }
  .bb-orbit__tag { transform: scale(.9); }
  .bb-orbit__tag--memory { left: 5%; top: 8%; }
  .bb-orbit__tag--skills { right: 4%; top: 13%; }
  .bb-orbit__tag--channels { left: 6%; bottom: 8%; }
  .bb-orbit__tag--mail { right: 5%; bottom: 4%; }
  .bb-section, .bb-panel, .bb-modal__dialog { padding: 22px; border-radius: 28px; }
  .bb-grid--three { grid-template-columns: 1fr; }
  .bb-proof, .bb-actions, .bb-footer__inner, .bb-footer__links { align-items: stretch; flex-direction: column; }
  .bb-btn, .bb-theme-toggle { width: 100%; }
  .bb-auth-visual__phone { width: 100%; }
}
