/* ============================================================
   PixelNetworks — Home page styles
   (loaded only on index.html; shared chrome lives in styles.css)
   ============================================================ */

/* ---------- Hero shell + orbital ---------- */
.hero-shell { position: relative; z-index: 1; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-orbital {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 90% 59%; opacity: 0.9; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
}
.hero-shell::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, var(--bg) 100%);
}
.hero { position: relative; z-index: 2; padding: 84px 0 96px; }

/* ---------- Hero A ---------- */
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy .h-display { margin: 18px 0 0; }
.hero-sub { font-size: clamp(18px, 1.7vw, 22px); color: var(--text); margin: 22px 0 14px; line-height: 1.5; }
.hero-copy .lead { max-width: 30em; }
.hero-mini { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 13px; }
.hm-lbl { color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; margin-right: 6px; }
.hm-app { color: var(--text-2); }
.hm-app.is-on { color: var(--orange-2); font-weight: 600; }
.hm-dot { color: var(--text-3); }

.hero-media { position: relative; }
.hero-shot { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transform-origin: left center; }
.hero-float {
  position: absolute; left: -34px; bottom: -26px; display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; background: var(--surface-2); border-color: var(--border-2);
  box-shadow: 0 24px 50px -24px rgba(0,0,0,0.9); max-width: 290px;
}
.hf-q { font-weight: 600; font-size: 14.5px; }
.hf-a { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); margin-top: 2px; }

/* ---------- Hero B ---------- */
.hero-b { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-b .eyebrow { margin-bottom: 22px; }
.hero-b-media { width: 100%; max-width: 940px; margin: 56px auto 0; }
.hero-b-media .browser { transform: perspective(2200px) rotateX(3deg); }

/* ---------- Hero C ---------- */
.hero-c { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.hero-c .h1 { margin-top: 16px; }
.flow-rail {
  position: relative; width: 100%; display: grid; grid-template-columns: repeat(6, 1fr);
  gap: 12px; margin: 30px 0 8px; padding: 8px 0;
}
.flow-line { position: absolute; top: 36px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--blue) 0%, var(--orange) 100%); opacity: 0.4; }
.flow-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.fn-ic { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--blue-2); position: relative; z-index: 2; }
.fn-ic svg { width: 24px; height: 24px; }
.flow-node.is-final .fn-ic { color: var(--orange-2); border-color: rgba(255,117,24,0.45); background: rgba(255,117,24,0.10); box-shadow: 0 0 26px -6px var(--glow-orange); }
.fn-n { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.08em; }
.fn-t { font-size: 13.5px; font-weight: 600; color: var(--text); }

/* ---------- Logos band ---------- */
.logos-band { position: relative; z-index: 2; border-bottom: 1px solid var(--border); }
.logos-kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.05em; margin-bottom: 22px; }
.logos { display: flex; align-items: center; justify-content: center; gap: clamp(28px, 6vw, 72px); flex-wrap: wrap; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.02em; color: var(--text-2); opacity: 0.7; transition: opacity .2s, color .2s; }
.logo-word:hover { opacity: 1; color: var(--text); }

/* ---------- Step cards ---------- */
.step-card { position: relative; }
.step-no { position: absolute; top: 22px; right: 24px; font-family: var(--font-mono); font-size: 13px; color: var(--text-3); }
.step-card .h3 { margin-bottom: 8px; }
.is-final-card {
  border-color: rgba(255,117,24,0.55);
  background: linear-gradient(180deg, rgba(255,117,24,0.14), rgba(255,117,24,0.02) 55%, transparent 80%), var(--surface);
  box-shadow: 0 0 0 1px rgba(255,117,24,0.25), 0 18px 50px -22px var(--glow-orange);
}
.is-final-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 90% at 85% 0%, rgba(255,117,24,0.16), transparent 60%);
}
.is-final-card .step-no { color: var(--orange-2); opacity: 0.9; }
.is-final-card .icon-tile.is-orange {
  background: rgba(255,117,24,0.20); border-color: rgba(255,117,24,0.55);
  box-shadow: 0 0 18px -2px var(--glow-orange);
}
.is-final-card.card-hover:hover {
  transform: translateY(-4px);
  border-color: rgba(255,117,24,0.75);
  box-shadow: 0 0 0 1px rgba(255,117,24,0.35), 0 24px 60px -22px var(--glow-orange);
}

