/* home.css — page-specific styles for the Home page. */

/* ===== Hero — left-aligned title, subtext, then email form beneath ===== */
.hero { min-height: auto; padding-bottom: 190px; }   /* natural height (not 100vh) */
.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero__title {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
  max-width: 16ch;
  margin-bottom: 18px;
}
.hero .lede { margin-top: 0; }

.hero__form { margin-top: 28px; width: 100%; max-width: 440px; }
.hero__form-row { display: flex; gap: 10px; align-items: stretch; }
.hero__form-row .input {
  flex: 1;
  height: 46px;                         /* same height as the button */
  padding-block: 0;
}
.hero__form-row .btn { flex: none; height: 46px; }

/* Companies rectangle overlaps up into the hero, extends into the next section */
.companies-overlap {
  position: relative;
  z-index: 2;
  margin-top: clamp(-150px, -11vw, -70px);
  padding-bottom: 24px;
}

/* ===== Nexuss + Nemoss — two 1:1 tiles making one rectangle ===== */
.company-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;                              /* thin seam; reads as one rectangle */
  margin-top: 28px;
  border-radius: 18px;
  overflow: hidden;
}

.company-tile {
  position: relative;
  aspect-ratio: 1 / 1;                   /* square; two squares = 2:1 rectangle */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #fff;
  isolation: isolate;
}
.company-tile::before {                  /* background image layer */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  transition: transform 0.6s var(--ease);
}
.company-tile:hover::before { transform: scale(1.05); }

.company-tile--nexuss::before {
  background-image:
    linear-gradient(to top, rgba(14, 5, 30, 0.9) 0%, rgba(14, 5, 30, 0.15) 55%, transparent 100%),
    url(../assets/img/Nexusslogo.webp),
    linear-gradient(160deg, #8b5cf6 0%, #3a1d78 100%);
  background-size: auto, 30%, cover;
  background-position: center, center 40%, center;
}
.company-tile--nemoss::before {
  background-image:
    linear-gradient(to top, rgba(6, 14, 28, 0.9) 0%, rgba(6, 14, 28, 0.12) 55%, transparent 100%),
    url(../assets/img/Nemosslogo.webp),
    linear-gradient(160deg, #d3e6ff 0%, #93c0f2 100%);
  background-size: auto, 30%, cover;
  background-position: center, center 40%, center;
}

.company-tile__badge {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.company-tile__foot { margin-top: auto; display: grid; gap: 6px; }
.company-tile__foot strong { font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.02em; }
.company-tile__foot p { color: rgba(255, 255, 255, 0.82); max-width: 32ch; font-weight: 300; }

@media (max-width: 720px) {
  .hero__inner { align-items: stretch; }
  .hero__form { flex-basis: 100%; }
}

/* ===== Section heads ===== */
.section__head { max-width: 60ch; margin-bottom: 40px; }
.section__head .h1 { margin-bottom: 16px; }

/* ===== Bento grids ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: minmax(168px, 1fr);
  gap: 14px;
}
.bento__cell {
  position: relative;
  overflow: hidden;
  min-width: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bento__cell--2 { grid-column: span 2; }
.bento__cell--tall { grid-row: span 2; }
.bento__accent { background: var(--accent-grad); color: #fff; }

.bento__kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.bento__accent .bento__kicker { color: rgba(255, 255, 255, 0.85); }

.bento__feature { justify-content: space-between; }
.bento__lead {
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.bento__title { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; }

.bento__link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-text);
}
.bento__accent .bento__link { color: #fff; }
.bento__link svg { width: 16px; height: 16px; }

.bento__stat { justify-content: flex-end; }
.bento__num { font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; letter-spacing: -0.02em; line-height: 1; }
.bento__label { font-size: 13px; color: var(--muted); }
.bento__accent .bento__label { color: rgba(255, 255, 255, 0.85); }

.bento__ico { color: var(--accent-text); width: 24px; height: 24px; }
.bento__cell h3 { font-size: 16px; font-weight: 600; }
.bento__cell > p { font-size: 13px; color: var(--muted); }
.bento__accent > p { color: rgba(255, 255, 255, 0.88); }

/* media / video cells */
.bento__media { padding: 0; justify-content: flex-end; color: #fff; background: linear-gradient(160deg, #1b2440 0%, #0b0e16 100%); }
.bento--eco .bento__media, .bento__media { min-height: 168px; }
.bento__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; opacity: 0.5; }
.bento__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  z-index: 1;
}
.bento__play svg { width: 22px; height: 22px; color: #fff; }
.bento__media-label { position: absolute; left: 18px; bottom: 16px; z-index: 1; font-size: 13px; font-weight: 500; }

/* work cells */
.bento__work { justify-content: space-between; }
.bento__tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-text); }
.bento__status { margin-top: auto; font-size: 12px; color: var(--muted); }

/* cta cells */
.bento__cta { text-decoration: none; }
.bento__cta h3 { margin-top: 6px; }
.bento__arrow { margin-top: auto; color: var(--accent-text); }
.bento__arrow svg { width: 18px; height: 18px; }

/* hover for interactive cells */
a.bento__cell { transition: background 0.25s var(--ease), transform 0.25s var(--ease); }
a.bento__cell:hover { transform: translateY(-3px); }
a.bento__cell:not(.bento__accent):not(.bento__media):hover { background: rgba(255, 255, 255, 0.07); }
.bento__media:hover .bento__video { opacity: 0.7; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--tall { grid-row: span 1; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento__cell--2 { grid-column: span 1; }
}

/* ===== Reveal ===== */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Staggered children (the container is just the trigger) */
[data-reveal].stagger { opacity: 1; transform: none; }
.stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(2) { transition-delay: 0.07s; }
.stagger.is-visible > *:nth-child(3) { transition-delay: 0.14s; }
.stagger.is-visible > *:nth-child(4) { transition-delay: 0.21s; }
.stagger.is-visible > *:nth-child(5) { transition-delay: 0.28s; }
.stagger.is-visible > *:nth-child(6) { transition-delay: 0.35s; }

/* ===== Pill label ===== */
.pill-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--hover-bg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.pill-label--accent { background: var(--accent-grad); color: #fff; }

/* ===== Company structure (Nex is the foundation, not a node) ===== */
.sd { display: grid; justify-items: center; max-width: 900px; margin-inline: auto; }
.sd__group { display: grid; gap: 4px; text-align: center; min-width: 200px; padding: 16px 26px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); }
.sd__stem { width: 2px; height: 26px; background: linear-gradient(var(--accent-text), transparent); opacity: 0.55; }
.sd__tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent-text); }

.sd__unit { width: 100%; display: grid; gap: 3px; }
.sd__cos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sd__co {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 22px 24px;
  border-radius: 16px 16px 4px 4px;
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease);
}
.sd__co:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }
.sd__co strong { font-size: 22px; font-weight: 600; }
.sd__co p { font-size: 13px; color: var(--muted); }

.sd__nex { border-radius: 4px 4px 16px 16px; background: var(--accent-grad); color: #fff; padding: 22px 26px; display: grid; gap: 8px; }
.sd__nex-main { display: flex; align-items: baseline; gap: 14px; }
.sd__nex strong { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.sd__nex p { font-size: 14px; color: rgba(255, 255, 255, 0.9); max-width: 70ch; }
.sd__tag--on { color: rgba(255, 255, 255, 0.85); }

.sd__base { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.org-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); font-size: 13px; color: var(--muted); }
.org-chip svg { width: 16px; height: 16px; color: var(--accent-text); }

/* ===== Progress tabs ===== */
.tabs { display: grid; grid-template-columns: minmax(0, 360px) 1fr; gap: 24px; align-items: start; }
.tabs__list { display: grid; gap: 10px; }
.tab { display: grid; gap: 4px; padding: 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); text-align: left; cursor: pointer; transition: background 0.25s var(--ease); }
.tab:hover { background: rgba(255, 255, 255, 0.06); }
.tab.is-active { background: rgba(255, 255, 255, 0.07); }
.tab__title { font-size: 16px; font-weight: 600; }
.tab__desc { font-size: 13px; color: var(--muted); }
.tab__bar { margin-top: 8px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; opacity: 0; transition: opacity 0.2s var(--ease); }
.tab.is-active .tab__bar { opacity: 1; }
.tab__bar-fill { display: block; width: 0; height: 100%; background: var(--accent-text); }

