/* bisobot.com — hand-tuned, no dependencies.
   Design language: state-tinted diffused-light orb on pure black
   (apps/BisoApp/Sources/Theme.swift + OrbView.swift are the source of truth).
   Idle-blue orb: halo rgb(160,195,255) @ .38, core #E8F2FF, glow rgb(160,200,255). */

:root {
  --bg: #000000;
  --text: #eeeef2;
  --text-2: #8a8a94;
  --text-3: #56565e;
  --text-4: #3c3c44;
  --green: #5cb87e;
  --gold: #e0b040;
  --red: #d87070;
  --panel: #131318;
  --panel-deep: #0d0d12;
  --sheet: #0a0a0e;
  --hairline: rgba(255, 255, 255, 0.08);
  --halo: 160, 195, 255;
  --core: 232, 242, 255;
  --glow: 160, 200, 255;
  --halo-op: 0.38;
  --round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: var(--text-2); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--text); }

h1, h2, h3 { font-family: var(--round); letter-spacing: -0.01em; }

h2 {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin-bottom: 14px;
}

section { padding: 0 24px; }

/* ---------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.brand { display: flex; align-items: center; gap: 10px; }

.brand-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%,
    rgba(var(--core), 1) 0%, rgba(var(--core), 0.75) 35%, rgba(var(--core), 0) 72%);
  box-shadow: 0 0 12px 3px rgba(var(--glow), 0.55);
}

.brand-name {
  font-family: var(--round);
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
}

.top-nav { display: flex; gap: 22px; font-size: 14.5px; font-weight: 500; }

/* ------------------------------------------------------------------ hero */

.hero {
  max-width: 640px;
  margin: 0 auto;
  padding-top: 46px;
  padding-bottom: 96px;
  text-align: center;
}

/* Full-bleed stage so the halo and particle field can breathe past the text
   column. Hosts either the WebGL canvas (orb.js swaps it in) or the CSS orb. */
.orb-stage {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  height: min(400px, 92vw);
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  overflow: hidden;
}

.orb-gl {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* When WebGL is live the CSS orb steps aside (it remains the no-WebGL and
   reduced-motion fallback). */
.orb-stage.gl .orb { display: none; }

/* The orb: a tiny near-white core inside a large soft diffused halo, built
   from layered radial gradients — a straight port of OrbView.swift's
   full-style layers (2.8x / 1.75x / 0.92x halos + 0.22x core). */
.orb {
  --orb: min(240px, 50vw);
  position: relative;
  width: var(--orb);
  height: var(--orb);
  animation: orb-bob 8s ease-in-out infinite, orb-drift 13s ease-in-out infinite;
}

.halo, .core {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.halo-outer {
  width: calc(var(--orb) * 2.8);
  height: calc(var(--orb) * 2.8);
  background: radial-gradient(closest-side,
    rgba(var(--halo), calc(var(--halo-op) * 0.28)) 0%,
    rgba(var(--halo), 0) 72%);
  animation: halo-breathe 9s ease-in-out infinite;
}

.halo-mid {
  width: calc(var(--orb) * 1.75);
  height: calc(var(--orb) * 1.75);
  background: radial-gradient(closest-side,
    rgba(var(--halo), calc(var(--halo-op) * 0.5)) 0%,
    rgba(var(--halo), 0) 72%);
  animation: halo-breathe 9s ease-in-out infinite;
}

.halo-inner {
  width: calc(var(--orb) * 0.92);
  height: calc(var(--orb) * 0.92);
  background: radial-gradient(closest-side,
    rgba(var(--halo), calc(var(--halo-op) * 0.85)) 0%,
    rgba(var(--halo), 0) 72%);
  animation: halo-breathe 9s ease-in-out infinite;
}

.core {
  width: calc(var(--orb) * 0.22);
  height: calc(var(--orb) * 0.22);
  background: radial-gradient(closest-side,
    rgba(var(--core), 1) 0%,
    rgba(var(--core), 0.75) 35%,
    rgba(var(--core), 0) 72%);
  filter: drop-shadow(0 0 calc(var(--orb) * 0.14) rgba(var(--glow), 0.5));
  animation: core-flicker 7s ease-in-out infinite;
}

@keyframes orb-bob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 calc(var(--orb) * -0.03); }
}

@keyframes orb-drift {
  0%, 100% { margin-left: calc(var(--orb) * -0.015); }
  50% { margin-left: calc(var(--orb) * 0.015); }
}