/* ---------- App suite ---------- */
.apps-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.apps-feature {
  display: grid; grid-template-columns: 0.78fr 1.22fr; gap: 44px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 40px;
}
.apps-feature__copy .lead { max-width: 32em; }
.apps-feature__shot {
  display: block; width: 100%; border-radius: 12px; border: 1px solid var(--border);
  box-shadow: 0 40px 90px -50px rgba(0,0,0,0.9);
}
.app-card { display: flex; flex-direction: column; }
.app-card .h3 { margin-bottom: 8px; }
.app-card .muted { flex: 1; }
.app-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-mono); font-size: 12.5px; color: var(--blue-2); }
.app-link svg { width: 14px; height: 14px; transition: transform .2s var(--ease); }
.card-hover:hover .app-link svg { transform: translate(2px,-2px); }

/* ---------- Solutions ---------- */
.sol-card { display: flex; flex-direction: column; }
.sol-card .h3 { margin-bottom: 8px; }
.sol-card .muted { flex: 1; }
.sol-apps { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.02em; }
.sol-card--cta { background: linear-gradient(180deg, rgba(39,128,227,0.07), transparent 60%), var(--surface); border-color: rgba(39,128,227,0.25); }
.sol-card--cta .app-link { margin-top: 18px; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.about-stats .stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }

/* ---------- Launch ---------- */
.launch-card { position: relative; overflow: hidden; }
.lc-top { display: flex; align-items: center; justify-content: space-between; }
.lc-no { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: var(--text-3); letter-spacing: -0.02em; }

/* ---------- Partners ---------- */
.partners-grid { display: grid; grid-template-columns: 1fr 0.92fr; gap: 56px; align-items: center; }

/* Partner program card */
.partner-program {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(39,128,227,0.08), transparent 38%), var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px;
}
.pp-glow {
  position: absolute; top: -90px; right: -70px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, var(--glow-blue), transparent 68%); filter: blur(8px); pointer-events: none;
}
.pp-head { position: relative; display: flex; align-items: center; gap: 14px; padding-bottom: 22px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.pp-head .icon-tile { flex: none; }
.pp-kicker { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--blue-2); }
.pp-sub { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: var(--text); margin: 3px 0 0; }

.pp-benefits { position: relative; display: grid; gap: 12px; }
.pp-row {
  position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius);
  transition: transform .25s var(--ease), border-color .25s, background .25s;
}
.pp-row:hover { transform: translateY(-2px); border-color: var(--border-2); background: var(--surface-3); }
.pp-num { position: absolute; top: 14px; right: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); letter-spacing: 0.04em; }
.pp-row .icon-tile { flex: none; width: 42px; height: 42px; }
.pp-row .icon-tile svg { width: 20px; height: 20px; }
.pp-rt-wrap { min-width: 0; padding-right: 28px; }
.pp-rt { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; color: var(--text); }
.pp-rd { color: var(--text-2); font-size: 13.5px; line-height: 1.5; margin: 4px 0 0; }

.pp-coverage { position: relative; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); }
.pp-cov-lbl { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.pp-cov-lbl svg { width: 14px; height: 14px; color: var(--blue-2); }
.pp-cov-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

/* ---------- Contact ---------- */
.contact-section { position: relative; overflow: hidden; border-top: 1px solid var(--border); }
.contact-orbital { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; opacity: 0.7; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 50%); mask-image: linear-gradient(270deg, transparent 0%, #000 50%); }
.contact-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 0.82fr; gap: 56px; align-items: center; }
.contact-details { display: grid; gap: 14px; }
.contact-row { display: flex; align-items: center; gap: 14px; }
.cr-lbl { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); }
.cr-val { display: block; font-size: 16px; color: var(--text); font-weight: 500; margin-top: 2px; }
a.contact-row:hover .cr-val { color: var(--blue-2); }

.contact-card { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--radius-lg); padding: 30px; box-shadow: 0 30px 70px -34px rgba(0,0,0,0.9); }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
.field input, .field textarea {
  font-family: var(--font-sans); font-size: 15px; color: var(--text);
  background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; width: 100%; resize: vertical;
  transition: border-color .18s, box-shadow .18s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(39,128,227,0.18); }