.tabs__panels { position: relative; }
.tab-panel { display: none; border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, 0.03); }
.tab-panel.is-active { display: grid; }
.tab-panel__media { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(160deg, #1b2440, #0b0e16); display: grid; place-items: center; }
.tab-panel__body { padding: 22px; display: grid; gap: 10px; }
.tab-panel__body h3 { font-size: 20px; font-weight: 600; }
.tab-panel__body p { color: var(--muted); }

.media-play { width: 56px; height: 56px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; }
.media-play svg { width: 22px; height: 22px; color: #fff; }
.media-label { position: absolute; left: 16px; bottom: 14px; font-size: 13px; font-weight: 500; color: #fff; }

/* ===== Nex ===== */
.nex { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.nex__points { display: grid; gap: 10px; margin-top: 18px; }
.nex__points li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--muted); }
.nex__points svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent-text); }

.nex__viz { display: grid; gap: 16px; padding: 26px; border-radius: 20px; background: rgba(255, 255, 255, 0.04); }
.barrow { display: grid; grid-template-columns: 132px 1fr 44px; align-items: center; gap: 14px; }
.barrow__label { font-size: 13px; color: var(--muted); }
.barrow__track { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; transition: background 0.2s var(--ease); }
.barrow__fill { display: block; width: 0; height: 100%; border-radius: 6px; background: var(--accent-grad); transition: width 1.1s var(--ease); }
[data-chart="bars"].is-active .barrow__fill { width: var(--v); }
.barrow__val { font-size: 14px; font-weight: 600; text-align: right; }
.barrow:hover .barrow__track { background: rgba(255, 255, 255, 0.14); }

/* ===== Carousel ===== */
.carousel__viewport { overflow: hidden; }
.carousel__track { display: flex; gap: 16px; transition: transform 0.5s var(--ease); }
.cslide { flex: 0 0 calc((100% - 32px) / 3); display: grid; gap: 12px; }
.cslide__media { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; background: linear-gradient(160deg, #20305a, #0b0e16); }
.cslide h3 { font-size: 17px; font-weight: 600; }
.cslide p { font-size: 13px; color: var(--muted); }

.carousel__nav { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.carousel__dots { display: flex; gap: 8px; margin-right: auto; }
.carousel__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hover-bg-2); cursor: pointer; transition: width 0.25s var(--ease), background 0.25s var(--ease); }
.carousel__dot.is-active { width: 22px; border-radius: 5px; background: var(--accent-text); }
.carousel__btn { width: 40px; height: 40px; border-radius: 10px; background: var(--hover-bg); display: grid; place-items: center; cursor: pointer; transition: background 0.2s var(--ease); }
.carousel__btn:hover { background: var(--hover-bg-2); }
.carousel__btn:disabled { opacity: 0.35; cursor: default; }
.carousel__btn svg { width: 18px; height: 18px; }

/* ===== Stepper / breadcrumb ===== */
.stepper { --p: 0; }
.stepper__crumbs { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 30px; }
.stepper__crumbs::before,
.stepper__crumbs::after { content: ""; position: absolute; top: 17px; left: 12%; height: 2px; border-radius: 2px; }
.stepper__crumbs::before { right: 12%; background: rgba(255, 255, 255, 0.1); }
.stepper__crumbs::after { width: calc((100% - 24%) * var(--p)); background: var(--accent-grad); transition: width 0.4s var(--ease); }

.crumb { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; background: none; cursor: pointer; }
.crumb__num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #171922; font-family: var(--mono); font-size: 13px; color: var(--muted); transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.crumb.is-done .crumb__num,
.crumb.is-active .crumb__num { background: var(--accent-grad); color: #fff; }
.crumb__label { font-size: 13px; color: var(--muted); transition: color 0.2s var(--ease); }
.crumb.is-active .crumb__label { color: var(--fg); }

.step-panel { display: none; }
.step-panel.is-active { display: grid; gap: 8px; max-width: 62ch; }
.step-panel__k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.step-panel h3 { font-size: 22px; font-weight: 600; }
.step-panel p { color: var(--muted); }

/* ===== Metrics chart ===== */
.vchart { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: stretch; gap: 16px; height: 320px; padding: 22px; border-radius: 20px; background: rgba(255, 255, 255, 0.03); }
.vbar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.vbar__val { font-size: 15px; font-weight: 600; }
.vbar__col { width: 100%; max-width: 64px; height: 0; border-radius: 10px 10px 0 0; background: var(--accent-grad); transition: height 1s var(--ease); }
[data-chart="vbars"].is-active .vbar__col { height: var(--v); }
.vbar__x { margin-top: 4px; font-size: 12px; color: var(--muted); }
.vbar:hover .vbar__col { filter: brightness(1.15); }

.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.stat { display: grid; gap: 4px; padding: 20px; border-radius: 16px; background: rgba(255, 255, 255, 0.03); }
.stat strong { font-size: clamp(28px, 3vw, 40px); font-weight: 600; letter-spacing: -0.02em; }
.stat span { font-size: 13px; color: var(--muted); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .tabs { grid-template-columns: 1fr; }
  .nex { grid-template-columns: 1fr; gap: 28px; }
  .cslide { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 720px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .vchart { height: 260px; }
  .org-node { min-width: 0; }
  .org__row--two { flex-direction: column; align-items: center; }
}
@media (max-width: 560px) {
  .cslide { flex-basis: 100%; }
  .crumb__label { display: none; }
}

/* Chart cascade */
[data-chart="bars"] .barrow:nth-child(1) .barrow__fill { transition-delay: 0.05s; }
[data-chart="bars"] .barrow:nth-child(2) .barrow__fill { transition-delay: 0.14s; }
[data-chart="bars"] .barrow:nth-child(3) .barrow__fill { transition-delay: 0.23s; }
[data-chart="bars"] .barrow:nth-child(4) .barrow__fill { transition-delay: 0.32s; }
[data-chart="vbars"] .vbar:nth-child(1) .vbar__col { transition-delay: 0.05s; }
[data-chart="vbars"] .vbar:nth-child(2) .vbar__col { transition-delay: 0.13s; }
[data-chart="vbars"] .vbar:nth-child(3) .vbar__col { transition-delay: 0.21s; }
[data-chart="vbars"] .vbar:nth-child(4) .vbar__col { transition-delay: 0.29s; }
[data-chart="vbars"] .vbar:nth-child(5) .vbar__col { transition-delay: 0.37s; }

/* ========================================================================
   Company structure — two 50/50 containers (full width)
   ======================================================================== */
.struct { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.struct__group, .struct__co {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border-radius: 18px;
  color: #fff;
  text-decoration: none;
}
.struct__group::before, .struct__co::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: no-repeat;
  transition: transform 0.5s var(--ease);
}
.struct__group:hover::before, .struct__co:hover::before { transform: scale(1.05); }
.struct__group { aspect-ratio: 1 / 1; }
.struct__group::before { background: radial-gradient(120% 100% at 20% 10%, rgba(0, 63, 149, 0.55), transparent 60%), linear-gradient(160deg, #1c2b52, #0b0e16); }
.struct__cos { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; }
.struct__co--nexuss::before {
  background: linear-gradient(to top, rgba(14, 5, 30, 0.9), rgba(14, 5, 30, 0.15) 60%, transparent), url(../assets/img/Nexusslogo.webp), linear-gradient(160deg, #8b5cf6, #3a1d78);
  background-size: cover, 20%, cover;
  background-position: center, center 38%, center;
}
.struct__co--nemoss::before {
  background: linear-gradient(to top, rgba(6, 14, 28, 0.88), rgba(6, 14, 28, 0.12) 60%, transparent), url(../assets/img/Nemosslogo.webp), linear-gradient(160deg, #d3e6ff, #93c0f2);
  background-size: cover, 20%, cover;
  background-position: center, center 38%, center;
}
.struct__tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.85); }
.struct strong { margin-top: 4px; font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.02em; }
.struct p { margin-top: 6px; max-width: 36ch; font-size: 13px; color: rgba(255, 255, 255, 0.82); }
.struct__go { position: absolute; top: 22px; right: 22px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.struct__go svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .struct { grid-template-columns: 1fr; } .struct__group { aspect-ratio: 16 / 10; } }

/* ========================================================================
   Nexuss backend — two features 50/50 with looping visuals
   ======================================================================== */
.feat2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.feat {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding: 26px;
  border-radius: 18px;
  color: #fff;
}
.feat__badge {
  position: absolute;
  top: 22px;
  left: 22px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.feat__gfx { flex: 1; position: relative; display: grid; place-items: center; }
.feat__body { display: grid; gap: 6px; }
.feat__body h3 { font-size: 20px; font-weight: 600; }
.feat__body p { font-size: 14px; color: rgba(255, 255, 255, 0.82); }
@media (max-width: 760px) { .feat2 { grid-template-columns: 1fr; } }

/* pipeline (transparent, over the card) */
.feat__gfx--pipe { width: 100%; height: 150px; }
.feat__gfx--pipe .pipe { position: absolute; top: 50%; left: 12%; right: 12%; height: 2px; background: rgba(255, 255, 255, 0.2); }
.feat__gfx--pipe .node { position: absolute; top: calc(50% - 9px); width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); animation: node-pulse 2.6s ease-in-out infinite; }
.feat__gfx--pipe .n1 { left: calc(12% - 9px); }
.feat__gfx--pipe .n2 { left: calc(50% - 9px); animation-delay: 0.45s; }
.feat__gfx--pipe .n3 { left: calc(88% - 9px); animation-delay: 0.9s; }
.feat__gfx--pipe .pipe__dot { position: absolute; top: calc(50% - 4px); width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pipe-move 2.6s var(--ease) infinite; }
@keyframes pipe-move { 0% { left: 12%; } 100% { left: calc(88% - 8px); } }
@keyframes node-pulse { 0%, 100% { background: rgba(255, 255, 255, 0.18); } 50% { background: var(--accent-text); } }

/* compute spark */
.spark { display: flex; align-items: flex-end; gap: 8px; height: 130px; }
.spark i { width: 14px; height: 30%; border-radius: 5px 5px 0 0; background: var(--accent-grad); animation: spark 1.4s ease-in-out infinite; }
.spark i:nth-child(2) { animation-delay: 0.15s; }
.spark i:nth-child(3) { animation-delay: 0.3s; }
.spark i:nth-child(4) { animation-delay: 0.45s; }
.spark i:nth-child(5) { animation-delay: 0.6s; }
.spark i:nth-child(6) { animation-delay: 0.75s; }
@keyframes spark { 0%, 100% { height: 25%; } 50% { height: 90%; } }

/* ========================================================================
   Nexuss UI — 4-card bento with fake interfaces
   ======================================================================== */
.uibento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ui-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 240px;
  padding: 24px;
  border-radius: 18px;
  color: #fff;
}
.ui-card--wide { grid-column: 1 / -1; min-height: 260px; }
/* different shades of blue */
.ui-blue-1 { background: linear-gradient(160deg, #16305e, #0b1a34); }
.ui-blue-2 { background: linear-gradient(160deg, #1b3a6b, #0e2140); }
.ui-blue-3 { background: linear-gradient(160deg, #244a7a, #10233f); }
.ui-blue-4 { background: linear-gradient(160deg, #2c5488, #122844); }
.ui-card__title { font-size: 17px; font-weight: 600; }
.ui-card__sub { font-size: 13px; color: rgba(255, 255, 255, 0.72); }
/* graphics: centred, transparent, no frame */
.ui-gfx { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; }
.ui-card:not(.ui-card--wide) .ui-gfx > * { width: min(260px, 92%); }
.ui-card--wide .ui-chart { width: min(760px, 100%); height: 150px; }
@media (max-width: 760px) { .uibento { grid-template-columns: 1fr; } .ui-card--wide { grid-column: auto; } }

.ui-chart { display: flex; align-items: flex-end; gap: 8px; height: 120px; }
.ui-chart span { flex: 1; height: var(--h); border-radius: 5px 5px 0 0; background: var(--accent-grad); transform-origin: bottom; animation: ui-bar 2.4s ease-in-out infinite; }
.ui-chart span:nth-child(even) { animation-delay: 0.3s; }
.ui-chart span:nth-child(3n) { animation-delay: 0.6s; }
@keyframes ui-bar { 0%, 100% { transform: scaleY(0.82); } 50% { transform: scaleY(1.06); } }

.ui-cmd { display: flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 9px; background: rgba(255, 255, 255, 0.06); font-size: 13px; color: var(--muted); }
.ui-caret { width: 2px; height: 14px; background: var(--accent-text); animation: ui-blink 1s steps(1) infinite; }
@keyframes ui-blink { 50% { opacity: 0; } }
.ui-list { display: grid; gap: 8px; margin-top: 12px; }
.ui-list li { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); opacity: 0; transform: translateY(6px); animation: ui-row 3s var(--ease) infinite; }
.ui-list li:nth-child(2) { animation-delay: 0.4s; }
.ui-list li:nth-child(3) { animation-delay: 0.8s; }
@keyframes ui-row { 0% { opacity: 0; transform: translateY(6px); } 16%, 72% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; } }

.ui-toggle-row { display: flex; align-items: center; justify-content: space-between; padding: 10px 0; font-size: 14px; }
.ui-sw { position: relative; width: 38px; height: 22px; border-radius: 999px; background: rgba(255, 255, 255, 0.14); }
.ui-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left 0.3s var(--ease); }
.ui-sw--on { background: var(--accent-grad); }
.ui-sw--on::after { left: 19px; }
.ui-sw--pulse { animation: ui-sw 2.8s var(--ease) infinite; }
.ui-sw--pulse::after { animation: ui-knob 2.8s var(--ease) infinite; }
@keyframes ui-sw { 0%, 45% { background: rgba(255, 255, 255, 0.14); } 55%, 100% { background: linear-gradient(135deg, var(--accent-a), var(--accent-b)); } }
@keyframes ui-knob { 0%, 45% { left: 3px; } 55%, 100% { left: 19px; } }

.ui-prog { height: 10px; margin: 10px 0; overflow: hidden; border-radius: 6px; background: rgba(255, 255, 255, 0.08); }
.ui-prog b { display: block; width: 0; height: 100%; border-radius: 6px; background: var(--accent-grad); animation: ui-prog 3s var(--ease) infinite; }
.ui-prog:nth-child(2) b { animation-delay: 0.3s; }
.ui-prog:nth-child(3) b { animation-delay: 0.6s; }
@keyframes ui-prog { 0% { width: 0; } 60%, 100% { width: var(--p); } }

/* ========================================================================
   Nemoss device carousel — big cards, snap, next peeks
   ======================================================================== */
.dcar { --pad: max(24px, calc(50vw - min(45vw, 660px))); }
.dcar__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--pad);
  padding: 4px var(--pad);
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.dcar__track::-webkit-scrollbar { display: none; }
.dcard {
  position: relative;
  flex: 0 0 min(90vw, 1320px);          /* wider than the 1200 container; centred, neighbours cut off */
  scroll-snap-align: center;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: flex-end;
  padding: 34px;
  border-radius: 22px;
  color: #fff;
}
.dcard::before { content: ""; position: absolute; inset: 0; z-index: -1; }
.dcard--helmet::before   { background: linear-gradient(120deg, rgba(8, 10, 16, 0.85), rgba(8, 10, 16, 0.15)), linear-gradient(150deg, #f6a531, #7a3d12); }
.dcard--glasses::before  { background: linear-gradient(120deg, rgba(8, 10, 16, 0.85), rgba(8, 10, 16, 0.15)), linear-gradient(150deg, #5b7cc9, #1b2440); }
.dcard--camera::before   { background: linear-gradient(120deg, rgba(8, 10, 16, 0.85), rgba(8, 10, 16, 0.15)), linear-gradient(150deg, #5ac0a3, #123b30); }
.dcard--clipboard::before{ background: linear-gradient(120deg, rgba(8, 10, 16, 0.85), rgba(8, 10, 16, 0.15)), linear-gradient(150deg, #a98bd8, #2b2640); }
.dcard__body { display: grid; gap: 10px; max-width: 44ch; }
.dcard__tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.85); }
.dcard h3 { font-size: clamp(24px, 3vw, 38px); font-weight: 600; letter-spacing: -0.02em; }
.dcard p { color: rgba(255, 255, 255, 0.85); }
.dcard__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; font-weight: 500; }
.dcard__go svg { width: 18px; height: 18px; }
.dcar__nav { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.dcar__dots { display: flex; gap: 8px; margin-right: auto; }
.dcar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hover-bg-2); cursor: pointer; transition: width 0.25s var(--ease), background 0.25s var(--ease); }
.dcar__dot.is-active { width: 22px; border-radius: 5px; background: var(--accent-text); }
@media (max-width: 760px) { .dcard { flex-basis: 86vw; aspect-ratio: 4 / 5; } }

/* ========================================================================
   Nemoss at work — office + construction 50/50
   ======================================================================== */
.usecases { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.usecase { position: relative; overflow: hidden; isolation: isolate; min-height: 360px; display: flex; align-items: flex-end; padding: 30px; border-radius: 20px; color: #fff; }
.usecase::before { content: ""; position: absolute; inset: 0; z-index: -1; transition: transform 0.5s var(--ease); }
.usecase:hover::before { transform: scale(1.05); }
.usecase--office::before { background: linear-gradient(to top, rgba(6, 10, 20, 0.9), rgba(6, 10, 20, 0.2) 60%, transparent), linear-gradient(160deg, #8fb4e6, #20304f); }
.usecase--site::before   { background: linear-gradient(to top, rgba(20, 10, 4, 0.9), rgba(20, 10, 4, 0.2) 60%, transparent), linear-gradient(160deg, #f6b24a, #6a3410); }
.usecase__body { display: grid; gap: 8px; max-width: 40ch; }
.usecase__tag { font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(255, 255, 255, 0.85); }
.usecase h3 { font-size: 24px; font-weight: 600; }
.usecase p { color: rgba(255, 255, 255, 0.85); }
@media (max-width: 760px) { .usecases { grid-template-columns: 1fr; } }

/* ========================================================================
   Hand in hand — layered stack with a running pulse
   ======================================================================== */
.synergy { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.synergy__points { display: grid; gap: 10px; margin-top: 18px; }
.synergy__points li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; color: var(--muted); }
.synergy__points svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--accent-text); }
.stack3 { position: relative; display: grid; gap: 14px; padding-left: 22px; }
.stack3::before { content: ""; position: absolute; left: 4px; top: 24px; bottom: 24px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); }
.stack3__pulse { position: absolute; left: 1px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-text); animation: stack-run 3s var(--ease) infinite; }
@keyframes stack-run { 0% { top: 24px; } 100% { top: calc(100% - 32px); } }
.layer { display: flex; align-items: baseline; justify-content: space-between; padding: 22px 24px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); }
.layer strong { font-size: 22px; font-weight: 600; }
.layer span { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.layer--ai { background: var(--accent-grad); color: #fff; }
.layer--ai span { color: rgba(255, 255, 255, 0.85); }
@media (max-width: 900px) { .synergy { grid-template-columns: 1fr; gap: 28px; } }

@media (prefers-reduced-motion: reduce) {
  .pipe__dot, .spark i, .ui-chart span, .ui-list li, .ui-sw--pulse, .ui-sw--pulse::after,
  .ui-prog b, .stack3__pulse, .node { animation: none !important; }
  .ui-prog b { width: var(--p); }
  .ui-chart span { transform: none; }
}

/* ========================================================================
   Nexuss agent manager (temporary, full-bleed) — glassmorphic, faint borders
   ======================================================================== */
.dash-wrap { position: relative; width: 100%; padding-inline: clamp(16px, 4vw, 56px); }
.dash-wrap::before {
  content: "";
  position: absolute;
  left: 50%; bottom: -30px;
  width: min(1200px, 92%); height: 78%;
  transform: translateX(-50%);
  z-index: 0;
  background: radial-gradient(70% 100% at 50% 100%, rgba(139, 92, 246, 0.34), rgba(0, 63, 149, 0.18) 45%, transparent 72%);
  filter: blur(50px);
  pointer-events: none;
}

.dash {
  --dash-border: rgba(255, 255, 255, 0.07);
  --nex: #8b5cf6;
  position: relative;
  z-index: 1;
  max-width: 1500px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 244px 1fr;
  grid-template-rows: 60px 1fr;
  gap: 12px;
  height: min(760px, 88vh);
  padding: 12px;
  border: 1px solid var(--dash-border);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(24px) saturate(1.2);
  -webkit-backdrop-filter: blur(24px) saturate(1.2);
  color: var(--fg);
}

/* sidebar — transparent, vertical separator (no rounded container) */
.dash__side {
  grid-column: 1; grid-row: 1 / 3;
  display: flex; flex-direction: column;
  padding: 2px 15px 2px 2px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);   /* vertical separator */
  overflow: hidden;
}
.dash__logo { display: flex; align-items: center; gap: 9px; padding: 4px 8px 12px; }
.dash__logo-img { height: 20px; width: auto; filter: brightness(0) invert(1); }
.dash-brand__name { font-weight: 600; font-size: 15px; }
.dash__nav { flex: 1; display: grid; gap: 1px; align-content: start; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.dash__nav::-webkit-scrollbar { display: none; }
/* tabs — borderless, tight */
.dash__tab { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 9px; font-size: 13.5px; color: var(--muted); }
.dash__tab svg { width: 17px; height: 17px; flex: none; }
.dash__tab:hover { background: rgba(255, 255, 255, 0.05); color: var(--fg); }
.dash__tab.is-active { background: rgba(139, 92, 246, 0.18); color: #fff; }

/* user container bottom-left */
.dash__user { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.dash__user-av { width: 30px; height: 30px; border-radius: 9px; flex: none; object-fit: cover; }
.dash__user-txt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.dash__user-txt strong { font-size: 13px; font-weight: 600; }
.dash__user-txt small { font-size: 11px; color: var(--muted); }
.dash__user > svg { width: 16px; height: 16px; flex: none; color: var(--muted); }

/* top bar — no separators */
.dash__top { grid-column: 2; grid-row: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 4px; }
.dash__search { display: flex; align-items: center; gap: 8px; width: min(360px, 100%); padding: 9px 12px; border-radius: 10px; border: 1px solid var(--dash-border); background: rgba(255, 255, 255, 0.04); color: var(--muted); }
.dash__search svg { width: 16px; height: 16px; flex: none; }
.dash__search input { flex: 1; min-width: 0; border: 0; background: none; color: var(--fg); font-size: 13px; }
.dash__search input:focus { outline: none; }
.dash__actions { display: flex; align-items: center; gap: 8px; }
.dash__ic { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--muted); }
.dash__ic:hover { background: rgba(255, 255, 255, 0.06); color: var(--fg); }
.dash__ic svg { width: 18px; height: 18px; }
.dash__dot { position: absolute; top: 8px; right: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--nex); }
.dash__acct { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--dash-border); background: rgba(255, 255, 255, 0.04); font-size: 13px; font-weight: 500; }
.dash__acct svg { width: 16px; height: 16px; }
.dash__menu { position: relative; }
.dash__menu-pop {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 5;
  min-width: 200px; padding: 6px;
  display: grid; gap: 2px;
  border: 1px solid var(--dash-border); border-radius: 12px;
  background: rgba(12, 12, 14, 0.92);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
}
.dash__menu.is-open .dash__menu-pop { opacity: 1; visibility: visible; transform: none; }
.dash__menu-pop a { padding: 9px 12px; border-radius: 8px; font-size: 13px; color: var(--muted); }
.dash__menu-pop a:hover { background: rgba(255, 255, 255, 0.06); color: var(--fg); }

/* main — fills the height, no scrollbar */
.dash__main { grid-column: 2; grid-row: 2; display: flex; flex-direction: column; overflow: hidden; }
.dash-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dash-head h3 { font-size: 20px; font-weight: 600; }
.dash-head p { font-size: 13px; color: var(--muted); }
.dash-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 10px; background: linear-gradient(150deg, #8b5cf6, #3a1d78); color: #fff; font-size: 13px; font-weight: 600; }
.dash-btn svg { width: 16px; height: 16px; }
.dash-stats { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 12px; }
.dash-stat { display: grid; gap: 6px; padding: 16px; border-radius: 14px; border: 1px solid var(--dash-border); background: rgba(255, 255, 255, 0.03); }
.dash-stat span { font-size: 12px; color: var(--muted); }
.dash-stat strong { font-size: 24px; font-weight: 600; }
.dash-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.dash-panel { padding: 18px; border-radius: 14px; border: 1px solid var(--dash-border); background: rgba(255, 255, 255, 0.03); }
.dash-panel__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-panel__head h4 { font-size: 15px; font-weight: 600; }
.dash-chip { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--dash-border); font-size: 12px; color: var(--muted); }

/* agent list */
.agent-list { display: grid; gap: 4px; }
.agent { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 12px; }
.agent:hover { background: rgba(255, 255, 255, 0.04); }
.agent__ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; flex: none; color: #fff; background: linear-gradient(150deg, #8b5cf6, #3a1d78); }
.agent__ic svg { width: 18px; height: 18px; }
.agent__meta { flex: 1; min-width: 0; display: grid; gap: 1px; }
.agent__meta strong { font-size: 13px; font-weight: 600; }
.agent__meta small { font-size: 11px; color: var(--muted); }
.agent__status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.agent__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.agent__status.is-running { background: rgba(62, 207, 142, 0.14); color: #7ee0b3; }
.agent__status.is-running::before { background: #3ecf8e; }
.agent__status.is-idle { background: rgba(255, 255, 255, 0.08); color: var(--muted); }
.agent__status.is-idle::before { background: #8a8a8a; }
.agent__status.is-paused { background: rgba(246, 178, 74, 0.15); color: #f2c98a; }
.agent__status.is-paused::before { background: #f6b24a; }

/* throughput */
.dash-bars { display: flex; align-items: flex-end; gap: 10px; height: 120px; }
.dash-bars span { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #8b5cf6, #3a1d78); }
.dash-legend { display: flex; align-items: baseline; justify-content: space-between; margin-top: 14px; }
.dash-legend span { font-size: 12px; color: var(--muted); }
.dash-legend strong { font-size: 18px; font-weight: 600; }

@media (max-width: 820px) {
  .dash { grid-template-columns: 62px 1fr; }
  .dash-brand__name, .dash__tab span, .dash__user-txt, .dash__user > svg, .dash__search, .dash__cat { display: none; }
  .dash__logo { justify-content: center; padding: 4px 0 12px; }
  .dash__nav { justify-content: start; gap: 4px; }
  .dash__tab { justify-content: center; }
  .dash__user { justify-content: center; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
}

/* dashboard chart (decorative area chart) */
.chartx { position: relative; }
.chartx__svg { width: 100%; height: 150px; display: block; }
.chartx__grid { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.chartx__area { opacity: 0; transition: opacity 0.9s var(--ease) 0.35s; }
.chartx__line {
  fill: none;
  stroke: #a78bfa;
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.8s var(--ease);
}
.dash.is-visible .chartx__area { opacity: 1; }
.dash.is-visible .chartx__line { stroke-dashoffset: 0; }
.chartx__x { display: flex; justify-content: space-between; margin-top: 10px; }
.chartx__x span { font-size: 11px; color: var(--muted); }

/* dashboard task list */
.task-list { display: grid; gap: 1px; }
.task { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; }
.task:hover { background: rgba(255, 255, 255, 0.04); }
.task__check { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; flex: none; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.2); }
.task__check svg { width: 12px; height: 12px; color: #fff; opacity: 0; }
.task__check--done { background: linear-gradient(150deg, #8b5cf6, #3a1d78); box-shadow: none; }
.task__check--done svg { opacity: 1; }
.task__meta { flex: 1; min-width: 0; display: grid; gap: 1px; }
.task__meta strong { font-size: 13px; font-weight: 500; }
.task__meta small { font-size: 11px; color: var(--muted); }
.task--done .task__meta strong { text-decoration: line-through; color: var(--muted); }
.task__pri { padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 500; flex: none; }
.pri--high { background: rgba(246, 110, 110, 0.15); color: #f3a1a1; }
.pri--med { background: rgba(246, 178, 74, 0.15); color: #f2c98a; }
.pri--low { background: rgba(255, 255, 255, 0.08); color: var(--muted); }

/* sidebar category labels */
.dash__cat { padding: 12px 10px 5px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.dash__cat:first-child { padding-top: 4px; }

/* dashboard main — two columns that fill the height */
.dash-cols { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }
.dash-side-col { display: grid; grid-template-rows: auto 1fr; gap: 12px; min-height: 0; }
.dash-panel--agents { display: flex; flex-direction: column; min-height: 0; }
.dash-panel--tasks { display: flex; flex-direction: column; min-height: 0; }
.dash-panel--agents .agent-list,
.dash-panel--tasks .task-list { flex: 1; overflow-y: auto; scrollbar-width: none; -ms-overflow-style: none; }
.dash-panel--agents .agent-list::-webkit-scrollbar,
.dash-panel--tasks .task-list::-webkit-scrollbar { display: none; }
.dash-link { font-size: 12px; font-weight: 500; color: #a78bfa; }

/* smaller chart in the side column */
.chartx--sm .chartx__svg { height: 78px; }

/* agent icons — different colours + developer icons */
.agent__ic--blue   { background: linear-gradient(150deg, #4f8bff, #16305e); }
.agent__ic--purple { background: linear-gradient(150deg, #8b5cf6, #3a1d78); }
.agent__ic--green  { background: linear-gradient(150deg, #3ecf8e, #12563d); }
.agent__ic--amber  { background: linear-gradient(150deg, #f6b24a, #7a4310); }
.agent__ic--teal   { background: linear-gradient(150deg, #2dd4bf, #0f5148); }
.agent__ic--pink   { background: linear-gradient(150deg, #f472b6, #7a1f4f); }

@media (max-width: 960px) {
  .dash-cols { grid-template-columns: 1fr; }
}

/* ===== Dashboard views (switchable) ===== */
.dash-view { display: none; flex: 1; min-height: 0; flex-direction: column; }
.dash-view.is-active { display: flex; }

/* avatars */
.av { display: inline-block; width: 24px; height: 24px; border-radius: 50%; flex: none; background: linear-gradient(150deg, #8b5cf6, #3a1d78); }
.av--blue { background: linear-gradient(150deg, #4f8bff, #16305e); }
.av--purple { background: linear-gradient(150deg, #8b5cf6, #3a1d78); }
.av--green { background: linear-gradient(150deg, #3ecf8e, #12563d); }
.av--amber { background: linear-gradient(150deg, #f6b24a, #7a4310); }
.av--teal { background: linear-gradient(150deg, #2dd4bf, #0f5148); }
.av--pink { background: linear-gradient(150deg, #f472b6, #7a1f4f); }
.chip-mini { padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-size: 10px; color: var(--muted); }

/* overhauled activity bar chart (interactive) */
.barchart {
  display: flex; align-items: flex-end; gap: 10px; height: 148px; padding-top: 20px;
  background-image: repeating-linear-gradient(to top, transparent 0 35px, rgba(255, 255, 255, 0.05) 35px 36px);
  background-position: 0 100%;
}
.bcol { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bcol__bar { width: 100%; max-width: 30px; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, #a78bfa, #6d3bd6); transition: filter 0.2s var(--ease); }
.bcol:hover .bcol__bar { filter: brightness(1.25); }
.bcol__x { margin-top: 8px; font-size: 11px; color: var(--muted); }
.bcol__tip { position: absolute; top: 0; left: 50%; transform: translate(-50%, -2px); padding: 3px 8px; border-radius: 7px; background: #14161c; border: 1px solid var(--dash-border); font-size: 11px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.bcol:hover .bcol__tip { opacity: 1; transform: translate(-50%, -8px); }

/* Tasks — kanban */
.kanban { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kcol { display: flex; flex-direction: column; gap: 8px; min-height: 0; padding: 12px; border-radius: 14px; border: 1px solid var(--dash-border); background: rgba(255, 255, 255, 0.02); overflow-y: auto; scrollbar-width: none; }
.kcol::-webkit-scrollbar { display: none; }
.kcol__head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.kcol__head span { font-size: 11px; color: var(--faint); }
.kcard { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--dash-border); background: rgba(255, 255, 255, 0.04); }
.kcard > span.task__pri { justify-self: start; }
.kcard strong { font-size: 13px; font-weight: 500; }
.kcard.is-done strong { text-decoration: line-through; color: var(--muted); }
.kcard__foot { display: flex; align-items: center; justify-content: space-between; }

/* Chats */
.chatwrap { flex: 1; min-height: 0; display: grid; grid-template-columns: 260px 1fr; gap: 14px; }
.chatlist { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; scrollbar-width: none; padding-right: 6px; border-right: 1px solid var(--dash-border); }
.chatlist::-webkit-scrollbar { display: none; }
.chatitem { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; cursor: pointer; }
.chatitem:hover { background: rgba(255, 255, 255, 0.04); }
.chatitem.is-active { background: rgba(139, 92, 246, 0.14); }
.chatitem__t { min-width: 0; display: grid; gap: 1px; }
.chatitem__t strong { font-size: 13px; font-weight: 600; }
.chatitem__t small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chatthread { display: flex; flex-direction: column; min-height: 0; }
.chatthread__head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--dash-border); }
.chatthread__head strong { font-size: 14px; font-weight: 600; margin-right: auto; }
.chatthread__body { flex: 1; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 10px; padding: 14px 2px; }
.chatthread__body::-webkit-scrollbar { display: none; }
.msg { max-width: 74%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.msg--in { align-self: flex-start; background: rgba(255, 255, 255, 0.06); border-bottom-left-radius: 4px; }
.msg--out { align-self: flex-end; background: linear-gradient(150deg, #8b5cf6, #3a1d78); color: #fff; border-bottom-right-radius: 4px; }
.chatthread__input { display: flex; gap: 8px; padding-top: 10px; border-top: 1px solid var(--dash-border); }
.chatthread__input input { flex: 1; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--dash-border); background: rgba(255, 255, 255, 0.04); color: var(--fg); font-size: 13px; }
.chatthread__input input:focus { outline: none; }

/* Meetings */
.meet-list { flex: 1; display: grid; grid-auto-rows: min-content; gap: 8px; overflow-y: auto; scrollbar-width: none; }
.meet-list::-webkit-scrollbar { display: none; }
.meet { display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 14px; border: 1px solid var(--dash-border); background: rgba(255, 255, 255, 0.03); }
.meet__time { min-width: 52px; text-align: center; }
.meet__time strong { display: block; font-size: 16px; font-weight: 600; }
.meet__time small { font-size: 11px; color: var(--muted); }
.meet__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.meet__body strong { font-size: 14px; font-weight: 600; }
.meet__body small { font-size: 12px; color: var(--muted); }
.meet__av { display: flex; }
.meet__av .av { width: 26px; height: 26px; margin-left: -8px; box-shadow: 0 0 0 2px #0c0e13; }
.meet__av .av:first-child { margin-left: 0; }
.meet__join { padding: 8px 16px; border-radius: 9px; background: linear-gradient(150deg, #8b5cf6, #3a1d78); color: #fff; font-size: 12px; font-weight: 600; }

/* Agents grid */
.agentgrid { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: min-content; gap: 12px; overflow-y: auto; scrollbar-width: none; align-content: start; }
.agentgrid::-webkit-scrollbar { display: none; }
.acard { display: grid; gap: 5px; padding: 16px; border-radius: 14px; border: 1px solid var(--dash-border); background: rgba(255, 255, 255, 0.03); }
.acard__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.acard strong { font-size: 14px; font-weight: 600; }
.acard small { font-size: 12px; color: var(--muted); }
.acard__stats { display: flex; gap: 12px; margin-top: 6px; font-size: 11px; color: var(--muted); }

/* Approvals */
.appr-list { flex: 1; display: grid; grid-auto-rows: min-content; gap: 8px; overflow-y: auto; scrollbar-width: none; }
.appr-list::-webkit-scrollbar { display: none; }
.appr { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; border: 1px solid var(--dash-border); background: rgba(255, 255, 255, 0.03); }
.appr__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.appr__body strong { font-size: 13px; font-weight: 500; }
.appr__body small { font-size: 11px; color: var(--muted); }
.appr__act { display: flex; gap: 8px; }
.btn-appr { padding: 8px 14px; border-radius: 9px; font-size: 12px; font-weight: 600; cursor: pointer; }
.btn-appr--ok { background: linear-gradient(150deg, #3ecf8e, #12563d); color: #fff; }
.btn-appr--no { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.appr__done { padding: 8px 14px; border-radius: 9px; font-size: 12px; font-weight: 600; }
.appr__done.is-ok { background: rgba(62, 207, 142, 0.14); color: #7ee0b3; }
.appr__done.is-no { background: rgba(246, 110, 110, 0.14); color: #f3a1a1; }

/* Usage */
.usebars { display: grid; gap: 12px; }
.usebar { display: grid; grid-template-columns: 120px 1fr 56px; align-items: center; gap: 14px; }
.usebar__l { font-size: 12px; color: var(--muted); }
.usebar__t { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.usebar__t span { display: block; height: 100%; width: var(--v); border-radius: 6px; background: linear-gradient(90deg, #6d3bd6, #a78bfa); }
.usebar__v { font-size: 12px; font-weight: 600; text-align: right; }

/* People */
.peoplegrid { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: min-content; gap: 12px; overflow-y: auto; scrollbar-width: none; align-content: start; }
.peoplegrid::-webkit-scrollbar { display: none; }
.pcard { display: grid; justify-items: center; gap: 3px; padding: 20px; border-radius: 14px; border: 1px solid var(--dash-border); background: rgba(255, 255, 255, 0.03); text-align: center; }
.pcard__av { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; margin-bottom: 4px; }
.pcard strong { font-size: 14px; font-weight: 600; }
.pcard small { font-size: 12px; color: var(--muted); }
.pstatus { margin-top: 4px; padding: 3px 9px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); font-size: 11px; color: var(--muted); }
.pstatus.is-on { background: rgba(62, 207, 142, 0.14); color: #7ee0b3; }

/* Settings */
.settings { flex: 1; display: grid; grid-auto-rows: min-content; gap: 16px; overflow-y: auto; scrollbar-width: none; }
.settings::-webkit-scrollbar { display: none; }
.set-group { display: grid; gap: 2px; padding: 6px; border-radius: 14px; border: 1px solid var(--dash-border); background: rgba(255, 255, 255, 0.02); }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border-radius: 10px; }
.set-row:hover { background: rgba(255, 255, 255, 0.02); }
.set-row__t { display: grid; gap: 2px; }
.set-row__t strong { font-size: 13px; font-weight: 600; }
.set-row__t small { font-size: 11px; color: var(--muted); }
.set-input { width: 220px; padding: 9px 12px; border-radius: 9px; border: 1px solid var(--dash-border); background: rgba(255, 255, 255, 0.04); color: var(--fg); font-size: 13px; }
.set-input:focus { outline: none; }
.set-row .ui-sw { cursor: pointer; }

@media (max-width: 960px) {
  .agentgrid, .peoplegrid { grid-template-columns: repeat(2, 1fr); }
  .kanban { grid-template-columns: 1fr; }
  .chatwrap { grid-template-columns: 1fr; }
  .chatlist { display: none; }
}

/* ===== Chats (AI) ===== */
.aichat { flex: 1; min-height: 0; display: grid; grid-template-columns: 220px 1fr; gap: 14px; }
.aichat__side { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; scrollbar-width: none; padding-right: 6px; border-right: 1px solid var(--dash-border); }
.aichat__side::-webkit-scrollbar { display: none; }
.aichat__new { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; padding: 9px 12px; border-radius: 10px; background: linear-gradient(150deg, #8b5cf6, #3a1d78); color: #fff; font-size: 13px; font-weight: 600; }
.aichat__new svg { width: 16px; height: 16px; }
.aichat__cat { padding: 12px 8px 5px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.aichat__row { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; font-size: 13px; color: var(--muted); }
.aichat__row svg { width: 15px; height: 15px; flex: none; }
.aichat__row span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aichat__row em { font-size: 11px; font-style: normal; color: var(--faint); }
.aichat__row:hover { background: rgba(255, 255, 255, 0.05); color: var(--fg); }
.aichat__row.is-active { background: rgba(139, 92, 246, 0.14); color: #fff; }

.aichat__main { display: flex; flex-direction: column; min-height: 0; }
.aichat__thread { flex: 1; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 16px; padding: 6px 4px 16px; }
.aichat__thread::-webkit-scrollbar { display: none; }
.aimsg { display: flex; gap: 12px; }
.aimsg--user { justify-content: flex-end; }
.aimsg__av { width: 30px; height: 30px; border-radius: 9px; flex: none; display: grid; place-items: center; color: #fff; }
.aimsg__av svg { width: 17px; height: 17px; }
.aimsg__body { max-width: 80%; display: grid; gap: 6px; }
.aimsg--user .aimsg__body { padding: 12px 14px; border-radius: 14px; border-bottom-right-radius: 4px; background: linear-gradient(150deg, #8b5cf6, #3a1d78); color: #fff; }
.aimsg--ai .aimsg__body { padding-top: 3px; }
.aimsg__name { font-size: 12px; font-weight: 600; color: var(--muted); }
.aimsg__body p { font-size: 13.5px; line-height: 1.6; }
.aimsg__files { display: flex; gap: 6px; }
.aifile { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.14); font-size: 12px; }
.aifile svg { width: 14px; height: 14px; }

.aichat__composer { padding: 8px; border: 1px solid var(--dash-border); border-radius: 16px; background: rgba(255, 255, 255, 0.03); }
.aichat__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.aichat__chips:not(:empty) { padding: 4px 4px 8px; }
.aichat__chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 9px; border-radius: 8px; background: rgba(255, 255, 255, 0.08); font-size: 12px; }
.aichat__chip svg { width: 13px; height: 13px; }
.aichat__chip button { display: inline-grid; place-items: center; color: var(--muted); }
.aichat__chip button svg { width: 12px; height: 12px; }
.aichat__inputrow { display: flex; align-items: center; gap: 6px; }
.aichat__inputrow input { flex: 1; min-width: 0; padding: 10px 8px; border: 0; background: none; color: var(--fg); font-size: 14px; }
.aichat__inputrow input:focus { outline: none; }
.aichat__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none; color: var(--muted); }
.aichat__ic:hover { background: rgba(255, 255, 255, 0.06); color: var(--fg); }
.aichat__ic svg { width: 18px; height: 18px; }
.aichat__send { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: none; background: linear-gradient(150deg, #8b5cf6, #3a1d78); color: #fff; }
.aichat__send svg { width: 18px; height: 18px; }
.aichat__tools { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 2px; }
.aichat__model { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.aichat__model svg { width: 14px; height: 14px; }
.aichat__hint { font-size: 11px; color: var(--faint); }

/* ===== Meetings (calendar) ===== */
.cal-wrap { flex: 1; min-height: 0; display: grid; grid-template-columns: 3fr 1fr; gap: 14px; }
.cal { display: flex; flex-direction: column; min-height: 0; padding: 16px; border-radius: 16px; border: 1px solid var(--dash-border); background: rgba(255, 255, 255, 0.02); }
.cal__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal__top strong { font-size: 16px; font-weight: 600; }
.cal__nav { display: flex; gap: 6px; }
.cal__nav button { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--dash-border); color: var(--muted); }
.cal__nav button:hover { background: rgba(255, 255, 255, 0.06); color: var(--fg); }
.cal__nav svg { width: 16px; height: 16px; }
.cal__dow { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 6px; }
.cal__dow span { text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--faint); }
.cal__grid { flex: 1; min-height: 0; display: grid; grid-template-columns: repeat(7, 1fr); grid-auto-rows: 1fr; gap: 6px; }
.cal__day { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 8px; border-radius: 10px; border: 1px solid transparent; background: rgba(255, 255, 255, 0.02); color: var(--fg); font-size: 13px; }
.cal__day:hover { background: rgba(255, 255, 255, 0.05); }
.cal__day.is-out { opacity: 0.45; color: var(--faint); }
.cal__day.is-selected { border-color: rgba(139, 92, 246, 0.5); background: rgba(139, 92, 246, 0.14); }
.cal__evs { display: flex; gap: 3px; margin-top: auto; }
.ev { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #8b5cf6; }
.ev--blue { background: #4f8bff; }
.ev--purple { background: #8b5cf6; }
.ev--green { background: #3ecf8e; }
.ev--amber { background: #f6b24a; }
.ev--teal { background: #2dd4bf; }

.cal-side { display: flex; flex-direction: column; min-height: 0; padding: 16px; border-radius: 16px; border: 1px solid var(--dash-border); background: rgba(255, 255, 255, 0.02); }
.cal-side__head { margin-bottom: 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.up-list { flex: 1; display: grid; grid-auto-rows: min-content; gap: 8px; overflow-y: auto; scrollbar-width: none; }
.up-list::-webkit-scrollbar { display: none; }
.up { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.03); }
.up__day { min-width: 34px; text-align: center; }
.up__day strong { display: block; font-size: 15px; font-weight: 600; }
.up__day small { font-size: 10px; text-transform: uppercase; color: var(--muted); }
.up__t { flex: 1; min-width: 0; display: grid; gap: 1px; }
.up__t strong { font-size: 13px; font-weight: 600; }
.up__t small { font-size: 11px; color: var(--muted); }
.up .ev { width: 8px; height: 8px; }

/* ===== Agents overhaul (rich cards) ===== */
.dash-head__act { display: flex; align-items: center; gap: 10px; }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 10px; border: 1px solid var(--dash-border); background: rgba(255, 255, 255, 0.03); }
.seg button { padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 500; color: var(--muted); }
.seg button:hover { color: var(--fg); }
.seg button.is-active { background: rgba(139, 92, 246, 0.18); color: #fff; }

.agentgrid--rich { grid-template-columns: repeat(3, 1fr); }
.agentgrid--rich .acard { gap: 9px; }
.acard__id { flex: 1; min-width: 0; display: grid; gap: 1px; }
.acard__desc { font-size: 12px; line-height: 1.5; color: var(--muted); }
.spark { display: block; width: 100%; height: 26px; }
.spark__l { fill: none; stroke: #a78bfa; stroke-width: 2px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.acard__m { display: flex; gap: 16px; padding: 2px 0; }
.acard__m div { display: grid; gap: 1px; }
.acard__m strong { font-size: 15px; font-weight: 600; }
.acard__m span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.acard__ctl { display: flex; gap: 8px; margin-top: 2px; }
.acard__btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px; border-radius: 9px; border: 1px solid var(--dash-border); background: rgba(255, 255, 255, 0.04); color: var(--fg); font-size: 12px; font-weight: 500; }
.acard__btn:hover { background: rgba(255, 255, 255, 0.08); }
.acard__btn svg { width: 15px; height: 15px; }
.acard[hidden] { display: none; }

@media (max-width: 960px) {
  .agentgrid--rich { grid-template-columns: repeat(2, 1fr); }
  .cal-wrap { grid-template-columns: 1fr; }
  .aichat { grid-template-columns: 1fr; }
  .aichat__side { display: none; }
}

/* ===== Subtle dashboard animation + polish ===== */
.dash-view.is-active { animation: dash-view-in 0.35s var(--ease); }
@keyframes dash-view-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.agent__status.is-running::before { animation: dash-dot 2s ease-in-out infinite; }
@keyframes dash-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.cal__day.is-today > span:first-child { color: #a78bfa; font-weight: 700; }

/* agents polish */
.acard { transition: transform 0.2s var(--ease), border-color 0.2s var(--ease); }
.acard:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, 0.16); }
.spark { border-radius: 6px; background: linear-gradient(to top, rgba(139, 92, 246, 0.08), transparent); }

@media (prefers-reduced-motion: reduce) {
  .dash-view.is-active { animation: none; }
  .agent__status.is-running::before { animation: none; }
}

/* ===== Dashboard snippets used as bento graphics ===== */
.snip { width: 100%; display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.1); background: rgba(6, 8, 14, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.snip__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.snip__stats div { display: grid; gap: 2px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.05); }
.snip__stats small { font-size: 9px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.6); }
.snip__stats b { font-size: 16px; font-weight: 600; color: #fff; }
.snip__bars { display: flex; align-items: flex-end; gap: 6px; height: 58px; padding: 8px 10px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.snip__bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #a78bfa, #6d3bd6); }

.snip-ic { width: 22px; height: 22px; border-radius: 6px; flex: none; background: linear-gradient(150deg, #8b5cf6, #3a1d78); }
.snip-ic--blue { background: linear-gradient(150deg, #4f8bff, #16305e); }
.snip-ic--green { background: linear-gradient(150deg, #3ecf8e, #12563d); }
.snip-ic--amber { background: linear-gradient(150deg, #f6b24a, #7a4310); }
.snip-ic--teal { background: linear-gradient(150deg, #2dd4bf, #0f5148); }
.snip-agent { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.snip-tt { flex: 1; min-width: 0; display: grid; gap: 1px; }
.snip-tt b { font-size: 11px; font-weight: 600; color: #fff; }
.snip-tt small { font-size: 9px; color: rgba(255, 255, 255, 0.6); }
.snip-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.snip-dot--ok { background: #3ecf8e; }
.snip-dot--idle { background: #8a8a8a; }

.snip-msg { display: flex; }
.snip-msg--out { justify-content: flex-end; }
.snip-msg p { max-width: 84%; padding: 8px 10px; border-radius: 10px; font-size: 11px; line-height: 1.5; color: rgba(255, 255, 255, 0.9); background: rgba(255, 255, 255, 0.06); }
.snip-msg--out p { background: linear-gradient(150deg, #8b5cf6, #3a1d78); color: #fff; }

.snip-appr { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.04); }
.snip-appr p { flex: 1; min-width: 0; font-size: 11px; color: rgba(255, 255, 255, 0.9); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.snip-mini { padding: 4px 8px; border-radius: 999px; font-size: 9px; font-weight: 600; background: rgba(62, 207, 142, 0.16); color: #7ee0b3; }

/* ===== Cropped dashboard screenshot as the full card background ===== */
.uibento { gap: 18px; }
.uibento .ui-card { position: relative; overflow: hidden; min-height: 340px; }
.uibento .ui-card--wide { min-height: 440px; }

/* the graphic layer fills the whole card */
.uibento .ui-gfx { position: absolute; inset: 0; z-index: 0; display: block; }
/* clip window that centres the focal piece and cuts the rest */
.uibento .ui-gfx > .shot { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; background: #0a0d15; display: grid; place-items: center; }

.shot__ui {
  --dash-border: rgba(255, 255, 255, 0.09);
  position: relative;
  transform-origin: center center;
  color: var(--fg);
  font-family: var(--font);
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  animation: shot-pan 24s ease-in-out infinite alternate;
}
.shot__ui .dash-panel { background: rgba(255, 255, 255, 0.03); }
.shot__ui--agents { width: 320px; transform: scale(0.82); animation-duration: 22s; }
.shot__ui--chat { width: 340px; transform: scale(0.8); animation-duration: 26s; }
.shot__ui--appr { width: 430px; transform: scale(0.72); animation-duration: 28s; }
.shot__ui--dash { width: 1360px; display: grid; gap: 12px; transform: scale(0.62); animation-duration: 34s; }
.shot__ui--dash .dash-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0; }
.shot__row { display: grid; grid-template-columns: 1.35fr 1fr; gap: 12px; }
.shot__row3 { display: grid; grid-template-columns: 1.15fr 0.9fr 1fr; gap: 12px; }
@keyframes shot-pan { from { translate: 0 0; } to { translate: -6px -4px; } }

/* text overlays, with blurred + darkened top and bottom strips */
.uibento .ui-card__title,
.uibento .ui-card__sub { position: relative; z-index: 2; }
.uibento .ui-card__sub { margin-top: auto; }
/* subtle inverted vignette (darker top/bottom + edges), no blur */
.uibento .ui-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(6, 9, 16, 0.66) 0%, transparent 22%, transparent 76%, rgba(6, 9, 16, 0.8) 100%);
}
.uibento .ui-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 55px 8px rgba(0, 0, 0, 0.42);
}
.uibento .ui-card__sub { color: rgba(255, 255, 255, 0.82); }

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