@keyframes halo-breathe {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.68; }
  50% { transform: translate(-50%, -50%) scale(1.16); opacity: 1; }
}

@keyframes core-flicker {
  0%, 100% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
  50% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.88; }
}

@media (prefers-reduced-motion: reduce) {
  .orb, .halo, .core { animation: none; }
  .halo-inner { animation: halo-still 9s ease-in-out infinite; }
  @keyframes halo-still {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.84; }
  }
}

.hero h1 {
  font-size: clamp(44px, 9vw, 64px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.tagline {
  margin-top: 6px;
  font-family: var(--round);
  font-size: clamp(19px, 3.6vw, 24px);
  font-weight: 600;
  color: var(--text-2);
}

.lede {
  margin: 22px auto 0;
  max-width: 520px;
  color: var(--text-2);
  font-size: 17.5px;
}

.thesis {
  margin: 26px auto 0;
  max-width: 520px;
  color: var(--text-1, #f5f5f5);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.45;
}

.posture {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 34px;
  padding: 9px 18px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--panel-deep);
  font-size: 13.5px;
  color: var(--text-3);
}

.posture a { color: var(--text-2); font-weight: 600; }
.posture a:hover { color: var(--text); }

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px 1px rgba(92, 184, 126, 0.6);
  animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot { animation: none; }
}

/* --------------------------------------------------------------- what it is */

.what {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 96px;
}

.what p { color: var(--text-2); font-size: 17.5px; }
.what em { color: var(--text); font-style: normal; font-weight: 600; }

/* ---------------------------------------------------------------- features */

.features {
  max-width: 1020px;
  margin: 0 auto;
  padding-bottom: 96px;
}

.features-note {
  color: var(--text-3);
  font-size: 15px;
  margin-bottom: 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-deep) 100%);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 22px 20px 20px;
}

.card h3 { font-size: 16.5px; font-weight: 700; margin: 14px 0 6px; }

.card p { font-size: 14.5px; color: var(--text-2); line-height: 1.55; }

.ic {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: rgba(160, 195, 255, 0.85);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card.gold .ic { stroke: var(--gold); }
.card.green .ic { stroke: var(--green); }

/* ----------------------------------------------------------------- screens */

.screens {
  max-width: 1020px;
  margin: 0 auto;
  padding-bottom: 96px;
}

.shots {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  overflow-x: auto;
  padding: 26px 4px 10px;
  scrollbar-width: none;
}

.shots::-webkit-scrollbar { display: none; }

.shots figure { flex: 0 0 auto; width: 210px; }
.shots figure.tall { width: 240px; }

.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid var(--hairline);
  background: var(--sheet);
}

.shots figcaption {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-3);
  text-align: center;
}

/* --------------------------------------------------------------- changelog */

.changelog {
  max-width: 640px;
  margin: 0 auto;
  padding-bottom: 80px;
}

.clog-intro { color: var(--text-2); }

.clog-meta {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-4);
}

#clog { margin-top: 34px; }

.clog-day { margin-bottom: 36px; }

.clog-date {
  font-family: var(--round);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.clog-day ul { list-style: none; }

.clog-day li {
  position: relative;
  padding: 0 0 18px 22px;
  border-left: 1px solid var(--hairline);
  margin-left: 3px;
}

.clog-day li:last-child { padding-bottom: 4px; }

.clog-day li::before {
  content: "";
  position: absolute;
  left: -3.5px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(160, 195, 255, 0.75);
  box-shadow: 0 0 8px 1px rgba(160, 200, 255, 0.35);
}

.clog-title { font-weight: 650; font-size: 16px; color: var(--text); }

.clog-blurb { margin-top: 3px; font-size: 14.5px; color: var(--text-2); }

.clog-fallback, .clog-empty { color: var(--text-3); font-size: 15px; }

.clog-more {
  display: block;
  margin: 6px auto 0;
  padding: 11px 26px;
  font: 600 15px var(--round);
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.clog-more:hover { background: rgba(255, 255, 255, 0.14); }

/* ------------------------------------------------------------------ footer */

.foot {
  border-top: 1px solid var(--hairline);
  padding: 44px 24px 60px;
  text-align: center;
}

.foot-made {
  font-family: var(--round);
  font-weight: 600;
  color: var(--text-2);
}

.foot-note { margin-top: 8px; font-size: 13.5px; color: var(--text-4); }