.field input::placeholder, .field textarea::placeholder { color: var(--text-3); }

/* ============================================================
   Hero — animated PixelAssistant conversation
   ============================================================ */
.ha {
  position: relative;
  --ha-accent: #FF7518;
  --ha-accent-2: #ff9347;
  --ha-glow: rgba(255,117,24,0.30);
  --ha-user-bg: #3a2f24;
  --ha-user-bd: rgba(255,117,24,0.42);
  --ha-avatar-bg: #2c2a2a;
  --ha-avatar-bd: rgba(255,117,24,0.34);
  --ha-ic-bg: rgba(255,117,24,0.18);
  --ha-answer-bg1: #1f1d1c;
  --ha-bar: #5a4936;
  --ha-flag-bg: #211f1c;
  --ha-flag-bd: rgba(255,117,24,0.28);
}
.ha-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 44px 96px -42px rgba(0,0,0,0.92), 0 0 0 1px rgba(255,255,255,0.02);
  transition: opacity .5s var(--ease), filter .5s var(--ease);
}
.ha-frame.ha-out { opacity: 0; filter: blur(2px); }
.ha[data-layout="browser"] .ha-frame {
  transform: perspective(1700px) rotateY(-7deg) rotateX(2deg);
  transform-origin: left center;
}

/* browser bar */
.ha-bar { display: flex; align-items: center; gap: 12px; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.ha-dots { display: flex; gap: 6px; flex: none; }
.ha-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.13); }
.ha-url { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 12px; color: var(--text-3); background: var(--bg-2); border: 1px solid var(--border); border-radius: 7px; padding: 5px 11px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ha-live { display: inline-flex; align-items: center; gap: 6px; flex: none; font-family: var(--font-mono); font-size: 11px; color: var(--text-2); }
.ha-live i { width: 7px; height: 7px; border-radius: 50%; background: var(--ha-accent); box-shadow: 0 0 8px var(--ha-glow); animation: ha-pulse 2s var(--ease) infinite; }

/* window + thread */
.ha-win { display: flex; flex-direction: column; padding: 18px; min-height: 446px; }
.ha-thread { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; }

.ha-msg { display: flex; gap: 10px; opacity: 0; transform: translateY(10px); transition: opacity .42s var(--ease), transform .42s var(--ease); }
.ha-msg.in { opacity: 1; transform: none; }
.ha-user { justify-content: flex-end; }
.ha-bubble { max-width: 88%; padding: 10px 13px; border-radius: 13px; font-size: 14px; line-height: 1.46; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.ha-user .ha-bubble {
  background: var(--ha-user-bg);
  border-color: var(--ha-user-bd);
  border-bottom-right-radius: 5px;
}
.ha-bot { align-items: flex-start; }
.ha-bot .ha-bubble { border-bottom-left-radius: 5px; }
.ha-avatar { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: var(--ha-avatar-bg);
  border: 1px solid var(--ha-avatar-bd);
  color: var(--ha-accent-2); }
.ha-avatar svg { width: 15px; height: 15px; }
.ha-bot .ha-bubble, .ha-bot .ha-answer { flex: 1; min-width: 0; }

/* typing */
.ha-typing { display: flex; align-items: center; gap: 10px; }
.ha-think-lbl { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }
.ha-dots3 { display: inline-flex; gap: 4px; flex: none; }
.ha-dots3 i { width: 5px; height: 5px; border-radius: 50%; background: var(--text-3); animation: ha-bounce 1.2s var(--ease) infinite; }
.ha-dots3 i:nth-child(2) { animation-delay: .15s; }
.ha-dots3 i:nth-child(3) { animation-delay: .3s; }

/* answer card */
.ha-answer { border: 1px solid var(--border-2); border-radius: 14px; padding: 14px;
  background: linear-gradient(180deg, var(--ha-answer-bg1), var(--surface-2));
  opacity: 0; transform: translateY(8px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.ha-answer.in { opacity: 1; transform: none; }
.ha-ans-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.ha-ans-ic { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--ha-ic-bg); color: var(--ha-accent-2); }
/* the bot avatar already marks the assistant in browser/clean — drop the duplicate
   in-card icon there; keep it only in split where the answer has no avatar beside it */
.ha:not([data-layout="split"]) .ha-ans-ic { display: none; }
.ha-ans-ic svg { width: 14px; height: 14px; }
.ha-ans-title { font-family: var(--font-display); font-weight: 600; font-size: 15px; color: var(--text); letter-spacing: -0.01em; }
.ha-ans-text { font-size: 13px; line-height: 1.5; color: var(--text-2); margin: 0 0 12px; text-wrap: pretty; }
.ha-ans-text b { color: var(--text); font-weight: 600; }

.ha-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ha-stat { background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; }
.ha-stat-v { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--text); display: flex; align-items: center; gap: 3px; letter-spacing: -0.01em; }
.ha-stat-l { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-3); margin-top: 3px; }
.ha-tr { display: inline-flex; }
.ha-tr svg { width: 13px; height: 13px; }
.ha-tr--up { color: var(--orange); }
.ha-tr--down { color: var(--green); }
.ha-tr--flat { color: var(--text-3); }

/* charts — the COMPLETE chart is the resting state; every entrance is a
   pure-CSS enhancement, so an assistant answer can never render chart-less */
.ha-chart { margin-bottom: 12px; }
.ha-svg { width: 100%; height: 100px; display: block; overflow: visible; }
.ha-line {
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len, none); stroke-dashoffset: 0;
  animation: ha-draw 1s var(--ease) both;
}
.ha-base { stroke: var(--text-3); stroke-width: 1; stroke-dasharray: 3 4; opacity: .5; }
.ha-area { opacity: 1; animation: ha-area-in .55s .3s both var(--ease); }
.ha-dot { opacity: 1; transform-box: fill-box; transform-origin: center;
  animation: ha-dot-in .42s .62s both var(--ease); }
