/* Matches blackfire.com.np (Blackfire-WEB/app/globals.css): ink background, light text, Zalando Sans Semi
   Expanded, pill buttons, hairline borders, floating glass nav. The site is dark-only, so this page is too. */
@font-face {
  font-family: "Zalando Sans SemiExpanded";
  src: url("/static/fonts/ZalandoSansSemiExpanded-VF.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
:root {
  --ink: #1c1c1c;
  --light: #fbfcfd;
  --muted: #ababab;
  --soft: #c4c4c4;
  --line: rgba(251, 252, 253, 0.12);
  --card: #222222;
  --font: "Zalando Sans SemiExpanded", "Noto Sans Devanagari", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ink); -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100dvh; color: var(--light); background: var(--ink); font-family: var(--font);
  display: flex; flex-direction: column; }
::selection { background: var(--light); color: var(--ink); }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--light); outline-offset: 5px; border-radius: 3px; }
[hidden] { display: none !important; }
[lang="ne"], .ne { font-family: "Noto Sans Devanagari", var(--font); }
h1, p { margin: 0; }

/* ── nav ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; padding: 16px 24px 0; }
.nav-shell { max-width: 1240px; margin: auto; padding: 10px 22px; min-height: 64px; display: flex; align-items: center;
  justify-content: space-between; gap: 24px; border: 1px solid var(--line); border-radius: 16px;
  background: #1c1c1ced; backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.brand-link { display: inline-flex; align-items: center; min-height: 44px; }
.brand-link img { width: 134px; height: auto; }
.status-pill { display: inline-flex; align-items: center; gap: 9px; font-size: 12px; color: var(--soft);
  border: 1px solid var(--line); border-radius: 100px; padding: 8px 14px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #555; transition: background .3s; }
.dot.live { background: var(--light); box-shadow: 0 0 0 4px #fbfcfd22; animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px #fbfcfd00; } }

/* ── layout ──────────────────────────────────────────── */
.stage { flex: 1; width: min(100% - 48px, 1160px); margin: 0 auto; padding: clamp(32px, 6vw, 72px) 0 32px;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "hero avatar" "panel panel";
  gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero { grid-area: hero; }
.avatar-wrap { grid-area: avatar; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.panel { grid-area: panel; }

/* ── hero (same scale as the website) ────────────────── */
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; color: var(--soft); font-size: 12px;
  letter-spacing: 0.025em; }
.small-star { color: #dedede; font-size: 15px; }
.sep { color: #666; }
h1 { font-weight: 600; font-size: clamp(40px, 5.4vw, 76px); line-height: 1.09; letter-spacing: -0.035em; text-wrap: balance; }
.body-copy { font-size: clamp(16px, 1.4vw, 18px); line-height: 1.8; color: var(--soft); max-width: 540px; margin-top: 24px; }
.body-copy.ne { margin-top: 10px; font-size: clamp(15px, 1.3vw, 17px); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 26px; min-height: 50px;
  border: 1px solid transparent; padding: 13px 22px; border-radius: 100px; font-size: 13px; font-weight: 500;
  transition: background .2s, border-color .2s, color .2s, transform .15s; }
.button:active { transform: scale(0.98); }
.button:disabled { opacity: .55; cursor: progress; }
.button-primary { background: var(--light); color: var(--ink); }
.button-primary:hover { background: #dedede; }
.button-primary.end { background: transparent; color: var(--light); border-color: #ffffff70; }
.button-primary.end:hover { background: #ffffff0d; }
.button-secondary { border-color: #ffffff30; background: transparent; }
.button-secondary:hover { border-color: #ffffff70; background: #ffffff05; }
.button-secondary[aria-pressed="true"] { background: var(--light); color: var(--ink); }
.arrow { width: 19px; height: 19px; flex-shrink: 0; }
.micro-label { display: block; color: var(--muted); font-size: 11px; letter-spacing: 0.06em; margin-bottom: 10px; }
.suggest { margin-top: 40px; }
.suggest ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.suggest li { font-size: 13px; color: var(--soft); border: 1px solid var(--line); border-radius: 100px; padding: 8px 14px; }

/* ── 3D avatar ───────────────────────────────────────── */
.avatar { position: relative; width: min(100%, 460px); aspect-ratio: 1; }
.avatar canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.orb-fallback { position: absolute; inset: 18%; border-radius: 50%; display: none;
  background: radial-gradient(circle at 35% 30%, #fff, #9a9a9a 45%, #2a2a2a 75%); box-shadow: 0 0 80px #ffffff22;
  animation: breathe 4s ease-in-out infinite; }
.avatar.no-webgl .orb-fallback { display: block; }
@keyframes breathe { 50% { transform: scale(1.04); } }
.state { font-size: 13px; color: var(--soft); min-height: 1.4em; text-align: center; letter-spacing: 0.01em; }

/* ── conversation ────────────────────────────────────── */
.panel { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 18px 20px 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; }
.panel-head .micro-label { margin: 0; }
.clear { background: none; border: 0; color: var(--muted); font-size: 12px; padding: 6px; }
.clear:hover { color: var(--light); }
.log { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; max-height: 340px; overflow-y: auto; }
.msg { max-width: 80%; padding: 11px 15px; border-radius: 16px; line-height: 1.6; font-size: 15px; white-space: pre-wrap; }
.msg.user { align-self: flex-end; background: var(--light); color: var(--ink); border-bottom-right-radius: 5px; }
.msg.bot { align-self: flex-start; background: #2d2d2d; border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.msg.sys { align-self: center; color: var(--muted); font-size: 13px; padding: 4px; }

/* ── footer ──────────────────────────────────────────── */
.site-foot { width: min(100% - 48px, 1160px); margin: 0 auto; padding: 18px 0 calc(22px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted); }
.site-foot a { color: var(--soft); text-underline-offset: 4px; }

/* ── phones ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .site-header { padding: 12px 16px 0; }
  .nav-shell { padding: 8px 14px; min-height: 56px; }
  .brand-link img { width: 112px; }
  .stage { width: min(100% - 32px, 640px); grid-template-columns: minmax(0, 1fr); grid-template-areas: "avatar" "hero" "panel";
    padding-top: 12px; gap: 20px; }
  h1 { font-size: clamp(32px, 9.5vw, 48px); }
  .avatar { width: min(78vw, 360px); }
  .hero { text-align: center; }
  .eyebrow, .button-row, .suggest ul { justify-content: center; }
  .body-copy { margin-inline: auto; margin-top: 16px; }
  .button-row { margin-top: 26px; }
  .button { flex: 1 1 auto; }
  .suggest { margin-top: 28px; }
  .msg { max-width: 90%; }
  .site-foot { width: calc(100% - 32px); flex-direction: column; gap: 6px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .dot.live, .orb-fallback { animation: none; }
}

.voice-pick { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(251,252,253,.7); }
.voice-pick select { background: #1c1c1c; color: #fbfcfd; border: 1px solid rgba(251,252,253,.25); border-radius: 999px;
  padding: 8px 12px; font: inherit; }