.ha-ring { opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: ha-ring 2.6s var(--ease) 1s infinite; }
@keyframes ha-draw { from { stroke-dashoffset: var(--len, 0); } }
@keyframes ha-area-in { from { opacity: 0; } }
@keyframes ha-dot-in { from { opacity: 0; transform: scale(.3); } }
@keyframes ha-ring { 0% { opacity: .5; r: 4; } 70%, 100% { opacity: 0; r: 13; } }
.ha-cbars { display: flex; align-items: flex-end; gap: 8px; height: 100px; padding-top: 4px; }
.ha-cbar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.ha-cbar > i { display: block; width: 100%; height: var(--h); border-radius: 5px 5px 0 0;
  background: rgba(39,128,227,0.55);
  animation: ha-grow .6s var(--d, 0ms) both cubic-bezier(.34,1.15,.5,1); }
.ha-cbar.is-hi > i { background: #FF7518; box-shadow: 0 0 14px rgba(255,117,24,0.40); }
.ha-cbar > span { font-family: var(--font-mono); font-size: 10px; color: var(--text-3); }
@keyframes ha-grow { from { height: 0; } }

/* flag — the forecast: the conclusion the whole answer builds toward.
   History (chart above) → predicted future risk (here). Emphasised. */
.ha-flag { display: flex; align-items: flex-start; gap: 10px; padding: 11px 13px 11px 14px; border-radius: 11px;
  position: relative; overflow: hidden;
  background: var(--ha-flag-bg);
  border: 1px solid var(--ha-flag-bd);
  box-shadow: 0 10px 26px rgba(255,117,24,0.12); }
.ha-answer.in .ha-flag { animation: ha-flag-in .5s 1.35s both var(--ease), ha-flag-glow 2.6s 1.7s ease-in-out 1; }
.ha-flag-ic { flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  background: rgba(255,117,24,0.16); color: var(--orange); }
.ha-flag-ic svg { width: 15px; height: 15px; }
.ha-flag-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ha-flag-lead { display: flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--orange); }
.ha-flag-lead svg { width: 11px; height: 11px; flex: none; }
.ha-flag-text { font-size: 13px; line-height: 1.45; color: var(--text); font-weight: 500; text-wrap: pretty; }
.ha-flag-text b { font-weight: 700; color: var(--text); }
@keyframes ha-flag-in { from { opacity: 0; transform: translateY(7px); } }
@keyframes ha-flag-glow {
  0%, 100% { box-shadow: 0 10px 26px rgba(255,117,24,0.12); }
  45%      { box-shadow: 0 0 0 3px rgba(255,117,24,0.16), 0 12px 34px rgba(255,117,24,0.34); }
}
@media (prefers-reduced-motion: reduce) {
  .ha-answer.in .ha-flag { animation: none; }
}

/* live query badge (reuses .hero-float positioning) */
.ha-badge { transition: opacity .3s ease; }
.ha-badge .icon-tile {
  background: var(--ha-avatar-bg);
  border-color: var(--ha-avatar-bd);
  color: var(--ha-accent-2);
}
.ha[data-badge="off"] .ha-badge { opacity: 0; pointer-events: none; }

/* ---- variant: clean (no chrome, straight-on glass) ---- */
.ha[data-layout="clean"] .ha-bar { display: none; }
.ha[data-layout="clean"] .ha-frame {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent 40%), var(--surface);
  box-shadow: 0 36px 88px -38px rgba(0,0,0,0.85), inset 0 1px 0 rgba(255,255,255,0.05);
}
.ha[data-layout="clean"] .ha-win { padding: 24px; min-height: 568px; }
/* answer fills the vertical space (incl. where the query badge used to sit) */
.ha[data-layout="clean"] .ha-thread { justify-content: flex-start; }
.ha[data-layout="clean"] .ha-bot { flex: 1 1 auto; }
.ha[data-layout="clean"] .ha-answer { display: flex; flex-direction: column; padding: 18px; }
.ha[data-layout="clean"] .ha-chart { flex: 1 1 auto; display: flex; align-items: stretch; min-height: 150px; margin-bottom: 14px; position: relative; }
.ha[data-layout="clean"] .ha-chart .ha-svg { height: 100%; }
.ha[data-layout="clean"] .ha-chart .ha-cbars { position: absolute; inset: 0; height: auto; }
.ha[data-layout="clean"] .ha-ans-text { font-size: 13.5px; }
.ha[data-layout="clean"] .ha-stat-v { font-size: 18px; }

/* clean background fill levels (translucent / transparent) */
.ha[data-layout="clean"][data-fill="glass"] .ha-frame {
  background: rgba(15, 17, 23, 0.55);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: 0 30px 80px -40px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.06);
}
.ha[data-layout="clean"][data-fill="clear"] .ha-frame {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

/* ---- variant: split (thread + live answer canvas) ---- */
.ha[data-layout="split"] .ha-win { flex-direction: row; gap: 16px; min-height: 466px; }
.ha[data-layout="split"] .ha-thread { flex: 0 0 41%; }
.ha[data-layout="split"] .ha-thread .ha-bubble { font-size: 13px; }
.ha-canvas { flex: 1; min-width: 0; display: flex; align-items: stretch;
  border-left: 1px solid var(--border); padding-left: 16px; }
.ha-canvas .ha-answer { width: 100%; }
.ha[data-layout="split"] .ha-canvas .ha-ans-title { font-size: 16px; }
.ha[data-layout="split"] .ha-canvas .ha-svg { height: 120px; }

@keyframes ha-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ha-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ha-live i, .ha-dots3 i { animation: none; }
  .ha-frame { transition: none; }
  .ha-line, .ha-area, .ha-dot, .ha-cbar > i { animation: none; }
  .ha-ring { animation: none; opacity: 0; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .apps-feature, .about-grid, .partners-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-shot { transform: none; }
  .ha[data-layout="browser"] .ha-frame { transform: none; }
  .ha[data-layout="split"] .ha-win { flex-direction: column; }
  .ha-canvas { border-left: 0; border-top: 1px solid var(--border); padding-left: 0; padding-top: 14px; }
  .hero-float { left: 0; bottom: -20px; }
  .hero-media { margin-top: 8px; }
  .flow-rail { grid-template-columns: repeat(3, 1fr); gap: 22px 12px; }
  .flow-line { display: none; }
  .apps-feature { padding: 28px; }
  .hero-orbital { object-position: 60% 50%; opacity: 0.6; }
}
@media (max-width: 680px) {
  .hero { padding: 54px 0 64px; }
  .flow-rail { grid-template-columns: 1fr 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
}
